From 549e69b1249a755107c40230f9528981b739fcd6 Mon Sep 17 00:00:00 2001 From: Darp Alakun Date: Sat, 4 Jan 2025 21:44:00 -0500 Subject: [PATCH] (refactor): Remove es-client --- libs/es-client/.eslintrc.cjs | 33 - libs/es-client/.gitignore | 41 - libs/es-client/.prettierrc.cjs | 10 - libs/es-client/CHANGELOG.md | 337 -- libs/es-client/CONTRIBUTING.md | 149 - libs/es-client/LICENSE | 21 - libs/es-client/README.md | 183 - libs/es-client/buf.gen.yaml | 10 - libs/es-client/buf.lock | 2 - libs/es-client/devbox.json | 20 - libs/es-client/devbox.lock | 53 - libs/es-client/package.json | 83 - libs/es-client/pnpm-lock.yaml | 4119 ----------------- libs/es-client/scripts/gen-protobufs.mjs | 171 - libs/es-client/scripts/gen-registry.mjs | 53 - libs/es-client/scripts/protoc-gen-cosmes.mjs | 50 - libs/es-client/src/client/apis/broadcastTx.ts | 19 - libs/es-client/src/client/apis/getAccount.ts | 19 - .../src/client/apis/getCw20Balance.ts | 30 - .../src/client/apis/getNativeBalances.ts | 20 - libs/es-client/src/client/apis/getTx.ts | 21 - libs/es-client/src/client/apis/pollTx.ts | 28 - .../src/client/apis/queryContract.ts | 29 - .../apis/simulateAstroportSinglePoolSwap.ts | 49 - .../apis/simulateKujiraSinglePoolSwap.ts | 44 - libs/es-client/src/client/apis/simulateTx.ts | 23 - .../src/client/clients/FetchClient.ts | 33 - .../es-client/src/client/clients/RpcClient.ts | 210 - libs/es-client/src/client/index.ts | 47 - libs/es-client/src/client/models/Adapter.ts | 12 - .../src/client/models/MsgBeginRedelegate.ts | 31 - .../src/client/models/MsgDelegate.ts | 30 - .../src/client/models/MsgExecuteContract.ts | 34 - .../src/client/models/MsgIbcTransfer.ts | 47 - .../client/models/MsgInstantiateContract.ts | 41 - .../src/client/models/MsgMigrateContract.ts | 39 - libs/es-client/src/client/models/MsgSend.ts | 32 - .../src/client/models/MsgStoreCode.ts | 33 - .../src/client/models/MsgUndelegate.ts | 30 - .../models/MsgWithdrawDelegatorRewards.ts | 33 - .../models/MsgWithdrawValidatorCommission.ts | 28 - .../src/client/models/Secp256k1PubKey.ts | 41 - libs/es-client/src/client/models/Tx.ts | 214 - .../src/client/utils/calculateFee.ts | 26 - libs/es-client/src/client/utils/toAny.ts | 8 - .../src/client/utils/toBaseAccount.ts | 63 - libs/es-client/src/client/utils/wait.ts | 6 - libs/es-client/src/codec/address.test.ts | 45 - libs/es-client/src/codec/address.ts | 46 - libs/es-client/src/codec/ethhex.ts | 13 - libs/es-client/src/codec/index.ts | 14 - libs/es-client/src/codec/key.test.ts | 44 - libs/es-client/src/codec/key.ts | 29 - libs/es-client/src/codec/serialise.test.ts | 38 - libs/es-client/src/codec/serialise.ts | 38 - libs/es-client/src/codec/sign.test.ts | 72 - libs/es-client/src/codec/sign.ts | 84 - libs/es-client/src/codec/verify.test.ts | 115 - libs/es-client/src/codec/verify.ts | 80 - .../btccheckpoint/v1/btccheckpoint_pb.ts | 531 --- .../babylon/btccheckpoint/v1/genesis_pb.ts | 48 - .../babylon/btccheckpoint/v1/params_pb.ts | 73 - .../babylon/btccheckpoint/v1/query_cosmes.ts | 57 - .../babylon/btccheckpoint/v1/query_pb.ts | 604 --- .../babylon/btccheckpoint/v1/tx_cosmes.ts | 33 - .../babylon/btccheckpoint/v1/tx_pb.ts | 177 - .../btclightclient/v1/btclightclient_pb.ts | 72 - .../babylon/btclightclient/v1/event_pb.ts | 134 - .../babylon/btclightclient/v1/genesis_pb.ts | 55 - .../babylon/btclightclient/v1/params_pb.ts | 50 - .../babylon/btclightclient/v1/query_cosmes.ts | 110 - .../babylon/btclightclient/v1/query_pb.ts | 705 --- .../babylon/btclightclient/v1/tx_cosmes.ts | 33 - .../babylon/btclightclient/v1/tx_pb.ts | 174 - .../babylon/btcstaking/v1/btcstaking_pb.ts | 723 --- .../babylon/btcstaking/v1/events_pb.ts | 245 - .../babylon/btcstaking/v1/genesis_pb.ts | 378 -- .../babylon/btcstaking/v1/incentive_pb.ts | 197 - .../babylon/btcstaking/v1/params_pb.ts | 123 - .../protobufs/babylon/btcstaking/v1/pop_pb.ts | 153 - .../babylon/btcstaking/v1/query_cosmes.ts | 130 - .../babylon/btcstaking/v1/query_pb.ts | 1305 ------ .../babylon/btcstaking/v1/tx_cosmes.ts | 94 - .../protobufs/babylon/btcstaking/v1/tx_pb.ts | 812 ---- .../babylon/checkpointing/v1/bls_key_pb.ts | 287 -- .../babylon/checkpointing/v1/checkpoint_pb.ts | 382 -- .../babylon/checkpointing/v1/events_pb.ts | 295 -- .../babylon/checkpointing/v1/genesis_pb.ts | 108 - .../babylon/checkpointing/v1/query_cosmes.ts | 96 - .../babylon/checkpointing/v1/query_pb.ts | 853 ---- .../babylon/checkpointing/v1/tx_cosmes.ts | 21 - .../babylon/checkpointing/v1/tx_pb.ts | 89 - .../babylon/epoching/v1/epoching_pb.ts | 523 --- .../babylon/epoching/v1/events_pb.ts | 476 -- .../babylon/epoching/v1/genesis_pb.ts | 48 - .../babylon/epoching/v1/params_pb.ts | 49 - .../babylon/epoching/v1/query_cosmes.ts | 138 - .../protobufs/babylon/epoching/v1/query_pb.ts | 1076 ----- .../babylon/epoching/v1/tx_cosmes.ts | 73 - .../protobufs/babylon/epoching/v1/tx_pb.ts | 390 -- .../babylon/finality/v1/events_pb.ts | 51 - .../babylon/finality/v1/finality_pb.ts | 160 - .../babylon/finality/v1/genesis_pb.ts | 199 - .../babylon/finality/v1/params_pb.ts | 50 - .../babylon/finality/v1/query_cosmes.ts | 93 - .../protobufs/babylon/finality/v1/query_pb.ts | 673 --- .../babylon/finality/v1/tx_cosmes.ts | 46 - .../protobufs/babylon/finality/v1/tx_pb.ts | 311 -- .../protobufs/babylon/incentive/genesis_pb.ts | 48 - .../babylon/incentive/incentive_pb.ts | 103 - .../protobufs/babylon/incentive/params_pb.ts | 70 - .../babylon/incentive/query_cosmes.ts | 57 - .../protobufs/babylon/incentive/query_pb.ts | 331 -- .../protobufs/babylon/incentive/tx_cosmes.ts | 37 - .../src/protobufs/babylon/incentive/tx_pb.ts | 188 - .../babylon/monitor/v1/genesis_pb.ts | 41 - .../babylon/monitor/v1/query_cosmes.ts | 35 - .../protobufs/babylon/monitor/v1/query_pb.ts | 174 - .../babylon/zoneconcierge/v1/genesis_pb.ts | 54 - .../babylon/zoneconcierge/v1/packet_pb.ts | 150 - .../babylon/zoneconcierge/v1/params_pb.ts | 50 - .../babylon/zoneconcierge/v1/query_cosmes.ts | 139 - .../babylon/zoneconcierge/v1/query_pb.ts | 844 ---- .../babylon/zoneconcierge/v1/tx_cosmes.ts | 21 - .../babylon/zoneconcierge/v1/tx_pb.ts | 96 - .../zoneconcierge/v1/zoneconcierge_pb.ts | 495 -- .../cosmos/app/runtime/v1alpha1/module_pb.ts | 178 - .../cosmos/app/v1alpha1/config_pb.ts | 183 - .../cosmos/app/v1alpha1/module_pb.ts | 202 - .../cosmos/app/v1alpha1/query_cosmes.ts | 21 - .../protobufs/cosmos/app/v1alpha1/query_pb.ts | 83 - .../cosmos/auth/module/v1/module_pb.ts | 115 - .../protobufs/cosmos/auth/v1beta1/auth_pb.ts | 233 - .../cosmos/auth/v1beta1/genesis_pb.ts | 58 - .../cosmos/auth/v1beta1/query_cosmes.ts | 166 - .../protobufs/cosmos/auth/v1beta1/query_pb.ts | 839 ---- .../cosmos/auth/v1beta1/tx_cosmes.ts | 23 - .../protobufs/cosmos/auth/v1beta1/tx_pb.ts | 98 - .../cosmos/authz/module/v1/module_pb.ts | 41 - .../cosmos/authz/v1beta1/authz_pb.ts | 201 - .../cosmos/authz/v1beta1/event_pb.ts | 124 - .../cosmos/authz/v1beta1/genesis_pb.ts | 50 - .../cosmos/authz/v1beta1/query_cosmes.ts | 51 - .../cosmos/authz/v1beta1/query_pb.ts | 314 -- .../cosmos/authz/v1beta1/tx_cosmes.ts | 53 - .../protobufs/cosmos/authz/v1beta1/tx_pb.ts | 271 -- .../protobufs/cosmos/autocli/v1/options_pb.ts | 405 -- .../cosmos/autocli/v1/query_cosmes.ts | 21 - .../protobufs/cosmos/autocli/v1/query_pb.ts | 83 - .../cosmos/bank/module/v1/module_pb.ts | 59 - .../protobufs/cosmos/bank/v1beta1/authz_pb.ts | 62 - .../protobufs/cosmos/bank/v1beta1/bank_pb.ts | 408 -- .../cosmos/bank/v1beta1/genesis_pb.ts | 136 - .../cosmos/bank/v1beta1/query_cosmes.ts | 202 - .../protobufs/cosmos/bank/v1beta1/query_pb.ts | 1277 ----- .../cosmos/bank/v1beta1/tx_cosmes.ts | 65 - .../protobufs/cosmos/bank/v1beta1/tx_pb.ts | 365 -- .../cosmos/base/abci/v1beta1/abci_pb.ts | 731 --- .../cosmos/base/node/v1beta1/query_cosmes.ts | 37 - .../cosmos/base/node/v1beta1/query_pb.ts | 204 - .../base/query/v1beta1/pagination_pb.ts | 155 - .../reflection/v1beta1/reflection_cosmes.ts | 39 - .../base/reflection/v1beta1/reflection_pb.ts | 164 - .../reflection/v2alpha1/reflection_cosmes.ts | 85 - .../base/reflection/v2alpha1/reflection_pb.ts | 1167 ----- .../base/tendermint/v1beta1/query_cosmes.ts | 97 - .../base/tendermint/v1beta1/query_pb.ts | 983 ---- .../base/tendermint/v1beta1/types_pb.ts | 218 - .../protobufs/cosmos/base/v1beta1/coin_pb.ts | 184 - .../cosmos/circuit/module/v1/module_pb.ts | 49 - .../cosmos/circuit/v1/query_cosmes.ts | 45 - .../protobufs/cosmos/circuit/v1/query_pb.ts | 248 - .../protobufs/cosmos/circuit/v1/tx_cosmes.ts | 47 - .../src/protobufs/cosmos/circuit/v1/tx_pb.ts | 290 -- .../protobufs/cosmos/circuit/v1/types_pb.ts | 198 - .../cosmos/consensus/module/v1/module_pb.ts | 49 - .../cosmos/consensus/v1/query_cosmes.ts | 22 - .../protobufs/cosmos/consensus/v1/query_pb.ts | 87 - .../cosmos/consensus/v1/tx_cosmes.ts | 26 - .../protobufs/cosmos/consensus/v1/tx_pb.ts | 118 - .../cosmos/crisis/module/v1/module_pb.ts | 57 - .../cosmos/crisis/v1beta1/genesis_pb.ts | 51 - .../cosmos/crisis/v1beta1/tx_cosmes.ts | 36 - .../protobufs/cosmos/crisis/v1beta1/tx_pb.ts | 186 - .../cosmos/crypto/ed25519/keys_pb.ts | 91 - .../protobufs/cosmos/crypto/hd/v1/hd_pb.ts | 84 - .../cosmos/crypto/keyring/v1/record_pb.ts | 248 - .../cosmos/crypto/multisig/keys_pb.ts | 55 - .../crypto/multisig/v1beta1/multisig_pb.ts | 97 - .../cosmos/crypto/secp256k1/keys_pb.ts | 90 - .../cosmos/crypto/secp256r1/keys_pb.ts | 93 - .../distribution/module/v1/module_pb.ts | 55 - .../distribution/v1beta1/distribution_pb.ts | 614 --- .../cosmos/distribution/v1beta1/genesis_pb.ts | 502 -- .../distribution/v1beta1/query_cosmes.ts | 130 - .../cosmos/distribution/v1beta1/query_pb.ts | 893 ---- .../cosmos/distribution/v1beta1/tx_cosmes.ts | 108 - .../cosmos/distribution/v1beta1/tx_pb.ts | 611 --- .../cosmos/evidence/module/v1/module_pb.ts | 41 - .../cosmos/evidence/v1beta1/evidence_pb.ts | 74 - .../cosmos/evidence/v1beta1/genesis_pb.ts | 49 - .../cosmos/evidence/v1beta1/query_cosmes.ts | 33 - .../cosmos/evidence/v1beta1/query_pb.ts | 195 - .../cosmos/evidence/v1beta1/tx_cosmes.ts | 22 - .../cosmos/evidence/v1beta1/tx_pb.ts | 99 - .../cosmos/feegrant/module/v1/module_pb.ts | 41 - .../cosmos/feegrant/v1beta1/feegrant_pb.ts | 247 - .../cosmos/feegrant/v1beta1/genesis_pb.ts | 50 - .../cosmos/feegrant/v1beta1/query_cosmes.ts | 49 - .../cosmos/feegrant/v1beta1/query_pb.ts | 298 -- .../cosmos/feegrant/v1beta1/tx_cosmes.ts | 51 - .../cosmos/feegrant/v1beta1/tx_pb.ts | 261 -- .../cosmos/genutil/module/v1/module_pb.ts | 41 - .../cosmos/genutil/v1beta1/genesis_pb.ts | 49 - .../cosmos/gov/module/v1/module_pb.ts | 58 - .../src/protobufs/cosmos/gov/v1/genesis_pb.ts | 129 - .../src/protobufs/cosmos/gov/v1/gov_pb.ts | 862 ---- .../protobufs/cosmos/gov/v1/query_cosmes.ts | 119 - .../src/protobufs/cosmos/gov/v1/query_pb.ts | 854 ---- .../src/protobufs/cosmos/gov/v1/tx_cosmes.ts | 115 - .../src/protobufs/cosmos/gov/v1/tx_pb.ts | 718 --- .../cosmos/gov/v1beta1/genesis_pb.ts | 98 - .../protobufs/cosmos/gov/v1beta1/gov_pb.ts | 674 --- .../cosmos/gov/v1beta1/query_cosmes.ts | 105 - .../protobufs/cosmos/gov/v1beta1/query_pb.ts | 762 --- .../protobufs/cosmos/gov/v1beta1/tx_cosmes.ts | 59 - .../src/protobufs/cosmos/gov/v1beta1/tx_pb.ts | 383 -- .../cosmos/group/module/v1/module_pb.ts | 59 - .../protobufs/cosmos/group/v1/events_pb.ts | 461 -- .../protobufs/cosmos/group/v1/genesis_pb.ts | 111 - .../protobufs/cosmos/group/v1/query_cosmes.ts | 213 - .../src/protobufs/cosmos/group/v1/query_pb.ts | 1308 ------ .../protobufs/cosmos/group/v1/tx_cosmes.ts | 179 - .../src/protobufs/cosmos/group/v1/tx_pb.ts | 1415 ------ .../src/protobufs/cosmos/group/v1/types_pb.ts | 990 ---- .../protobufs/cosmos/ics23/v1/proofs_pb.ts | 978 ---- .../cosmos/mint/module/v1/module_pb.ts | 55 - .../cosmos/mint/v1beta1/genesis_pb.ts | 58 - .../protobufs/cosmos/mint/v1beta1/mint_pb.ts | 138 - .../cosmos/mint/v1beta1/query_cosmes.ts | 45 - .../protobufs/cosmos/mint/v1beta1/query_pb.ts | 234 - .../cosmos/mint/v1beta1/tx_cosmes.ts | 23 - .../protobufs/cosmos/mint/v1beta1/tx_pb.ts | 98 - .../cosmos/nft/module/v1/module_pb.ts | 41 - .../protobufs/cosmos/nft/v1beta1/event_pb.ts | 187 - .../cosmos/nft/v1beta1/genesis_pb.ts | 107 - .../protobufs/cosmos/nft/v1beta1/nft_pb.ts | 170 - .../cosmos/nft/v1beta1/query_cosmes.ts | 94 - .../protobufs/cosmos/nft/v1beta1/query_pb.ts | 640 --- .../protobufs/cosmos/nft/v1beta1/tx_cosmes.ts | 21 - .../src/protobufs/cosmos/nft/v1beta1/tx_pb.ts | 106 - .../cosmos/orm/module/v1alpha1/module_pb.ts | 43 - .../cosmos/orm/query/v1alpha1/query_cosmes.ts | 37 - .../cosmos/orm/query/v1alpha1/query_pb.ts | 456 -- .../src/protobufs/cosmos/orm/v1/orm_pb.ts | 260 -- .../cosmos/orm/v1alpha1/schema_pb.ts | 159 - .../cosmos/params/module/v1/module_pb.ts | 41 - .../cosmos/params/v1beta1/params_pb.ts | 111 - .../cosmos/params/v1beta1/query_cosmes.ts | 36 - .../cosmos/params/v1beta1/query_pb.ts | 225 - .../cosmos/reflection/v1/reflection_cosmes.ts | 22 - .../cosmos/reflection/v1/reflection_pb.ts | 82 - .../cosmos/slashing/module/v1/module_pb.ts | 49 - .../cosmos/slashing/v1beta1/genesis_pb.ts | 216 - .../cosmos/slashing/v1beta1/query_cosmes.ts | 45 - .../cosmos/slashing/v1beta1/query_pb.ts | 254 - .../cosmos/slashing/v1beta1/slashing_pb.ts | 156 - .../cosmos/slashing/v1beta1/tx_cosmes.ts | 38 - .../cosmos/slashing/v1beta1/tx_pb.ts | 170 - .../cosmos/staking/module/v1/module_pb.ts | 75 - .../cosmos/staking/v1beta1/authz_pb.ts | 178 - .../cosmos/staking/v1beta1/genesis_pb.ts | 157 - .../cosmos/staking/v1beta1/query_cosmes.ts | 230 - .../cosmos/staking/v1beta1/query_pb.ts | 1304 ------ .../cosmos/staking/v1beta1/staking_pb.ts | 1335 ------ .../cosmos/staking/v1beta1/tx_cosmes.ts | 101 - .../protobufs/cosmos/staking/v1beta1/tx_pb.ts | 688 --- .../cosmos/store/internal/kv/v1beta1/kv_pb.ts | 92 - .../cosmos/store/snapshots/v1/snapshot_pb.ts | 374 -- .../store/streaming/abci/grpc_cosmes.ts | 33 - .../cosmos/store/streaming/abci/grpc_pb.ts | 174 - .../cosmos/store/v1beta1/commit_info_pb.ts | 152 - .../cosmos/store/v1beta1/listening_pb.ts | 128 - .../cosmos/tx/config/v1/config_pb.ts | 59 - .../cosmos/tx/signing/v1beta1/signing_pb.ts | 351 -- .../cosmos/tx/v1beta1/service_cosmes.ts | 127 - .../protobufs/cosmos/tx/v1beta1/service_pb.ts | 998 ---- .../src/protobufs/cosmos/tx/v1beta1/tx_pb.ts | 862 ---- .../cosmos/upgrade/module/v1/module_pb.ts | 49 - .../cosmos/upgrade/v1beta1/query_cosmes.ts | 79 - .../cosmos/upgrade/v1beta1/query_pb.ts | 422 -- .../cosmos/upgrade/v1beta1/tx_cosmes.ts | 40 - .../protobufs/cosmos/upgrade/v1beta1/tx_pb.ts | 175 - .../cosmos/upgrade/v1beta1/upgrade_pb.ts | 259 -- .../cosmos/vesting/module/v1/module_pb.ts | 41 - .../cosmos/vesting/v1beta1/tx_cosmes.ts | 52 - .../protobufs/cosmos/vesting/v1beta1/tx_pb.ts | 296 -- .../cosmos/vesting/v1beta1/vesting_pb.ts | 307 -- .../protobufs/cosmwasm/wasm/v1/authz_pb.ts | 505 -- .../protobufs/cosmwasm/wasm/v1/genesis_pb.ts | 227 - .../src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts | 189 - .../cosmwasm/wasm/v1/proposal_legacy_pb.ts | 1080 ----- .../cosmwasm/wasm/v1/query_cosmes.ts | 178 - .../protobufs/cosmwasm/wasm/v1/query_pb.ts | 1357 ------ .../protobufs/cosmwasm/wasm/v1/tx_cosmes.ts | 239 - .../src/protobufs/cosmwasm/wasm/v1/tx_pb.ts | 1807 -------- .../protobufs/cosmwasm/wasm/v1/types_pb.ts | 527 --- .../src/protobufs/did/module/v1/module_pb.ts | 42 - .../src/protobufs/did/v1/genesis_pb.ts | 159 - .../src/protobufs/did/v1/query_cosmes.ts | 45 - .../src/protobufs/did/v1/query_pb.ts | 362 -- .../src/protobufs/did/v1/state_pb.ts | 305 -- .../src/protobufs/did/v1/tx_cosmes.ts | 82 - libs/es-client/src/protobufs/did/v1/tx_pb.ts | 662 --- .../src/protobufs/dwn/module/v1/module_pb.ts | 42 - .../src/protobufs/dwn/v1/genesis_pb.ts | 376 -- .../src/protobufs/dwn/v1/query_cosmes.ts | 60 - .../src/protobufs/dwn/v1/query_pb.ts | 355 -- .../src/protobufs/dwn/v1/state_pb.ts | 130 - .../src/protobufs/dwn/v1/tx_cosmes.ts | 39 - libs/es-client/src/protobufs/dwn/v1/tx_pb.ts | 188 - .../crypto/v1/ethsecp256k1/keys_pb.ts | 93 - .../protobufs/ethermint/evm/v1/events_pb.ts | 236 - .../src/protobufs/ethermint/evm/v1/evm_pb.ts | 745 --- .../protobufs/ethermint/evm/v1/genesis_pb.ts | 117 - .../ethermint/evm/v1/query_cosmes.ts | 157 - .../protobufs/ethermint/evm/v1/query_pb.ts | 1187 ----- .../protobufs/ethermint/evm/v1/tx_cosmes.ts | 34 - .../src/protobufs/ethermint/evm/v1/tx_pb.ts | 627 --- .../ethermint/feemarket/v1/events_pb.ts | 98 - .../ethermint/feemarket/v1/feemarket_pb.ts | 100 - .../ethermint/feemarket/v1/genesis_pb.ts | 59 - .../ethermint/feemarket/v1/query_cosmes.ts | 45 - .../ethermint/feemarket/v1/query_pb.ts | 233 - .../ethermint/feemarket/v1/tx_cosmes.ts | 22 - .../protobufs/ethermint/feemarket/v1/tx_pb.ts | 93 - .../ethermint/types/v1/account_pb.ts | 59 - .../ethermint/types/v1/dynamic_fee_pb.ts | 49 - .../ethermint/types/v1/indexer_pb.ts | 100 - .../protobufs/ethermint/types/v1/web3_pb.ts | 69 - .../ibc/applications/fee/v1/ack_pb.ts | 65 - .../ibc/applications/fee/v1/fee_pb.ts | 214 - .../ibc/applications/fee/v1/genesis_pb.ts | 296 -- .../ibc/applications/fee/v1/metadata_pb.ts | 58 - .../ibc/applications/fee/v1/query_cosmes.ts | 129 - .../ibc/applications/fee/v1/query_pb.ts | 927 ---- .../ibc/applications/fee/v1/tx_cosmes.ts | 71 - .../ibc/applications/fee/v1/tx_pb.ts | 397 -- .../controller/v1/controller_pb.ts | 50 - .../controller/v1/query_cosmes.ts | 33 - .../controller/v1/query_pb.ts | 167 - .../controller/v1/tx_cosmes.ts | 45 - .../controller/v1/tx_pb.ts | 296 -- .../genesis/v1/genesis_pb.ts | 278 -- .../interchain_accounts/host/v1/host_pb.ts | 110 - .../host/v1/query_cosmes.ts | 21 - .../interchain_accounts/host/v1/query_pb.ts | 83 - .../interchain_accounts/host/v1/tx_cosmes.ts | 33 - .../interchain_accounts/host/v1/tx_pb.ts | 191 - .../interchain_accounts/v1/account_pb.ts | 54 - .../interchain_accounts/v1/metadata_pb.ts | 91 - .../interchain_accounts/v1/packet_pb.ts | 125 - .../ibc/applications/transfer/v1/authz_pb.ts | 176 - .../applications/transfer/v1/denomtrace_pb.ts | 60 - .../applications/transfer/v1/query_cosmes.ts | 57 - .../ibc/applications/transfer/v1/query_pb.ts | 336 -- .../applications/transfer/v1/transfer_pb.ts | 159 - .../ibc/applications/transfer/v1/tx_cosmes.ts | 33 - .../ibc/applications/transfer/v1/tx_pb.ts | 255 - .../applications/transfer/v2/genesis_pb.ts | 126 - .../ibc/applications/transfer/v2/packet_pb.ts | 211 - .../transfer/v2/queryv2_cosmes.ts | 33 - .../applications/transfer/v2/queryv2_pb.ts | 186 - .../ibc/applications/transfer/v2/token_pb.ts | 107 - .../ibc/core/channel/v1/channel_pb.ts | 725 --- .../ibc/core/channel/v1/genesis_pb.ts | 150 - .../ibc/core/channel/v1/query_cosmes.ts | 221 - .../protobufs/ibc/core/channel/v1/query_pb.ts | 1859 -------- .../ibc/core/channel/v1/tx_cosmes.ts | 238 - .../protobufs/ibc/core/channel/v1/tx_pb.ts | 2068 --------- .../ibc/core/channel/v1/upgrade_pb.ts | 167 - .../protobufs/ibc/core/client/v1/client_pb.ts | 262 -- .../ibc/core/client/v1/genesis_pb.ts | 186 - .../ibc/core/client/v1/query_cosmes.ts | 131 - .../protobufs/ibc/core/client/v1/query_pb.ts | 970 ---- .../protobufs/ibc/core/client/v1/tx_cosmes.ts | 93 - .../src/protobufs/ibc/core/client/v1/tx_pb.ts | 678 --- .../ibc/core/commitment/v1/commitment_pb.ts | 133 - .../ibc/core/commitment/v2/commitment_pb.ts | 49 - .../ibc/core/connection/v1/connection_pb.ts | 457 -- .../ibc/core/connection/v1/genesis_pb.ts | 68 - .../ibc/core/connection/v1/query_cosmes.ts | 84 - .../ibc/core/connection/v1/query_pb.ts | 604 --- .../ibc/core/connection/v1/tx_cosmes.ts | 71 - .../protobufs/ibc/core/connection/v1/tx_pb.ts | 603 --- .../protobufs/ibc/core/types/v1/genesis_pb.ts | 68 - .../solomachine/v2/solomachine_pb.ts | 929 ---- .../solomachine/v3/solomachine_pb.ts | 458 -- .../tendermint/v1/tendermint_pb.ts | 365 -- .../ibc/lightclients/wasm/v1/genesis_pb.ts | 90 - .../ibc/lightclients/wasm/v1/query_cosmes.ts | 33 - .../ibc/lightclients/wasm/v1/query_pb.ts | 179 - .../ibc/lightclients/wasm/v1/tx_cosmes.ts | 45 - .../ibc/lightclients/wasm/v1/tx_pb.ts | 278 -- .../ibc/lightclients/wasm/v1/wasm_pb.ts | 187 - libs/es-client/src/protobufs/index.ts | 4060 ---------------- .../osmosis/accum/v1beta1/accum_pb.ts | 172 - .../concentratedliquidity/params_pb.ts | 120 - .../concentrated/v1beta1/tx_cosmes.ts | 22 - .../poolmodel/concentrated/v1beta1/tx_pb.ts | 110 - .../v1beta1/genesis_pb.ts | 324 -- .../concentratedliquidity/v1beta1/gov_pb.ts | 225 - .../v1beta1/incentive_record_pb.ts | 135 - .../concentratedliquidity/v1beta1/pool_pb.ts | 138 - .../v1beta1/position_pb.ts | 209 - .../v1beta1/query_cosmes.ts | 199 - .../concentratedliquidity/v1beta1/query_pb.ts | 1452 ------ .../v1beta1/tick_info_pb.ts | 164 - .../v1beta1/tx_cosmes.ts | 78 - .../concentratedliquidity/v1beta1/tx_pb.ts | 721 --- .../cosmwasmpool/v1beta1/genesis_pb.ts | 56 - .../osmosis/cosmwasmpool/v1beta1/gov_pb.ts | 171 - .../v1beta1/model/instantiate_msg_pb.ts | 50 - .../v1beta1/model/module_query_msg_pb.ts | 281 -- .../v1beta1/model/module_sudo_msg_pb.ts | 311 -- .../cosmwasmpool/v1beta1/model/pool_pb.ts | 80 - .../v1beta1/model/pool_query_msg_pb.ts | 411 -- .../v1beta1/model/transmuter_msgs_pb.ts | 185 - .../cosmwasmpool/v1beta1/model/tx_cosmes.ts | 19 - .../cosmwasmpool/v1beta1/model/tx_pb.ts | 98 - .../v1beta1/model/v3/pool_query_msg_pb.ts | 182 - .../osmosis/cosmwasmpool/v1beta1/params_pb.ts | 59 - .../cosmwasmpool/v1beta1/query_cosmes.ts | 43 - .../osmosis/cosmwasmpool/v1beta1/query_pb.ts | 255 - .../osmosis/cosmwasmpool/v1beta1/tx_cosmes.ts | 7 - .../v1beta1/downtime_duration_pb.ts | 165 - .../downtimedetector/v1beta1/genesis_pb.ts | 97 - .../downtimedetector/v1beta1/query_cosmes.ts | 19 - .../downtimedetector/v1beta1/query_pb.ts | 92 - .../osmosis/epochs/v1beta1/genesis_pb.ts | 163 - .../osmosis/epochs/v1beta1/query_cosmes.ts | 33 - .../osmosis/epochs/v1beta1/query_pb.ts | 151 - .../poolmodels/balancer/v1beta1/tx_cosmes.ts | 19 - .../gamm/poolmodels/balancer/v1beta1/tx_pb.ts | 105 - .../stableswap/v1beta1/stableswap_pool_pb.ts | 159 - .../stableswap/v1beta1/tx_cosmes.ts | 29 - .../poolmodels/stableswap/v1beta1/tx_pb.ts | 201 - .../osmosis/gamm/v1beta1/balancerPool_pb.ts | 307 -- .../osmosis/gamm/v1beta1/genesis_pb.ts | 69 - .../protobufs/osmosis/gamm/v1beta1/gov_pb.ts | 299 -- .../osmosis/gamm/v1beta1/params_pb.ts | 48 - .../osmosis/gamm/v1beta1/query_cosmes.ts | 226 - .../osmosis/gamm/v1beta1/query_pb.ts | 1497 ------ .../osmosis/gamm/v1beta1/shared_pb.ts | 98 - .../osmosis/gamm/v1beta1/tx_cosmes.ts | 89 - .../protobufs/osmosis/gamm/v1beta1/tx_pb.ts | 785 ---- .../protobufs/osmosis/gamm/v2/query_cosmes.ts | 22 - .../src/protobufs/osmosis/gamm/v2/query_pb.ts | 111 - .../protobufs/osmosis/ibchooks/genesis_pb.ts | 46 - .../protobufs/osmosis/ibchooks/params_pb.ts | 45 - .../protobufs/osmosis/ibchooks/tx_cosmes.ts | 22 - .../src/protobufs/osmosis/ibchooks/tx_pb.ts | 100 - .../ibcratelimit/v1beta1/genesis_pb.ts | 50 - .../osmosis/ibcratelimit/v1beta1/params_pb.ts | 47 - .../ibcratelimit/v1beta1/query_cosmes.ts | 22 - .../osmosis/ibcratelimit/v1beta1/query_pb.ts | 83 - .../protobufs/osmosis/incentives/gauge_pb.ts | 156 - .../osmosis/incentives/genesis_pb.ts | 96 - .../protobufs/osmosis/incentives/gov_pb.ts | 62 - .../protobufs/osmosis/incentives/group_pb.ts | 272 -- .../protobufs/osmosis/incentives/params_pb.ts | 101 - .../osmosis/incentives/query_cosmes.ts | 224 - .../protobufs/osmosis/incentives/query_pb.ts | 1494 ------ .../protobufs/osmosis/incentives/tx_cosmes.ts | 39 - .../src/protobufs/osmosis/incentives/tx_pb.ts | 335 -- .../protobufs/osmosis/lockup/genesis_pb.ts | 67 - .../src/protobufs/osmosis/lockup/lock_pb.ts | 280 -- .../src/protobufs/osmosis/lockup/params_pb.ts | 45 - .../protobufs/osmosis/lockup/query_cosmes.ts | 253 - .../src/protobufs/osmosis/lockup/query_pb.ts | 1535 ------ .../src/protobufs/osmosis/lockup/tx_cosmes.ts | 79 - .../src/protobufs/osmosis/lockup/tx_pb.ts | 616 --- .../osmosis/mint/v1beta1/genesis_pb.ts | 67 - .../protobufs/osmosis/mint/v1beta1/mint_pb.ts | 272 -- .../osmosis/mint/v1beta1/query_cosmes.ts | 33 - .../osmosis/mint/v1beta1/query_pb.ts | 159 - .../poolincentives/v1beta1/genesis_pb.ts | 82 - .../osmosis/poolincentives/v1beta1/gov_pb.ts | 123 - .../poolincentives/v1beta1/incentives_pb.ts | 296 -- .../poolincentives/v1beta1/query_cosmes.ts | 81 - .../poolincentives/v1beta1/query_pb.ts | 522 --- .../poolincentives/v1beta1/shared_pb.ts | 104 - .../osmosis/poolmanager/v1beta1/genesis_pb.ts | 401 -- .../osmosis/poolmanager/v1beta1/gov_pb.ts | 61 - .../poolmanager/v1beta1/module_route_pb.ts | 103 - .../poolmanager/v1beta1/query_cosmes.ts | 369 -- .../osmosis/poolmanager/v1beta1/query_pb.ts | 1820 -------- .../poolmanager/v1beta1/swap_route_pb.ts | 180 - .../poolmanager/v1beta1/taker_fee_share_pb.ts | 182 - .../poolmanager/v1beta1/tracked_volume_pb.ts | 46 - .../osmosis/poolmanager/v1beta1/tx_cosmes.ts | 79 - .../osmosis/poolmanager/v1beta1/tx_pb.ts | 715 --- .../osmosis/poolmanager/v2/query_cosmes.ts | 25 - .../osmosis/poolmanager/v2/query_pb.ts | 102 - .../osmosis/protorev/v1beta1/genesis_pb.ts | 161 - .../osmosis/protorev/v1beta1/gov_pb.ts | 113 - .../osmosis/protorev/v1beta1/params_pb.ts | 57 - .../osmosis/protorev/v1beta1/protorev_pb.ts | 786 ---- .../osmosis/protorev/v1beta1/query_cosmes.ts | 212 - .../osmosis/protorev/v1beta1/query_pb.ts | 1256 ----- .../osmosis/protorev/v1beta1/tx_cosmes.ts | 87 - .../osmosis/protorev/v1beta1/tx_pb.ts | 559 --- .../smartaccount/v1beta1/genesis_pb.ts | 120 - .../osmosis/smartaccount/v1beta1/models_pb.ts | 72 - .../osmosis/smartaccount/v1beta1/params_pb.ts | 70 - .../smartaccount/v1beta1/query_cosmes.ts | 41 - .../osmosis/smartaccount/v1beta1/query_pb.ts | 246 - .../osmosis/smartaccount/v1beta1/tx_cosmes.ts | 42 - .../osmosis/smartaccount/v1beta1/tx_pb.ts | 301 -- .../osmosis/store/v1beta1/tree_pb.ts | 125 - .../osmosis/superfluid/genesis_pb.ts | 82 - .../protobufs/osmosis/superfluid/params_pb.ts | 52 - .../osmosis/superfluid/query_cosmes.ts | 263 -- .../protobufs/osmosis/superfluid/query_pb.ts | 1510 ------ .../osmosis/superfluid/superfluid_pb.ts | 414 -- .../protobufs/osmosis/superfluid/tx_cosmes.ts | 143 - .../src/protobufs/osmosis/superfluid/tx_pb.ts | 959 ---- .../osmosis/superfluid/v1beta1/gov_pb.ts | 171 - .../v1beta1/authorityMetadata_pb.ts | 51 - .../tokenfactory/v1beta1/genesis_pb.ts | 104 - .../osmosis/tokenfactory/v1beta1/params_pb.ts | 63 - .../tokenfactory/v1beta1/query_cosmes.ts | 77 - .../osmosis/tokenfactory/v1beta1/query_pb.ts | 398 -- .../osmosis/tokenfactory/v1beta1/tx_cosmes.ts | 79 - .../osmosis/tokenfactory/v1beta1/tx_pb.ts | 613 --- .../osmosis/twap/v1beta1/genesis_pb.ts | 103 - .../osmosis/twap/v1beta1/query_cosmes.ts | 59 - .../osmosis/twap/v1beta1/query_pb.ts | 457 -- .../osmosis/twap/v1beta1/twap_record_pb.ts | 203 - .../osmosis/txfees/v1beta1/feetoken_pb.ts | 56 - .../osmosis/txfees/v1beta1/genesis_pb.ts | 116 - .../osmosis/txfees/v1beta1/gov_pb.ts | 64 - .../osmosis/txfees/v1beta1/params_pb.ts | 47 - .../osmosis/txfees/v1beta1/query_cosmes.ts | 71 - .../osmosis/txfees/v1beta1/query_pb.ts | 373 -- .../osmosis/txfees/v1beta1/tx_cosmes.ts | 18 - .../protobufs/osmosis/txfees/v1beta1/tx_pb.ts | 85 - .../valsetpref/v1beta1/query_cosmes.ts | 23 - .../osmosis/valsetpref/v1beta1/query_pb.ts | 89 - .../osmosis/valsetpref/v1beta1/state_pb.ts | 106 - .../osmosis/valsetpref/v1beta1/tx_cosmes.ts | 102 - .../osmosis/valsetpref/v1beta1/tx_pb.ts | 573 --- .../src/protobufs/svc/module/v1/module_pb.ts | 42 - .../src/protobufs/svc/v1/genesis_pb.ts | 249 - .../src/protobufs/svc/v1/query_cosmes.ts | 20 - .../src/protobufs/svc/v1/query_pb.ts | 83 - .../src/protobufs/svc/v1/state_pb.ts | 146 - .../src/protobufs/svc/v1/tx_cosmes.ts | 36 - libs/es-client/src/protobufs/svc/v1/tx_pb.ts | 193 - .../protobufs/tendermint/abci/types_cosmes.ts | 169 - .../src/protobufs/tendermint/abci/types_pb.ts | 2932 ------------ .../protobufs/tendermint/crypto/keys_pb.ts | 60 - .../protobufs/tendermint/crypto/proof_pb.ts | 251 - .../tendermint/libs/bits/types_pb.ts | 51 - .../src/protobufs/tendermint/p2p/types_pb.ts | 228 - .../protobufs/tendermint/types/block_pb.ts | 65 - .../protobufs/tendermint/types/evidence_pb.ts | 223 - .../protobufs/tendermint/types/params_pb.ts | 364 -- .../protobufs/tendermint/types/types_pb.ts | 991 ---- .../tendermint/types/validator_pb.ts | 198 - .../protobufs/tendermint/version/types_pb.ts | 102 - .../apis/getChainRegistryAssetList.ts | 10 - .../apis/getChainRegistryChainInfo.ts | 10 - libs/es-client/src/registry/index.ts | 6 - .../registry/types/ChainRegistryAssetList.ts | 263 -- .../registry/types/ChainRegistryChainInfo.ts | 297 -- libs/es-client/src/typeutils/prettify.ts | 18 - .../src/wallet/constants/WalletName.ts | 14 - .../src/wallet/constants/WalletType.ts | 8 - libs/es-client/src/wallet/index.ts | 17 - libs/es-client/src/wallet/sonr-autoloader.ts | 0 libs/es-client/src/wallet/utils/os.ts | 18 - .../src/wallet/utils/sequence.test.ts | 25 - libs/es-client/src/wallet/utils/sequence.ts | 14 - libs/es-client/src/wallet/utils/verify.ts | 64 - libs/es-client/src/wallet/utils/window.ts | 17 - .../src/wallet/walletconnect/QRCodeModal.ts | 127 - .../wallet/walletconnect/WalletConnectV1.ts | 88 - .../wallet/walletconnect/WalletConnectV2.ts | 303 -- .../src/wallet/walletconnect/qrcodegen.ts | 1057 ----- .../src/wallet/wallets/ConnectedWallet.ts | 230 - .../src/wallet/wallets/WalletController.ts | 187 - .../src/wallet/wallets/WalletError.ts | 41 - .../wallet/wallets/mnemonic/MnemonicWallet.ts | 172 - libs/es-client/src/wallet/wallets/window.d.ts | 21 - libs/es-client/tsconfig.json | 37 - 596 files changed, 144377 deletions(-) delete mode 100644 libs/es-client/.eslintrc.cjs delete mode 100644 libs/es-client/.gitignore delete mode 100644 libs/es-client/.prettierrc.cjs delete mode 100644 libs/es-client/CHANGELOG.md delete mode 100644 libs/es-client/CONTRIBUTING.md delete mode 100644 libs/es-client/LICENSE delete mode 100644 libs/es-client/README.md delete mode 100644 libs/es-client/buf.gen.yaml delete mode 100644 libs/es-client/buf.lock delete mode 100644 libs/es-client/devbox.json delete mode 100644 libs/es-client/devbox.lock delete mode 100644 libs/es-client/package.json delete mode 100644 libs/es-client/pnpm-lock.yaml delete mode 100644 libs/es-client/scripts/gen-protobufs.mjs delete mode 100644 libs/es-client/scripts/gen-registry.mjs delete mode 100755 libs/es-client/scripts/protoc-gen-cosmes.mjs delete mode 100644 libs/es-client/src/client/apis/broadcastTx.ts delete mode 100644 libs/es-client/src/client/apis/getAccount.ts delete mode 100644 libs/es-client/src/client/apis/getCw20Balance.ts delete mode 100644 libs/es-client/src/client/apis/getNativeBalances.ts delete mode 100644 libs/es-client/src/client/apis/getTx.ts delete mode 100644 libs/es-client/src/client/apis/pollTx.ts delete mode 100644 libs/es-client/src/client/apis/queryContract.ts delete mode 100644 libs/es-client/src/client/apis/simulateAstroportSinglePoolSwap.ts delete mode 100644 libs/es-client/src/client/apis/simulateKujiraSinglePoolSwap.ts delete mode 100644 libs/es-client/src/client/apis/simulateTx.ts delete mode 100644 libs/es-client/src/client/clients/FetchClient.ts delete mode 100644 libs/es-client/src/client/clients/RpcClient.ts delete mode 100644 libs/es-client/src/client/index.ts delete mode 100644 libs/es-client/src/client/models/Adapter.ts delete mode 100644 libs/es-client/src/client/models/MsgBeginRedelegate.ts delete mode 100644 libs/es-client/src/client/models/MsgDelegate.ts delete mode 100644 libs/es-client/src/client/models/MsgExecuteContract.ts delete mode 100644 libs/es-client/src/client/models/MsgIbcTransfer.ts delete mode 100644 libs/es-client/src/client/models/MsgInstantiateContract.ts delete mode 100644 libs/es-client/src/client/models/MsgMigrateContract.ts delete mode 100644 libs/es-client/src/client/models/MsgSend.ts delete mode 100644 libs/es-client/src/client/models/MsgStoreCode.ts delete mode 100644 libs/es-client/src/client/models/MsgUndelegate.ts delete mode 100644 libs/es-client/src/client/models/MsgWithdrawDelegatorRewards.ts delete mode 100644 libs/es-client/src/client/models/MsgWithdrawValidatorCommission.ts delete mode 100644 libs/es-client/src/client/models/Secp256k1PubKey.ts delete mode 100644 libs/es-client/src/client/models/Tx.ts delete mode 100644 libs/es-client/src/client/utils/calculateFee.ts delete mode 100644 libs/es-client/src/client/utils/toAny.ts delete mode 100644 libs/es-client/src/client/utils/toBaseAccount.ts delete mode 100644 libs/es-client/src/client/utils/wait.ts delete mode 100644 libs/es-client/src/codec/address.test.ts delete mode 100644 libs/es-client/src/codec/address.ts delete mode 100644 libs/es-client/src/codec/ethhex.ts delete mode 100644 libs/es-client/src/codec/index.ts delete mode 100644 libs/es-client/src/codec/key.test.ts delete mode 100644 libs/es-client/src/codec/key.ts delete mode 100644 libs/es-client/src/codec/serialise.test.ts delete mode 100644 libs/es-client/src/codec/serialise.ts delete mode 100644 libs/es-client/src/codec/sign.test.ts delete mode 100644 libs/es-client/src/codec/sign.ts delete mode 100644 libs/es-client/src/codec/verify.test.ts delete mode 100644 libs/es-client/src/codec/verify.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btccheckpoint/v1/btccheckpoint_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btccheckpoint/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btccheckpoint/v1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/btclightclient_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/event_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/btcstaking_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/events_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/incentive_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/pop_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/bls_key_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/checkpoint_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/events_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/epoching_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/events_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/epoching/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/events_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/finality_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/finality/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/incentive/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/incentive/incentive_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/incentive/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/incentive/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/incentive/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/incentive/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/incentive/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/monitor/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/monitor/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/monitor/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/packet_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/babylon/zoneconcierge/v1/zoneconcierge_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/app/v1alpha1/config_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/app/v1alpha1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/auth/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/auth/v1beta1/auth_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/auth/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/v1beta1/authz_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/v1beta1/event_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/autocli/v1/options_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/autocli/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/autocli/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/v1beta1/authz_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/v1beta1/bank_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/query/v1beta1/pagination_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/base/v1beta1/coin_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/circuit/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/circuit/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/circuit/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/circuit/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/circuit/v1/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/consensus/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/consensus/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/consensus/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/consensus/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crisis/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crisis/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crypto/hd/v1/hd_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crypto/keyring/v1/record_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crypto/multisig/keys_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crypto/multisig/v1beta1/multisig_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crypto/secp256k1/keys_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/crypto/secp256r1/keys_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/distribution/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/distribution/v1beta1/distribution_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/distribution/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/evidence/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/evidence/v1beta1/evidence_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/evidence/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/feegrant/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/feegrant_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/genutil/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/genutil/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/v1/events_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/group/v1/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/ics23/v1/proofs_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/mint/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/mint/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/mint/v1beta1/mint_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/v1beta1/event_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/v1beta1/nft_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/orm/v1/orm_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/params/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/params/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/params/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/params/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/slashing/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/slashing/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/store/v1beta1/listening_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/tx/config/v1/config_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/upgrade/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/upgrade_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/vesting/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmos/vesting/v1beta1/vesting_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/authz_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/cosmwasm/wasm/v1/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/did/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/did/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/did/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/did/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/did/v1/state_pb.ts delete mode 100644 libs/es-client/src/protobufs/did/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/did/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/dwn/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/dwn/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/dwn/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/dwn/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/dwn/v1/state_pb.ts delete mode 100644 libs/es-client/src/protobufs/dwn/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/dwn/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/evm/v1/events_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/evm/v1/evm_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/evm/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/evm/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/evm/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/evm/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/evm/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/feemarket/v1/events_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/feemarket/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/types/v1/account_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/types/v1/indexer_pb.ts delete mode 100644 libs/es-client/src/protobufs/ethermint/types/v1/web3_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/ack_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/fee_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v1/denomtrace_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v2/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/applications/transfer/v2/token_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/channel/v1/channel_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/channel/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/channel/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/channel/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/channel/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/channel/v1/upgrade_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/client/v1/client_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/client/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/client/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/client/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/client/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/client/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/commitment/v2/commitment_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/connection/v1/connection_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/connection/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/connection/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/connection/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/connection/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/core/types/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/wasm_pb.ts delete mode 100644 libs/es-client/src/protobufs/index.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/accum/v1beta1/accum_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/incentive_record_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/pool_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/position_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_query_msg_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_sudo_msg_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_query_msg_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/transmuter_msgs_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/downtime_duration_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/epochs/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/balancerPool_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/shared_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v2/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/gamm/v2/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibchooks/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibchooks/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibchooks/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibchooks/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/gauge_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/group_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/incentives/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/lockup/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/lockup/lock_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/lockup/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/lockup/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/lockup/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/lockup/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/lockup/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/mint/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/mint/v1beta1/mint_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/incentives_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/shared_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/module_route_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/swap_route_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/taker_fee_share_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tracked_volume_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/store/v1beta1/tree_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/superfluid_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/superfluid/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/authorityMetadata_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/twap/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/twap/v1beta1/twap_record_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/feetoken_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/gov_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/state_pb.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/svc/module/v1/module_pb.ts delete mode 100644 libs/es-client/src/protobufs/svc/v1/genesis_pb.ts delete mode 100644 libs/es-client/src/protobufs/svc/v1/query_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/svc/v1/query_pb.ts delete mode 100644 libs/es-client/src/protobufs/svc/v1/state_pb.ts delete mode 100644 libs/es-client/src/protobufs/svc/v1/tx_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/svc/v1/tx_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/abci/types_cosmes.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/abci/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/crypto/keys_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/crypto/proof_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/libs/bits/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/p2p/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/types/block_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/types/evidence_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/types/params_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/types/types_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/types/validator_pb.ts delete mode 100644 libs/es-client/src/protobufs/tendermint/version/types_pb.ts delete mode 100644 libs/es-client/src/registry/apis/getChainRegistryAssetList.ts delete mode 100644 libs/es-client/src/registry/apis/getChainRegistryChainInfo.ts delete mode 100644 libs/es-client/src/registry/index.ts delete mode 100644 libs/es-client/src/registry/types/ChainRegistryAssetList.ts delete mode 100644 libs/es-client/src/registry/types/ChainRegistryChainInfo.ts delete mode 100644 libs/es-client/src/typeutils/prettify.ts delete mode 100644 libs/es-client/src/wallet/constants/WalletName.ts delete mode 100644 libs/es-client/src/wallet/constants/WalletType.ts delete mode 100644 libs/es-client/src/wallet/index.ts delete mode 100644 libs/es-client/src/wallet/sonr-autoloader.ts delete mode 100644 libs/es-client/src/wallet/utils/os.ts delete mode 100644 libs/es-client/src/wallet/utils/sequence.test.ts delete mode 100644 libs/es-client/src/wallet/utils/sequence.ts delete mode 100644 libs/es-client/src/wallet/utils/verify.ts delete mode 100644 libs/es-client/src/wallet/utils/window.ts delete mode 100644 libs/es-client/src/wallet/walletconnect/QRCodeModal.ts delete mode 100644 libs/es-client/src/wallet/walletconnect/WalletConnectV1.ts delete mode 100644 libs/es-client/src/wallet/walletconnect/WalletConnectV2.ts delete mode 100644 libs/es-client/src/wallet/walletconnect/qrcodegen.ts delete mode 100644 libs/es-client/src/wallet/wallets/ConnectedWallet.ts delete mode 100644 libs/es-client/src/wallet/wallets/WalletController.ts delete mode 100644 libs/es-client/src/wallet/wallets/WalletError.ts delete mode 100644 libs/es-client/src/wallet/wallets/mnemonic/MnemonicWallet.ts delete mode 100644 libs/es-client/src/wallet/wallets/window.d.ts delete mode 100644 libs/es-client/tsconfig.json diff --git a/libs/es-client/.eslintrc.cjs b/libs/es-client/.eslintrc.cjs deleted file mode 100644 index 657cded..0000000 --- a/libs/es-client/.eslintrc.cjs +++ /dev/null @@ -1,33 +0,0 @@ -/** @type {import("eslint").Linter.Config} */ -module.exports = { - parser: "@typescript-eslint/parser", - plugins: ["@typescript-eslint"], - extends: [ - "plugin:@typescript-eslint/recommended", - /** - * Should be last in this array to override other configs - * @see https://github.com/prettier/eslint-config-prettier#installation - */ - "prettier", - ], - rules: { - // Remove errors for unused args/vars starting with underscore - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": [ - "warn", - { - argsIgnorePattern: "^_", - varsIgnorePattern: "^_", - caughtErrorsIgnorePattern: "^_", - }, - ], - // Remove errors for intentional empty functions - "no-empty-function": "off", - "@typescript-eslint/no-empty-function": [ - "error", - { - allow: ["private-constructors", "protected-constructors"], - }, - ], - }, -}; diff --git a/libs/es-client/.gitignore b/libs/es-client/.gitignore deleted file mode 100644 index ca460aa..0000000 --- a/libs/es-client/.gitignore +++ /dev/null @@ -1,41 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -node_modules -.pnp -.pnp.js - -# testing -coverage - -# build -dist/ - -# production -build - -# misc -.DS_Store -*.pem -.vscode -.tmp - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# local env files -.env -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo - -# turbo -.turbo -.aider* diff --git a/libs/es-client/.prettierrc.cjs b/libs/es-client/.prettierrc.cjs deleted file mode 100644 index 9ac0bfe..0000000 --- a/libs/es-client/.prettierrc.cjs +++ /dev/null @@ -1,10 +0,0 @@ -/** @type {import("prettier").Config} */ -module.exports = { - tabWidth: 2, - printWidth: 80, - singleQuote: false, - jsxSingleQuote: false, - semi: true, - trailingComma: "es5", - arrowParens: "always", -}; diff --git a/libs/es-client/CHANGELOG.md b/libs/es-client/CHANGELOG.md deleted file mode 100644 index 877b491..0000000 --- a/libs/es-client/CHANGELOG.md +++ /dev/null @@ -1,337 +0,0 @@ -# Changelog - -## `v0.0.71` - -### Features - -- Add optional `label` field to `ConnectedWallet` instances, which contains the user-defined label of the wallet - -### Fixes - -- Handle more wallet errors in the `wrap` function - -## `v0.0.70` - -### Features - -- Add legacy amino type to `MsgSend` model -- Add `MsgMigrateContract`, `MsgStoreCode`, `MsgBeginRedelegate`, `MsgDelegate`, `MsgUndelegate`, `MsgWithdrawDelegatorRewards`, `MsgWithdrawValidatorCommission` models -- Add ed25519 signature type - -### Fixes - -- Add Keplr default sign options to `WalletConnectV2` - -## `v0.0.69` - -### Chore - -- Pin `@walletconnect/sign-client` dep to v2.8.x to reduce bundle size - -## `v0.0.68` - -### Chore - -- Regenerate `pnpm-lock.yaml` to fix dep issues - -## `v0.0.67` - -### Fixes - -- Fix `RpcClient`'s `RequestMessage` type error when using a request with an existing `height` field - -## `v0.0.66` - -### Features - -- Add custom `WalletError` class to normalise wallet errors -- Add `MsgInstantiateContract` class - -### Fixes - -- Fixed verification of station mobile signatures - -## `v0.0.65` - -### Fixes - -- Fixed `verifyArbitrary` to verify arbitrary signatures done via Station's new Keplr interface - -## `v0.0.64` - -### Features - -- Added OWallet extension support (*does not support wallet connect yet*) - -## `v0.0.63` - -### Fixes - -- Ignore all errors in retrieving public keys for Station Extension - -## `v0.0.62` - -### Improvements - - - Txs are now broadcasted directly via the user-specified RPC instead of via the wallet (closes ) -- Update Station extension to use Keplr's API interface - -## `v0.0.60` - -### Features - -- Parse `EthermintAccount` in `toBaseAccount` util function - -## `v0.0.59` - -### Fixes - -- Fix Station mobile wallet to not throw errors if pub keys do not exist - -## `v0.0.58` - -### Fixes - -- Fix Station mobile wallet connect issue when connecting more than 1 chain - -## `v0.0.57` - -### Fixes - -- Allow Terra testnet to work correctly with Station extension - -## `v0.0.56` - -### Features - -- Added Dymension's GAMM protobufs - -### Miscellaneous - -- Pinned Cosmos SDK protobuf to `v0.47.9` - -## `v0.0.55` - -### Features - -- Added tx signing support for Dymension chain - -## `v0.0.54` - -### Fixes - -- Fixed `MnemonicWallet` to generate Injective signatures correctly - -## `v0.0.53` - -### Fixes - -- Fixed `MnemonicWallet` to resolve Injective address correctly - -## `v0.0.52` - -### Features - -- Added Ninji wallet support to execute txs via Ninji extension on Injective network (*does not support wallet connect yet*) - -## `v0.0.51` - -### Fixes - -- Fixed MetaMask on Injective to work correctly with `MsgExecuteContractCompat` when `funds` are empty - -## `v0.0.50` - -### Fixes - -- Fixed the `verifyArbitrary` function to work correctly for all chains, including Injective which uses a different key algorithm - -## `v0.0.49` - -### Features - -- Added the `verifyArbitrary` helper function (exported by `@onsonr/es/wallet`) to verify signatures signed using `ConnectedWallet.signArbitrary` - -### Fixes - -- Fixed the `recoverPubKeyFromEthSignature` helper function to calculate and use the correct recovery bit when generating the `secp256k1` model - -## `v0.0.48` - -### Features - -- Added Compass wallet support to execute txs via Compass extension on Sei network (*does not support wallet connect yet*) - -## `v0.0.47` - -### Features - -- Added MetaMask wallet support to execute txs via MetaMask extension on Injective network (*does not support wallet connect yet*) - -### Improvements - -- Added `extensionOptions` to `Tx.toSignedProto` - -## `v0.0.46` - -### Fixes - -- Fixed `ConnectedWallet.estimateFee` to properly extract account sequences from errors thrown by Injective RPCs - -## `v0.0.45` - -### Improvements - -- Included `isCW20` option for `simulateAstroportSinglePoolSwap` function to handle swapping from CW20 assets - -## `v0.0.44` - -### Fixes - -- Fixed Leap wallet android deep link to ensure redirect happens correctly -- Fixed `toKeplrChainInfo` to return `undefined` for coingecko ID if it is absent - -## `v0.0.43` - -### Improvements - -- Added `timeout_height` parameter when simulating or broadcasting txs -- Use sign mode direct (instead of legacy amino) for non-ledger extension wallets and `MnemonicWallet` -- Added support for sign mode direct for `WalletConnectV2` (although no mobile wallets support it currently) -- Reduced bundle size by combining Keplr-like wallets into the same interface (`examples/solid-vite` reduced from 509kb to 487kb minified) - -## `v0.0.42` - -### Features - -- Added support for Injective chain (both mainnet and testnet) - -## `v0.0.40` - -### Fixes - -- Use `JSON.stringify` on errors thrown by Station Extension to avoid `[object Object]` errors - -### Miscellaneous - -- Added `Tx.toSignDoc` method to form an unsigned, proto encoded tx ready to be signed by a wallet - -## `v0.0.39` - -### Features - -- Added the optional `height` params to the `FetchClient` to execute queries at a custom block height -- Added batching of queries to `FetchClient` (see `examples/batch-query`) - -## `v0.0.38` [breaking change] - -### Features - -- Added `MnemonicWallet` to allow programmatic signing and broadcasting of txs without relying on a 3rd party wallet/signer (see examples directory) -- Simplified wallet APIs **[breaking change]** - - `getAccount()`: renamed and reworked to `getAuthInfo()`, but consumers are no longer required to call this method to broadcast transactions - - `estimateFee()`: second parameter now accepts the `feeMultiplier` directly (still optional) instead of the auth info - - `broadcastTx()`: second parameter now accepts the `fee` from the result of `estimateFee()` (no longer optional) instead of the auth info - - `broadcastTxSync()`: new function that executes `estimateFee`, `broadcastTx`, and `pollTx` sequentially -- Handle account sequence mismatch errors directly in `ConnectedWallet.estimateFee()` by retrying once with the correct sequence - -### Miscellaneous - -- Removed the various `fromXxxToYyy` encoding/decoding functions within `@onsonr/es/codec` in favour of `@scure/base` **[breaking change]** - - The `@scure/base` pkg is re-exported in `@onsonr/es/codec` - - Consumers should import the correct encoder or decoder directly from `@onsonr/es/codec`: eg. change `fromHexToUint8Array(...)` to `base16.decode(...)` -- Re-exported `@keplr-wallet/types` from `@onsonr/es/registry` - -## `v0.0.35` - -### Features - -- Added the `@onsonr/es/registry` package with the following additions: - - APIs to dynamically query for data in Chain Registry - - Util function to transform Chain Registry data to Keplr's chain info - -### Miscellaneous - -- The `toBaseAccount` utility can now handle all vesting account types - -## `v0.0.34` - -### Fixes - -- Prevent redirecting users to the mobile app when querying for the user's account via WalletConnect (on first connect) - -## `v0.0.33` - -### Fixes - -- Allow memo and fee fields to be set by user for WalletConnect wallets -- Fixed Cosmostation WalletConnect to use updated API changes - -## `v0.0.32` - -### Fixes - -- Added missing `memo` field for `MsgIbcTransfer` - -## `v0.0.31` - -### Miscellaneous - -- Added missing barrel export for `MsgIbcTransfer` model - -## `v0.0.30` - -### Features - -- Added ICS 23 protobufs from [`cosmos/ics23`](https://github.com/cosmos/ics23) to fix `ibc-go` dependency issues - -## `v0.0.29` - -### Features - -- Added IBC protobufs from [`cosmos/ibc-go`](https://github.com/cosmos/ibc-go) -- Added `MsgIbcTransfer` model - -## `v0.0.28` - -### Features - -- Updated Station extension to use the new APIs injected into the `window` scope - -## `v0.0.27` - -### Miscellaneous - -- Changed `lodash` dependency to `lodash-es` - -## `v0.0.26` - -### Breaking Changes - -- The `onDisconnect` callback in the `WalletController` class now accepts a function that contains a list of disconnected wallets instead of a list of disconnected chain ID strings - -### Features - -- Added the `onAccountChange` event to the `WalletController` class to allow consumers to detect wallet account changes (works for all wallets except Station via WalletConnect v1) - -### Miscellaneous - -- Added `lodash` as peer dependency - -## `v0.0.25` - -### Improvements - -- Replaced all `@walletconnect-v1` dependencies with correct legacy libraries at -- Added bundle size benchmarks (see `./benchmarks` folder) -- Improved docs on installing, polyfills, and benchmarks - -### Miscellaneous - -- Changed GPL v3 license to MIT license - -## `v0.0.24` - -### Features - -- First public release diff --git a/libs/es-client/CONTRIBUTING.md b/libs/es-client/CONTRIBUTING.md deleted file mode 100644 index 4751189..0000000 --- a/libs/es-client/CONTRIBUTING.md +++ /dev/null @@ -1,149 +0,0 @@ - -# Contributing - -- [Directory Structure](#directory-structure) -- [Getting Started](#getting-started) - - [Installing](#installing) - - [Adding Dependencies](#adding-dependencies) - - [Developing](#developing) - - [Building](#building) - - [Publishing](#publishing) - - [Testing \& CI](#testing--ci) -- [Design Decisions](#design-decisions) - - [Minimise Bundle Size](#minimise-bundle-size) - - [Minimise Side Effects](#minimise-side-effects) - - [No Minifying](#no-minifying) - - [No Bundling](#no-bundling) - - [No Barrel Files](#no-barrel-files) - - [Full ESM Compatibility](#full-esm-compatibility) - -## Directory Structure - -This is a [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c), written in TypeScript and managed by [pnpm](https://pnpm.io). - -- [`/benchmarks`](./benchmarks) - contains bundle size comparisons between `@onsonr/es` and other packages like Cosmos Kit -- [`/examples`](./examples) - contains example applications that consume from the `@onsonr/es` package -- [`/scripts`](./scripts) - contains internal scripts for use in this monorepo -- [`/src`](./src) - contains the source code for the `@onsonr/es` package - -## Getting Started - -### Installing - -Firstly, install all dependencies by running: - -```sh -pnpm i -``` - -### Adding Dependencies - -Dependencies that are not `devDependencies` should be added as `peerDependencies`. See ["No Bundling"](#no-bundling) for more information. - -To add a new dev dependency, run: - -```sh -pnpm add -D [dependency_name] -``` - -To add a new peer dependency (note that it is also automatically added as a dev dependency), run: - -```sh -pnpm add --save-peer [dependency_name] -``` - -### Developing - -All examples in the `/examples` directory are independent packages that contain a symlink to the root `@onsonr/es` package. This allows us to develop the `@onsonr/es` package and test it in the examples at the same time. - -Firstly, to watch the `@onsonr/es` package and rebuild on changes, run the following in the root of the project: - -```sh -# Run `pnpm build` first if this is your first time running this command -pnpm dev -``` - -Then, in a separate terminal, start the example app: - -```sh -cd examples/solid-vite -pnpm install # If necessary -pnpm dev -``` - -### Building - -All generated files should be committed to the repository. The convention is to prefix the commands with `gen:`. If there is a need to regenerate the files, run: - -```sh -pnpm gen:protobufs -pnpm gen:registry -``` - -To build the package to the `dist` folder, run: - -```sh -pnpm build -``` - -### Publishing - -To bump the package version prior to publishing, run: - -```sh -# To bump the patch number (most publishes should use this) -pnpm version patch --no-git-tag-version - -# To bump the prerelease number (if and only if a RC version is required) -pnpm version prerelease --no-git-tag-version --preid=rc -``` - -To publish the package to NPM, run: - -```sh -pnpm publish -``` - -### Testing & CI - -To run all unit tests, run: - -```sh -pnpm test -``` - -To emulate the full test suite (linting, typechecking, unit tests) that is automatically run in CI, run: - -```sh -pnpm test:suite -``` - -## Design Decisions - -If you intend to contribute to this monorepo, please read this section carefully and adhere to the guidelines (which are listed most important first). - -### Minimise Bundle Size - -This library's primary target users are web apps, built using a suitable bundler, running on modern browsers. As such, we should ensure that tree shaking works as well as possible, and use native browser APIs instead of relying on external dependencies/polyfills. - -### Minimise Side Effects - -Modules must not contain [side effects](https://blog.saeloun.com/2022/11/24/tree-shaking-in-webpack-5/#what-are-sideeffects) where possible. This allows us to specify the `sideEffects: false` flag in `package.json`, which allows bundlers to tree shake more effectively. - -### No Minifying - -All TypeScript code is *only transpiled*, not minified. Minifying changes the code structure and may [cause tree shaking issues for bundlers](https://stackoverflow.com/questions/71275009/bundling-and-publishing-an-npm-library-is-it-common-to-resolve-all-dependencies). Assuming that most consumers worried about bundle size will already be using a bundler, it is better to leave the minifying to their bundler. - -### No Bundling - -Dependencies must not be bundled but should instead be installed as [`peerDependencies`](https://blog.bitsrc.io/understanding-peer-dependencies-in-javascript-dbdb4ab5a7be?gi=c8dc907bb6cf). This allows consumers to use a different version of the dependency if need be, and [shifts dependency resolution and bundling](https://stackoverflow.com/questions/71275009/bundling-and-publishing-an-npm-library-is-it-common-to-resolve-all-dependencies) to the consumer's package manager and bundler. For the latter, it allows consumers to avoid having multiple copies of the same dependency in their bundle. - -### No Barrel Files - -There should only be one [barrel file](https://basarat.gitbook.io/typescript/main-1/barrel) located in the immediate subdirectories in the `src` directory, which defines the public API of the library. No other barrel files should exist as it [creates more issue than it solves](https://steven-lemon182.medium.com/are-typescript-barrel-files-an-anti-pattern-72a713004250), like making it [harder for bundlers to tree shake](https://github.com/vercel/next.js/issues/12557). - -### Full ESM Compatibility - -Full ESM compatibility of the emitted JavaScript files is required so that consumers can still use this library *without having to use a bundler* (even if they are not our primary target users). Most importantly, all imports and exports must use a [fully qualified relative path](https://nodejs.org/api/esm.html#mandatory-file-extensions) (ie. starts with `.` and ends with `.js`). - -We achieve this by using `tsc-alias` on the emitted JavaScript files. It transforms the `path` alias configured in `tsconfig.json` to the relative path and adds the `.js` extensions to all imports and exports. See [`configs/tsconfig`](./configs/tsconfig) for the up to date configurations. diff --git a/libs/es-client/LICENSE b/libs/es-client/LICENSE deleted file mode 100644 index 8b40bf3..0000000 --- a/libs/es-client/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Coinhall - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/libs/es-client/README.md b/libs/es-client/README.md deleted file mode 100644 index 0fb78b5..0000000 --- a/libs/es-client/README.md +++ /dev/null @@ -1,183 +0,0 @@ -!-- omit in toc --> - -# `@onsonr/es` - -A tree-shakeable, framework agnostic, [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) alternative of [CosmJS](https://github.com/cosmos/cosmjs) and [Cosmos Kit](https://cosmoskit.com) (**generate bundles up to 10x smaller than Cosmos Kit**). - -- [Features](#features) -- [Installing](#installing) - - [Using with TypeScript](#using-with-typescript) - - [Using with Vite](#using-with-vite) - - [Using Station wallet](#using-station-wallet) -- [Examples](#examples) -- [Modules](#modules) - - [`@onsonr/es/client`](#@onsonr/esclient) - - [`@onsonr/es/codec`](#@onsonr/escodec) - - [`@onsonr/es/protobufs`](#@onsonr/esprotobufs) - - [`@onsonr/es/registry`](#@onsonr/esregistry) - - [`@onsonr/es/wallet`](#@onsonr/eswallet) -- [Benchmarks](#benchmarks) - - [Results](#results) -- [See More](#see-more) - -## Features - -> [!WARNING] -> **This is still a work in progress**. Before `v1` is reached, the API is not guaranteed to be semver compatible - patch releases may break everything. See the [changelog](./CHANGELOG.md) for notable changes. - -- **Fully tree-shakeable**: import and bundle only the modules you need -- **Framework agnostic**: integrate with any web framework (React, Vue, Svelte, Solid, etc.) -- **Lightweight and minimal**: 153 KB gzipped to connect a React app to Keplr via browser extension or WalletConnect, 10x smaller than Cosmos Kit V2 (see [benchmarks](#benchmarks)) -- **Uses modern web APIs**: no dependencies on Node.js and minimal dependencies on third-party libraries where possible -- **Supports modern bundlers**: works with Vite, SWC, Rollup, etc. -- **Fully typed**: written in TypeScript and ships with type definitions - -## Installing - -For Cosmos SDK v0.47 and below: - -```sh -npm install @onsonr/es - -pnpm add @onsonr/es - -yarn add @onsonr/es -``` - -For Cosmos SDK v0.50, install using the `sdk50` tag: - -```sh -npm install @onsonr/es@sdk50 - -pnpm add @onsonr/es@sdk50 - -yarn add @onsonr/es@sdk50 -``` - -> [!IMPORTANT] -> The bump from v0.47 to v0.50 introduces significant breaking changes and is not recommended to be used unless necessary. To reduce the impact on consumers, the `main` branch and the published package on npm with the `latest` tag will continue to target v0.47 until the majority of live chains have migrated to v0.50. -> -> The [`parallel/sdk50`](https://github.com/coinhall/@onsonr/es/tree/parallel/sdk50) branch targetting v0.50 will be developed and maintained in parallel with the `main` branch, where the same patch version number should have feature parity (eg. `@onsonr/es@0.0.69` should have the same features as `@onsonr/es@0.0.69-sdk50.0`). - -### Using with TypeScript - -This library only exports ES modules. To ensure imports from this library work correctly, the following configuration is required in `tsconfig.json`: - -```ts -{ - "compilerOptions": { - "moduleResolution": "bundler", // recommended if using modern bundlers - // or "node16" - // or "nodenext" - // but NOT "node" - } -} -``` - -### Using with Vite - -If you are using Vite, the following configuration is required in `vite.config.ts`: - -```ts -export default defineConfig({ - define: { - global: "window", - }, -}); -``` - -> This can be removed once support for WalletConnect v1 is no longer required. - -### Using Station wallet - -The Station wallet currently relies on WalletConnect v1. If you want to import and use `StationController`, a polyfill for `Buffer` is required: - -```ts -// First, install the buffer package -npm install buffer - -// Then, create a new file 'polyfill.ts' -import { Buffer } from "buffer"; -(window as any).Buffer = Buffer; - -// Finally, import the above file in your entry file -import "./polyfill"; -``` - -See [`examples/solid-vite`](./examples/solid-vite) for a working example. - -> This can be removed once support for WalletConnect v1 is no longer required. - -## Examples - -Docs do not exist yet - see the [`examples`](./examples) folder for various working examples: - -1. [How do I connect to third party wallets via browser extension or WalletConnect? How do I create, sign, and broadcast transactions?](./examples/solid-vite) -2. [How do I programmatically sign and broadcast transactions without relying on a third party wallet?](./examples/mnemonic-wallet) -3. [How do I verify signatures signed using the `signArbitrary` function?](./examples/verify-signatures) -4. [How do I batch queries to the blockchain?](./examples/batch-query) - -## Modules - -This package is split into multiple subdirectories, with each subdirectory having their own set of functionalities. The root directory does not contain any exports, and all exports are exported from the subdirectories. Thus, imports must be done by referencing the subdirectories (ie. `import { ... } from "@onsonr/es/client"`). - -### `@onsonr/es/client` - -This directory contains models and helper functions to interact with Cosmos SDK via the [CometBFT RPC](https://docs.cosmos.network/v0.50/core/grpc_rest#cometbft-rpc). - -### `@onsonr/es/codec` - -This directory contains various encoding and decoding functions that relies solely on [Web APIs](https://developer.mozilla.org/en-US/docs/Web/API) and has no dependencies on Node.js. For modern browsers and Node v16+, this should work out of the box. - -### `@onsonr/es/protobufs` - -This directory contains the auto-generated code for various Cosmos SDK based protobufs. See `scripts/gen-protobufs.mjs` for the script that generates the code. - -### `@onsonr/es/registry` - -This directory contains various APIs, data, and types needed for wallet interactions (ie. Keplr). Some types are auto-generated, see `scripts/gen-registry.mjs` for the script that generates the types. - -### `@onsonr/es/wallet` - -This directory is a [Cosmos Kit](https://cosmoskit.com) alternative to interact with wallets across all Cosmos SDK based blockchains. See [`examples/solid-vite`](./examples/solid-vite) for a working example. - -**Wallets supported**: - -- [Station](https://docs.terra.money/learn/station/) -- [Keplr](https://www.keplr.app/) -- [Leap](https://www.leapwallet.io/) -- [Cosmostation](https://wallet.cosmostation.io/) -- [OWallet](https://owallet.dev/) -- [Compass](https://compasswallet.io/) (for Sei only) -- [MetaMask](https://metamask.io/) (for Injective only) -- [Ninji](https://ninji.xyz/) (for Injective only) - -**Features**: - -- Supports both browser extension (desktop) and WalletConnect (mobile) -- Unified interface for connecting, signing, broadcasting, and event handling -- Signing of arbitrary messages (for wallets that support it) -- Simultaneous connections to multiple WalletConnect wallets - -## Benchmarks - -See the [`benchmarks`](./benchmarks) folder, where the bundle size of SonrES is compared against Cosmos Kit. The following are adhered to: - -- Apps should only contain the minimal functionality of connecting to Osmosis via Keplr using both the browser extension and WalletConnect wallets -- Apps should be built using React 18 (as Cosmos Kit has a [hard dependency](https://docs.cosmoskit.com/get-started)) and Vite -- Use the total sum of all generated bundles as reported by Vite after running the `vite build` command, including the size of all other dependencies like React/HTML/CSS/etc. (note: this is crude and not 100% accurate, but is the simplest method) - -### Results - -> Last updated: 4th May 2024 - -| Package | Minified | Gzipped | -| ------------- | -------- | ------- | -| SonrES | 553 KB | 153 KB | -| Cosmos Kit v1 | 6010 KB | 1399 KB | -| Cosmos Kit v2 | 6780 KB | 1556 KB | - -## See More - -- [Changelog](./CHANGELOG.md) - for notable changes -- [Contributing](./CONTRIBUTING.md) - if you want to contribute to this project diff --git a/libs/es-client/buf.gen.yaml b/libs/es-client/buf.gen.yaml deleted file mode 100644 index 1b6366b..0000000 --- a/libs/es-client/buf.gen.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# see: https://docs.buf.build/configuration/v1/buf-gen-yaml -version: v1 -plugins: - - plugin: es - opt: target=ts - out: . - - plugin: cosmes - path: ./scripts/protoc-gen-cosmes.mjs - opt: target=ts - out: . diff --git a/libs/es-client/buf.lock b/libs/es-client/buf.lock deleted file mode 100644 index c91b581..0000000 --- a/libs/es-client/buf.lock +++ /dev/null @@ -1,2 +0,0 @@ -# Generated by buf. DO NOT EDIT. -version: v1 diff --git a/libs/es-client/devbox.json b/libs/es-client/devbox.json deleted file mode 100644 index 3643762..0000000 --- a/libs/es-client/devbox.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.1/.schema/devbox.schema.json", - "packages": [ - "pnpm@latest" - ], - "shell": { - "init_hook": [ - "pnpm install" - ], - "scripts": { - "build": [ - "pnpm run gen:protobufs", - "pnpm run build" - ], - "publish": [ - "pnpm publish" - ] - } - } -} diff --git a/libs/es-client/devbox.lock b/libs/es-client/devbox.lock deleted file mode 100644 index 59dddac..0000000 --- a/libs/es-client/devbox.lock +++ /dev/null @@ -1,53 +0,0 @@ -{ - "lockfile_version": "1", - "packages": { - "pnpm@latest": { - "last_modified": "2024-09-13T05:52:00Z", - "resolved": "github:NixOS/nixpkgs/673d99f1406cb09b8eb6feab4743ebdf70046557#pnpm", - "source": "devbox-search", - "version": "9.10.0", - "systems": { - "aarch64-darwin": { - "outputs": [ - { - "name": "out", - "path": "/nix/store/78jk4n2nn48f19cincpzk0fk1ylnhfw1-pnpm-9.10.0", - "default": true - } - ], - "store_path": "/nix/store/78jk4n2nn48f19cincpzk0fk1ylnhfw1-pnpm-9.10.0" - }, - "aarch64-linux": { - "outputs": [ - { - "name": "out", - "path": "/nix/store/sgkja64j6077yla4wm0f1zck60imxxv6-pnpm-9.10.0", - "default": true - } - ], - "store_path": "/nix/store/sgkja64j6077yla4wm0f1zck60imxxv6-pnpm-9.10.0" - }, - "x86_64-darwin": { - "outputs": [ - { - "name": "out", - "path": "/nix/store/zw1lnwjig1anr1gjkp5ps5g0pd03hxmn-pnpm-9.10.0", - "default": true - } - ], - "store_path": "/nix/store/zw1lnwjig1anr1gjkp5ps5g0pd03hxmn-pnpm-9.10.0" - }, - "x86_64-linux": { - "outputs": [ - { - "name": "out", - "path": "/nix/store/8zlqhgw5hbakbk2850wvky9x2vqbsqyw-pnpm-9.10.0", - "default": true - } - ], - "store_path": "/nix/store/8zlqhgw5hbakbk2850wvky9x2vqbsqyw-pnpm-9.10.0" - } - } - } - } -} diff --git a/libs/es-client/package.json b/libs/es-client/package.json deleted file mode 100644 index 03fa937..0000000 --- a/libs/es-client/package.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "name": "@onsonr/es-client", - "version": "0.0.2", - "private": false, - "packageManager": "pnpm@8.3.0", - "sideEffects": false, - "type": "module", - "publishConfig": { - "access": "public" - }, - "files": [ - "src", - "dist" - ], - "jsdelivr": "dist/client/index.js", - "exports": { - "./client": "./dist/client/index.js", - "./codec": "./dist/codec/index.js", - "./protobufs": "./dist/protobufs/index.js", - "./registry": "./dist/registry/index.js", - "./wallet": "./dist/wallet/index.js" - }, - "scripts": { - "clean": "rimraf dist", - "build": "pnpm clean && tsc && tsc-alias", - "dev": "concurrently \"tsc -w\" \"tsc-alias -w\"", - "gen:protobufs": "node scripts/gen-protobufs.mjs", - "gen:registry": "node scripts/gen-registry.mjs", - "lint": "eslint **/*.ts", - "typecheck": "tsc --noEmit", - "test": "vitest --run", - "test:suite": "pnpm lint && pnpm typecheck && pnpm test", - "prepublishOnly": "pnpm build" - }, - "peerDependencies": { - "@bufbuild/protobuf": "1.2.0", - "@noble/hashes": "^1.3.2", - "@noble/secp256k1": "^2.0.0", - "@scure/base": "^1.1.3", - "@scure/bip32": "^1.3.2", - "@scure/bip39": "^1.2.1", - "@walletconnect/legacy-client": "^2.0.0", - "@walletconnect/sign-client": "2.8.6", - "lodash-es": "^4.17.21" - }, - "devDependencies": { - "@bufbuild/buf": "1.18.0-1", - "@bufbuild/protobuf": "1.2.0", - "@bufbuild/protoc-gen-es": "1.2.0", - "@bufbuild/protoplugin": "1.2.0", - "@keplr-wallet/types": "^0.11.62", - "@metamask/providers": "^14.0.2", - "@noble/hashes": "^1.3.2", - "@noble/secp256k1": "^2.0.0", - "@scure/base": "^1.1.3", - "@scure/bip32": "^1.3.2", - "@scure/bip39": "^1.2.1", - "@types/degit": "^2.8.3", - "@types/lodash-es": "^4.17.7", - "@typescript-eslint/eslint-plugin": "^5.59.5", - "@typescript-eslint/parser": "^5.59.5", - "@walletconnect/legacy-client": "^2.0.0", - "@walletconnect/legacy-types": "^2.0.0", - "@walletconnect/sign-client": "2.8.6", - "@walletconnect/types": "2.8.6", - "autoprefixer": "^10.4.14", - "concurrently": "^8.0.1", - "degit": "^2.8.4", - "eslint": "^8.40.0", - "eslint-config-prettier": "^8.8.0", - "glob": "^10.2.3", - "json-schema-to-typescript": "^13.1.1", - "lodash-es": "^4.17.21", - "postcss": "^8.4.23", - "prettier": "^2.8.8", - "prettier-plugin-tailwindcss": "^0.2.8", - "rimraf": "^5.0.0", - "tsc-alias": "^1.8.6", - "tsx": "^3.12.7", - "typescript": "^5.0.4", - "vitest": "^0.31.0" - } -} diff --git a/libs/es-client/pnpm-lock.yaml b/libs/es-client/pnpm-lock.yaml deleted file mode 100644 index e532e6d..0000000 --- a/libs/es-client/pnpm-lock.yaml +++ /dev/null @@ -1,4119 +0,0 @@ -lockfileVersion: '6.0' - -devDependencies: - '@bufbuild/buf': - specifier: 1.18.0-1 - version: 1.18.0-1 - '@bufbuild/protobuf': - specifier: 1.2.0 - version: 1.2.0 - '@bufbuild/protoc-gen-es': - specifier: 1.2.0 - version: 1.2.0(@bufbuild/protobuf@1.2.0) - '@bufbuild/protoplugin': - specifier: 1.2.0 - version: 1.2.0 - '@keplr-wallet/types': - specifier: ^0.11.62 - version: 0.11.62 - '@metamask/providers': - specifier: ^14.0.2 - version: 14.0.2 - '@noble/hashes': - specifier: ^1.3.2 - version: 1.3.2 - '@noble/secp256k1': - specifier: ^2.0.0 - version: 2.0.0 - '@scure/base': - specifier: ^1.1.3 - version: 1.1.3 - '@scure/bip32': - specifier: ^1.3.2 - version: 1.3.2 - '@scure/bip39': - specifier: ^1.2.1 - version: 1.2.1 - '@types/degit': - specifier: ^2.8.3 - version: 2.8.3 - '@types/lodash-es': - specifier: ^4.17.7 - version: 4.17.7 - '@typescript-eslint/eslint-plugin': - specifier: ^5.59.5 - version: 5.59.5(@typescript-eslint/parser@5.59.5)(eslint@8.40.0)(typescript@5.0.4) - '@typescript-eslint/parser': - specifier: ^5.59.5 - version: 5.59.5(eslint@8.40.0)(typescript@5.0.4) - '@walletconnect/legacy-client': - specifier: ^2.0.0 - version: 2.0.0 - '@walletconnect/legacy-types': - specifier: ^2.0.0 - version: 2.0.0 - '@walletconnect/sign-client': - specifier: 2.8.6 - version: 2.8.6 - '@walletconnect/types': - specifier: 2.8.6 - version: 2.8.6 - autoprefixer: - specifier: ^10.4.14 - version: 10.4.14(postcss@8.4.23) - concurrently: - specifier: ^8.0.1 - version: 8.0.1 - degit: - specifier: ^2.8.4 - version: 2.8.4 - eslint: - specifier: ^8.40.0 - version: 8.40.0 - eslint-config-prettier: - specifier: ^8.8.0 - version: 8.8.0(eslint@8.40.0) - glob: - specifier: ^10.2.3 - version: 10.2.3 - json-schema-to-typescript: - specifier: ^13.1.1 - version: 13.1.1 - lodash-es: - specifier: ^4.17.21 - version: 4.17.21 - postcss: - specifier: ^8.4.23 - version: 8.4.23 - prettier: - specifier: ^2.8.8 - version: 2.8.8 - prettier-plugin-tailwindcss: - specifier: ^0.2.8 - version: 0.2.8(prettier@2.8.8) - rimraf: - specifier: ^5.0.0 - version: 5.0.0 - tsc-alias: - specifier: ^1.8.6 - version: 1.8.6 - tsx: - specifier: ^3.12.7 - version: 3.12.7 - typescript: - specifier: ^5.0.4 - version: 5.0.4 - vitest: - specifier: ^0.31.0 - version: 0.31.0 - -packages: - - /@babel/runtime@7.26.0: - resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} - engines: {node: '>=6.9.0'} - dependencies: - regenerator-runtime: 0.14.1 - dev: true - - /@bcherny/json-schema-ref-parser@10.0.5-fork: - resolution: {integrity: sha512-E/jKbPoca1tfUPj3iSbitDZTGnq6FUFjkH6L8U2oDwSuwK1WhnnVtCG7oFOTg/DDnyoXbQYUiUiGOibHqaGVnw==} - engines: {node: '>= 16'} - dependencies: - '@jsdevtools/ono': 7.1.3 - '@types/json-schema': 7.0.15 - call-me-maybe: 1.0.2 - js-yaml: 4.1.0 - dev: true - - /@bufbuild/buf-darwin-arm64@1.18.0-1: - resolution: {integrity: sha512-4iFChDoXAiuMZQoXpJoCSvCkcT7p1fmsY2N/+wTdODQbXAwqR8vQz19FPR2Jv5ukhd44LUi43nFsyQ2dWmeZeA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-darwin-x64@1.18.0-1: - resolution: {integrity: sha512-tuOnoCqFaUOj9dBuubEve5XGNkjL+zeCW7ETNgmArUlQobEkL2Fza5mi5Fqt90Ommfj1xpc4vaeNz1oSuU3dTw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-linux-aarch64@1.18.0-1: - resolution: {integrity: sha512-QdYp89hlLVPPZYlaeVhE0swk5Ygncij1avVmvLQw99+lvaFlDu9zRQ0Jo7n1VjpZWdDhUd/thYWxSqSMJYLajA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-linux-x64@1.18.0-1: - resolution: {integrity: sha512-9a6xv+OsYjhg5f1WHDtoXJVxG2j6awFi5cx9dkCPMODvFsll7skkwfkDngxKkibNU0aY6TxLoQXdf77eQwIWtQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-win32-arm64@1.18.0-1: - resolution: {integrity: sha512-UP6KevD0cdxa4IJcDy31KC9sIIgxCWBP/K9uW+gBDLg2cNQBtVqlN8o65PJhsl9HB+p0/Y4pDi4i/jU8dXGH8g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf-win32-x64@1.18.0-1: - resolution: {integrity: sha512-4OVbTwbQ1ZHGtITJw7hXYP2HinCWn3PN1ewCU+SCvynJTQ8vXQuVNlKZ2EmGl6aTUWdF3mSL/WPsRiG3fXhxfg==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@bufbuild/buf@1.18.0-1: - resolution: {integrity: sha512-Js6BEbjsfM+aFo2bUxfTs0B4htDbjWCKZ8+FHV6YYqiVsin6NGGQsXblJxwt4+16HLfSnrf41RRnwUaBwHqBzQ==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@bufbuild/buf-darwin-arm64': 1.18.0-1 - '@bufbuild/buf-darwin-x64': 1.18.0-1 - '@bufbuild/buf-linux-aarch64': 1.18.0-1 - '@bufbuild/buf-linux-x64': 1.18.0-1 - '@bufbuild/buf-win32-arm64': 1.18.0-1 - '@bufbuild/buf-win32-x64': 1.18.0-1 - dev: true - - /@bufbuild/protobuf@1.2.0: - resolution: {integrity: sha512-MBVuQMOBHxgGnZ9XCUIi8WOy5O/T4ma3TduCRhRvndv3UDbG9cHgd8h6nOYSGyBYPEvXf1z9nTwhp8mVIDbq2g==} - dev: true - - /@bufbuild/protoc-gen-es@1.2.0(@bufbuild/protobuf@1.2.0): - resolution: {integrity: sha512-rdg2+Co4H+cImZ81EEzHLEi9bmzmMnS/bsf7XLHKtWYskj1PZVIalfquQejcSV6eWbdmVGKa29JwI5zEkSmkCQ==} - engines: {node: '>=14'} - hasBin: true - peerDependencies: - '@bufbuild/protobuf': 1.2.0 - peerDependenciesMeta: - '@bufbuild/protobuf': - optional: true - dependencies: - '@bufbuild/protobuf': 1.2.0 - '@bufbuild/protoplugin': 1.2.0 - transitivePeerDependencies: - - supports-color - dev: true - - /@bufbuild/protoplugin@1.2.0: - resolution: {integrity: sha512-TX0mEk+LdIbpK2xr5RqeUswR8jGZs6uCX6Cq8azADj8hhiUr7Xty8agEOU/zR+J71D4dV5SnyEPYyw0nGJ6dGQ==} - dependencies: - '@bufbuild/protobuf': 1.2.0 - '@typescript/vfs': 1.6.0(typescript@4.5.2) - typescript: 4.5.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@esbuild-kit/cjs-loader@2.4.4: - resolution: {integrity: sha512-NfsJX4PdzhwSkfJukczyUiZGc7zNNWZcEAyqeISpDnn0PTfzMJR1aR8xAIPskBejIxBJbIgCCMzbaYa9SXepIg==} - deprecated: 'Merged into tsx: https://tsx.is' - dependencies: - '@esbuild-kit/core-utils': 3.3.2 - get-tsconfig: 4.8.1 - dev: true - - /@esbuild-kit/core-utils@3.3.2: - resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==} - deprecated: 'Merged into tsx: https://tsx.is' - dependencies: - esbuild: 0.18.20 - source-map-support: 0.5.21 - dev: true - - /@esbuild-kit/esm-loader@2.6.5: - resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==} - deprecated: 'Merged into tsx: https://tsx.is' - dependencies: - '@esbuild-kit/core-utils': 3.3.2 - get-tsconfig: 4.8.1 - dev: true - - /@esbuild/android-arm64@0.18.20: - resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-arm@0.18.20: - resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-x64@0.18.20: - resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-arm64@0.18.20: - resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-x64@0.18.20: - resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-arm64@0.18.20: - resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-x64@0.18.20: - resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm64@0.18.20: - resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm@0.18.20: - resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ia32@0.18.20: - resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-loong64@0.18.20: - resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-mips64el@0.18.20: - resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ppc64@0.18.20: - resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-riscv64@0.18.20: - resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-s390x@0.18.20: - resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-x64@0.18.20: - resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/netbsd-x64@0.18.20: - resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-x64@0.18.20: - resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/sunos-x64@0.18.20: - resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-arm64@0.18.20: - resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-ia32@0.18.20: - resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-x64@0.18.20: - resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@eslint-community/eslint-utils@4.4.1(eslint@8.40.0): - resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - dependencies: - eslint: 8.40.0 - eslint-visitor-keys: 3.4.3 - dev: true - - /@eslint-community/regexpp@4.12.1: - resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - dev: true - - /@eslint/eslintrc@2.1.4: - resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - ajv: 6.12.6 - debug: 4.4.0 - espree: 9.6.1 - globals: 13.24.0 - ignore: 5.3.2 - import-fresh: 3.3.0 - js-yaml: 4.1.0 - minimatch: 3.1.2 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@eslint/js@8.40.0: - resolution: {integrity: sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - - /@ethereumjs/common@3.2.0: - resolution: {integrity: sha512-pksvzI0VyLgmuEF2FA/JR/4/y6hcPq8OUail3/AvycBaW1d5VSauOZzqGvJ3RTmR4MU35lWE8KseKOsEhrFRBA==} - dependencies: - '@ethereumjs/util': 8.1.0 - crc-32: 1.2.2 - dev: true - - /@ethereumjs/rlp@4.0.1: - resolution: {integrity: sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==} - engines: {node: '>=14'} - hasBin: true - dev: true - - /@ethereumjs/tx@4.2.0: - resolution: {integrity: sha512-1nc6VO4jtFd172BbSnTnDQVr9IYBFl1y4xPzZdtkrkKIncBCkdbgfdRV+MiTkJYAtTxvV12GRZLqBFT1PNK6Yw==} - engines: {node: '>=14'} - dependencies: - '@ethereumjs/common': 3.2.0 - '@ethereumjs/rlp': 4.0.1 - '@ethereumjs/util': 8.1.0 - ethereum-cryptography: 2.2.1 - dev: true - - /@ethereumjs/util@8.1.0: - resolution: {integrity: sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==} - engines: {node: '>=14'} - dependencies: - '@ethereumjs/rlp': 4.0.1 - ethereum-cryptography: 2.2.1 - micro-ftch: 0.3.1 - dev: true - - /@humanwhocodes/config-array@0.11.14: - resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} - engines: {node: '>=10.10.0'} - deprecated: Use @eslint/config-array instead - dependencies: - '@humanwhocodes/object-schema': 2.0.3 - debug: 4.4.0 - minimatch: 3.1.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@humanwhocodes/module-importer@1.0.1: - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} - engines: {node: '>=12.22'} - dev: true - - /@humanwhocodes/object-schema@2.0.3: - resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} - deprecated: Use @eslint/object-schema instead - dev: true - - /@isaacs/cliui@8.0.2: - resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} - engines: {node: '>=12'} - dependencies: - string-width: 5.1.2 - string-width-cjs: /string-width@4.2.3 - strip-ansi: 7.1.0 - strip-ansi-cjs: /strip-ansi@6.0.1 - wrap-ansi: 8.1.0 - wrap-ansi-cjs: /wrap-ansi@7.0.0 - dev: true - - /@jridgewell/sourcemap-codec@1.5.0: - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - dev: true - - /@jsdevtools/ono@7.1.3: - resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} - dev: true - - /@keplr-wallet/types@0.11.62: - resolution: {integrity: sha512-u8K0jYqWFwZdPoHlgTx28F1QqSlYDIT2GoDJYfr0B3apq98WNBIAMbNwQhDtqvuBoM1yLlCmhEN+YEtygHj6XA==} - dependencies: - axios: 0.27.2 - long: 4.0.0 - transitivePeerDependencies: - - debug - dev: true - - /@metamask/json-rpc-engine@7.3.3: - resolution: {integrity: sha512-dwZPq8wx9yV3IX2caLi9q9xZBw2XeIoYqdyihDDDpuHVCEiqadJLwqM3zy+uwf6F1QYQ65A8aOMQg1Uw7LMLNg==} - engines: {node: '>=16.0.0'} - dependencies: - '@metamask/rpc-errors': 6.4.0 - '@metamask/safe-event-emitter': 3.1.2 - '@metamask/utils': 8.5.0 - transitivePeerDependencies: - - supports-color - dev: true - - /@metamask/object-multiplex@2.1.0: - resolution: {integrity: sha512-4vKIiv0DQxljcXwfpnbsXcfa5glMj5Zg9mqn4xpIWqkv6uJ2ma5/GtUfLFSxhlxnR8asRMv8dDmWya1Tc1sDFA==} - engines: {node: ^16.20 || ^18.16 || >=20} - dependencies: - once: 1.4.0 - readable-stream: 3.6.2 - dev: true - - /@metamask/providers@14.0.2: - resolution: {integrity: sha512-6KuCLQVzE/8IA1r8LkTo0FbG4fgm7ryjzleda0lMsz5XMxinNGuXAoh7Y08bX5OHVpDEjkHREPhuLw4dFK9wIQ==} - engines: {node: '>=16.0.0'} - dependencies: - '@metamask/json-rpc-engine': 7.3.3 - '@metamask/object-multiplex': 2.1.0 - '@metamask/rpc-errors': 6.4.0 - '@metamask/safe-event-emitter': 3.1.2 - '@metamask/utils': 8.5.0 - detect-browser: 5.3.0 - extension-port-stream: 3.0.0 - fast-deep-equal: 3.1.3 - is-stream: 2.0.1 - json-rpc-middleware-stream: 5.0.1 - readable-stream: 3.6.2 - webextension-polyfill: 0.10.0 - transitivePeerDependencies: - - supports-color - dev: true - - /@metamask/rpc-errors@6.4.0: - resolution: {integrity: sha512-1ugFO1UoirU2esS3juZanS/Fo8C8XYocCuBpfZI5N7ECtoG+zu0wF+uWZASik6CkO6w9n/Iebt4iI4pT0vptpg==} - engines: {node: '>=16.0.0'} - dependencies: - '@metamask/utils': 9.3.0 - fast-safe-stringify: 2.1.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@metamask/safe-event-emitter@3.1.2: - resolution: {integrity: sha512-5yb2gMI1BDm0JybZezeoX/3XhPDOtTbcFvpTXM9kxsoZjPZFh4XciqRbpD6N86HYZqWDhEaKUDuOyR0sQHEjMA==} - engines: {node: '>=12.0.0'} - dev: true - - /@metamask/superstruct@3.1.0: - resolution: {integrity: sha512-N08M56HdOgBfRKkrgCMZvQppkZGcArEop3kixNEtVbJKm6P9Cfg0YkI6X0s1g78sNrj2fWUwvJADdZuzJgFttA==} - engines: {node: '>=16.0.0'} - dev: true - - /@metamask/utils@8.5.0: - resolution: {integrity: sha512-I6bkduevXb72TIM9q2LRO63JSsF9EXduh3sBr9oybNX2hNNpr/j1tEjXrsG0Uabm4MJ1xkGAQEMwifvKZIkyxQ==} - engines: {node: '>=16.0.0'} - dependencies: - '@ethereumjs/tx': 4.2.0 - '@metamask/superstruct': 3.1.0 - '@noble/hashes': 1.3.2 - '@scure/base': 1.1.3 - '@types/debug': 4.1.12 - debug: 4.4.0 - pony-cause: 2.1.11 - semver: 7.6.3 - uuid: 9.0.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@metamask/utils@9.3.0: - resolution: {integrity: sha512-w8CVbdkDrVXFJbfBSlDfafDR6BAkpDmv1bC1UJVCoVny5tW2RKAdn9i68Xf7asYT4TnUhl/hN4zfUiKQq9II4g==} - engines: {node: '>=16.0.0'} - dependencies: - '@ethereumjs/tx': 4.2.0 - '@metamask/superstruct': 3.1.0 - '@noble/hashes': 1.3.2 - '@scure/base': 1.1.3 - '@types/debug': 4.1.12 - debug: 4.4.0 - pony-cause: 2.1.11 - semver: 7.6.3 - uuid: 9.0.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@noble/curves@1.2.0: - resolution: {integrity: sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==} - dependencies: - '@noble/hashes': 1.3.2 - dev: true - - /@noble/curves@1.4.2: - resolution: {integrity: sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==} - dependencies: - '@noble/hashes': 1.4.0 - dev: true - - /@noble/hashes@1.3.2: - resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} - engines: {node: '>= 16'} - dev: true - - /@noble/hashes@1.4.0: - resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} - engines: {node: '>= 16'} - dev: true - - /@noble/secp256k1@2.0.0: - resolution: {integrity: sha512-rUGBd95e2a45rlmFTqQJYEFA4/gdIARFfuTuTqLglz0PZ6AKyzyXsEZZq7UZn8hZsvaBgpCzKKBJizT2cJERXw==} - dev: true - - /@nodelib/fs.scandir@2.1.5: - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} - engines: {node: '>= 8'} - dependencies: - '@nodelib/fs.stat': 2.0.5 - run-parallel: 1.2.0 - dev: true - - /@nodelib/fs.stat@2.0.5: - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} - engines: {node: '>= 8'} - dev: true - - /@nodelib/fs.walk@1.2.8: - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} - engines: {node: '>= 8'} - dependencies: - '@nodelib/fs.scandir': 2.1.5 - fastq: 1.17.1 - dev: true - - /@parcel/watcher-android-arm64@2.5.0: - resolution: {integrity: sha512-qlX4eS28bUcQCdribHkg/herLe+0A9RyYC+mm2PXpncit8z5b3nSqGVzMNR3CmtAOgRutiZ02eIJJgP/b1iEFQ==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-darwin-arm64@2.5.0: - resolution: {integrity: sha512-hyZ3TANnzGfLpRA2s/4U1kbw2ZI4qGxaRJbBH2DCSREFfubMswheh8TeiC1sGZ3z2jUf3s37P0BBlrD3sjVTUw==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-darwin-x64@2.5.0: - resolution: {integrity: sha512-9rhlwd78saKf18fT869/poydQK8YqlU26TMiNg7AIu7eBp9adqbJZqmdFOsbZ5cnLp5XvRo9wcFmNHgHdWaGYA==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-freebsd-x64@2.5.0: - resolution: {integrity: sha512-syvfhZzyM8kErg3VF0xpV8dixJ+RzbUaaGaeb7uDuz0D3FK97/mZ5AJQ3XNnDsXX7KkFNtyQyFrXZzQIcN49Tw==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-linux-arm-glibc@2.5.0: - resolution: {integrity: sha512-0VQY1K35DQET3dVYWpOaPFecqOT9dbuCfzjxoQyif1Wc574t3kOSkKevULddcR9znz1TcklCE7Ht6NIxjvTqLA==} - engines: {node: '>= 10.0.0'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-linux-arm-musl@2.5.0: - resolution: {integrity: sha512-6uHywSIzz8+vi2lAzFeltnYbdHsDm3iIB57d4g5oaB9vKwjb6N6dRIgZMujw4nm5r6v9/BQH0noq6DzHrqr2pA==} - engines: {node: '>= 10.0.0'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-linux-arm64-glibc@2.5.0: - resolution: {integrity: sha512-BfNjXwZKxBy4WibDb/LDCriWSKLz+jJRL3cM/DllnHH5QUyoiUNEp3GmL80ZqxeumoADfCCP19+qiYiC8gUBjA==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-linux-arm64-musl@2.5.0: - resolution: {integrity: sha512-S1qARKOphxfiBEkwLUbHjCY9BWPdWnW9j7f7Hb2jPplu8UZ3nes7zpPOW9bkLbHRvWM0WDTsjdOTUgW0xLBN1Q==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-linux-x64-glibc@2.5.0: - resolution: {integrity: sha512-d9AOkusyXARkFD66S6zlGXyzx5RvY+chTP9Jp0ypSTC9d4lzyRs9ovGf/80VCxjKddcUvnsGwCHWuF2EoPgWjw==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-linux-x64-musl@2.5.0: - resolution: {integrity: sha512-iqOC+GoTDoFyk/VYSFHwjHhYrk8bljW6zOhPuhi5t9ulqiYq1togGJB5e3PwYVFFfeVgc6pbz3JdQyDoBszVaA==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-wasm@2.5.0: - resolution: {integrity: sha512-Z4ouuR8Pfggk1EYYbTaIoxc+Yv4o7cGQnH0Xy8+pQ+HbiW+ZnwhcD2LPf/prfq1nIWpAxjOkQ8uSMFWMtBLiVQ==} - engines: {node: '>= 10.0.0'} - dependencies: - is-glob: 4.0.3 - micromatch: 4.0.8 - dev: true - bundledDependencies: - - napi-wasm - - /@parcel/watcher-win32-arm64@2.5.0: - resolution: {integrity: sha512-twtft1d+JRNkM5YbmexfcH/N4znDtjgysFaV9zvZmmJezQsKpkfLYJ+JFV3uygugK6AtIM2oADPkB2AdhBrNig==} - engines: {node: '>= 10.0.0'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-win32-ia32@2.5.0: - resolution: {integrity: sha512-+rgpsNRKwo8A53elqbbHXdOMtY/tAtTzManTWShB5Kk54N8Q9mzNWV7tV+IbGueCbcj826MfWGU3mprWtuf1TA==} - engines: {node: '>= 10.0.0'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher-win32-x64@2.5.0: - resolution: {integrity: sha512-lPrxve92zEHdgeff3aiu4gDOIt4u7sJYha6wbdEZDCDUhtjTsOMiaJzG5lMY4GkWH8p0fMmO2Ppq5G5XXG+DQw==} - engines: {node: '>= 10.0.0'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@parcel/watcher@2.5.0: - resolution: {integrity: sha512-i0GV1yJnm2n3Yq1qw6QrUrd/LI9bE8WEBOTtOkpCXHHdyN3TAGgqAK/DAT05z4fq2x04cARXt2pDmjWjL92iTQ==} - engines: {node: '>= 10.0.0'} - requiresBuild: true - dependencies: - detect-libc: 1.0.3 - is-glob: 4.0.3 - micromatch: 4.0.8 - node-addon-api: 7.1.1 - optionalDependencies: - '@parcel/watcher-android-arm64': 2.5.0 - '@parcel/watcher-darwin-arm64': 2.5.0 - '@parcel/watcher-darwin-x64': 2.5.0 - '@parcel/watcher-freebsd-x64': 2.5.0 - '@parcel/watcher-linux-arm-glibc': 2.5.0 - '@parcel/watcher-linux-arm-musl': 2.5.0 - '@parcel/watcher-linux-arm64-glibc': 2.5.0 - '@parcel/watcher-linux-arm64-musl': 2.5.0 - '@parcel/watcher-linux-x64-glibc': 2.5.0 - '@parcel/watcher-linux-x64-musl': 2.5.0 - '@parcel/watcher-win32-arm64': 2.5.0 - '@parcel/watcher-win32-ia32': 2.5.0 - '@parcel/watcher-win32-x64': 2.5.0 - dev: true - - /@pkgjs/parseargs@0.11.0: - resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} - engines: {node: '>=14'} - requiresBuild: true - dev: true - optional: true - - /@scure/base@1.1.3: - resolution: {integrity: sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==} - dev: true - - /@scure/base@1.1.9: - resolution: {integrity: sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==} - dev: true - - /@scure/bip32@1.3.2: - resolution: {integrity: sha512-N1ZhksgwD3OBlwTv3R6KFEcPojl/W4ElJOeCZdi+vuI5QmTFwLq3OFf2zd2ROpKvxFdgZ6hUpb0dx9bVNEwYCA==} - dependencies: - '@noble/curves': 1.2.0 - '@noble/hashes': 1.3.2 - '@scure/base': 1.1.3 - dev: true - - /@scure/bip32@1.4.0: - resolution: {integrity: sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==} - dependencies: - '@noble/curves': 1.4.2 - '@noble/hashes': 1.4.0 - '@scure/base': 1.1.9 - dev: true - - /@scure/bip39@1.2.1: - resolution: {integrity: sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==} - dependencies: - '@noble/hashes': 1.3.2 - '@scure/base': 1.1.3 - dev: true - - /@scure/bip39@1.3.0: - resolution: {integrity: sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==} - dependencies: - '@noble/hashes': 1.4.0 - '@scure/base': 1.1.9 - dev: true - - /@stablelib/aead@1.0.1: - resolution: {integrity: sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==} - dev: true - - /@stablelib/binary@1.0.1: - resolution: {integrity: sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==} - dependencies: - '@stablelib/int': 1.0.1 - dev: true - - /@stablelib/bytes@1.0.1: - resolution: {integrity: sha512-Kre4Y4kdwuqL8BR2E9hV/R5sOrUj6NanZaZis0V6lX5yzqC3hBuVSDXUIBqQv/sCpmuWRiHLwqiT1pqqjuBXoQ==} - dev: true - - /@stablelib/chacha20poly1305@1.0.1: - resolution: {integrity: sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA==} - dependencies: - '@stablelib/aead': 1.0.1 - '@stablelib/binary': 1.0.1 - '@stablelib/chacha': 1.0.1 - '@stablelib/constant-time': 1.0.1 - '@stablelib/poly1305': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/chacha@1.0.1: - resolution: {integrity: sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg==} - dependencies: - '@stablelib/binary': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/constant-time@1.0.1: - resolution: {integrity: sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg==} - dev: true - - /@stablelib/ed25519@1.0.3: - resolution: {integrity: sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==} - dependencies: - '@stablelib/random': 1.0.2 - '@stablelib/sha512': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/hash@1.0.1: - resolution: {integrity: sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==} - dev: true - - /@stablelib/hkdf@1.0.1: - resolution: {integrity: sha512-SBEHYE16ZXlHuaW5RcGk533YlBj4grMeg5TooN80W3NpcHRtLZLLXvKyX0qcRFxf+BGDobJLnwkvgEwHIDBR6g==} - dependencies: - '@stablelib/hash': 1.0.1 - '@stablelib/hmac': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/hmac@1.0.1: - resolution: {integrity: sha512-V2APD9NSnhVpV/QMYgCVMIYKiYG6LSqw1S65wxVoirhU/51ACio6D4yDVSwMzuTJXWZoVHbDdINioBwKy5kVmA==} - dependencies: - '@stablelib/constant-time': 1.0.1 - '@stablelib/hash': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/int@1.0.1: - resolution: {integrity: sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==} - dev: true - - /@stablelib/keyagreement@1.0.1: - resolution: {integrity: sha512-VKL6xBwgJnI6l1jKrBAfn265cspaWBPAPEc62VBQrWHLqVgNRE09gQ/AnOEyKUWrrqfD+xSQ3u42gJjLDdMDQg==} - dependencies: - '@stablelib/bytes': 1.0.1 - dev: true - - /@stablelib/poly1305@1.0.1: - resolution: {integrity: sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA==} - dependencies: - '@stablelib/constant-time': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/random@1.0.2: - resolution: {integrity: sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w==} - dependencies: - '@stablelib/binary': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/sha256@1.0.1: - resolution: {integrity: sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ==} - dependencies: - '@stablelib/binary': 1.0.1 - '@stablelib/hash': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/sha512@1.0.1: - resolution: {integrity: sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==} - dependencies: - '@stablelib/binary': 1.0.1 - '@stablelib/hash': 1.0.1 - '@stablelib/wipe': 1.0.1 - dev: true - - /@stablelib/wipe@1.0.1: - resolution: {integrity: sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==} - dev: true - - /@stablelib/x25519@1.0.3: - resolution: {integrity: sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw==} - dependencies: - '@stablelib/keyagreement': 1.0.1 - '@stablelib/random': 1.0.2 - '@stablelib/wipe': 1.0.1 - dev: true - - /@types/chai-subset@1.3.5: - resolution: {integrity: sha512-c2mPnw+xHtXDoHmdtcCXGwyLMiauiAyxWMzhGpqHC4nqI/Y5G2XhTampslK2rb59kpcuHon03UH8W6iYUzw88A==} - dependencies: - '@types/chai': 4.3.20 - dev: true - - /@types/chai@4.3.20: - resolution: {integrity: sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==} - dev: true - - /@types/debug@4.1.12: - resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} - dependencies: - '@types/ms': 0.7.34 - dev: true - - /@types/degit@2.8.3: - resolution: {integrity: sha512-CL7y71j2zaDmtPLD5Xq5S1Gv2dFoHl0/GBZm6s39Mj/ls28L3NzAOqf7H4H0/2TNVMgMjMVf9CAFYSjmXhi3bw==} - dev: true - - /@types/glob@7.2.0: - resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} - dependencies: - '@types/minimatch': 5.1.2 - '@types/node': 22.10.1 - dev: true - - /@types/json-schema@7.0.15: - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - dev: true - - /@types/lodash-es@4.17.7: - resolution: {integrity: sha512-z0ptr6UI10VlU6l5MYhGwS4mC8DZyYer2mCoyysZtSF7p26zOX8UpbrV0YpNYLGS8K4PUFIyEr62IMFFjveSiQ==} - dependencies: - '@types/lodash': 4.17.13 - dev: true - - /@types/lodash@4.17.13: - resolution: {integrity: sha512-lfx+dftrEZcdBPczf9d0Qv0x+j/rfNCMuC6OcfXmO8gkfeNAY88PgKUbvG56whcN23gc27yenwF6oJZXGFpYxg==} - dev: true - - /@types/minimatch@5.1.2: - resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} - dev: true - - /@types/ms@0.7.34: - resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} - dev: true - - /@types/node@22.10.1: - resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==} - dependencies: - undici-types: 6.20.0 - dev: true - - /@types/prettier@2.7.3: - resolution: {integrity: sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==} - dev: true - - /@types/semver@7.5.8: - resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} - dev: true - - /@typescript-eslint/eslint-plugin@5.59.5(@typescript-eslint/parser@5.59.5)(eslint@8.40.0)(typescript@5.0.4): - resolution: {integrity: sha512-feA9xbVRWJZor+AnLNAr7A8JRWeZqHUf4T9tlP+TN04b05pFVhO5eN7/O93Y/1OUlLMHKbnJisgDURs/qvtqdg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - '@typescript-eslint/parser': ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 5.59.5(eslint@8.40.0)(typescript@5.0.4) - '@typescript-eslint/scope-manager': 5.59.5 - '@typescript-eslint/type-utils': 5.59.5(eslint@8.40.0)(typescript@5.0.4) - '@typescript-eslint/utils': 5.59.5(eslint@8.40.0)(typescript@5.0.4) - debug: 4.4.0 - eslint: 8.40.0 - grapheme-splitter: 1.0.4 - ignore: 5.3.2 - natural-compare-lite: 1.4.0 - semver: 7.6.3 - tsutils: 3.21.0(typescript@5.0.4) - typescript: 5.0.4 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/parser@5.59.5(eslint@8.40.0)(typescript@5.0.4): - resolution: {integrity: sha512-NJXQC4MRnF9N9yWqQE2/KLRSOLvrrlZb48NGVfBa+RuPMN6B7ZcK5jZOvhuygv4D64fRKnZI4L4p8+M+rfeQuw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/scope-manager': 5.59.5 - '@typescript-eslint/types': 5.59.5 - '@typescript-eslint/typescript-estree': 5.59.5(typescript@5.0.4) - debug: 4.4.0 - eslint: 8.40.0 - typescript: 5.0.4 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/scope-manager@5.59.5: - resolution: {integrity: sha512-jVecWwnkX6ZgutF+DovbBJirZcAxgxC0EOHYt/niMROf8p4PwxxG32Qdhj/iIQQIuOflLjNkxoXyArkcIP7C3A==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.59.5 - '@typescript-eslint/visitor-keys': 5.59.5 - dev: true - - /@typescript-eslint/type-utils@5.59.5(eslint@8.40.0)(typescript@5.0.4): - resolution: {integrity: sha512-4eyhS7oGym67/pSxA2mmNq7X164oqDYNnZCUayBwJZIRVvKpBCMBzFnFxjeoDeShjtO6RQBHBuwybuX3POnDqg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: '*' - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/typescript-estree': 5.59.5(typescript@5.0.4) - '@typescript-eslint/utils': 5.59.5(eslint@8.40.0)(typescript@5.0.4) - debug: 4.4.0 - eslint: 8.40.0 - tsutils: 3.21.0(typescript@5.0.4) - typescript: 5.0.4 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/types@5.59.5: - resolution: {integrity: sha512-xkfRPHbqSH4Ggx4eHRIO/eGL8XL4Ysb4woL8c87YuAo8Md7AUjyWKa9YMwTL519SyDPrfEgKdewjkxNCVeJW7w==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - - /@typescript-eslint/typescript-estree@5.59.5(typescript@5.0.4): - resolution: {integrity: sha512-+XXdLN2CZLZcD/mO7mQtJMvCkzRfmODbeSKuMY/yXbGkzvA9rJyDY5qDYNoiz2kP/dmyAxXquL2BvLQLJFPQIg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 5.59.5 - '@typescript-eslint/visitor-keys': 5.59.5 - debug: 4.4.0 - globby: 11.1.0 - is-glob: 4.0.3 - semver: 7.6.3 - tsutils: 3.21.0(typescript@5.0.4) - typescript: 5.0.4 - transitivePeerDependencies: - - supports-color - dev: true - - /@typescript-eslint/utils@5.59.5(eslint@8.40.0)(typescript@5.0.4): - resolution: {integrity: sha512-sCEHOiw+RbyTii9c3/qN74hYDPNORb8yWCoPLmB7BIflhplJ65u2PBpdRla12e3SSTJ2erRkPjz7ngLHhUegxA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@8.40.0) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.8 - '@typescript-eslint/scope-manager': 5.59.5 - '@typescript-eslint/types': 5.59.5 - '@typescript-eslint/typescript-estree': 5.59.5(typescript@5.0.4) - eslint: 8.40.0 - eslint-scope: 5.1.1 - semver: 7.6.3 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - - /@typescript-eslint/visitor-keys@5.59.5: - resolution: {integrity: sha512-qL+Oz+dbeBRTeyJTIy0eniD3uvqU7x+y1QceBismZ41hd4aBSRh8UAw4pZP0+XzLuPZmx4raNMq/I+59W2lXKA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - '@typescript-eslint/types': 5.59.5 - eslint-visitor-keys: 3.4.3 - dev: true - - /@typescript/vfs@1.6.0(typescript@4.5.2): - resolution: {integrity: sha512-hvJUjNVeBMp77qPINuUvYXj4FyWeeMMKZkxEATEU3hqBAQ7qdTBCUFT7Sp0Zu0faeEtFf+ldXxMEDr/bk73ISg==} - peerDependencies: - typescript: '*' - dependencies: - debug: 4.4.0 - typescript: 4.5.2 - transitivePeerDependencies: - - supports-color - dev: true - - /@vitest/expect@0.31.0: - resolution: {integrity: sha512-Jlm8ZTyp6vMY9iz9Ny9a0BHnCG4fqBa8neCF6Pk/c/6vkUk49Ls6UBlgGAU82QnzzoaUs9E/mUhq/eq9uMOv/g==} - dependencies: - '@vitest/spy': 0.31.0 - '@vitest/utils': 0.31.0 - chai: 4.5.0 - dev: true - - /@vitest/runner@0.31.0: - resolution: {integrity: sha512-H1OE+Ly7JFeBwnpHTrKyCNm/oZgr+16N4qIlzzqSG/YRQDATBYmJb/KUn3GrZaiQQyL7GwpNHVZxSQd6juLCgw==} - dependencies: - '@vitest/utils': 0.31.0 - concordance: 5.0.4 - p-limit: 4.0.0 - pathe: 1.1.2 - dev: true - - /@vitest/snapshot@0.31.0: - resolution: {integrity: sha512-5dTXhbHnyUMTMOujZPB0wjFjQ6q5x9c8TvAsSPUNKjp1tVU7i9pbqcKPqntyu2oXtmVxKbuHCqrOd+Ft60r4tg==} - dependencies: - magic-string: 0.30.14 - pathe: 1.1.2 - pretty-format: 27.5.1 - dev: true - - /@vitest/spy@0.31.0: - resolution: {integrity: sha512-IzCEQ85RN26GqjQNkYahgVLLkULOxOm5H/t364LG0JYb3Apg0PsYCHLBYGA006+SVRMWhQvHlBBCyuByAMFmkg==} - dependencies: - tinyspy: 2.2.1 - dev: true - - /@vitest/utils@0.31.0: - resolution: {integrity: sha512-kahaRyLX7GS1urekRXN2752X4gIgOGVX4Wo8eDUGUkTWlGpXzf5ZS6N9RUUS+Re3XEE8nVGqNyxkSxF5HXlGhQ==} - dependencies: - concordance: 5.0.4 - loupe: 2.3.7 - pretty-format: 27.5.1 - dev: true - - /@walletconnect/core@2.8.6: - resolution: {integrity: sha512-rnSqm1KJLcww/v6+UH8JeibQkJ3EKgyUDPfEK0stSEkrIUIcXaFlq3Et8S+vgV8bPhI0MVUhAhFL5OJZ3t2ryg==} - dependencies: - '@walletconnect/heartbeat': 1.2.1 - '@walletconnect/jsonrpc-provider': 1.0.13 - '@walletconnect/jsonrpc-types': 1.0.3 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/jsonrpc-ws-connection': 1.0.16 - '@walletconnect/keyvaluestorage': 1.1.1 - '@walletconnect/logger': 2.1.2 - '@walletconnect/relay-api': 1.0.11 - '@walletconnect/relay-auth': 1.0.4 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.8.6 - '@walletconnect/utils': 2.8.6 - events: 3.3.0 - lodash.isequal: 4.5.0 - uint8arrays: 3.1.1 - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@capacitor/preferences' - - '@netlify/blobs' - - '@planetscale/database' - - '@react-native-async-storage/async-storage' - - '@upstash/redis' - - '@vercel/kv' - - bufferutil - - ioredis - - utf-8-validate - dev: true - - /@walletconnect/crypto@1.0.3: - resolution: {integrity: sha512-+2jdORD7XQs76I2Odgr3wwrtyuLUXD/kprNVsjWRhhhdO9Mt6WqVzOPu0/t7OHSmgal8k7SoBQzUc5hu/8zL/g==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/environment': 1.0.1 - '@walletconnect/randombytes': 1.0.3 - aes-js: 3.1.2 - hash.js: 1.1.7 - tslib: 1.14.1 - dev: true - - /@walletconnect/encoding@1.0.2: - resolution: {integrity: sha512-CrwSBrjqJ7rpGQcTL3kU+Ief+Bcuu9PH6JLOb+wM6NITX1GTxR/MfNwnQfhLKK6xpRAyj2/nM04OOH6wS8Imag==} - dependencies: - is-typedarray: 1.0.0 - tslib: 1.14.1 - typedarray-to-buffer: 3.1.5 - dev: true - - /@walletconnect/environment@1.0.1: - resolution: {integrity: sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==} - dependencies: - tslib: 1.14.1 - dev: true - - /@walletconnect/events@1.0.1: - resolution: {integrity: sha512-NPTqaoi0oPBVNuLv7qPaJazmGHs5JGyO8eEAk5VGKmJzDR7AHzD4k6ilox5kxk1iwiOnFopBOOMLs86Oa76HpQ==} - dependencies: - keyvaluestorage-interface: 1.0.0 - tslib: 1.14.1 - dev: true - - /@walletconnect/heartbeat@1.2.1: - resolution: {integrity: sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q==} - dependencies: - '@walletconnect/events': 1.0.1 - '@walletconnect/time': 1.0.2 - tslib: 1.14.1 - dev: true - - /@walletconnect/jsonrpc-provider@1.0.13: - resolution: {integrity: sha512-K73EpThqHnSR26gOyNEL+acEex3P7VWZe6KE12ZwKzAt2H4e5gldZHbjsu2QR9cLeJ8AXuO7kEMOIcRv1QEc7g==} - dependencies: - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/safe-json': 1.0.2 - tslib: 1.14.1 - dev: true - - /@walletconnect/jsonrpc-types@1.0.3: - resolution: {integrity: sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==} - dependencies: - keyvaluestorage-interface: 1.0.0 - tslib: 1.14.1 - dev: true - - /@walletconnect/jsonrpc-types@1.0.4: - resolution: {integrity: sha512-P6679fG/M+wuWg9TY8mh6xFSdYnFyFjwFelxyISxMDrlbXokorEVXYOxiqEbrU3x1BmBoCAJJ+vtEaEoMlpCBQ==} - dependencies: - events: 3.3.0 - keyvaluestorage-interface: 1.0.0 - dev: true - - /@walletconnect/jsonrpc-utils@1.0.8: - resolution: {integrity: sha512-vdeb03bD8VzJUL6ZtzRYsFMq1eZQcM3EAzT0a3st59dyLfJ0wq+tKMpmGH7HlB7waD858UWgfIcudbPFsbzVdw==} - dependencies: - '@walletconnect/environment': 1.0.1 - '@walletconnect/jsonrpc-types': 1.0.4 - tslib: 1.14.1 - dev: true - - /@walletconnect/jsonrpc-ws-connection@1.0.16: - resolution: {integrity: sha512-G81JmsMqh5nJheE1mPst1W0WfVv0SG3N7JggwLLGnI7iuDZJq8cRJvQwLGKHn5H1WTW7DEPCo00zz5w62AbL3Q==} - dependencies: - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/safe-json': 1.0.2 - events: 3.3.0 - ws: 7.5.10 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - dev: true - - /@walletconnect/keyvaluestorage@1.1.1: - resolution: {integrity: sha512-V7ZQq2+mSxAq7MrRqDxanTzu2RcElfK1PfNYiaVnJgJ7Q7G7hTVwF8voIBx92qsRyGHZihrwNPHuZd1aKkd0rA==} - peerDependencies: - '@react-native-async-storage/async-storage': 1.x - peerDependenciesMeta: - '@react-native-async-storage/async-storage': - optional: true - dependencies: - '@walletconnect/safe-json': 1.0.2 - idb-keyval: 6.2.1 - unstorage: 1.13.1(idb-keyval@6.2.1) - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@capacitor/preferences' - - '@netlify/blobs' - - '@planetscale/database' - - '@upstash/redis' - - '@vercel/kv' - - ioredis - dev: true - - /@walletconnect/legacy-client@2.0.0: - resolution: {integrity: sha512-v5L7rYk9loVnfvUf0mF+76bUPFaU5/Vh7mzL6/950CD/yoGdzYZ3Kj+L7mkC6HPMEGeQsBP1+sqBuiVGZ/aODA==} - dependencies: - '@walletconnect/crypto': 1.0.3 - '@walletconnect/encoding': 1.0.2 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/legacy-utils': 2.0.0 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 6.14.1 - dev: true - - /@walletconnect/legacy-types@2.0.0: - resolution: {integrity: sha512-sOVrA7HUdbI1OwKyPOQU0/DdvTSVFlsXWpAk2K2WvP2erTkBWPMTJq6cv2BmKdoJ3p6gLApT7sd+jHi3OF71uw==} - dependencies: - '@walletconnect/jsonrpc-types': 1.0.4 - dev: true - - /@walletconnect/legacy-utils@2.0.0: - resolution: {integrity: sha512-CPWxSVVXw0kgNCxvU126g4GiV3mzXmC8IPJ15twE46aJ1FX+RHEIfAzFMFz2F2+fEhBxL63A7dwNQKDXorRPcQ==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/legacy-types': 2.0.0 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 6.14.1 - dev: true - - /@walletconnect/logger@2.1.2: - resolution: {integrity: sha512-aAb28I3S6pYXZHQm5ESB+V6rDqIYfsnHaQyzFbwUUBFY4H0OXx/YtTl8lvhUNhMMfb9UxbwEBS253TlXUYJWSw==} - dependencies: - '@walletconnect/safe-json': 1.0.2 - pino: 7.11.0 - dev: true - - /@walletconnect/randombytes@1.0.3: - resolution: {integrity: sha512-35lpzxcHFbTN3ABefC9W+uBpNZl1GC4Wpx0ed30gibfO/y9oLdy1NznbV96HARQKSBV9J9M/rrtIvf6a23jfYw==} - dependencies: - '@walletconnect/encoding': 1.0.2 - '@walletconnect/environment': 1.0.1 - randombytes: 2.1.0 - tslib: 1.14.1 - dev: true - - /@walletconnect/relay-api@1.0.11: - resolution: {integrity: sha512-tLPErkze/HmC9aCmdZOhtVmYZq1wKfWTJtygQHoWtgg722Jd4homo54Cs4ak2RUFUZIGO2RsOpIcWipaua5D5Q==} - dependencies: - '@walletconnect/jsonrpc-types': 1.0.3 - dev: true - - /@walletconnect/relay-auth@1.0.4: - resolution: {integrity: sha512-kKJcS6+WxYq5kshpPaxGHdwf5y98ZwbfuS4EE/NkQzqrDFm5Cj+dP8LofzWvjrrLkZq7Afy7WrQMXdLy8Sx7HQ==} - dependencies: - '@stablelib/ed25519': 1.0.3 - '@stablelib/random': 1.0.2 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/time': 1.0.2 - tslib: 1.14.1 - uint8arrays: 3.1.1 - dev: true - - /@walletconnect/safe-json@1.0.2: - resolution: {integrity: sha512-Ogb7I27kZ3LPC3ibn8ldyUr5544t3/STow9+lzz7Sfo808YD7SBWk7SAsdBFlYgP2zDRy2hS3sKRcuSRM0OTmA==} - dependencies: - tslib: 1.14.1 - dev: true - - /@walletconnect/sign-client@2.8.6: - resolution: {integrity: sha512-rOFTKTHP7oJfXgYHX7+SdB8VbcsEE3ZFG/bMdmZboWaBim1mrY3vUyDdKrNr0VgI3AwBiEQezQDfKxBX0pMSQQ==} - deprecated: Reliability and performance greatly improved - please see https://github.com/WalletConnect/walletconnect-monorepo/releases - dependencies: - '@walletconnect/core': 2.8.6 - '@walletconnect/events': 1.0.1 - '@walletconnect/heartbeat': 1.2.1 - '@walletconnect/jsonrpc-utils': 1.0.8 - '@walletconnect/logger': 2.1.2 - '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.8.6 - '@walletconnect/utils': 2.8.6 - events: 3.3.0 - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@capacitor/preferences' - - '@netlify/blobs' - - '@planetscale/database' - - '@react-native-async-storage/async-storage' - - '@upstash/redis' - - '@vercel/kv' - - bufferutil - - ioredis - - utf-8-validate - dev: true - - /@walletconnect/time@1.0.2: - resolution: {integrity: sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==} - dependencies: - tslib: 1.14.1 - dev: true - - /@walletconnect/types@2.8.6: - resolution: {integrity: sha512-Z/PFa3W1XdxeTcCtdR6lUsFgZfU/69wWJBPyclPwn7cu1+eriuCr6XZXQpJjib3flU+HnwHiXeUuqZaheehPxw==} - dependencies: - '@walletconnect/events': 1.0.1 - '@walletconnect/heartbeat': 1.2.1 - '@walletconnect/jsonrpc-types': 1.0.3 - '@walletconnect/keyvaluestorage': 1.1.1 - '@walletconnect/logger': 2.1.2 - events: 3.3.0 - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@capacitor/preferences' - - '@netlify/blobs' - - '@planetscale/database' - - '@react-native-async-storage/async-storage' - - '@upstash/redis' - - '@vercel/kv' - - ioredis - dev: true - - /@walletconnect/utils@2.8.6: - resolution: {integrity: sha512-wcy6e5+COYo7tfNnW8YqidnATdJDIW6vDiWWE7A1F78Sl/VflkaevB9cIgyn8eLdxC1SxXgGoeC2oLP90nnHJg==} - dependencies: - '@stablelib/chacha20poly1305': 1.0.1 - '@stablelib/hkdf': 1.0.1 - '@stablelib/random': 1.0.2 - '@stablelib/sha256': 1.0.1 - '@stablelib/x25519': 1.0.3 - '@walletconnect/relay-api': 1.0.11 - '@walletconnect/safe-json': 1.0.2 - '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.8.6 - '@walletconnect/window-getters': 1.0.1 - '@walletconnect/window-metadata': 1.0.1 - detect-browser: 5.3.0 - query-string: 7.1.3 - uint8arrays: 3.1.1 - transitivePeerDependencies: - - '@azure/app-configuration' - - '@azure/cosmos' - - '@azure/data-tables' - - '@azure/identity' - - '@azure/keyvault-secrets' - - '@azure/storage-blob' - - '@capacitor/preferences' - - '@netlify/blobs' - - '@planetscale/database' - - '@react-native-async-storage/async-storage' - - '@upstash/redis' - - '@vercel/kv' - - ioredis - dev: true - - /@walletconnect/window-getters@1.0.1: - resolution: {integrity: sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==} - dependencies: - tslib: 1.14.1 - dev: true - - /@walletconnect/window-metadata@1.0.1: - resolution: {integrity: sha512-9koTqyGrM2cqFRW517BPY/iEtUDx2r1+Pwwu5m7sJ7ka79wi3EyqhqcICk/yDmv6jAS1rjKgTKXlEhanYjijcA==} - dependencies: - '@walletconnect/window-getters': 1.0.1 - tslib: 1.14.1 - dev: true - - /acorn-jsx@5.3.2(acorn@8.14.0): - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - dependencies: - acorn: 8.14.0 - dev: true - - /acorn-walk@8.3.4: - resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} - engines: {node: '>=0.4.0'} - dependencies: - acorn: 8.14.0 - dev: true - - /acorn@8.14.0: - resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} - engines: {node: '>=0.4.0'} - hasBin: true - dev: true - - /aes-js@3.1.2: - resolution: {integrity: sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==} - dev: true - - /ajv@6.12.6: - resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 - dev: true - - /ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} - engines: {node: '>=8'} - dev: true - - /ansi-regex@6.1.0: - resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} - engines: {node: '>=12'} - dev: true - - /ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - dependencies: - color-convert: 2.0.1 - dev: true - - /ansi-styles@5.2.0: - resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} - engines: {node: '>=10'} - dev: true - - /ansi-styles@6.2.1: - resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} - engines: {node: '>=12'} - dev: true - - /any-promise@1.3.0: - resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - dev: true - - /anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} - engines: {node: '>= 8'} - dependencies: - normalize-path: 3.0.0 - picomatch: 2.3.1 - dev: true - - /argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - dev: true - - /array-union@2.1.0: - resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} - engines: {node: '>=8'} - dev: true - - /assertion-error@1.1.0: - resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} - dev: true - - /asynckit@0.4.0: - resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} - dev: true - - /atomic-sleep@1.0.0: - resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} - engines: {node: '>=8.0.0'} - dev: true - - /autoprefixer@10.4.14(postcss@8.4.23): - resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==} - engines: {node: ^10 || ^12 || >=14} - hasBin: true - peerDependencies: - postcss: ^8.1.0 - dependencies: - browserslist: 4.24.2 - caniuse-lite: 1.0.30001687 - fraction.js: 4.3.7 - normalize-range: 0.1.2 - picocolors: 1.1.1 - postcss: 8.4.23 - postcss-value-parser: 4.2.0 - dev: true - - /axios@0.27.2: - resolution: {integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==} - dependencies: - follow-redirects: 1.15.9 - form-data: 4.0.1 - transitivePeerDependencies: - - debug - dev: true - - /balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - dev: true - - /binary-extensions@2.3.0: - resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} - engines: {node: '>=8'} - dev: true - - /blueimp-md5@2.19.0: - resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==} - dev: true - - /brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - dev: true - - /brace-expansion@2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - dependencies: - balanced-match: 1.0.2 - dev: true - - /braces@3.0.3: - resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} - engines: {node: '>=8'} - dependencies: - fill-range: 7.1.1 - dev: true - - /browserslist@4.24.2: - resolution: {integrity: sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - dependencies: - caniuse-lite: 1.0.30001687 - electron-to-chromium: 1.5.71 - node-releases: 2.0.18 - update-browserslist-db: 1.1.1(browserslist@4.24.2) - dev: true - - /buffer-from@1.1.2: - resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - dev: true - - /cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - dev: true - - /call-me-maybe@1.0.2: - resolution: {integrity: sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==} - dev: true - - /callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - dev: true - - /caniuse-lite@1.0.30001687: - resolution: {integrity: sha512-0S/FDhf4ZiqrTUiQ39dKeUjYRjkv7lOZU1Dgif2rIqrTzX/1wV2hfKu9TOm1IHkdSijfLswxTFzl/cvir+SLSQ==} - dev: true - - /chai@4.5.0: - resolution: {integrity: sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==} - engines: {node: '>=4'} - dependencies: - assertion-error: 1.1.0 - check-error: 1.0.3 - deep-eql: 4.1.4 - get-func-name: 2.0.2 - loupe: 2.3.7 - pathval: 1.1.1 - type-detect: 4.1.0 - dev: true - - /chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - dev: true - - /check-error@1.0.3: - resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} - dependencies: - get-func-name: 2.0.2 - dev: true - - /chokidar@3.6.0: - resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} - engines: {node: '>= 8.10.0'} - dependencies: - anymatch: 3.1.3 - braces: 3.0.3 - glob-parent: 5.1.2 - is-binary-path: 2.1.0 - is-glob: 4.0.3 - normalize-path: 3.0.0 - readdirp: 3.6.0 - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /citty@0.1.6: - resolution: {integrity: sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==} - dependencies: - consola: 3.2.3 - dev: true - - /cli-color@2.0.4: - resolution: {integrity: sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==} - engines: {node: '>=0.10'} - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-iterator: 2.0.3 - memoizee: 0.4.17 - timers-ext: 0.1.8 - dev: true - - /clipboardy@4.0.0: - resolution: {integrity: sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==} - engines: {node: '>=18'} - dependencies: - execa: 8.0.1 - is-wsl: 3.1.0 - is64bit: 2.0.0 - dev: true - - /cliui@8.0.1: - resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} - engines: {node: '>=12'} - dependencies: - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi: 7.0.0 - dev: true - - /color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - dependencies: - color-name: 1.1.4 - dev: true - - /color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - dev: true - - /combined-stream@1.0.8: - resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} - engines: {node: '>= 0.8'} - dependencies: - delayed-stream: 1.0.0 - dev: true - - /commander@9.5.0: - resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} - engines: {node: ^12.20.0 || >=14} - dev: true - - /concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - dev: true - - /concordance@5.0.4: - resolution: {integrity: sha512-OAcsnTEYu1ARJqWVGwf4zh4JDfHZEaSNlNccFmt8YjB2l/n19/PF2viLINHc57vO4FKIAFl2FWASIGZZWZ2Kxw==} - engines: {node: '>=10.18.0 <11 || >=12.14.0 <13 || >=14'} - dependencies: - date-time: 3.1.0 - esutils: 2.0.3 - fast-diff: 1.3.0 - js-string-escape: 1.0.1 - lodash: 4.17.21 - md5-hex: 3.0.1 - semver: 7.6.3 - well-known-symbols: 2.0.0 - dev: true - - /concurrently@8.0.1: - resolution: {integrity: sha512-Sh8bGQMEL0TAmAm2meAXMjcASHZa7V0xXQVDBLknCPa9TPtkY9yYs+0cnGGgfdkW0SV1Mlg+hVGfXcoI8d3MJA==} - engines: {node: ^14.13.0 || >=16.0.0} - hasBin: true - dependencies: - chalk: 4.1.2 - date-fns: 2.30.0 - lodash: 4.17.21 - rxjs: 7.8.1 - shell-quote: 1.8.2 - spawn-command: 0.0.2-1 - supports-color: 8.1.1 - tree-kill: 1.2.2 - yargs: 17.7.2 - dev: true - - /confbox@0.1.8: - resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} - dev: true - - /consola@3.2.3: - resolution: {integrity: sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==} - engines: {node: ^14.18.0 || >=16.10.0} - dev: true - - /cookie-es@1.2.2: - resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==} - dev: true - - /crc-32@1.2.2: - resolution: {integrity: sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==} - engines: {node: '>=0.8'} - hasBin: true - dev: true - - /cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} - engines: {node: '>= 8'} - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - dev: true - - /crossws@0.3.1: - resolution: {integrity: sha512-HsZgeVYaG+b5zA+9PbIPGq4+J/CJynJuearykPsXx4V/eMhyQ5EDVg3Ak2FBZtVXCiOLu/U7IiwDHTr9MA+IKw==} - dependencies: - uncrypto: 0.1.3 - dev: true - - /d@1.0.2: - resolution: {integrity: sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==} - engines: {node: '>=0.12'} - dependencies: - es5-ext: 0.10.64 - type: 2.7.3 - dev: true - - /date-fns@2.30.0: - resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} - engines: {node: '>=0.11'} - dependencies: - '@babel/runtime': 7.26.0 - dev: true - - /date-time@3.1.0: - resolution: {integrity: sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==} - engines: {node: '>=6'} - dependencies: - time-zone: 1.0.0 - dev: true - - /debug@4.4.0: - resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - dependencies: - ms: 2.1.3 - dev: true - - /decode-uri-component@0.2.2: - resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==} - engines: {node: '>=0.10'} - dev: true - - /deep-eql@4.1.4: - resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==} - engines: {node: '>=6'} - dependencies: - type-detect: 4.1.0 - dev: true - - /deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - dev: true - - /defu@6.1.4: - resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} - dev: true - - /degit@2.8.4: - resolution: {integrity: sha512-vqYuzmSA5I50J882jd+AbAhQtgK6bdKUJIex1JNfEUPENCgYsxugzKVZlFyMwV4i06MmnV47/Iqi5Io86zf3Ng==} - engines: {node: '>=8.0.0'} - hasBin: true - dev: true - - /delayed-stream@1.0.0: - resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} - engines: {node: '>=0.4.0'} - dev: true - - /destr@2.0.3: - resolution: {integrity: sha512-2N3BOUU4gYMpTP24s5rF5iP7BDr7uNTCs4ozw3kf/eKfvWSIu93GEBi5m427YoyJoeOzQ5smuu4nNAPGb8idSQ==} - dev: true - - /detect-browser@5.3.0: - resolution: {integrity: sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==} - dev: true - - /detect-libc@1.0.3: - resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==} - engines: {node: '>=0.10'} - hasBin: true - dev: true - - /dir-glob@3.0.1: - resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} - engines: {node: '>=8'} - dependencies: - path-type: 4.0.0 - dev: true - - /doctrine@3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} - engines: {node: '>=6.0.0'} - dependencies: - esutils: 2.0.3 - dev: true - - /duplexify@4.1.3: - resolution: {integrity: sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==} - dependencies: - end-of-stream: 1.4.4 - inherits: 2.0.4 - readable-stream: 3.6.2 - stream-shift: 1.0.3 - dev: true - - /eastasianwidth@0.2.0: - resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - dev: true - - /electron-to-chromium@1.5.71: - resolution: {integrity: sha512-dB68l59BI75W1BUGVTAEJy45CEVuEGy9qPVVQ8pnHyHMn36PLPPoE1mjLH+lo9rKulO3HC2OhbACI/8tCqJBcA==} - dev: true - - /emoji-regex@8.0.0: - resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - dev: true - - /emoji-regex@9.2.2: - resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - dev: true - - /end-of-stream@1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} - dependencies: - once: 1.4.0 - dev: true - - /es5-ext@0.10.64: - resolution: {integrity: sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==} - engines: {node: '>=0.10'} - requiresBuild: true - dependencies: - es6-iterator: 2.0.3 - es6-symbol: 3.1.4 - esniff: 2.0.1 - next-tick: 1.1.0 - dev: true - - /es6-iterator@2.0.3: - resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==} - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-symbol: 3.1.4 - dev: true - - /es6-symbol@3.1.4: - resolution: {integrity: sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==} - engines: {node: '>=0.12'} - dependencies: - d: 1.0.2 - ext: 1.7.0 - dev: true - - /es6-weak-map@2.0.3: - resolution: {integrity: sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==} - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-iterator: 2.0.3 - es6-symbol: 3.1.4 - dev: true - - /esbuild@0.18.20: - resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/android-arm': 0.18.20 - '@esbuild/android-arm64': 0.18.20 - '@esbuild/android-x64': 0.18.20 - '@esbuild/darwin-arm64': 0.18.20 - '@esbuild/darwin-x64': 0.18.20 - '@esbuild/freebsd-arm64': 0.18.20 - '@esbuild/freebsd-x64': 0.18.20 - '@esbuild/linux-arm': 0.18.20 - '@esbuild/linux-arm64': 0.18.20 - '@esbuild/linux-ia32': 0.18.20 - '@esbuild/linux-loong64': 0.18.20 - '@esbuild/linux-mips64el': 0.18.20 - '@esbuild/linux-ppc64': 0.18.20 - '@esbuild/linux-riscv64': 0.18.20 - '@esbuild/linux-s390x': 0.18.20 - '@esbuild/linux-x64': 0.18.20 - '@esbuild/netbsd-x64': 0.18.20 - '@esbuild/openbsd-x64': 0.18.20 - '@esbuild/sunos-x64': 0.18.20 - '@esbuild/win32-arm64': 0.18.20 - '@esbuild/win32-ia32': 0.18.20 - '@esbuild/win32-x64': 0.18.20 - dev: true - - /escalade@3.2.0: - resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} - engines: {node: '>=6'} - dev: true - - /escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - dev: true - - /eslint-config-prettier@8.8.0(eslint@8.40.0): - resolution: {integrity: sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - dependencies: - eslint: 8.40.0 - dev: true - - /eslint-scope@5.1.1: - resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} - engines: {node: '>=8.0.0'} - dependencies: - esrecurse: 4.3.0 - estraverse: 4.3.0 - dev: true - - /eslint-scope@7.2.2: - resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - dev: true - - /eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - - /eslint@8.40.0: - resolution: {integrity: sha512-bvR+TsP9EHL3TqNtj9sCNJVAFK3fBN8Q7g5waghxyRsPLIMwL73XSKnZFK0hk/O2ANC+iAoq6PWMQ+IfBAJIiQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. - hasBin: true - dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@8.40.0) - '@eslint-community/regexpp': 4.12.1 - '@eslint/eslintrc': 2.1.4 - '@eslint/js': 8.40.0 - '@humanwhocodes/config-array': 0.11.14 - '@humanwhocodes/module-importer': 1.0.1 - '@nodelib/fs.walk': 1.2.8 - ajv: 6.12.6 - chalk: 4.1.2 - cross-spawn: 7.0.6 - debug: 4.4.0 - doctrine: 3.0.0 - escape-string-regexp: 4.0.0 - eslint-scope: 7.2.2 - eslint-visitor-keys: 3.4.3 - espree: 9.6.1 - esquery: 1.6.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 6.0.1 - find-up: 5.0.0 - glob-parent: 6.0.2 - globals: 13.24.0 - grapheme-splitter: 1.0.4 - ignore: 5.3.2 - import-fresh: 3.3.0 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - is-path-inside: 3.0.3 - js-sdsl: 4.4.2 - js-yaml: 4.1.0 - json-stable-stringify-without-jsonify: 1.0.1 - levn: 0.4.1 - lodash.merge: 4.6.2 - minimatch: 3.1.2 - natural-compare: 1.4.0 - optionator: 0.9.4 - strip-ansi: 6.0.1 - strip-json-comments: 3.1.1 - text-table: 0.2.0 - transitivePeerDependencies: - - supports-color - dev: true - - /esniff@2.0.1: - resolution: {integrity: sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==} - engines: {node: '>=0.10'} - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - event-emitter: 0.3.5 - type: 2.7.3 - dev: true - - /espree@9.6.1: - resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - acorn: 8.14.0 - acorn-jsx: 5.3.2(acorn@8.14.0) - eslint-visitor-keys: 3.4.3 - dev: true - - /esquery@1.6.0: - resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} - engines: {node: '>=0.10'} - dependencies: - estraverse: 5.3.0 - dev: true - - /esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - dependencies: - estraverse: 5.3.0 - dev: true - - /estraverse@4.3.0: - resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} - engines: {node: '>=4.0'} - dev: true - - /estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} - engines: {node: '>=4.0'} - dev: true - - /esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} - engines: {node: '>=0.10.0'} - dev: true - - /ethereum-cryptography@2.2.1: - resolution: {integrity: sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==} - dependencies: - '@noble/curves': 1.4.2 - '@noble/hashes': 1.4.0 - '@scure/bip32': 1.4.0 - '@scure/bip39': 1.3.0 - dev: true - - /event-emitter@0.3.5: - resolution: {integrity: sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==} - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - dev: true - - /events@3.3.0: - resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} - engines: {node: '>=0.8.x'} - dev: true - - /execa@8.0.1: - resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} - engines: {node: '>=16.17'} - dependencies: - cross-spawn: 7.0.6 - get-stream: 8.0.1 - human-signals: 5.0.0 - is-stream: 3.0.0 - merge-stream: 2.0.0 - npm-run-path: 5.3.0 - onetime: 6.0.0 - signal-exit: 4.1.0 - strip-final-newline: 3.0.0 - dev: true - - /ext@1.7.0: - resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==} - dependencies: - type: 2.7.3 - dev: true - - /extension-port-stream@3.0.0: - resolution: {integrity: sha512-an2S5quJMiy5bnZKEf6AkfH/7r8CzHvhchU40gxN+OM6HPhe7Z9T1FUychcf2M9PpPOO0Hf7BAEfJkw2TDIBDw==} - engines: {node: '>=12.0.0'} - dependencies: - readable-stream: 3.6.2 - webextension-polyfill: 0.10.0 - dev: true - - /fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - dev: true - - /fast-diff@1.3.0: - resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} - dev: true - - /fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} - engines: {node: '>=8.6.0'} - dependencies: - '@nodelib/fs.stat': 2.0.5 - '@nodelib/fs.walk': 1.2.8 - glob-parent: 5.1.2 - merge2: 1.4.1 - micromatch: 4.0.8 - dev: true - - /fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - dev: true - - /fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - dev: true - - /fast-redact@3.5.0: - resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} - engines: {node: '>=6'} - dev: true - - /fast-safe-stringify@2.1.1: - resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} - dev: true - - /fastq@1.17.1: - resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} - dependencies: - reusify: 1.0.4 - dev: true - - /file-entry-cache@6.0.1: - resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} - engines: {node: ^10.12.0 || >=12.0.0} - dependencies: - flat-cache: 3.2.0 - dev: true - - /fill-range@7.1.1: - resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} - engines: {node: '>=8'} - dependencies: - to-regex-range: 5.0.1 - dev: true - - /filter-obj@1.1.0: - resolution: {integrity: sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==} - engines: {node: '>=0.10.0'} - dev: true - - /find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - dev: true - - /flat-cache@3.2.0: - resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} - engines: {node: ^10.12.0 || >=12.0.0} - dependencies: - flatted: 3.3.2 - keyv: 4.5.4 - rimraf: 3.0.2 - dev: true - - /flatted@3.3.2: - resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==} - dev: true - - /follow-redirects@1.15.9: - resolution: {integrity: sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - dev: true - - /foreground-child@3.3.0: - resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} - engines: {node: '>=14'} - dependencies: - cross-spawn: 7.0.6 - signal-exit: 4.1.0 - dev: true - - /form-data@4.0.1: - resolution: {integrity: sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==} - engines: {node: '>= 6'} - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - dev: true - - /fraction.js@4.3.7: - resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} - dev: true - - /fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - dev: true - - /fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /get-caller-file@2.0.5: - resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} - engines: {node: 6.* || 8.* || >= 10.*} - dev: true - - /get-func-name@2.0.2: - resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} - dev: true - - /get-port-please@3.1.2: - resolution: {integrity: sha512-Gxc29eLs1fbn6LQ4jSU4vXjlwyZhF5HsGuMAa7gqBP4Rw4yxxltyDUuF5MBclFzDTXO+ACchGQoeela4DSfzdQ==} - dev: true - - /get-stdin@8.0.0: - resolution: {integrity: sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==} - engines: {node: '>=10'} - dev: true - - /get-stream@8.0.1: - resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} - engines: {node: '>=16'} - dev: true - - /get-tsconfig@4.8.1: - resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==} - dependencies: - resolve-pkg-maps: 1.0.0 - dev: true - - /glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} - engines: {node: '>= 6'} - dependencies: - is-glob: 4.0.3 - dev: true - - /glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - dependencies: - is-glob: 4.0.3 - dev: true - - /glob-promise@4.2.2(glob@7.2.3): - resolution: {integrity: sha512-xcUzJ8NWN5bktoTIX7eOclO1Npxd/dyVqUJxlLIDasT4C7KZyqlPIwkdJ0Ypiy3p2ZKahTjK4M9uC3sNSfNMzw==} - engines: {node: '>=12'} - peerDependencies: - glob: ^7.1.6 - dependencies: - '@types/glob': 7.2.0 - glob: 7.2.3 - dev: true - - /glob@10.2.3: - resolution: {integrity: sha512-Kb4rfmBVE3eQTAimgmeqc2LwSnN0wIOkkUL6HmxEFxNJ4fHghYHVbFba/HcGcRjE6s9KoMNK3rSOwkL4PioZjg==} - engines: {node: '>=16 || 14 >=14.17'} - hasBin: true - dependencies: - foreground-child: 3.3.0 - jackspeak: 2.3.6 - minimatch: 9.0.5 - minipass: 5.0.0 - path-scurry: 1.11.1 - dev: true - - /glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - dev: true - - /globals@13.24.0: - resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} - engines: {node: '>=8'} - dependencies: - type-fest: 0.20.2 - dev: true - - /globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} - engines: {node: '>=10'} - dependencies: - array-union: 2.1.0 - dir-glob: 3.0.1 - fast-glob: 3.3.2 - ignore: 5.3.2 - merge2: 1.4.1 - slash: 3.0.0 - dev: true - - /grapheme-splitter@1.0.4: - resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} - dev: true - - /h3@1.13.0: - resolution: {integrity: sha512-vFEAu/yf8UMUcB4s43OaDaigcqpQd14yanmOsn+NcRX3/guSKncyE2rOYhq8RIchgJrPSs/QiIddnTTR1ddiAg==} - dependencies: - cookie-es: 1.2.2 - crossws: 0.3.1 - defu: 6.1.4 - destr: 2.0.3 - iron-webcrypto: 1.2.1 - ohash: 1.1.4 - radix3: 1.1.2 - ufo: 1.5.4 - uncrypto: 0.1.3 - unenv: 1.10.0 - dev: true - - /has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - dev: true - - /hash.js@1.1.7: - resolution: {integrity: sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==} - dependencies: - inherits: 2.0.4 - minimalistic-assert: 1.0.1 - dev: true - - /http-shutdown@1.2.2: - resolution: {integrity: sha512-S9wWkJ/VSY9/k4qcjG318bqJNruzE4HySUhFYknwmu6LBP97KLLfwNf+n4V1BHurvFNkSKLFnK/RsuUnRTf9Vw==} - engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} - dev: true - - /human-signals@5.0.0: - resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} - engines: {node: '>=16.17.0'} - dev: true - - /idb-keyval@6.2.1: - resolution: {integrity: sha512-8Sb3veuYCyrZL+VBt9LJfZjLUPWVvqn8tG28VqYNFCo43KHcKuq+b4EiXGeuaLAQWL2YmyDgMp2aSpH9JHsEQg==} - dev: true - - /ignore@5.3.2: - resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} - engines: {node: '>= 4'} - dev: true - - /import-fresh@3.3.0: - resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} - engines: {node: '>=6'} - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - dev: true - - /imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} - engines: {node: '>=0.8.19'} - dev: true - - /inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - dev: true - - /inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - dev: true - - /iron-webcrypto@1.2.1: - resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==} - dev: true - - /is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} - engines: {node: '>=8'} - dependencies: - binary-extensions: 2.3.0 - dev: true - - /is-docker@3.0.0: - resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - hasBin: true - dev: true - - /is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - dev: true - - /is-fullwidth-code-point@3.0.0: - resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} - engines: {node: '>=8'} - dev: true - - /is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - dependencies: - is-extglob: 2.1.1 - dev: true - - /is-inside-container@1.0.0: - resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} - engines: {node: '>=14.16'} - hasBin: true - dependencies: - is-docker: 3.0.0 - dev: true - - /is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} - engines: {node: '>=0.12.0'} - dev: true - - /is-path-inside@3.0.3: - resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} - engines: {node: '>=8'} - dev: true - - /is-promise@2.2.2: - resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} - dev: true - - /is-stream@2.0.1: - resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} - engines: {node: '>=8'} - dev: true - - /is-stream@3.0.0: - resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dev: true - - /is-typedarray@1.0.0: - resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==} - dev: true - - /is-wsl@3.1.0: - resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} - engines: {node: '>=16'} - dependencies: - is-inside-container: 1.0.0 - dev: true - - /is64bit@2.0.0: - resolution: {integrity: sha512-jv+8jaWCl0g2lSBkNSVXdzfBA0npK1HGC2KtWM9FumFRoGS94g3NbCCLVnCYHLjp4GrW2KZeeSTMo5ddtznmGw==} - engines: {node: '>=18'} - dependencies: - system-architecture: 0.1.0 - dev: true - - /isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - dev: true - - /jackspeak@2.3.6: - resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} - engines: {node: '>=14'} - dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 - dev: true - - /jiti@2.4.1: - resolution: {integrity: sha512-yPBThwecp1wS9DmoA4x4KR2h3QoslacnDR8ypuFM962kI4/456Iy1oHx2RAgh4jfZNdn0bctsdadceiBUgpU1g==} - hasBin: true - dev: true - - /js-sdsl@4.4.2: - resolution: {integrity: sha512-dwXFwByc/ajSV6m5bcKAPwe4yDDF6D614pxmIi5odytzxRlwqF6nwoiCek80Ixc7Cvma5awClxrzFtxCQvcM8w==} - dev: true - - /js-string-escape@1.0.1: - resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==} - engines: {node: '>= 0.8'} - dev: true - - /js-yaml@4.1.0: - resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} - hasBin: true - dependencies: - argparse: 2.0.1 - dev: true - - /json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - dev: true - - /json-rpc-middleware-stream@5.0.1: - resolution: {integrity: sha512-PMrzifccjdilqU0xftUkusJq0J9O73q66YdVduEmu6vkiTh3V1akliYJGWBAbhg+vhFPC8btUSANa5FNo7a6bg==} - engines: {node: ^16.20 || ^18.16 || >=20} - dependencies: - '@metamask/json-rpc-engine': 7.3.3 - '@metamask/safe-event-emitter': 3.1.2 - '@metamask/utils': 8.5.0 - readable-stream: 3.6.2 - transitivePeerDependencies: - - supports-color - dev: true - - /json-schema-to-typescript@13.1.1: - resolution: {integrity: sha512-F3CYhtA7F3yPbb8vF7sFchk/2dnr1/yTKf8RcvoNpjnh67ZS/ZMH1ElLt5KHAtf2/bymiejLQQszszPWEeTdSw==} - engines: {node: '>=12.0.0'} - hasBin: true - dependencies: - '@bcherny/json-schema-ref-parser': 10.0.5-fork - '@types/json-schema': 7.0.15 - '@types/lodash': 4.17.13 - '@types/prettier': 2.7.3 - cli-color: 2.0.4 - get-stdin: 8.0.0 - glob: 7.2.3 - glob-promise: 4.2.2(glob@7.2.3) - is-glob: 4.0.3 - lodash: 4.17.21 - minimist: 1.2.8 - mkdirp: 1.0.4 - mz: 2.7.0 - prettier: 2.8.8 - dev: true - - /json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - dev: true - - /json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - dev: true - - /keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - dependencies: - json-buffer: 3.0.1 - dev: true - - /keyvaluestorage-interface@1.0.0: - resolution: {integrity: sha512-8t6Q3TclQ4uZynJY9IGr2+SsIGwK9JHcO6ootkHCGA0CrQCRy+VkouYNO2xicET6b9al7QKzpebNow+gkpCL8g==} - dev: true - - /levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - dev: true - - /listhen@1.9.0: - resolution: {integrity: sha512-I8oW2+QL5KJo8zXNWX046M134WchxsXC7SawLPvRQpogCbkyQIaFxPE89A2HiwR7vAK2Dm2ERBAmyjTYGYEpBg==} - hasBin: true - dependencies: - '@parcel/watcher': 2.5.0 - '@parcel/watcher-wasm': 2.5.0 - citty: 0.1.6 - clipboardy: 4.0.0 - consola: 3.2.3 - crossws: 0.3.1 - defu: 6.1.4 - get-port-please: 3.1.2 - h3: 1.13.0 - http-shutdown: 1.2.2 - jiti: 2.4.1 - mlly: 1.7.3 - node-forge: 1.3.1 - pathe: 1.1.2 - std-env: 3.8.0 - ufo: 1.5.4 - untun: 0.1.3 - uqr: 0.1.2 - dev: true - - /local-pkg@0.4.3: - resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==} - engines: {node: '>=14'} - dev: true - - /locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - dependencies: - p-locate: 5.0.0 - dev: true - - /lodash-es@4.17.21: - resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} - dev: true - - /lodash.isequal@4.5.0: - resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} - dev: true - - /lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - dev: true - - /lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - dev: true - - /long@4.0.0: - resolution: {integrity: sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==} - dev: true - - /loupe@2.3.7: - resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} - dependencies: - get-func-name: 2.0.2 - dev: true - - /lru-cache@10.4.3: - resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} - dev: true - - /lru-queue@0.1.0: - resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==} - dependencies: - es5-ext: 0.10.64 - dev: true - - /magic-string@0.30.14: - resolution: {integrity: sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==} - dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 - dev: true - - /md5-hex@3.0.1: - resolution: {integrity: sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==} - engines: {node: '>=8'} - dependencies: - blueimp-md5: 2.19.0 - dev: true - - /memoizee@0.4.17: - resolution: {integrity: sha512-DGqD7Hjpi/1or4F/aYAspXKNm5Yili0QDAFAY4QYvpqpgiY6+1jOfqpmByzjxbWd/T9mChbCArXAbDAsTm5oXA==} - engines: {node: '>=0.12'} - dependencies: - d: 1.0.2 - es5-ext: 0.10.64 - es6-weak-map: 2.0.3 - event-emitter: 0.3.5 - is-promise: 2.2.2 - lru-queue: 0.1.0 - next-tick: 1.1.0 - timers-ext: 0.1.8 - dev: true - - /merge-stream@2.0.0: - resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} - dev: true - - /merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} - engines: {node: '>= 8'} - dev: true - - /micro-ftch@0.3.1: - resolution: {integrity: sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==} - dev: true - - /micromatch@4.0.8: - resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} - engines: {node: '>=8.6'} - dependencies: - braces: 3.0.3 - picomatch: 2.3.1 - dev: true - - /mime-db@1.52.0: - resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} - engines: {node: '>= 0.6'} - dev: true - - /mime-types@2.1.35: - resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} - engines: {node: '>= 0.6'} - dependencies: - mime-db: 1.52.0 - dev: true - - /mime@3.0.0: - resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} - engines: {node: '>=10.0.0'} - hasBin: true - dev: true - - /mimic-fn@4.0.0: - resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} - engines: {node: '>=12'} - dev: true - - /minimalistic-assert@1.0.1: - resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} - dev: true - - /minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - dependencies: - brace-expansion: 1.1.11 - dev: true - - /minimatch@9.0.5: - resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} - engines: {node: '>=16 || 14 >=14.17'} - dependencies: - brace-expansion: 2.0.1 - dev: true - - /minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - dev: true - - /minipass@5.0.0: - resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==} - engines: {node: '>=8'} - dev: true - - /mkdirp@1.0.4: - resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} - engines: {node: '>=10'} - hasBin: true - dev: true - - /mlly@1.7.3: - resolution: {integrity: sha512-xUsx5n/mN0uQf4V548PKQ+YShA4/IW0KI1dZhrNrPCLG+xizETbHTkOa1f8/xut9JRPp8kQuMnz0oqwkTiLo/A==} - dependencies: - acorn: 8.14.0 - pathe: 1.1.2 - pkg-types: 1.2.1 - ufo: 1.5.4 - dev: true - - /ms@2.1.3: - resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - dev: true - - /multiformats@9.9.0: - resolution: {integrity: sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==} - dev: true - - /mylas@2.1.13: - resolution: {integrity: sha512-+MrqnJRtxdF+xngFfUUkIMQrUUL0KsxbADUkn23Z/4ibGg192Q+z+CQyiYwvWTsYjJygmMR8+w3ZDa98Zh6ESg==} - engines: {node: '>=12.0.0'} - dev: true - - /mz@2.7.0: - resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - dependencies: - any-promise: 1.3.0 - object-assign: 4.1.1 - thenify-all: 1.6.0 - dev: true - - /nanoid@3.3.8: - resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - dev: true - - /natural-compare-lite@1.4.0: - resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} - dev: true - - /natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - dev: true - - /next-tick@1.1.0: - resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} - dev: true - - /node-addon-api@7.1.1: - resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} - dev: true - - /node-fetch-native@1.6.4: - resolution: {integrity: sha512-IhOigYzAKHd244OC0JIMIUrjzctirCmPkaIfhDeGcEETWof5zKYUW7e7MYvChGWh/4CJeXEgsRyGzuF334rOOQ==} - dev: true - - /node-forge@1.3.1: - resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} - engines: {node: '>= 6.13.0'} - dev: true - - /node-releases@2.0.18: - resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==} - dev: true - - /normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} - engines: {node: '>=0.10.0'} - dev: true - - /normalize-range@0.1.2: - resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} - engines: {node: '>=0.10.0'} - dev: true - - /npm-run-path@5.3.0: - resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - path-key: 4.0.0 - dev: true - - /object-assign@4.1.1: - resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} - engines: {node: '>=0.10.0'} - dev: true - - /ofetch@1.4.1: - resolution: {integrity: sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==} - dependencies: - destr: 2.0.3 - node-fetch-native: 1.6.4 - ufo: 1.5.4 - dev: true - - /ohash@1.1.4: - resolution: {integrity: sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==} - dev: true - - /on-exit-leak-free@0.2.0: - resolution: {integrity: sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==} - dev: true - - /once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} - dependencies: - wrappy: 1.0.2 - dev: true - - /onetime@6.0.0: - resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} - engines: {node: '>=12'} - dependencies: - mimic-fn: 4.0.0 - dev: true - - /optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.5 - dev: true - - /p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - dependencies: - yocto-queue: 0.1.0 - dev: true - - /p-limit@4.0.0: - resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dependencies: - yocto-queue: 1.1.1 - dev: true - - /p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - dependencies: - p-limit: 3.1.0 - dev: true - - /parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} - dependencies: - callsites: 3.1.0 - dev: true - - /path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - dev: true - - /path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} - engines: {node: '>=0.10.0'} - dev: true - - /path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} - dev: true - - /path-key@4.0.0: - resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} - engines: {node: '>=12'} - dev: true - - /path-scurry@1.11.1: - resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} - engines: {node: '>=16 || 14 >=14.18'} - dependencies: - lru-cache: 10.4.3 - minipass: 5.0.0 - dev: true - - /path-type@4.0.0: - resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} - engines: {node: '>=8'} - dev: true - - /pathe@1.1.2: - resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - dev: true - - /pathval@1.1.1: - resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} - dev: true - - /picocolors@1.1.1: - resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - dev: true - - /picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} - engines: {node: '>=8.6'} - dev: true - - /pino-abstract-transport@0.5.0: - resolution: {integrity: sha512-+KAgmVeqXYbTtU2FScx1XS3kNyfZ5TrXY07V96QnUSFqo2gAqlvmaxH67Lj7SWazqsMabf+58ctdTcBgnOLUOQ==} - dependencies: - duplexify: 4.1.3 - split2: 4.2.0 - dev: true - - /pino-std-serializers@4.0.0: - resolution: {integrity: sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q==} - dev: true - - /pino@7.11.0: - resolution: {integrity: sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg==} - hasBin: true - dependencies: - atomic-sleep: 1.0.0 - fast-redact: 3.5.0 - on-exit-leak-free: 0.2.0 - pino-abstract-transport: 0.5.0 - pino-std-serializers: 4.0.0 - process-warning: 1.0.0 - quick-format-unescaped: 4.0.4 - real-require: 0.1.0 - safe-stable-stringify: 2.5.0 - sonic-boom: 2.8.0 - thread-stream: 0.15.2 - dev: true - - /pkg-types@1.2.1: - resolution: {integrity: sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==} - dependencies: - confbox: 0.1.8 - mlly: 1.7.3 - pathe: 1.1.2 - dev: true - - /plimit-lit@1.6.1: - resolution: {integrity: sha512-B7+VDyb8Tl6oMJT9oSO2CW8XC/T4UcJGrwOVoNGwOQsQYhlpfajmrMj5xeejqaASq3V/EqThyOeATEOMuSEXiA==} - engines: {node: '>=12'} - dependencies: - queue-lit: 1.5.2 - dev: true - - /pony-cause@2.1.11: - resolution: {integrity: sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==} - engines: {node: '>=12.0.0'} - dev: true - - /postcss-value-parser@4.2.0: - resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} - dev: true - - /postcss@8.4.23: - resolution: {integrity: sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.3.8 - picocolors: 1.1.1 - source-map-js: 1.2.1 - dev: true - - /postcss@8.4.49: - resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.3.8 - picocolors: 1.1.1 - source-map-js: 1.2.1 - dev: true - - /prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - dev: true - - /prettier-plugin-tailwindcss@0.2.8(prettier@2.8.8): - resolution: {integrity: sha512-KgPcEnJeIijlMjsA6WwYgRs5rh3/q76oInqtMXBA/EMcamrcYJpyhtRhyX1ayT9hnHlHTuO8sIifHF10WuSDKg==} - engines: {node: '>=12.17.0'} - peerDependencies: - '@ianvs/prettier-plugin-sort-imports': '*' - '@prettier/plugin-pug': '*' - '@shopify/prettier-plugin-liquid': '*' - '@shufo/prettier-plugin-blade': '*' - '@trivago/prettier-plugin-sort-imports': '*' - prettier: '>=2.2.0' - prettier-plugin-astro: '*' - prettier-plugin-css-order: '*' - prettier-plugin-import-sort: '*' - prettier-plugin-jsdoc: '*' - prettier-plugin-organize-attributes: '*' - prettier-plugin-organize-imports: '*' - prettier-plugin-style-order: '*' - prettier-plugin-svelte: '*' - prettier-plugin-twig-melody: '*' - peerDependenciesMeta: - '@ianvs/prettier-plugin-sort-imports': - optional: true - '@prettier/plugin-pug': - optional: true - '@shopify/prettier-plugin-liquid': - optional: true - '@shufo/prettier-plugin-blade': - optional: true - '@trivago/prettier-plugin-sort-imports': - optional: true - prettier-plugin-astro: - optional: true - prettier-plugin-css-order: - optional: true - prettier-plugin-import-sort: - optional: true - prettier-plugin-jsdoc: - optional: true - prettier-plugin-organize-attributes: - optional: true - prettier-plugin-organize-imports: - optional: true - prettier-plugin-style-order: - optional: true - prettier-plugin-svelte: - optional: true - prettier-plugin-twig-melody: - optional: true - dependencies: - prettier: 2.8.8 - dev: true - - /prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} - hasBin: true - dev: true - - /pretty-format@27.5.1: - resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} - dependencies: - ansi-regex: 5.0.1 - ansi-styles: 5.2.0 - react-is: 17.0.2 - dev: true - - /process-warning@1.0.0: - resolution: {integrity: sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==} - dev: true - - /punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} - engines: {node: '>=6'} - dev: true - - /query-string@6.14.1: - resolution: {integrity: sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw==} - engines: {node: '>=6'} - dependencies: - decode-uri-component: 0.2.2 - filter-obj: 1.1.0 - split-on-first: 1.1.0 - strict-uri-encode: 2.0.0 - dev: true - - /query-string@7.1.3: - resolution: {integrity: sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg==} - engines: {node: '>=6'} - dependencies: - decode-uri-component: 0.2.2 - filter-obj: 1.1.0 - split-on-first: 1.1.0 - strict-uri-encode: 2.0.0 - dev: true - - /queue-lit@1.5.2: - resolution: {integrity: sha512-tLc36IOPeMAubu8BkW8YDBV+WyIgKlYU7zUNs0J5Vk9skSZ4JfGlPOqplP0aHdfv7HL0B2Pg6nwiq60Qc6M2Hw==} - engines: {node: '>=12'} - dev: true - - /queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} - dev: true - - /quick-format-unescaped@4.0.4: - resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} - dev: true - - /radix3@1.1.2: - resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==} - dev: true - - /randombytes@2.1.0: - resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} - dependencies: - safe-buffer: 5.2.1 - dev: true - - /react-is@17.0.2: - resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} - dev: true - - /readable-stream@3.6.2: - resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} - engines: {node: '>= 6'} - dependencies: - inherits: 2.0.4 - string_decoder: 1.3.0 - util-deprecate: 1.0.2 - dev: true - - /readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} - engines: {node: '>=8.10.0'} - dependencies: - picomatch: 2.3.1 - dev: true - - /real-require@0.1.0: - resolution: {integrity: sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==} - engines: {node: '>= 12.13.0'} - dev: true - - /regenerator-runtime@0.14.1: - resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - dev: true - - /require-directory@2.1.1: - resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} - engines: {node: '>=0.10.0'} - dev: true - - /resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - dev: true - - /resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - dev: true - - /reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} - engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - dev: true - - /rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported - hasBin: true - dependencies: - glob: 7.2.3 - dev: true - - /rimraf@5.0.0: - resolution: {integrity: sha512-Jf9llaP+RvaEVS5nPShYFhtXIrb3LRKP281ib3So0KkeZKo2wIKyq0Re7TOSwanasA423PSr6CCIL4bP6T040g==} - engines: {node: '>=14'} - hasBin: true - dependencies: - glob: 10.2.3 - dev: true - - /rollup@3.29.5: - resolution: {integrity: sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==} - engines: {node: '>=14.18.0', npm: '>=8.0.0'} - hasBin: true - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} - dependencies: - queue-microtask: 1.2.3 - dev: true - - /rxjs@7.8.1: - resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} - dependencies: - tslib: 2.8.1 - dev: true - - /safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - dev: true - - /safe-stable-stringify@2.5.0: - resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==} - engines: {node: '>=10'} - dev: true - - /semver@7.6.3: - resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} - engines: {node: '>=10'} - hasBin: true - dev: true - - /shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - dependencies: - shebang-regex: 3.0.0 - dev: true - - /shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - dev: true - - /shell-quote@1.8.2: - resolution: {integrity: sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==} - engines: {node: '>= 0.4'} - dev: true - - /siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - dev: true - - /signal-exit@4.1.0: - resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} - engines: {node: '>=14'} - dev: true - - /slash@3.0.0: - resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} - engines: {node: '>=8'} - dev: true - - /sonic-boom@2.8.0: - resolution: {integrity: sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==} - dependencies: - atomic-sleep: 1.0.0 - dev: true - - /source-map-js@1.2.1: - resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} - engines: {node: '>=0.10.0'} - dev: true - - /source-map-support@0.5.21: - resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - dev: true - - /source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} - dev: true - - /spawn-command@0.0.2-1: - resolution: {integrity: sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==} - dev: true - - /split-on-first@1.1.0: - resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} - engines: {node: '>=6'} - dev: true - - /split2@4.2.0: - resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} - engines: {node: '>= 10.x'} - dev: true - - /stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - dev: true - - /std-env@3.8.0: - resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==} - dev: true - - /stream-shift@1.0.3: - resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==} - dev: true - - /strict-uri-encode@2.0.0: - resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} - engines: {node: '>=4'} - dev: true - - /string-width@4.2.3: - resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} - engines: {node: '>=8'} - dependencies: - emoji-regex: 8.0.0 - is-fullwidth-code-point: 3.0.0 - strip-ansi: 6.0.1 - dev: true - - /string-width@5.1.2: - resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} - engines: {node: '>=12'} - dependencies: - eastasianwidth: 0.2.0 - emoji-regex: 9.2.2 - strip-ansi: 7.1.0 - dev: true - - /string_decoder@1.3.0: - resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} - dependencies: - safe-buffer: 5.2.1 - dev: true - - /strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} - engines: {node: '>=8'} - dependencies: - ansi-regex: 5.0.1 - dev: true - - /strip-ansi@7.1.0: - resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} - engines: {node: '>=12'} - dependencies: - ansi-regex: 6.1.0 - dev: true - - /strip-final-newline@3.0.0: - resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} - engines: {node: '>=12'} - dev: true - - /strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - dev: true - - /strip-literal@1.3.0: - resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==} - dependencies: - acorn: 8.14.0 - dev: true - - /supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - dependencies: - has-flag: 4.0.0 - dev: true - - /supports-color@8.1.1: - resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} - engines: {node: '>=10'} - dependencies: - has-flag: 4.0.0 - dev: true - - /system-architecture@0.1.0: - resolution: {integrity: sha512-ulAk51I9UVUyJgxlv9M6lFot2WP3e7t8Kz9+IS6D4rVba1tR9kON+Ey69f+1R4Q8cd45Lod6a4IcJIxnzGc/zA==} - engines: {node: '>=18'} - dev: true - - /text-table@0.2.0: - resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} - dev: true - - /thenify-all@1.6.0: - resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} - engines: {node: '>=0.8'} - dependencies: - thenify: 3.3.1 - dev: true - - /thenify@3.3.1: - resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} - dependencies: - any-promise: 1.3.0 - dev: true - - /thread-stream@0.15.2: - resolution: {integrity: sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==} - dependencies: - real-require: 0.1.0 - dev: true - - /time-zone@1.0.0: - resolution: {integrity: sha512-TIsDdtKo6+XrPtiTm1ssmMngN1sAhyKnTO2kunQWqNPWIVvCm15Wmw4SWInwTVgJ5u/Tr04+8Ei9TNcw4x4ONA==} - engines: {node: '>=4'} - dev: true - - /timers-ext@0.1.8: - resolution: {integrity: sha512-wFH7+SEAcKfJpfLPkrgMPvvwnEtj8W4IurvEyrKsDleXnKLCDw71w8jltvfLa8Rm4qQxxT4jmDBYbJG/z7qoww==} - engines: {node: '>=0.12'} - dependencies: - es5-ext: 0.10.64 - next-tick: 1.1.0 - dev: true - - /tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - dev: true - - /tinypool@0.5.0: - resolution: {integrity: sha512-paHQtnrlS1QZYKF/GnLoOM/DN9fqaGOFbCbxzAhwniySnzl9Ebk8w73/dd34DAhe/obUbPAOldTyYXQZxnPBPQ==} - engines: {node: '>=14.0.0'} - dev: true - - /tinyspy@2.2.1: - resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} - engines: {node: '>=14.0.0'} - dev: true - - /to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} - engines: {node: '>=8.0'} - dependencies: - is-number: 7.0.0 - dev: true - - /tree-kill@1.2.2: - resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} - hasBin: true - dev: true - - /tsc-alias@1.8.6: - resolution: {integrity: sha512-vq+i6VpE83IeMsSJVcFN03ZBofADhr8/gIJXjxpbnTRfN/MFXy0+SBaKG2o7p95QqXBGkeG98HYz3IkOOveFbg==} - hasBin: true - dependencies: - chokidar: 3.6.0 - commander: 9.5.0 - globby: 11.1.0 - mylas: 2.1.13 - normalize-path: 3.0.0 - plimit-lit: 1.6.1 - dev: true - - /tslib@1.14.1: - resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - dev: true - - /tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - dev: true - - /tsutils@3.21.0(typescript@5.0.4): - resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} - engines: {node: '>= 6'} - peerDependencies: - typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' - dependencies: - tslib: 1.14.1 - typescript: 5.0.4 - dev: true - - /tsx@3.12.7: - resolution: {integrity: sha512-C2Ip+jPmqKd1GWVQDvz/Eyc6QJbGfE7NrR3fx5BpEHMZsEHoIxHL1j+lKdGobr8ovEyqeNkPLSKp6SCSOt7gmw==} - hasBin: true - dependencies: - '@esbuild-kit/cjs-loader': 2.4.4 - '@esbuild-kit/core-utils': 3.3.2 - '@esbuild-kit/esm-loader': 2.6.5 - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.2.1 - dev: true - - /type-detect@4.1.0: - resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} - engines: {node: '>=4'} - dev: true - - /type-fest@0.20.2: - resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} - engines: {node: '>=10'} - dev: true - - /type@2.7.3: - resolution: {integrity: sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==} - dev: true - - /typedarray-to-buffer@3.1.5: - resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} - dependencies: - is-typedarray: 1.0.0 - dev: true - - /typescript@4.5.2: - resolution: {integrity: sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==} - engines: {node: '>=4.2.0'} - hasBin: true - dev: true - - /typescript@5.0.4: - resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} - engines: {node: '>=12.20'} - hasBin: true - dev: true - - /ufo@1.5.4: - resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} - dev: true - - /uint8arrays@3.1.1: - resolution: {integrity: sha512-+QJa8QRnbdXVpHYjLoTpJIdCTiw9Ir62nocClWuXIq2JIh4Uta0cQsTSpFL678p2CN8B+XSApwcU+pQEqVpKWg==} - dependencies: - multiformats: 9.9.0 - dev: true - - /uncrypto@0.1.3: - resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} - dev: true - - /undici-types@6.20.0: - resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} - dev: true - - /unenv@1.10.0: - resolution: {integrity: sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==} - dependencies: - consola: 3.2.3 - defu: 6.1.4 - mime: 3.0.0 - node-fetch-native: 1.6.4 - pathe: 1.1.2 - dev: true - - /unstorage@1.13.1(idb-keyval@6.2.1): - resolution: {integrity: sha512-ELexQHUrG05QVIM/iUeQNdl9FXDZhqLJ4yP59fnmn2jGUh0TEulwOgov1ubOb3Gt2ZGK/VMchJwPDNVEGWQpRg==} - peerDependencies: - '@azure/app-configuration': ^1.7.0 - '@azure/cosmos': ^4.1.1 - '@azure/data-tables': ^13.2.2 - '@azure/identity': ^4.5.0 - '@azure/keyvault-secrets': ^4.9.0 - '@azure/storage-blob': ^12.25.0 - '@capacitor/preferences': ^6.0.2 - '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 - '@planetscale/database': ^1.19.0 - '@upstash/redis': ^1.34.3 - '@vercel/kv': ^1.0.1 - idb-keyval: ^6.2.1 - ioredis: ^5.4.1 - peerDependenciesMeta: - '@azure/app-configuration': - optional: true - '@azure/cosmos': - optional: true - '@azure/data-tables': - optional: true - '@azure/identity': - optional: true - '@azure/keyvault-secrets': - optional: true - '@azure/storage-blob': - optional: true - '@capacitor/preferences': - optional: true - '@netlify/blobs': - optional: true - '@planetscale/database': - optional: true - '@upstash/redis': - optional: true - '@vercel/kv': - optional: true - idb-keyval: - optional: true - ioredis: - optional: true - dependencies: - anymatch: 3.1.3 - chokidar: 3.6.0 - citty: 0.1.6 - destr: 2.0.3 - h3: 1.13.0 - idb-keyval: 6.2.1 - listhen: 1.9.0 - lru-cache: 10.4.3 - node-fetch-native: 1.6.4 - ofetch: 1.4.1 - ufo: 1.5.4 - dev: true - - /untun@0.1.3: - resolution: {integrity: sha512-4luGP9LMYszMRZwsvyUd9MrxgEGZdZuZgpVQHEEX0lCYFESasVRvZd0EYpCkOIbJKHMuv0LskpXc/8Un+MJzEQ==} - hasBin: true - dependencies: - citty: 0.1.6 - consola: 3.2.3 - pathe: 1.1.2 - dev: true - - /update-browserslist-db@1.1.1(browserslist@4.24.2): - resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - dependencies: - browserslist: 4.24.2 - escalade: 3.2.0 - picocolors: 1.1.1 - dev: true - - /uqr@0.1.2: - resolution: {integrity: sha512-MJu7ypHq6QasgF5YRTjqscSzQp/W11zoUk6kvmlH+fmWEs63Y0Eib13hYFwAzagRJcVY8WVnlV+eBDUGMJ5IbA==} - dev: true - - /uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - dependencies: - punycode: 2.3.1 - dev: true - - /util-deprecate@1.0.2: - resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - dev: true - - /uuid@9.0.1: - resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} - hasBin: true - dev: true - - /vite-node@0.31.0(@types/node@22.10.1): - resolution: {integrity: sha512-8x1x1LNuPvE2vIvkSB7c1mApX5oqlgsxzHQesYF7l5n1gKrEmrClIiZuOFbFDQcjLsmcWSwwmrWrcGWm9Fxc/g==} - engines: {node: '>=v14.18.0'} - hasBin: true - dependencies: - cac: 6.7.14 - debug: 4.4.0 - mlly: 1.7.3 - pathe: 1.1.2 - picocolors: 1.1.1 - vite: 4.5.5(@types/node@22.10.1) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - - /vite@4.5.5(@types/node@22.10.1): - resolution: {integrity: sha512-ifW3Lb2sMdX+WU91s3R0FyQlAyLxOzCSCP37ujw0+r5POeHPwe6udWVIElKQq8gk3t7b8rkmvqC6IHBpCff4GQ==} - engines: {node: ^14.18.0 || >=16.0.0} - hasBin: true - peerDependencies: - '@types/node': '>= 14' - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - '@types/node': 22.10.1 - esbuild: 0.18.20 - postcss: 8.4.49 - rollup: 3.29.5 - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /vitest@0.31.0: - resolution: {integrity: sha512-JwWJS9p3GU9GxkG7eBSmr4Q4x4bvVBSswaCFf1PBNHiPx00obfhHRJfgHcnI0ffn+NMlIh9QGvG75FlaIBdKGA==} - engines: {node: '>=v14.18.0'} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@vitest/browser': '*' - '@vitest/ui': '*' - happy-dom: '*' - jsdom: '*' - playwright: '*' - safaridriver: '*' - webdriverio: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - playwright: - optional: true - safaridriver: - optional: true - webdriverio: - optional: true - dependencies: - '@types/chai': 4.3.20 - '@types/chai-subset': 1.3.5 - '@types/node': 22.10.1 - '@vitest/expect': 0.31.0 - '@vitest/runner': 0.31.0 - '@vitest/snapshot': 0.31.0 - '@vitest/spy': 0.31.0 - '@vitest/utils': 0.31.0 - acorn: 8.14.0 - acorn-walk: 8.3.4 - cac: 6.7.14 - chai: 4.5.0 - concordance: 5.0.4 - debug: 4.4.0 - local-pkg: 0.4.3 - magic-string: 0.30.14 - pathe: 1.1.2 - picocolors: 1.1.1 - std-env: 3.8.0 - strip-literal: 1.3.0 - tinybench: 2.9.0 - tinypool: 0.5.0 - vite: 4.5.5(@types/node@22.10.1) - vite-node: 0.31.0(@types/node@22.10.1) - why-is-node-running: 2.3.0 - transitivePeerDependencies: - - less - - lightningcss - - sass - - stylus - - sugarss - - supports-color - - terser - dev: true - - /webextension-polyfill@0.10.0: - resolution: {integrity: sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g==} - dev: true - - /well-known-symbols@2.0.0: - resolution: {integrity: sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==} - engines: {node: '>=6'} - dev: true - - /which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - dependencies: - isexe: 2.0.0 - dev: true - - /why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - dev: true - - /word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} - dev: true - - /wrap-ansi@7.0.0: - resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} - engines: {node: '>=10'} - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - dev: true - - /wrap-ansi@8.1.0: - resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} - engines: {node: '>=12'} - dependencies: - ansi-styles: 6.2.1 - string-width: 5.1.2 - strip-ansi: 7.1.0 - dev: true - - /wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - dev: true - - /ws@7.5.10: - resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==} - engines: {node: '>=8.3.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - dev: true - - /y18n@5.0.8: - resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} - engines: {node: '>=10'} - dev: true - - /yargs-parser@21.1.1: - resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} - engines: {node: '>=12'} - dev: true - - /yargs@17.7.2: - resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} - engines: {node: '>=12'} - dependencies: - cliui: 8.0.1 - escalade: 3.2.0 - get-caller-file: 2.0.5 - require-directory: 2.1.1 - string-width: 4.2.3 - y18n: 5.0.8 - yargs-parser: 21.1.1 - dev: true - - /yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} - dev: true - - /yocto-queue@1.1.1: - resolution: {integrity: sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==} - engines: {node: '>=12.20'} - dev: true diff --git a/libs/es-client/scripts/gen-protobufs.mjs b/libs/es-client/scripts/gen-protobufs.mjs deleted file mode 100644 index 6bf5f0b..0000000 --- a/libs/es-client/scripts/gen-protobufs.mjs +++ /dev/null @@ -1,171 +0,0 @@ -// @ts-check - -/** - * This script generates the src/protobufs directory from the proto files in the - * repos specified in `REPOS`. It uses `buf` to generate TS files from the proto - * files, and then generates an `index.ts` file to re-export the generated code. - */ - -import { spawnSync } from "child_process"; -import degit from "degit"; -import { mkdirSync, readFileSync, rmSync, writeFileSync } from "fs"; -import { globSync } from "glob"; -import { capitalize } from "lodash-es"; -import { dirname, join } from "path"; -import { fileURLToPath } from "url"; - -/** - * @typedef Repo - * @type {object} - * @property {string} repo - Git repo and branch to clone - * @property {string[]} paths - Paths to proto files relative to the repo root - */ - -/** - * TODO: Add more repos here when necessary. - * @type {Repo[]} - */ -const REPOS = [ - { - repo: "cosmos/cosmos-sdk#v0.50.5", - paths: ["proto"], - }, - { - repo: "cosmos/ics23#master", - paths: ["proto"], - }, - { - repo: "cosmos/ibc-go#main", - paths: ["proto"], - }, - { - repo: "onsonr/sonr#develop", - paths: ["proto"], - }, - { - repo: "CosmWasm/wasmd#main", - paths: ["proto"], - }, - { - repo: "osmosis-labs/osmosis#main", - paths: ["proto"], - }, - { - repo: "evmos/ethermint#main", - paths: ["proto"], - }, - { - repo: "nomic-io/nomic#develop", - paths: ["src/babylon/proto"], - }, -]; - -const __dirname = dirname(fileURLToPath(import.meta.url)); -const PROTOBUFS_DIR = join(__dirname, "..", "src", "protobufs"); -const TMP_DIR = join(PROTOBUFS_DIR, ".tmp"); -/** Generates a unique dirname from `repo` to use in `TMP_DIR`. */ -const id = (/** @type {string} */ repo) => repo.replace(/[#/]/g, "-"); - -console.log("Initialising directories..."); -{ - rmSync(PROTOBUFS_DIR, { recursive: true, force: true }); - rmSync(TMP_DIR, { recursive: true, force: true }); - mkdirSync(PROTOBUFS_DIR); - mkdirSync(TMP_DIR); -} - -console.log("Cloning required repos..."); -{ - await Promise.all( - REPOS.map(({ repo }) => degit(repo).clone(join(TMP_DIR, id(repo)))) - ); -} - -console.log("Generating TS files from proto files..."); -{ - for (const { repo, paths } of REPOS) { - for (const path of paths) { - spawnSync( - "pnpm", - [ - "buf", - "generate", - join(TMP_DIR, id(repo), path), - "--output", - join( - PROTOBUFS_DIR, - repo.startsWith("dymensionxyz") ? "dymension" : "" - ), - ], - { - cwd: process.cwd(), - stdio: "inherit", - } - ); - } - console.log(`✔️ [${repo}]`); - } -} - -console.log("Generating src/index.ts file and renaming exports..."); -{ - const LAST_SEGMENT_REGEX = /[^/]+$/; - const EXPORTED_NAME_REGEX = /^export \w+ (\w+) /gm; - let contents = - "/** This file is generated by gen-protobufs.mjs. Do not edit. */\n\n"; - /** - * Builds the `src/proto/index.ts` file to re-export generated code. - * A prefix is added to the exported names to avoid name collisions. - * The prefix is the names of the directories in `proto` leading up - * to the directory of the exported code, concatenated in PascalCase. - * For example, if the exported code is in `proto/foo/bar/goo.ts`, the - * prefix will be `FooBar`. - * @param {string} dir - */ - function generateIndexExports(dir) { - const files = globSync(join(dir, "*")); - if (files.length === 0) { - return; - } - const prefixName = dir - .replace(PROTOBUFS_DIR + "/", "") - .split("/") - .map((name) => - // convert all names to PascalCase - name.split(/[-_]/).map(capitalize).join("") - ) - .join(""); - for (const file of files) { - const fileName = file.match(LAST_SEGMENT_REGEX)?.[0]; - if (!fileName) { - console.error("Could not find name for", file); - continue; - } - if (!fileName.endsWith(".ts")) { - continue; - } - const code = readFileSync(file, "utf8"); - contents += `export {\n`; - for (const match of code.matchAll(EXPORTED_NAME_REGEX)) { - const exportedName = match[1]; - contents += ` ${exportedName} as ${prefixName + exportedName},\n`; - } - const exportedFile = file - .replace(PROTOBUFS_DIR + "/", "") - .replace(".ts", ".js"); - contents += `} from "./${exportedFile}";\n`; - } - for (const file of files) { - generateIndexExports(file); - } - } - generateIndexExports(PROTOBUFS_DIR); - writeFileSync(join(PROTOBUFS_DIR, "index.ts"), contents); -} - -console.log("Cleaning up..."); -{ - rmSync(TMP_DIR, { recursive: true, force: true }); -} - -console.log("Proto generation completed successfully!"); diff --git a/libs/es-client/scripts/gen-registry.mjs b/libs/es-client/scripts/gen-registry.mjs deleted file mode 100644 index 789a0af..0000000 --- a/libs/es-client/scripts/gen-registry.mjs +++ /dev/null @@ -1,53 +0,0 @@ -import { writeFileSync } from "fs"; -import { compile } from "json-schema-to-typescript"; -import { dirname, join } from "path"; -import { fileURLToPath } from "url"; - -const __dirname = dirname(fileURLToPath(import.meta.url)); - -async function genChainRegistryChainInfo() { - const tsName = "ChainRegistryChainInfo"; - const tsFile = tsName + ".ts"; - - console.log("Retrieving JSON schema..."); - const res = await fetch( - "https://raw.githubusercontent.com/cosmos/chain-registry/master/chain.schema.json" - ); - const schema = await res.json(); - schema.title = tsName; - - console.log("Compiling JSON schema to TypeScript..."); - const types = await compile(schema, tsName, { - // See: https://github.com/bcherny/json-schema-to-typescript?tab=readme-ov-file#options - strictIndexSignatures: true, - }); - - const target = join(__dirname, "..", "src", "registry", "types", tsFile); - writeFileSync(target, types); - console.log("Wrote types to", target); -} - -async function genChainRegistryAssetList() { - const tsName = "ChainRegistryAssetList"; - const tsFile = tsName + ".ts"; - - console.log("Retrieving JSON schema..."); - const res = await fetch( - "https://raw.githubusercontent.com/cosmos/chain-registry/master/assetlist.schema.json" - ); - const schema = await res.json(); - schema.title = tsName; - - console.log("Compiling JSON schema to TypeScript..."); - const types = await compile(schema, tsName, { - // See: https://github.com/bcherny/json-schema-to-typescript?tab=readme-ov-file#options - strictIndexSignatures: true, - }); - - const target = join(__dirname, "..", "src", "registry", "types", tsFile); - writeFileSync(target, types); - console.log("Wrote types to", target); -} - -await genChainRegistryChainInfo(); -await genChainRegistryAssetList(); diff --git a/libs/es-client/scripts/protoc-gen-cosmes.mjs b/libs/es-client/scripts/protoc-gen-cosmes.mjs deleted file mode 100755 index cc6861f..0000000 --- a/libs/es-client/scripts/protoc-gen-cosmes.mjs +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node -// @ts-check - -/** - * This is a custom plugin for `buf` that generates TS files from the services - * defined in the proto files, and is referred to by the root `buf.gen.yaml`. - * Files generated using this plugin contains the `_@onsonr/es` suffix. - * - * Do not convert this to a TS file as it runs 4x slower! - */ - -import { createEcmaScriptPlugin, runNodeJs } from "@bufbuild/protoplugin"; -import { - literalString, - localName, - makeJsDoc, -} from "@bufbuild/protoplugin/ecmascript"; - -export function generateTs(schema) { - for (const protoFile of schema.files) { - const file = schema.generateFile(protoFile.name + "_@onsonr/es.ts"); - file.preamble(protoFile); - for (const service of protoFile.services) { - generateService(schema, file, service); - } - } -} - -function generateService(schema, f, service) { - f.print("const TYPE_NAME = ", literalString(service.typeName), ";"); - f.print(""); - for (const method of service.methods) { - f.print(makeJsDoc(method)); - f.print("export const ", localName(service), method.name, "Service = {"); - f.print(" typeName: TYPE_NAME,"); - f.print(" method: ", literalString(method.name), ","); - f.print(" Request: ", method.input, ","); - f.print(" Response: ", method.output, ","); - f.print("} as const;"); - f.print(""); - } -} - -runNodeJs( - createEcmaScriptPlugin({ - name: "protoc-gen-@onsonr/es", - version: "v0.0.1", - generateTs, - }) -); diff --git a/libs/es-client/src/client/apis/broadcastTx.ts b/libs/es-client/src/client/apis/broadcastTx.ts deleted file mode 100644 index 9e6d5d3..0000000 --- a/libs/es-client/src/client/apis/broadcastTx.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Prettify } from "../../typeutils/prettify"; -import { RpcClient } from "../clients/RpcClient"; -import { ToSignedProtoParams, Tx } from "../models/Tx"; - -export type BroadcastTxParams = Prettify< - ToSignedProtoParams & { - tx: Tx; - } ->; - -/** - * Broadcasts a tx to the network and returns the tx hash if successful. - */ -export async function broadcastTx( - endpoint: string, - { tx, ...params }: BroadcastTxParams -) { - return RpcClient.broadcastTx(endpoint, tx.toSignedProto(params)); -} diff --git a/libs/es-client/src/client/apis/getAccount.ts b/libs/es-client/src/client/apis/getAccount.ts deleted file mode 100644 index 8b93201..0000000 --- a/libs/es-client/src/client/apis/getAccount.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { CosmosAuthV1beta1QueryAccountService as QueryAccountService } from "@onsonr/es/protobufs"; - -import { RpcClient } from "../clients/RpcClient"; - -export type GetAccountParams = { - address: string; -}; - -export async function getAccount(endpoint: string, params: GetAccountParams) { - const { account } = await RpcClient.query( - endpoint, - QueryAccountService, - params - ); - if (!account) { - throw new Error("Account not found"); - } - return account; -} diff --git a/libs/es-client/src/client/apis/getCw20Balance.ts b/libs/es-client/src/client/apis/getCw20Balance.ts deleted file mode 100644 index 524789f..0000000 --- a/libs/es-client/src/client/apis/getCw20Balance.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { queryContract } from "./queryContract"; - -export type GetCw20BalanceParams = { - address: string; - token: string; -}; - -type Response = { - balance: string; -}; - -export async function getCw20Balance( - endpoint: string, - { address, token }: GetCw20BalanceParams -): Promise { - try { - const { balance } = await queryContract(endpoint, { - address: token, - query: { - balance: { - address: address, - }, - }, - }); - return BigInt(balance); - } catch (err) { - console.error(err); - return 0n; - } -} diff --git a/libs/es-client/src/client/apis/getNativeBalances.ts b/libs/es-client/src/client/apis/getNativeBalances.ts deleted file mode 100644 index c3cb722..0000000 --- a/libs/es-client/src/client/apis/getNativeBalances.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { CosmosBankV1beta1QueryAllBalancesService as QueryAllBalancesService } from "@onsonr/es/protobufs"; - -import { RpcClient } from "../clients/RpcClient"; - -export type GetNativeBalancesParams = { - address: string; -}; - -export async function getNativeBalances( - endpoint: string, - params: GetNativeBalancesParams -) { - // TODO: handle pagination - const { balances } = await RpcClient.query( - endpoint, - QueryAllBalancesService, - params - ); - return balances; -} diff --git a/libs/es-client/src/client/apis/getTx.ts b/libs/es-client/src/client/apis/getTx.ts deleted file mode 100644 index 86b1920..0000000 --- a/libs/es-client/src/client/apis/getTx.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { - CosmosTxV1beta1GetTxResponse as GetTxResponse, - CosmosTxV1beta1ServiceGetTxService as GetTxService, -} from "@onsonr/es/protobufs"; - -import { RpcClient } from "../clients/RpcClient"; - -export type GetTxParams = { - hash: string; -}; - -/** - * Returns the tx matching the given hash. Throws if the tx is not found. - */ -export async function getTx(endpoint: string, params: GetTxParams) { - const res = await RpcClient.query(endpoint, GetTxService, params); - if (!res.tx || !res.txResponse) { - throw new Error("Tx not found"); - } - return res as Required; -} diff --git a/libs/es-client/src/client/apis/pollTx.ts b/libs/es-client/src/client/apis/pollTx.ts deleted file mode 100644 index 541b3d8..0000000 --- a/libs/es-client/src/client/apis/pollTx.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { wait } from "../utils/wait"; -import { getTx } from "./getTx"; - -export type PollTxParams = { - hash: string; - intervalSeconds?: number; - maxAttempts?: number; -}; - -/** - * Polls for the tx matching the given `hash`, with a minimum interval of - * `intervalSeconds`. Throws if the tx is not found after the given number - * of `maxAttempts`. - */ -export async function pollTx( - endpoint: string, - { intervalSeconds = 2, maxAttempts = 64, ...getTxParams }: PollTxParams -) { - const intervalMillis = intervalSeconds * 1000; - for (let i = 0; i < maxAttempts; i++) { - try { - return await getTx(endpoint, getTxParams); - } catch (err) { - await wait(intervalMillis); - } - } - throw new Error("Tx not found"); -} diff --git a/libs/es-client/src/client/apis/queryContract.ts b/libs/es-client/src/client/apis/queryContract.ts deleted file mode 100644 index b4813bf..0000000 --- a/libs/es-client/src/client/apis/queryContract.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { JsonValue } from "@bufbuild/protobuf"; -import { utf8 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1QuerySmartContractStateService as QuerySmartContractStateService } from "@onsonr/es/protobufs"; - -import { RpcClient } from "../clients/RpcClient"; - -export type QueryContractParams = { - address: string; - query: JsonValue; -}; - -/** - * Queries the contract at `address` with the given `query` JSON message, - * and returns the parsed JSON response. - */ -export async function queryContract( - endpoint: string, - { address, query }: QueryContractParams -): Promise { - const { data } = await RpcClient.query( - endpoint, - QuerySmartContractStateService, - { - address, - queryData: utf8.decode(JSON.stringify(query)), - } - ); - return JSON.parse(utf8.encode(data)); -} diff --git a/libs/es-client/src/client/apis/simulateAstroportSinglePoolSwap.ts b/libs/es-client/src/client/apis/simulateAstroportSinglePoolSwap.ts deleted file mode 100644 index 9ca4169..0000000 --- a/libs/es-client/src/client/apis/simulateAstroportSinglePoolSwap.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { queryContract } from "./queryContract"; - -export type SimulateAstroportSinglePoolSwapParams = { - poolId: string; - fromAsset: string; - fromAmount: bigint; - isCW20?: boolean | undefined; -}; - -type Response = { - return_amount: string; - spread_amount: string; - commission_amount: string; -}; - -/** - * Simulates the amount of assets that would be received by swapping - * `fromAmount` amount of `fromAsset` assets via the `poolId` pool. - * If `fromAsset` is a CW20 token, `isCW20` must be set to `true`. - */ -export async function simulateAstroportSinglePoolSwap( - endpoint: string, - { - poolId, - fromAsset, - fromAmount, - isCW20, - }: SimulateAstroportSinglePoolSwapParams -): Promise { - try { - const { return_amount } = await queryContract(endpoint, { - address: poolId, - query: { - simulation: { - offer_asset: { - info: isCW20 - ? { token: { contract_addr: fromAsset } } - : { native_token: { denom: fromAsset } }, - amount: fromAmount.toString(), - }, - }, - }, - }); - return BigInt(return_amount); - } catch (err) { - console.error(err); - return 0n; - } -} diff --git a/libs/es-client/src/client/apis/simulateKujiraSinglePoolSwap.ts b/libs/es-client/src/client/apis/simulateKujiraSinglePoolSwap.ts deleted file mode 100644 index 6e5c6ff..0000000 --- a/libs/es-client/src/client/apis/simulateKujiraSinglePoolSwap.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { queryContract } from "./queryContract"; - -export type SimulateKujiraSinglePoolSwapParams = { - poolId: string; - fromAsset: string; - fromAmount: bigint; -}; - -type Response = { - return_amount: string; - spread_amount: string; - commission_amount: string; -}; - -/** - * Simulates the amount of assets that would be received by swapping - * `fromAmount` amount of `fromAsset` assets via the `poolId` pool. - */ -export async function simulateKujiraSinglePoolSwap( - endpoint: string, - { poolId, fromAsset, fromAmount }: SimulateKujiraSinglePoolSwapParams -): Promise { - try { - const { return_amount } = await queryContract(endpoint, { - address: poolId, - query: { - simulation: { - offer_asset: { - info: { - native_token: { - denom: fromAsset, - }, - }, - amount: fromAmount.toString(), - }, - }, - }, - }); - return BigInt(return_amount); - } catch (err) { - console.error(err); - return 0n; - } -} diff --git a/libs/es-client/src/client/apis/simulateTx.ts b/libs/es-client/src/client/apis/simulateTx.ts deleted file mode 100644 index 301009a..0000000 --- a/libs/es-client/src/client/apis/simulateTx.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { CosmosTxV1beta1ServiceSimulateService as SimulateService } from "@onsonr/es/protobufs"; - -import { Prettify } from "../../typeutils/prettify"; -import { RpcClient } from "../clients/RpcClient"; -import { ToUnsignedProtoParams, Tx } from "../models/Tx"; - -export type SimulateTxParams = Prettify< - ToUnsignedProtoParams & { - tx: Tx; - } ->; - -/** - * Simulates a tx for the purpose of estimating gas fees. - */ -export async function simulateTx( - endpoint: string, - { tx, ...params }: SimulateTxParams -) { - return RpcClient.query(endpoint, SimulateService, { - txBytes: tx.toUnsignedProto(params).toBinary(), - }); -} diff --git a/libs/es-client/src/client/clients/FetchClient.ts b/libs/es-client/src/client/clients/FetchClient.ts deleted file mode 100644 index 24bd1ed..0000000 --- a/libs/es-client/src/client/clients/FetchClient.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { JsonValue } from "@bufbuild/protobuf"; - -/** - * A simple and minimal wrapper around the native `fetch` API. - */ -export class FetchClient { - /** - * Performs a GET request to the given `endpoint`, and returns the - * JSON response. - */ - public static async get( - endpoint: string, - searchParams?: Record | undefined - ): Promise { - const url = new URL(endpoint); - url.search = new URLSearchParams(searchParams).toString(); - const res = await fetch(url, { method: "GET" }); - return res.json(); - } - - /** - * Performs a POST request to the given `endpoint`, and returns the - * JSON response. - */ - public static async post(endpoint: string, body: JsonValue): Promise { - const res = await fetch(endpoint, { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify(body), - }); - return res.json(); - } -} diff --git a/libs/es-client/src/client/clients/RpcClient.ts b/libs/es-client/src/client/clients/RpcClient.ts deleted file mode 100644 index e02a96b..0000000 --- a/libs/es-client/src/client/clients/RpcClient.ts +++ /dev/null @@ -1,210 +0,0 @@ -import { JsonValue, Message, PartialMessage } from "@bufbuild/protobuf"; -import { base16, base64 } from "@onsonr/es/codec"; -import { CosmosTxV1beta1TxRaw as TxRaw } from "@onsonr/es/protobufs"; - -import { FetchClient } from "./FetchClient"; - -type ErrorResponse = { - id: number; - jsonrpc: string; - error: { - code: number; - message: string; - data: string; - }; - result: never; -}; -type SuccessResponse = { - id: number; - jsonrpc: string; - result: T; - error: never; -}; -type Response = SuccessResponse | ErrorResponse; - -type QueryResult = { - response: { - code: number; - log: string; - info: string; - index: string; - key: string | null; - value: string | null; - proofOps: string[] | null; - height: string; - codespace: string; - }; -}; -type QueryService, U extends Message> = { - typeName: string; - method: string; - Request: new (msg: PartialMessage) => T; - Response: { fromBinary: (bytes: Uint8Array) => U }; -}; - -type BroadcastTxResult = { - code: number; - codespace: string; - data: string; - hash: string; - log: string; -}; - -/** - * Wraps the request message with an optional `height` field. - */ -type RequestMessage> = T extends { - height: bigint | string | number; -} - ? PartialMessage - : PartialMessage & { - /** - * The block height at which the query should be executed. Providing a height - * that is outside the range of the full node will result in an error. Leave - * this field empty to default to the latest block. - */ - height?: number | undefined; - }; - -export class RpcClient { - private static async doRequest( - endpoint: string, - method: string, - params: JsonValue - ) { - const { result, error } = await FetchClient.post>(endpoint, { - id: Date.now(), - jsonrpc: "2.0", - method, - params, - }); - if (error != null) { - throw new Error(error.data); - } - return result; - } - - /** - * Posts an ABCI query to the RPC `endpoint`. If successful, returns the response, - * otherwise throws an error. - */ - public static async query, U extends Message>( - endpoint: string, - { typeName, method, Request, Response }: QueryService, - requestMsg: RequestMessage - ): Promise { - const { response } = await this.doRequest( - endpoint, - "abci_query", - { - path: `/${typeName}/${method}`, - data: base16.encode(new Request(requestMsg).toBinary()), - ...(requestMsg.height ? { height: requestMsg.height.toString() } : {}), - } - ); - const { log, value } = response; - if (!value) { - throw new Error(log); - } - return Response.fromBinary(base64.decode(value)); - } - - /** - * Posts a `broadcast_tx_sync` request to the RPC `endpoint`. If successful, - * returns the tx hash, otherwise throws an error. - */ - public static async broadcastTx( - endpoint: string, - txRaw: TxRaw - ): Promise { - const { code, log, hash } = await this.doRequest( - endpoint, - "broadcast_tx_sync", - { - tx: base64.encode(txRaw.toBinary()), - } - ); - if (code !== 0) { - throw new Error(log); - } - return hash; - } - - /** - * Creates a new ABCI batch query. - */ - public static newBatchQuery(endpoint: string): BatchQuery { - return new BatchQuery(endpoint); - } -} - -class BatchQuery { - private readonly endpoint: string; - private readonly queries: { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - queryService: QueryService; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - requestMsg: RequestMessage; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - callback: (err: Error | null, response: any) => unknown; - }[] = []; - - constructor(endpoint: string) { - this.endpoint = endpoint; - } - - /** - * Adds an `abci_query` to this query batch. - * - * @param callback An error-first callback function for the response of the query. - * If `err` is not `null`, `response` will be `null` and should not be used. - */ - public add, U extends Message>( - queryService: QueryService, - requestMsg: RequestMessage, - callback: (err: Error | null, response: U) => unknown - ) { - this.queries.push({ queryService, requestMsg, callback }); - return this; - } - - /** - * Executes the batched query. - */ - public async send() { - if (this.queries.length === 0) { - return; - } - const payload = this.queries.map(({ queryService, requestMsg }, idx) => ({ - id: idx, - jsonrpc: "2.0", - method: "abci_query", - params: { - path: `/${queryService.typeName}/${queryService.method}`, - data: base16.encode(new queryService.Request(requestMsg).toBinary()), - ...(requestMsg.height ? { height: requestMsg.height.toString() } : {}), - }, - })); - const res = await FetchClient.post< - // Array is returned if and only if the payload has more than one query - Response[] | Response - >(this.endpoint, payload); - const results = Array.isArray(res) ? res : [res]; - for (const { id, result, error } of results) { - const { queryService, callback: handler } = this.queries[id]; - if (error != null) { - handler(new Error(error.data), null); - continue; - } - const { log, value } = result.response; - if (!value) { - handler(new Error(log), null); - continue; - } - const responseMsg = queryService.Response.fromBinary( - base64.decode(value) - ); - handler(null, responseMsg); - } - } -} diff --git a/libs/es-client/src/client/index.ts b/libs/es-client/src/client/index.ts deleted file mode 100644 index 72f0acd..0000000 --- a/libs/es-client/src/client/index.ts +++ /dev/null @@ -1,47 +0,0 @@ -export { broadcastTx, type BroadcastTxParams } from "./apis/broadcastTx"; -export { getAccount, type GetAccountParams } from "./apis/getAccount"; -export { - getCw20Balance, - type GetCw20BalanceParams, -} from "./apis/getCw20Balance"; -export { - getNativeBalances, - type GetNativeBalancesParams, -} from "./apis/getNativeBalances"; -export { getTx, type GetTxParams } from "./apis/getTx"; -export { pollTx, type PollTxParams } from "./apis/pollTx"; -export { queryContract, type QueryContractParams } from "./apis/queryContract"; -export { - simulateAstroportSinglePoolSwap, - type SimulateAstroportSinglePoolSwapParams, -} from "./apis/simulateAstroportSinglePoolSwap"; -export { - simulateKujiraSinglePoolSwap, - type SimulateKujiraSinglePoolSwapParams, -} from "./apis/simulateKujiraSinglePoolSwap"; -export { simulateTx, type SimulateTxParams } from "./apis/simulateTx"; -export { RpcClient } from "./clients/RpcClient"; -export { type Adapter } from "./models/Adapter"; -export { MsgExecuteContract } from "./models/MsgExecuteContract"; -export { MsgInstantiateContract } from "./models/MsgInstantiateContract"; -export { MsgStoreCode } from "./models/MsgStoreCode"; -export { MsgMigrateContract } from "./models/MsgMigrateContract"; -export { MsgIbcTransfer } from "./models/MsgIbcTransfer"; -export { MsgSend } from "./models/MsgSend"; -export { MsgDelegate } from "./models/MsgDelegate"; -export { MsgUndelegate } from "./models/MsgUndelegate"; -export { MsgBeginRedelegate } from "./models/MsgBeginRedelegate"; -export { MsgWithdrawDelegatorRewards } from "./models/MsgWithdrawDelegatorRewards"; -export { MsgWithdrawValidatorCommission } from "./models/MsgWithdrawValidatorCommission"; - -export { Secp256k1PubKey } from "./models/Secp256k1PubKey"; -export { - Tx, - type ToSignDocParams, - type ToSignedProtoParams, - type ToStdSignDocParams, - type ToUnsignedProtoParams, -} from "./models/Tx"; -export { calculateFee } from "./utils/calculateFee"; -export { toAny } from "./utils/toAny"; -export { toBaseAccount } from "./utils/toBaseAccount"; diff --git a/libs/es-client/src/client/models/Adapter.ts b/libs/es-client/src/client/models/Adapter.ts deleted file mode 100644 index 675541b..0000000 --- a/libs/es-client/src/client/models/Adapter.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Message } from "@bufbuild/protobuf"; - -/** - * An adapter to translate between protobuf and amino encodings. - */ -export type Adapter = { - toProto: () => Message; - toAmino: () => { - type: string; - value: Record; - }; -}; diff --git a/libs/es-client/src/client/models/MsgBeginRedelegate.ts b/libs/es-client/src/client/models/MsgBeginRedelegate.ts deleted file mode 100644 index 6eea8f9..0000000 --- a/libs/es-client/src/client/models/MsgBeginRedelegate.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosStakingV1beta1MsgBeginRedelegate as ProtoMsgBeginRedelegate } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgBeginRedelegate implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgBeginRedelegate(this.data); - } - - public toAmino() { - return { - type: "cosmos-sdk/MsgBeginRedelegate", - value: { - delegator_address: this.data.delegatorAddress, - validator_src_address: this.data.validatorSrcAddress, - validator_dst_address: this.data.validatorDstAddress, - amount: this.data.amount, - }, - }; - } -} \ No newline at end of file diff --git a/libs/es-client/src/client/models/MsgDelegate.ts b/libs/es-client/src/client/models/MsgDelegate.ts deleted file mode 100644 index 50be9cf..0000000 --- a/libs/es-client/src/client/models/MsgDelegate.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosStakingV1beta1MsgDelegate as ProtoMsgDelegate } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgDelegate implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgDelegate(this.data); - } - - public toAmino() { - return { - type: "cosmos-sdk/MsgDelegate", - value: { - delegator_address: this.data.delegatorAddress, - validator_address: this.data.validatorAddress, - amount: this.data.amount, - }, - }; - } -} \ No newline at end of file diff --git a/libs/es-client/src/client/models/MsgExecuteContract.ts b/libs/es-client/src/client/models/MsgExecuteContract.ts deleted file mode 100644 index 28df241..0000000 --- a/libs/es-client/src/client/models/MsgExecuteContract.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { utf8 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1MsgExecuteContract as ProtoMsgExecuteContract } from "@onsonr/es/protobufs"; - -import { DeepPrettify, Prettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = Prettify< - DeepPrettify, "msg">> & { - msg: T; - } ->; - -export class MsgExecuteContract implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgExecuteContract({ - ...this.data, - msg: utf8.decode(JSON.stringify(this.data.msg)), - }); - } - - public toAmino() { - return { - type: "wasm/MsgExecuteContract", - value: this.data, - }; - } -} diff --git a/libs/es-client/src/client/models/MsgIbcTransfer.ts b/libs/es-client/src/client/models/MsgIbcTransfer.ts deleted file mode 100644 index 6c490d8..0000000 --- a/libs/es-client/src/client/models/MsgIbcTransfer.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { IbcApplicationsTransferV1MsgTransfer as ProtoMsgIbcTransfer } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgIbcTransfer implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgIbcTransfer(this.data); - } - - public toAmino() { - return { - type: "cosmos-sdk/MsgTransfer", - value: { - source_port: this.data.sourcePort, - source_channel: this.data.sourceChannel, - token: this.data.token, - sender: this.data.sender, - receiver: this.data.receiver, - /** - * Protobuf type is optional, but Amino type is non-optional. - * - * @see https://github.com/cosmos/cosmjs/blob/358260bff71c9d3e7ad6644fcf64dc00325cdfb9/packages/stargate/src/modules/ibc/aminomessages.ts#L16-L42 - */ - timeout_height: this.data.timeoutHeight - ? { - revision_number: - this.data.timeoutHeight.revisionNumber.toString(), - revision_height: - this.data.timeoutHeight.revisionHeight.toString(), - } - : {}, - timeout_timestamp: this.data.timeoutTimestamp.toString(), - memo: this.data.memo, - }, - }; - } -} diff --git a/libs/es-client/src/client/models/MsgInstantiateContract.ts b/libs/es-client/src/client/models/MsgInstantiateContract.ts deleted file mode 100644 index 026429a..0000000 --- a/libs/es-client/src/client/models/MsgInstantiateContract.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { utf8 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1MsgInstantiateContract as ProtoMsgInstantiateContract } from "@onsonr/es/protobufs"; - -import { DeepPrettify, Prettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = Prettify< - DeepPrettify, "msg">> & { - msg: T; - } ->; - -export class MsgInstantiateContract implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgInstantiateContract({ - ...this.data, - msg: utf8.decode(JSON.stringify(this.data.msg)), - }); - } - - public toAmino() { - return { - type: "wasm/MsgInstantiateContract", - value: { - sender: this.data.sender, - admin: this.data.admin, - code_id: this.data.codeId.toString(), - label: this.data.label, - msg: this.data.msg, - funds: this.data.funds, - }, - }; - } -} diff --git a/libs/es-client/src/client/models/MsgMigrateContract.ts b/libs/es-client/src/client/models/MsgMigrateContract.ts deleted file mode 100644 index 6ecb8d7..0000000 --- a/libs/es-client/src/client/models/MsgMigrateContract.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { utf8 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1MsgMigrateContract as ProtoMsgMigrateContract } from "@onsonr/es/protobufs"; - -import { DeepPrettify, Prettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = Prettify< - DeepPrettify, "msg">> & { - msg: T; - } ->; - -export class MsgMigrateContract implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgMigrateContract({ - ...this.data, - msg: utf8.decode(JSON.stringify(this.data.msg)), - }); - } - - public toAmino() { - return { - type: "wasm/MsgMigrateContract", - value: { - sender: this.data.sender, - code_id: this.data.codeId, - contract: this.data.contract, - msg: this.data.msg, - } - }; - } -} diff --git a/libs/es-client/src/client/models/MsgSend.ts b/libs/es-client/src/client/models/MsgSend.ts deleted file mode 100644 index 51798fa..0000000 --- a/libs/es-client/src/client/models/MsgSend.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosBankV1beta1MsgSend as ProtoMsgSend } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgSend implements Adapter { - private readonly data: Data; - private readonly legacy: boolean; - - constructor(data: Data, legacy = false) { - this.data = data; - this.legacy = legacy; - } - - public toProto() { - return new ProtoMsgSend(this.data); - } - - public toAmino() { - return { - type: this.legacy ? "bank/MsgSend" : "cosmos-sdk/MsgSend", - value: { - from_address: this.data.fromAddress, - to_address: this.data.toAddress, - amount: this.data.amount, - }, - }; - } -} diff --git a/libs/es-client/src/client/models/MsgStoreCode.ts b/libs/es-client/src/client/models/MsgStoreCode.ts deleted file mode 100644 index 16e3b96..0000000 --- a/libs/es-client/src/client/models/MsgStoreCode.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { base64 } from "@onsonr/es/codec"; -import { CosmwasmWasmV1MsgStoreCode as ProtoMsgStoreCode } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgStoreCode implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgStoreCode({ - ...this.data, - }); - } - - public toAmino() { - return { - type: "wasm/MsgStoreCode", - value: { - sender: this.data.sender, - wasm_byte_code: base64.encode(this.data.wasmByteCode), - instantiate_permission: this.data.instantiatePermission, - } - }; - } -} diff --git a/libs/es-client/src/client/models/MsgUndelegate.ts b/libs/es-client/src/client/models/MsgUndelegate.ts deleted file mode 100644 index 3f3a6bd..0000000 --- a/libs/es-client/src/client/models/MsgUndelegate.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosStakingV1beta1MsgUndelegate as ProtoMsgUndelegate } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgUndelegate implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgUndelegate(this.data); - } - - public toAmino() { - return { - type: "cosmos-sdk/MsgUndelegate", - value: { - delegator_address: this.data.delegatorAddress, - validator_address: this.data.validatorAddress, - amount: this.data.amount, - }, - }; - } -} \ No newline at end of file diff --git a/libs/es-client/src/client/models/MsgWithdrawDelegatorRewards.ts b/libs/es-client/src/client/models/MsgWithdrawDelegatorRewards.ts deleted file mode 100644 index 01b21fc..0000000 --- a/libs/es-client/src/client/models/MsgWithdrawDelegatorRewards.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosDistributionV1beta1MsgWithdrawDelegatorReward as ProtoMsgWithdrawDelegatorRewards } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgWithdrawDelegatorRewards implements Adapter { - private readonly data: Data; - private readonly isLegacy: boolean; - - constructor(data: Data, isLegacy = false) { - this.data = data; - this.isLegacy = isLegacy; - } - - public toProto() { - return new ProtoMsgWithdrawDelegatorRewards(this.data); - } - - public toAmino() { - return { - type: this.isLegacy - ? "distribution/MsgWithdrawDelegationReward" - : "cosmos-sdk/MsgWithdrawDelegationReward", - value: { - validator_address: this.data.validatorAddress, - delegator_address: this.data.delegatorAddress, - }, - }; - } -} diff --git a/libs/es-client/src/client/models/MsgWithdrawValidatorCommission.ts b/libs/es-client/src/client/models/MsgWithdrawValidatorCommission.ts deleted file mode 100644 index 9f3f6b1..0000000 --- a/libs/es-client/src/client/models/MsgWithdrawValidatorCommission.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { CosmosDistributionV1beta1MsgWithdrawValidatorCommission as ProtoMsgWithdrawValidatorCommission } from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify>; - -export class MsgWithdrawValidatorCommission implements Adapter { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - public toProto() { - return new ProtoMsgWithdrawValidatorCommission(this.data); - } - - public toAmino() { - return { - type: "cosmos-sdk/MsgWithdrawValidatorCommission", - value: { - validator_address: this.data.validatorAddress, - }, - }; - } -} \ No newline at end of file diff --git a/libs/es-client/src/client/models/Secp256k1PubKey.ts b/libs/es-client/src/client/models/Secp256k1PubKey.ts deleted file mode 100644 index 4fe844b..0000000 --- a/libs/es-client/src/client/models/Secp256k1PubKey.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { base64 } from "@onsonr/es/codec"; -import { - EthermintCryptoV1Ethsecp256k1PubKey as ProtoEthermintSecp256k1PubKey, - CosmosCryptoSecp256k1PubKey as ProtoSecp256k1PubKey, -} from "@onsonr/es/protobufs"; - -import { DeepPrettify } from "../../typeutils/prettify"; -import { Adapter } from "./Adapter"; - -type Data = DeepPrettify< - { - chainId?: string | undefined; - } & PlainMessage ->; - -export class Secp256k1PubKey implements Adapter { - private readonly data: Data; - private readonly type: string; - - constructor(data: Data) { - this.data = data; - this.type = data.chainId?.split(/[-_]/, 2).at(0) ?? ""; - } - - public toProto() { - return this.type === "dymension" || this.type === "evmos" - ? new ProtoEthermintSecp256k1PubKey(this.data) - : new ProtoSecp256k1PubKey(this.data); - } - - // TODO: needs to be updated to include injective/dymension support - public toAmino() { - return { - type: "tendermint/PubKeySecp256k1", - value: { - key: base64.encode(this.data.key), - }, - }; - } -} diff --git a/libs/es-client/src/client/models/Tx.ts b/libs/es-client/src/client/models/Tx.ts deleted file mode 100644 index e18613e..0000000 --- a/libs/es-client/src/client/models/Tx.ts +++ /dev/null @@ -1,214 +0,0 @@ -import { Message, PlainMessage } from "@bufbuild/protobuf"; -import { base64 } from "@scure/base"; -import { - CosmosTxV1beta1AuthInfo as ProtoAuthInfo, - CosmosTxV1beta1Fee as ProtoFee, - CosmosTxV1beta1SignDoc as ProtoSignDoc, - CosmosTxSigningV1beta1SignMode as ProtoSignMode, - CosmosTxV1beta1SignerInfo as ProtoSignerInfo, - CosmosTxV1beta1TxBody as ProtoTxBody, - CosmosTxV1beta1TxRaw as ProtoTxRaw, -} from "@onsonr/es/protobufs"; -import { SignDoc, StdSignDoc } from "@onsonr/es/registry"; - -import { toAny } from "../utils/toAny"; -import { Adapter } from "./Adapter"; -import { Secp256k1PubKey } from "./Secp256k1PubKey"; - -type Data = { - chainId: string; - pubKey: Secp256k1PubKey; - msgs: Adapter[]; -}; - -export type ToSignedProtoParams = { - sequence: bigint; - fee: ProtoFee; - signMode: ProtoSignMode; - signature: Uint8Array; - memo?: string | undefined; - timeoutHeight?: bigint | undefined; - extensionOptions?: Message[] | undefined; -}; - -export type ToUnsignedProtoParams = Pick< - ToSignedProtoParams, - "sequence" | "memo" | "timeoutHeight" ->; - -export type ToSignDocParams = { - accountNumber: bigint; - sequence: bigint; - fee: ProtoFee; - memo?: string | undefined; - timeoutHeight?: bigint | undefined; -}; - -export type ToStdSignDocParams = ToSignDocParams; - -export class Tx { - private readonly data: Data; - - constructor(data: Data) { - this.data = data; - } - - /** - * Returns the signed, proto-encoded tx, ready to be broadcasted. To create an - * unsigned tx for the purpose of simulating it, use {@link toUnsignedProto}. - */ - public toSignedProto({ - fee, - sequence, - signMode, - signature, - memo, - timeoutHeight, - extensionOptions, - }: ToSignedProtoParams): ProtoTxRaw { - return new ProtoTxRaw({ - authInfoBytes: new ProtoAuthInfo({ - fee: fee, - signerInfos: [this.getSignerInfo(sequence, signMode)], - }).toBinary(), - bodyBytes: new ProtoTxBody({ - messages: this.data.msgs.map((m) => toAny(m.toProto())), - memo: memo, - timeoutHeight: timeoutHeight, - extensionOptions: extensionOptions?.map(toAny), - }).toBinary(), - signatures: [signature], - }); - } - - /** - * Returns the proto-encoded tx with the sign mode set to `UNSPECIFIED`, useful - * for simulating the tx. To create a signed tx, use {@link toSignedProto}. - */ - public toUnsignedProto(info: ToUnsignedProtoParams): ProtoTxRaw { - return this.toSignedProto({ - ...info, - fee: new ProtoFee(), - signMode: ProtoSignMode.UNSPECIFIED, - signature: new Uint8Array(), - }); - } - - /** - * Combines the given `StdSignDoc` and `signature` and returns the proto-encoded - * tx with sign mode set to `LEGACY_AMINO_JSON`, ready to be broadcasted. - * - * @param signature Must be a base64 encoded string or an `Uint8Array` - */ - public toSignedAmino( - { sequence, fee, memo, timeout_height }: StdSignDoc, - signature: string | Uint8Array - ): ProtoTxRaw { - return this.toSignedProto({ - sequence: BigInt(sequence), - fee: new ProtoFee({ - amount: fee.amount.slice(), - gasLimit: BigInt(fee.gas), - payer: fee.payer, - granter: fee.granter, - }), - signMode: ProtoSignMode.LEGACY_AMINO_JSON, - signature: - typeof signature === "string" ? base64.decode(signature) : signature, - memo: memo, - timeoutHeight: timeout_height ? BigInt(timeout_height) : undefined, - }); - } - - /** - * Combines the given `SignDoc` and `signature` and returns the proto-encoded tx, - * ready to be broadcasted. - * - * @param signature Must be a base64 encoded string or an `Uint8Array` - */ - public toSignedDirect( - { bodyBytes, authInfoBytes }: SignDoc, - signature: string | Uint8Array - ): ProtoTxRaw { - return new ProtoTxRaw({ - authInfoBytes, - bodyBytes, - signatures: [ - typeof signature === "string" ? base64.decode(signature) : signature, - ], - }); - } - - /** - * Returns the unsigned, proto-encoded tx ready to be signed by a wallet. - */ - public toSignDoc({ - accountNumber, - sequence, - fee, - memo, - timeoutHeight, - }: ToSignDocParams): ProtoSignDoc { - return new ProtoSignDoc({ - chainId: this.data.chainId, - accountNumber: accountNumber, - authInfoBytes: new ProtoAuthInfo({ - fee: fee, - signerInfos: [this.getSignerInfo(sequence, ProtoSignMode.DIRECT)], - }).toBinary(), - bodyBytes: new ProtoTxBody({ - messages: this.data.msgs.map((m) => toAny(m.toProto())), - memo: memo, - timeoutHeight: timeoutHeight, - }).toBinary(), - }); - } - - /** - * Returns the unsigned, amino-encoded tx ready to be signed by a wallet. - */ - public toStdSignDoc({ - accountNumber, - sequence, - fee, - memo, - timeoutHeight, - }: ToStdSignDocParams): StdSignDoc { - return { - chain_id: this.data.chainId, - account_number: accountNumber.toString(), - sequence: sequence.toString(), - fee: { - amount: fee.amount, - gas: fee.gasLimit.toString(), - }, - msgs: this.data.msgs.map((m) => m.toAmino()), - memo: memo ?? "", - timeout_height: timeoutHeight?.toString(), - }; - } - - /** - * Returns the signer info. The chain ID is used to determine if the public key - * should be encoded using Injective's custom protobuf. - * - * **Warning**: Injective's chain ID might change, causing potential issues here. - */ - private getSignerInfo( - sequence: bigint, - mode: ProtoSignMode - ): PlainMessage { - return { - publicKey: toAny(this.data.pubKey.toProto()), - sequence: sequence, - modeInfo: { - sum: { - case: "single", - value: { - mode: mode, - }, - }, - }, - }; - } -} diff --git a/libs/es-client/src/client/utils/calculateFee.ts b/libs/es-client/src/client/utils/calculateFee.ts deleted file mode 100644 index e0f0009..0000000 --- a/libs/es-client/src/client/utils/calculateFee.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - CosmosBaseV1beta1Coin as Coin, - CosmosTxV1beta1Fee as Fee, - CosmosBaseAbciV1beta1GasInfo as GasInfo, -} from "@onsonr/es/protobufs"; - -/** - * Estimates the fee for a transaction. For txs which uses more gas, the - * `multiplier` can be decreased (default: `1.4`). - */ -export function calculateFee( - { gasUsed }: GasInfo, - { amount, denom }: Coin, - multiplier = 1.4 -): Fee { - const gasLimit = Number(gasUsed) * multiplier; - return new Fee({ - amount: [ - { - amount: Math.ceil(gasLimit * Number(amount)).toFixed(0), - denom: denom, - }, - ], - gasLimit: BigInt(Math.floor(gasLimit)), - }); -} diff --git a/libs/es-client/src/client/utils/toAny.ts b/libs/es-client/src/client/utils/toAny.ts deleted file mode 100644 index 9ed8e2c..0000000 --- a/libs/es-client/src/client/utils/toAny.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Any, Message } from "@bufbuild/protobuf"; - -export function toAny(msg: Message): Any { - return new Any({ - typeUrl: `/${msg.getType().typeName}`, - value: msg.toBinary(), - }); -} diff --git a/libs/es-client/src/client/utils/toBaseAccount.ts b/libs/es-client/src/client/utils/toBaseAccount.ts deleted file mode 100644 index feff416..0000000 --- a/libs/es-client/src/client/utils/toBaseAccount.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { Any } from "@bufbuild/protobuf"; -import { - CosmosAuthV1beta1BaseAccount as BaseAccount, - CosmosVestingV1beta1BaseVestingAccount as BaseVestingAccount, - CosmosVestingV1beta1ContinuousVestingAccount as ContinuousVestingAccount, - CosmosVestingV1beta1DelayedVestingAccount as DelayedVesting, - EthermintTypesV1EthAccount as EthermintAccount, - CosmosVestingV1beta1PeriodicVestingAccount as PeriodicVestingAccount, -} from "@onsonr/es/protobufs"; - -const ERR_UNKNOWN_ACCOUNT_TYPE = "Unknown account type"; -const ERR_UNABLE_TO_RESOLVE_BASE_ACCOUNT = "Unable to resolve base account"; - -// TODO: add more account types -/** - * Parses an `Any` protobuf message and returns the `BaseAccount`. Throws if unable - * to parse correctly. - */ -export function toBaseAccount({ typeUrl, value }: Any): BaseAccount { - switch (typeUrl.slice(1)) { - case BaseAccount.typeName: { - return BaseAccount.fromBinary(value); - } - case BaseVestingAccount.typeName: { - const { baseAccount } = BaseVestingAccount.fromBinary(value); - if (!baseAccount) { - throw new Error(ERR_UNABLE_TO_RESOLVE_BASE_ACCOUNT); - } - return baseAccount; - } - case ContinuousVestingAccount.typeName: { - const { baseVestingAccount } = ContinuousVestingAccount.fromBinary(value); - if (!baseVestingAccount?.baseAccount) { - throw new Error(ERR_UNABLE_TO_RESOLVE_BASE_ACCOUNT); - } - return baseVestingAccount.baseAccount; - } - case DelayedVesting.typeName: { - const { baseVestingAccount } = DelayedVesting.fromBinary(value); - if (!baseVestingAccount?.baseAccount) { - throw new Error(ERR_UNABLE_TO_RESOLVE_BASE_ACCOUNT); - } - return baseVestingAccount.baseAccount; - } - case PeriodicVestingAccount.typeName: { - const { baseVestingAccount } = PeriodicVestingAccount.fromBinary(value); - if (!baseVestingAccount?.baseAccount) { - throw new Error(ERR_UNABLE_TO_RESOLVE_BASE_ACCOUNT); - } - return baseVestingAccount.baseAccount; - } - case EthermintAccount.typeName: { - const { baseAccount } = EthermintAccount.fromBinary(value); - if (!baseAccount) { - throw new Error(ERR_UNABLE_TO_RESOLVE_BASE_ACCOUNT); - } - return baseAccount; - } - default: { - throw new Error(`${ERR_UNKNOWN_ACCOUNT_TYPE}: ${typeUrl.slice(1)}`); - } - } -} diff --git a/libs/es-client/src/client/utils/wait.ts b/libs/es-client/src/client/utils/wait.ts deleted file mode 100644 index 9b98a39..0000000 --- a/libs/es-client/src/client/utils/wait.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Synchronously waits for the given number of `milliseconds`. - */ -export async function wait(milliseconds: number) { - return new Promise((resolve) => setTimeout(resolve, milliseconds)); -} diff --git a/libs/es-client/src/codec/address.test.ts b/libs/es-client/src/codec/address.test.ts deleted file mode 100644 index 5ed5249..0000000 --- a/libs/es-client/src/codec/address.test.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { resolveBech32Address, translateEthToBech32Address } from "./address"; - -const PUB_KEY_1 = "A6Y9fcWSn5Av/HLHBwthTaVE/vdyRKvsTzi5U7j9bFj5"; // random pub key -const PUB_KEY_2 = "Ag/a1BOl3cdwh67Z8iCbGmAu4WWmBwtuQlQMbDaN385V"; // coinhall.org val pubkey -const PUB_KEY_3 = "AmGjuPKUsuIAuGgJ3xH7KGWlSU9cwVnsesrwWwyYLbMg"; // random pub key - -const ETH_ADDRESS_1 = "0xd6E80d86483C0cF463E03cC95246bDc0FeF6cfbD"; // random eth address - -describe("resolveBech32Address", () => { - it("should resolve stars address correctly", () => { - const translated = resolveBech32Address(PUB_KEY_1, "stars"); - expect(translated).toBe("stars14y420auq56p6xgt78sl8vwz3jxy77r9cuw900r"); - }); - - it("should resolve cosmos address correctly", () => { - const translated = resolveBech32Address(PUB_KEY_1, "cosmos"); - expect(translated).toBe("cosmos14y420auq56p6xgt78sl8vwz3jxy77r9cgjjjyj"); - }); - - it("should resolve terra address correctly", () => { - const translated = resolveBech32Address(PUB_KEY_2, "terra"); - expect(translated).toBe("terra1ge3vqn6cjkk2xkfwpg5ussjwxvahs2f6aytr5j"); - }); - - it("should resolve terravaloper address correctly", () => { - const translated = resolveBech32Address(PUB_KEY_2, "terravaloper"); - expect(translated).toBe( - "terravaloper1ge3vqn6cjkk2xkfwpg5ussjwxvahs2f6at87yp" - ); - }); - - it("should resolve ethsecp256k1 type address correctly", () => { - const translated = resolveBech32Address(PUB_KEY_3, "inj", "ethsecp256k1"); - expect(translated).toBe("inj1ys3hr2a6sn3wwqsmmrk8pgrvk58e8wrn6zn44m"); - }); -}); - -describe("translateEthToBech32Address", () => { - it("should translate eth address correctly", () => { - const translated = translateEthToBech32Address(ETH_ADDRESS_1, "inj"); - expect(translated).toBe("inj16m5qmpjg8sx0gclq8ny4y34acrl0dnaantdev0"); - }); -}); diff --git a/libs/es-client/src/codec/address.ts b/libs/es-client/src/codec/address.ts deleted file mode 100644 index 684296d..0000000 --- a/libs/es-client/src/codec/address.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { ripemd160 } from "@noble/hashes/ripemd160"; -import { sha256 } from "@noble/hashes/sha256"; -import { keccak_256 } from "@noble/hashes/sha3"; -import { ProjectivePoint } from "@noble/secp256k1"; -import { base64, bech32 } from "@scure/base"; - -import { ethhex } from "./ethhex"; - -/** - * Returns the bech32 address from the given `publicKey` and `prefix`. If needed, - * the `type` of the key should be appropriately set. - * - * @param publicKey Must be either a base64 encoded string or a `Uint8Array`. - */ -export function resolveBech32Address( - publicKey: string | Uint8Array, - prefix: string, - type: "secp256k1" | "ed25519" | "ethsecp256k1" = "secp256k1" -): string { - const pubKey = - typeof publicKey === "string" ? base64.decode(publicKey) : publicKey; - const address = - type === "secp256k1" - ? // For cosmos: take the ripemd160 of the sha256 of the public key - ripemd160(sha256(pubKey)) - : type === "ed25519" - ? // For cosmos: take the first 20 bytes of the sha256 of the public key - sha256(pubKey).slice(0, 20) - : // For eth: take the last 20 bytes of the keccak of the uncompressed public key without the first byte - keccak_256( - ProjectivePoint.fromHex(pubKey).toRawBytes(false).slice(1) - ).slice(-20); - return bech32.encode(prefix, bech32.toWords(address)); -} - -/** - * Translates the given ethereum address to a bech32 address. - * @param ethAddress Must be a valid ethereum address (eg. `0x123...DeF`). - */ -export function translateEthToBech32Address( - ethAddress: string, - prefix: string -) { - const bytes = ethhex.decode(ethAddress); - return bech32.encode(prefix, bech32.toWords(bytes)); -} diff --git a/libs/es-client/src/codec/ethhex.ts b/libs/es-client/src/codec/ethhex.ts deleted file mode 100644 index d3a0abb..0000000 --- a/libs/es-client/src/codec/ethhex.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BytesCoder, hex } from "@scure/base"; - -/** - * Convenience wrapper around `hex` that deals with hex strings typically - * seen in Ethereum, where strings start with `0x` and are lower case. - * - * - For `encode`, the resulting string will be lower case - * - For `decode`, the `str` arg can either be lower or upper case - */ -export const ethhex = { - encode: (bytes) => "0x" + hex.encode(bytes), - decode: (str) => hex.decode(str.replace(/^0x/, "").toLowerCase()), -} satisfies BytesCoder; diff --git a/libs/es-client/src/codec/index.ts b/libs/es-client/src/codec/index.ts deleted file mode 100644 index bf79e59..0000000 --- a/libs/es-client/src/codec/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Re-export @scure/base for their codecs -export * from "@scure/base"; - -export { resolveBech32Address, translateEthToBech32Address } from "./address"; -export { ethhex } from "./ethhex"; -export { resolveKeyPair } from "./key"; -export { serialiseSignDoc } from "./serialise"; -export { - hashEthArbitraryMessage, - recoverPubKeyFromEthSignature, - signAmino, - signDirect, -} from "./sign"; -export { verifyADR36, verifyECDSA, verifyEIP191 } from "./verify"; diff --git a/libs/es-client/src/codec/key.test.ts b/libs/es-client/src/codec/key.test.ts deleted file mode 100644 index 584ebc0..0000000 --- a/libs/es-client/src/codec/key.test.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { base64 } from "@scure/base"; -import { describe, expect, it } from "vitest"; - -import { resolveKeyPair } from "./key"; - -// Randomly generated seed phrase -const SEED_PHRASE_1 = - "witness snack faint milk gesture memory exhibit oak require mountain hammer crawl innocent day library drum youth result mutual remove capable hour front connect"; - -describe("resolveKeyPair", () => { - it("should resolve 118 coin type correctly", () => { - const { publicKey, privateKey } = resolveKeyPair(SEED_PHRASE_1); - expect(base64.encode(publicKey)).toBe( - "AijdjMWZdjiXxSj0YCNbJHgnW6EsYwNyB9Yf7Wg5PcmE" - ); - expect(base64.encode(privateKey)).toBe( - "SojKJzJhFNruMSceBq3Imw3qZ+kS4p/6+iEpxdPsNg0=" - ); - }); - - it("should resolve 330 coin type correctly", () => { - const { publicKey, privateKey } = resolveKeyPair(SEED_PHRASE_1, { - coinType: 330, - }); - expect(base64.encode(publicKey)).toBe( - "A5G4nX2MIYCsnEdm40NJx7Bb1Z+oUNbEWWcVMssrgI3n" - ); - expect(base64.encode(privateKey)).toBe( - "kpvZKN+f7oWhVLLLk1pmKOazycgfECinugqQZgKRlXg=" - ); - }); - - it("should resolve provided index correctly", () => { - const { publicKey, privateKey } = resolveKeyPair(SEED_PHRASE_1, { - index: 69, - }); - expect(base64.encode(publicKey)).toBe( - "ArHwuHKnyiuPDbprTpWLVl3ZuomV70yzquzzlunGXlmj" - ); - expect(base64.encode(privateKey)).toBe( - "Fdm+CxL/KnM35bjDx/wg3eZc3tZN2q83I+xcY2wSMwk=" - ); - }); -}); diff --git a/libs/es-client/src/codec/key.ts b/libs/es-client/src/codec/key.ts deleted file mode 100644 index ffb9746..0000000 --- a/libs/es-client/src/codec/key.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { HDKey } from "@scure/bip32"; -import { mnemonicToSeedSync } from "@scure/bip39"; - -/** - * Resolves the given `mnemonic` (aka 12-24 words seed phrase) to its public and - * private key pair. Derivation path uses the default for Cosmos chains - provide - * the optional `opts` to override. - */ -export function resolveKeyPair( - mnemonic: string, - opts?: - | { coinType?: number | undefined; index?: number | undefined } - | undefined -): { - publicKey: Uint8Array; - privateKey: Uint8Array; -} { - const seed = mnemonicToSeedSync(mnemonic); - const { publicKey, privateKey } = HDKey.fromMasterSeed(seed).derive( - `m/44'/${opts?.coinType ?? 118}'/0'/0/${opts?.index ?? 0}` - ); - if (!publicKey || !privateKey) { - throw new Error("invalid mnemonic"); - } - return { - publicKey, - privateKey, - }; -} diff --git a/libs/es-client/src/codec/serialise.test.ts b/libs/es-client/src/codec/serialise.test.ts deleted file mode 100644 index f5720c9..0000000 --- a/libs/es-client/src/codec/serialise.test.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { sortObjectByKey } from "./serialise"; - -describe("sortObjectByKey", () => { - it("should sort keys correctly", () => { - const obj = { - zzz: 1, - aaa: 1, - xxx: null, - bbb: { - ttt: { - ppp: true, - iii: undefined, - lll: "1", - }, - ddd: [4, 8, 3, undefined, 4, 5, 7, 8], - }, - }; - const expected = { - aaa: 1, - bbb: { - ddd: [4, 8, 3, undefined, 4, 5, 7, 8], // arrays are not sorted - ttt: { - iii: undefined, - lll: "1", - ppp: true, - }, - }, - xxx: null, - zzz: 1, - }; - // Before sorting, the stringified versions of the objects should NOT be equal - expect(JSON.stringify(obj)).not.toBe(JSON.stringify(expected)); - // After sorting, the stringified versions of the objects should be equal - expect(JSON.stringify(sortObjectByKey(obj))).toBe(JSON.stringify(expected)); - }); -}); diff --git a/libs/es-client/src/codec/serialise.ts b/libs/es-client/src/codec/serialise.ts deleted file mode 100644 index c11bf57..0000000 --- a/libs/es-client/src/codec/serialise.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { utf8 } from "@scure/base"; -import { StdSignDoc } from "@onsonr/es/registry"; - -/** - * Escapes <,>,& in string. - * Golang's json marshaller escapes <,>,& by default. - * However, because JS doesn't do that by default, to match the sign doc with cosmos-sdk, - * we should escape <,>,& in string manually. - * @param str - */ -function escapeHtml(str: string): string { - return str - .replace(//g, "\\u003e") - .replace(/&/g, "\\u0026"); -} - -export function sortObjectByKey(obj: T): T { - if (typeof obj !== "object" || obj == null) { - return obj; - } - if (Array.isArray(obj)) { - return obj.map(sortObjectByKey) as T; - } - const sortedKeys = Object.keys(obj).sort(); - const result: Record = {}; - sortedKeys.forEach((key) => { - result[key] = sortObjectByKey((obj as Record)[key]); - }); - return result as T; -} - -/** - * Serialises the given sign doc to a `Uint8Array` in a deterministic manner. - */ -export function serialiseSignDoc(doc: StdSignDoc): Uint8Array { - return utf8.decode(escapeHtml(JSON.stringify(sortObjectByKey(doc)))); -} diff --git a/libs/es-client/src/codec/sign.test.ts b/libs/es-client/src/codec/sign.test.ts deleted file mode 100644 index be54e6a..0000000 --- a/libs/es-client/src/codec/sign.test.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { StdSignDoc } from "@keplr-wallet/types"; -import { base16, base64, utf8 } from "@scure/base"; -import { describe, expect, it } from "vitest"; - -import { ethhex } from "./ethhex"; -import { - hashEthArbitraryMessage, - recoverPubKeyFromEthSignature, - signAmino, -} from "./sign"; - -describe("signAmino", () => { - it("should sign Injective txs correctly", () => { - const stdSignDoc: StdSignDoc = { - chain_id: "", - account_number: "0", - sequence: "0", - fee: { - gas: "0", - amount: [], - }, - msgs: [ - { - type: "sign/MsgSignData", - value: { - signer: "inj1l8w4vvmhcku28ryntpeazm37umshetzzl2gc33", - data: base64.encode( - utf8.decode( - "Hi from CosmeES! This is a test message just to prove that the wallet is working." - ) - ), - }, - }, - ], - memo: "", - }; - const privKey = base64.decode( - "o5di+2p2NdLgRYLtBIhJl9gsB9FWll8wKBaep3CmbI0=" - ); - const expected = // Signature taken from keplr signArbitrary - "qrkZpuo1jpfXgbF3TtBtdR7DynE1nV3xd//bsGXm2FkS08waXeiJJ+FAvdtt9hvStyP/wGae07hxnyYPHEw+Uw=="; - const actual = base64.encode( - signAmino(stdSignDoc, privKey, "ethsecp256k1") - ); - expect(actual).toStrictEqual(expected); - }); -}); - -describe("hashEthArbitraryMessage", () => { - it("should hash correctly", () => { - const msg = utf8.decode("Hello World!"); - const expected = hashEthArbitraryMessage(msg); - const actual = ethhex.decode( - "0xec3608877ecbf8084c29896b7eab2a368b2b3c8d003288584d145613dfa4706c" - ); - expect(actual).toStrictEqual(expected); - }); -}); - -describe("recoverPubKeyFromEthSignature", () => { - it("should recover public key correctly from a personal_sign signature", () => { - const message = utf8.decode("Hello World"); - const signature = ethhex.decode( - "0x63da4222cbcc36f43b22cbe417aa78963c29d088f7db3c9c6d06417dc34cf2df2dc6ffe9a5c9072a12a16a71c93bebf42bf388357aff81190d7dce166e4fa7ad1c" - ); - const expected = base16.decode( - "03f73842e6959e5b79f7979f81016e1e4f4d9481a7351a492ddb0807d98bb31f19".toUpperCase() - ); - const actual = recoverPubKeyFromEthSignature(message, signature); - expect(expected).toStrictEqual(actual); - }); -}); diff --git a/libs/es-client/src/codec/sign.ts b/libs/es-client/src/codec/sign.ts deleted file mode 100644 index c10c32c..0000000 --- a/libs/es-client/src/codec/sign.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { hmac } from "@noble/hashes/hmac"; -import { sha256 } from "@noble/hashes/sha256"; -import { keccak_256 } from "@noble/hashes/sha3"; -import * as secp256k1 from "@noble/secp256k1"; -import { utf8 } from "@scure/base"; -import { CosmosTxV1beta1SignDoc as SignDoc } from "@onsonr/es/protobufs"; -import { StdSignDoc } from "@onsonr/es/registry"; - -import { serialiseSignDoc } from "./serialise"; - -function sign( - bytes: Uint8Array, - privateKey: Uint8Array, - type: "secp256k1" | "ethsecp256k1" -): Uint8Array { - // Required polyfills for secp256k1 that must be called before any sign ops. - // See: https://github.com/paulmillr/noble-secp256k1?tab=readme-ov-file#usage - secp256k1.etc.hmacSha256Sync = (k, ...m) => - hmac(sha256, k, secp256k1.etc.concatBytes(...m)); - const hash = type === "secp256k1" ? sha256(bytes) : keccak_256(bytes); - return secp256k1.sign(hash, privateKey).toCompactRawBytes(); -} - -/** - * Signs the given amino-encoded `stdSignDoc` with the given `privateKey` using - * secp256k1, and returns the signature bytes. For Injective, the `type` param - * must be set to `ethsecp256k1`. - */ -export function signAmino( - stdSignDoc: StdSignDoc, - privateKey: Uint8Array, - type: "secp256k1" | "ethsecp256k1" = "secp256k1" -): Uint8Array { - return sign(serialiseSignDoc(stdSignDoc), privateKey, type); -} - -/** - * Signs the given proto-encoded `signDoc` with the given `privateKey` using - * secp256k1, and returns the signature bytes. For Injective, the `type` param - * must be set to `ethsecp256k1`. - */ -export function signDirect( - signDoc: SignDoc, - privateKey: Uint8Array, - type: "secp256k1" | "ethsecp256k1" = "secp256k1" -): Uint8Array { - return sign(signDoc.toBinary(), privateKey, type); -} - -/** - * Hashes and returns the digest of the given EIP191 `message` bytes. - */ -export function hashEthArbitraryMessage(message: Uint8Array): Uint8Array { - return keccak_256( - Uint8Array.from([ - ...utf8.decode("\x19Ethereum Signed Message:\n"), - ...utf8.decode(message.length.toString()), - ...message, - ]) - ); -} - -/** - * Recovers and returns the secp256k1 public key of the signer given the arbitrary - * `message` and `signature` that was signed using EIP191. - */ -export function recoverPubKeyFromEthSignature( - message: Uint8Array, - signature: Uint8Array -): Uint8Array { - if (signature.length !== 65) { - throw new Error("Invalid signature"); - } - const r = signature.slice(0, 32); - const s = signature.slice(32, 64); - const v = signature[64]; - // Adapted from https://github.com/ethers-io/ethers.js/blob/6017d3d39a4d428793bddae33d82fd814cacd878/src.ts/crypto/signature.ts#L255-L265 - const yParity = v <= 1 ? v : (v + 1) % 2; - const secpSignature = secp256k1.Signature.fromCompact( - Uint8Array.from([...r, ...s]) - ).addRecoveryBit(yParity); - const digest = hashEthArbitraryMessage(message); - return secpSignature.recoverPublicKey(digest).toRawBytes(true); -} diff --git a/libs/es-client/src/codec/verify.test.ts b/libs/es-client/src/codec/verify.test.ts deleted file mode 100644 index 7e65808..0000000 --- a/libs/es-client/src/codec/verify.test.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { base64, utf8 } from "@scure/base"; -import { describe, expect, it } from "vitest"; - -import { verifyADR36, verifyECDSA, verifyEIP191 } from "./verify"; - -const DATA = utf8.decode( - "Hi from CosmeES! This is a test message just to prove that the wallet is working." -); -// Generated using coin type "330" and seed phrase "poverty flat amazing draw goose clay sorry nothing erase switch law intact only invest find memory what weasel fan connect tilt detect trap viable" -const VALID_PUBKEY_1 = base64.decode( - "Ai7ZXTtRWFte/tX7Z6MlKWVd9XA49p3cDNqd61RuKTdT" -); -// Generated using coin type "118" and seed phrase "poverty flat amazing draw goose clay sorry nothing erase switch law intact only invest find memory what weasel fan connect tilt detect trap viable" -const VALID_PUBKEY_2 = base64.decode( - "A8i9vMNUGcTtUgpbmiZqcFtsIrPZ6n8ZYN4/PVRlQvGr" -); -// Generated using coin type "60" and seed phrase "poverty flat amazing draw goose clay sorry nothing erase switch law intact only invest find memory what weasel fan connect tilt detect trap viable" -const VALID_PUBKEY_3 = base64.decode( - "AmGjuPKUsuIAuGgJ3xH7KGWlSU9cwVnsesrwWwyYLbMg" -); - -describe("verifyECDSA", () => { - it("should verify correctly", () => { - // Signed using Station wallet on Terra - const signature = base64.decode( - "Od87qNoOyXuDOVdLCGTXB6dFN7U0XF9Oegc8KDa+AWwX3jkrDXG++2nlPfsF4VJzlDHsoikPeZpxrB7v9PINnw==" - ); - const res1 = verifyECDSA({ - pubKey: VALID_PUBKEY_1, - data: DATA, - signature, - }); - expect(res1).toBe(true); - - // Different pub key - const res2 = verifyECDSA({ - pubKey: VALID_PUBKEY_2, - data: DATA, - signature, - }); - expect(res2).toBe(false); - }); -}); - -describe("verifyADR36", () => { - it("should verify correctly", () => { - // Signed using Keplr wallet on Osmosis - const signature = base64.decode( - "nvlcV0x0Ge8ADXLSAQGtfMw6EJkOfpmkDxgP7UI79uR8MhnAOp9T+e+ofgW9kY4bEIr0yhyBG+vSVAZRv9uCxA==" - ); - const res1 = verifyADR36({ - bech32Prefix: "osmo", - pubKey: VALID_PUBKEY_2, - data: DATA, - signature, - }); - expect(res1).toBe(true); - - // Different bech32 prefix - const res2 = verifyADR36({ - bech32Prefix: "terra", - pubKey: VALID_PUBKEY_2, - data: DATA, - signature, - }); - expect(res2).toBe(false); - - // Different pub key - const res3 = verifyADR36({ - bech32Prefix: "osmo", - pubKey: VALID_PUBKEY_1, - data: DATA, - signature, - }); - expect(res3).toBe(false); - }); - - it("should verify ethsecp256k1 type signatures correctly", () => { - // Signed using Keplr wallet on Injective - const signature = base64.decode( - "+7PNZm4XxKtpvZA+HqxpMKJgZcqA2w3WVSheLGvzrrIBJZGOTdcpBT7wLUhluY46EokTeRRWUaBDSv2vVoEdfw==" - ); - const res1 = verifyADR36({ - bech32Prefix: "inj", - pubKey: VALID_PUBKEY_3, - data: DATA, - signature, - type: "ethsecp256k1", - }); - expect(res1).toBe(true); - }); -}); - -describe("verifyEIP191", () => { - it("should verify correctly", () => { - // Signed using MetaMask wallet on Injective - const signature = base64.decode( - "MpriWY0Kq7C+/jR3eOfNB5vUQM144tQk7KkzKyYCTFB5QHGLZjzJyeOSr8/ENFES0k+aaEF47Wepk7OHoZuLzxs=" - ); - const res1 = verifyEIP191({ - pubKey: VALID_PUBKEY_3, - data: DATA, - signature, - }); - expect(res1).toBe(true); - - // Different pub key - const res2 = verifyEIP191({ - pubKey: VALID_PUBKEY_2, - data: DATA, - signature, - }); - expect(res2).toBe(false); - }); -}); diff --git a/libs/es-client/src/codec/verify.ts b/libs/es-client/src/codec/verify.ts deleted file mode 100644 index 99ec95e..0000000 --- a/libs/es-client/src/codec/verify.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { sha256 } from "@noble/hashes/sha256"; -import { keccak_256 } from "@noble/hashes/sha3"; -import * as secp256k1 from "@noble/secp256k1"; -import { base64 } from "@scure/base"; - -import { resolveBech32Address } from "./address"; -import { serialiseSignDoc } from "./serialise"; -import { recoverPubKeyFromEthSignature } from "./sign"; - -type VerifyArbitraryParams = { - /** The public key which created the signature */ - pubKey: Uint8Array; - /** The bech32 account address prefix of the signer */ - bech32Prefix: string; - /** The arbitrary bytes that was signed */ - data: Uint8Array; - /** The signature bytes */ - signature: Uint8Array; - /** The type of the signature */ - type?: "secp256k1" | "ethsecp256k1"; -}; - -export function verifyECDSA({ - pubKey, - data, - signature, - type, -}: Omit): boolean { - return secp256k1.verify( - signature, - type === "ethsecp256k1" ? keccak_256(data) : sha256(data), - pubKey - ); -} - -export function verifyADR36({ - pubKey, - bech32Prefix, - data, - signature, - type, -}: VerifyArbitraryParams): boolean { - const msg = serialiseSignDoc({ - chain_id: "", - account_number: "0", - sequence: "0", - fee: { - gas: "0", - amount: [], - }, - msgs: [ - { - type: "sign/MsgSignData", - value: { - signer: resolveBech32Address(pubKey, bech32Prefix, type), - data: base64.encode(data), - }, - }, - ], - memo: "", - }); - return verifyECDSA({ - pubKey, - data: msg, - signature, - type, - }); -} - -export function verifyEIP191({ - pubKey, - data, - signature, -}: Omit): boolean { - const recoveredPubKey = recoverPubKeyFromEthSignature(data, signature); - return ( - pubKey.length === recoveredPubKey.length && - pubKey.every((v, i) => v === recoveredPubKey[i]) - ); -} diff --git a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/btccheckpoint_pb.ts b/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/btccheckpoint_pb.ts deleted file mode 100644 index 8ba5652..0000000 --- a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/btccheckpoint_pb.ts +++ /dev/null @@ -1,531 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btccheckpoint/v1/btccheckpoint.proto (package babylon.btccheckpoint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * BtcStatus is an enum describing the current btc status of the checkpoint - * - * @generated from enum babylon.btccheckpoint.v1.BtcStatus - */ -export enum BtcStatus { - /** - * SUBMITTED Epoch has Submitted btc status if there ever was at least one - * known submission on btc main chain - * - * @generated from enum value: EPOCH_STATUS_SUBMITTED = 0; - */ - EPOCH_STATUS_SUBMITTED = 0, - - /** - * CONFIRMED Epoch has Confirmed btc status if there ever was at least one - * known submission on btc main chain which was k-deep - * - * @generated from enum value: EPOCH_STATUS_CONFIRMED = 1; - */ - EPOCH_STATUS_CONFIRMED = 1, - - /** - * CONFIRMED Epoch has Finalized btc status if there is was at exactly one - * knon submission on btc main chain which is w-deep - * - * @generated from enum value: EPOCH_STATUS_FINALIZED = 2; - */ - EPOCH_STATUS_FINALIZED = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(BtcStatus) -proto3.util.setEnumType(BtcStatus, "babylon.btccheckpoint.v1.BtcStatus", [ - { no: 0, name: "EPOCH_STATUS_SUBMITTED" }, - { no: 1, name: "EPOCH_STATUS_CONFIRMED" }, - { no: 2, name: "EPOCH_STATUS_FINALIZED" }, -]); - -/** - * Consider we have a Merkle tree with following structure: - * ROOT - * / \ - * H1234 H5555 - * / \ \ - * H12 H34 H55 - * / \ / \ / - * H1 H2 H3 H4 H5 - * L1 L2 L3 L4 L5 - * To prove L3 was part of ROOT we need: - * - btc_transaction_index = 2 which in binary is 010 - * (where 0 means going left, 1 means going right in the tree) - * - merkle_nodes we'd have H4 || H12 || H5555 - * By looking at 010 we would know that H4 is a right sibling, - * H12 is left, H5555 is right again. - * - * @generated from message babylon.btccheckpoint.v1.BTCSpvProof - */ -export class BTCSpvProof extends Message { - /** - * Valid bitcoin transaction containing OP_RETURN opcode. - * - * @generated from field: bytes btc_transaction = 1; - */ - btcTransaction = new Uint8Array(0); - - /** - * Index of transaction within the block. Index is needed to determine if - * currently hashed node is left or right. - * - * @generated from field: uint32 btc_transaction_index = 2; - */ - btcTransactionIndex = 0; - - /** - * List of concatenated intermediate merkle tree nodes, without root node and - * leaf node against which we calculate the proof. Each node has 32 byte - * length. Example proof can look like: 32_bytes_of_node1 || 32_bytes_of_node2 - * || 32_bytes_of_node3 so the length of the proof will always be divisible - * by 32. - * - * @generated from field: bytes merkle_nodes = 3; - */ - merkleNodes = new Uint8Array(0); - - /** - * Valid btc header which confirms btc_transaction. - * Should have exactly 80 bytes - * - * @generated from field: bytes confirming_btc_header = 4; - */ - confirmingBtcHeader = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.BTCSpvProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_transaction", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "btc_transaction_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "merkle_nodes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "confirming_btc_header", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCSpvProof { - return new BTCSpvProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCSpvProof { - return new BTCSpvProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCSpvProof { - return new BTCSpvProof().fromJsonString(jsonString, options); - } - - static equals(a: BTCSpvProof | PlainMessage | undefined, b: BTCSpvProof | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCSpvProof, a, b); - } -} - -/** - * Each provided OP_RETURN transaction can be identified by hash of block in - * which transaction was included and transaction index in the block - * - * @generated from message babylon.btccheckpoint.v1.TransactionKey - */ -export class TransactionKey extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: bytes hash = 2; - */ - hash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.TransactionKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TransactionKey { - return new TransactionKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TransactionKey { - return new TransactionKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TransactionKey { - return new TransactionKey().fromJsonString(jsonString, options); - } - - static equals(a: TransactionKey | PlainMessage | undefined, b: TransactionKey | PlainMessage | undefined): boolean { - return proto3.util.equals(TransactionKey, a, b); - } -} - -/** - * Checkpoint can be composed from multiple transactions, so to identify whole - * submission we need list of transaction keys. - * Each submission can generally be identified by this list of (txIdx, - * blockHash) tuples. Note: this could possibly be optimized as if transactions - * were in one block they would have the same block hash and different indexes, - * but each blockhash is only 33 (1 byte for prefix encoding and 32 byte hash), - * so there should be other strong arguments for this optimization - * - * @generated from message babylon.btccheckpoint.v1.SubmissionKey - */ -export class SubmissionKey extends Message { - /** - * @generated from field: repeated babylon.btccheckpoint.v1.TransactionKey key = 1; - */ - key: TransactionKey[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.SubmissionKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "message", T: TransactionKey, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SubmissionKey { - return new SubmissionKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SubmissionKey { - return new SubmissionKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SubmissionKey { - return new SubmissionKey().fromJsonString(jsonString, options); - } - - static equals(a: SubmissionKey | PlainMessage | undefined, b: SubmissionKey | PlainMessage | undefined): boolean { - return proto3.util.equals(SubmissionKey, a, b); - } -} - -/** - * TransactionInfo is the info of a tx on Bitcoin, - * including - * - the position of the tx on BTC blockchain - * - the full tx content - * - the Merkle proof that this tx is on the above position - * - * @generated from message babylon.btccheckpoint.v1.TransactionInfo - */ -export class TransactionInfo extends Message { - /** - * key is the position (txIdx, blockHash) of this tx on BTC blockchain - * Although it is already a part of SubmissionKey, we store it here again - * to make TransactionInfo self-contained. - * For example, storing the key allows TransactionInfo to not relay on - * the fact that TransactionInfo will be ordered in the same order as - * TransactionKeys in SubmissionKey. - * - * @generated from field: babylon.btccheckpoint.v1.TransactionKey key = 1; - */ - key?: TransactionKey; - - /** - * transaction is the full transaction in bytes - * - * @generated from field: bytes transaction = 2; - */ - transaction = new Uint8Array(0); - - /** - * proof is the Merkle proof that this tx is included in the position in `key` - * TODO: maybe it could use here better format as we already processed and - * validated the proof? - * - * @generated from field: bytes proof = 3; - */ - proof = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.TransactionInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "message", T: TransactionKey }, - { no: 2, name: "transaction", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TransactionInfo { - return new TransactionInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TransactionInfo { - return new TransactionInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TransactionInfo { - return new TransactionInfo().fromJsonString(jsonString, options); - } - - static equals(a: TransactionInfo | PlainMessage | undefined, b: TransactionInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(TransactionInfo, a, b); - } -} - -/** - * TODO: Determine if we should keep any block number or depth info. - * On one hand it may be useful to determine if block is stable or not, on - * other depth/block number info, without context (i.e info about chain) is - * pretty useless and blockhash in enough to retrieve is from lightclient - * - * @generated from message babylon.btccheckpoint.v1.SubmissionData - */ -export class SubmissionData extends Message { - /** - * address of the submitter and reporter - * - * @generated from field: babylon.btccheckpoint.v1.CheckpointAddresses vigilante_addresses = 1; - */ - vigilanteAddresses?: CheckpointAddresses; - - /** - * txs_info is the two `TransactionInfo`s corresponding to the submission - * It is used for - * - recovering address of sender of btc transaction to payup the reward. - * - allowing the ZoneConcierge module to prove the checkpoint is submitted to - * BTC - * - * @generated from field: repeated babylon.btccheckpoint.v1.TransactionInfo txs_info = 2; - */ - txsInfo: TransactionInfo[] = []; - - /** - * @generated from field: uint64 epoch = 3; - */ - epoch = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.SubmissionData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vigilante_addresses", kind: "message", T: CheckpointAddresses }, - { no: 2, name: "txs_info", kind: "message", T: TransactionInfo, repeated: true }, - { no: 3, name: "epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SubmissionData { - return new SubmissionData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SubmissionData { - return new SubmissionData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SubmissionData { - return new SubmissionData().fromJsonString(jsonString, options); - } - - static equals(a: SubmissionData | PlainMessage | undefined, b: SubmissionData | PlainMessage | undefined): boolean { - return proto3.util.equals(SubmissionData, a, b); - } -} - -/** - * Data stored in db and indexed by epoch number - * TODO: Add btc blockheight at epoch end, when adding handling of epoching - * callbacks - * - * @generated from message babylon.btccheckpoint.v1.EpochData - */ -export class EpochData extends Message { - /** - * keys is the list of all received checkpoints during this epoch, sorted by - * order of submission. - * - * @generated from field: repeated babylon.btccheckpoint.v1.SubmissionKey keys = 1; - */ - keys: SubmissionKey[] = []; - - /** - * status is the current btc status of the epoch - * - * @generated from field: babylon.btccheckpoint.v1.BtcStatus status = 2; - */ - status = BtcStatus.EPOCH_STATUS_SUBMITTED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.EpochData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "keys", kind: "message", T: SubmissionKey, repeated: true }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(BtcStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EpochData { - return new EpochData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EpochData { - return new EpochData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EpochData { - return new EpochData().fromJsonString(jsonString, options); - } - - static equals(a: EpochData | PlainMessage | undefined, b: EpochData | PlainMessage | undefined): boolean { - return proto3.util.equals(EpochData, a, b); - } -} - -/** - * CheckpointAddresses contains the addresses of the submitter and reporter of a - * given checkpoint - * - * @generated from message babylon.btccheckpoint.v1.CheckpointAddresses - */ -export class CheckpointAddresses extends Message { - /** - * TODO: this could probably be better typed - * submitter is the address of the checkpoint submitter to BTC, extracted from - * the checkpoint itself. - * - * @generated from field: bytes submitter = 1; - */ - submitter = new Uint8Array(0); - - /** - * reporter is the address of the reporter who reported the submissions, - * calculated from submission message MsgInsertBTCSpvProof itself - * - * @generated from field: bytes reporter = 2; - */ - reporter = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.CheckpointAddresses"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "submitter", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "reporter", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CheckpointAddresses { - return new CheckpointAddresses().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CheckpointAddresses { - return new CheckpointAddresses().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CheckpointAddresses { - return new CheckpointAddresses().fromJsonString(jsonString, options); - } - - static equals(a: CheckpointAddresses | PlainMessage | undefined, b: CheckpointAddresses | PlainMessage | undefined): boolean { - return proto3.util.equals(CheckpointAddresses, a, b); - } -} - -/** - * BTCCheckpointInfo contains all data about best submission of checkpoint for - * given epoch. Best submission is the submission which is deeper in btc ledger - * - * @generated from message babylon.btccheckpoint.v1.BTCCheckpointInfo - */ -export class BTCCheckpointInfo extends Message { - /** - * epoch number of this checkpoint - * - * @generated from field: uint64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - /** - * btc height of the best submission of the epoch - * - * @generated from field: uint64 best_submission_btc_block_height = 2; - */ - bestSubmissionBtcBlockHeight = protoInt64.zero; - - /** - * hash of the btc block which determines checkpoint btc block height i.e. - * youngest block of best submission - * - * @generated from field: bytes best_submission_btc_block_hash = 3; - */ - bestSubmissionBtcBlockHash = new Uint8Array(0); - - /** - * the BTC checkpoint transactions of the best submission - * - * @generated from field: repeated babylon.btccheckpoint.v1.TransactionInfo best_submission_transactions = 4; - */ - bestSubmissionTransactions: TransactionInfo[] = []; - - /** - * list of vigilantes' addresses of the best submission - * - * @generated from field: repeated babylon.btccheckpoint.v1.CheckpointAddresses best_submission_vigilante_address_list = 5; - */ - bestSubmissionVigilanteAddressList: CheckpointAddresses[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.BTCCheckpointInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "best_submission_btc_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "best_submission_btc_block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "best_submission_transactions", kind: "message", T: TransactionInfo, repeated: true }, - { no: 5, name: "best_submission_vigilante_address_list", kind: "message", T: CheckpointAddresses, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCCheckpointInfo { - return new BTCCheckpointInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCCheckpointInfo { - return new BTCCheckpointInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCCheckpointInfo { - return new BTCCheckpointInfo().fromJsonString(jsonString, options); - } - - static equals(a: BTCCheckpointInfo | PlainMessage | undefined, b: BTCCheckpointInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCCheckpointInfo, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/genesis_pb.ts deleted file mode 100644 index 70bc7c7..0000000 --- a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/genesis_pb.ts +++ /dev/null @@ -1,48 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btccheckpoint/v1/genesis.proto (package babylon.btccheckpoint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the btccheckpoint module's genesis state. - * - * @generated from message babylon.btccheckpoint.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: babylon.btccheckpoint.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/params_pb.ts b/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/params_pb.ts deleted file mode 100644 index 63a103f..0000000 --- a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/params_pb.ts +++ /dev/null @@ -1,73 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btccheckpoint/v1/params.proto (package babylon.btccheckpoint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message babylon.btccheckpoint.v1.Params - */ -export class Params extends Message { - /** - * btc_confirmation_depth is the confirmation depth in BTC. - * A block is considered irreversible only when it is at least k-deep in BTC - * (k in research paper) - * - * @generated from field: uint64 btc_confirmation_depth = 1; - */ - btcConfirmationDepth = protoInt64.zero; - - /** - * checkpoint_finalization_timeout is the maximum time window (measured in BTC - * blocks) between a checkpoint - * - being submitted to BTC, and - * - being reported back to BBN - * If a checkpoint has not been reported back within w BTC blocks, then BBN - * has dishonest majority and is stalling checkpoints (w in research paper) - * - * @generated from field: uint64 checkpoint_finalization_timeout = 2; - */ - checkpointFinalizationTimeout = protoInt64.zero; - - /** - * 4byte tag in hex format, required to be present in the OP_RETURN transaction - * related to babylon - * - * @generated from field: string checkpoint_tag = 3; - */ - checkpointTag = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_confirmation_depth", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "checkpoint_finalization_timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "checkpoint_tag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_cosmes.ts deleted file mode 100644 index ce00dcb..0000000 --- a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_cosmes.ts +++ /dev/null @@ -1,57 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/btccheckpoint/v1/query.proto (package babylon.btccheckpoint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBtcCheckpointInfoRequest, QueryBtcCheckpointInfoResponse, QueryBtcCheckpointsInfoRequest, QueryBtcCheckpointsInfoResponse, QueryEpochSubmissionsRequest, QueryEpochSubmissionsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "babylon.btccheckpoint.v1.Query"; - -/** - * Parameters queries the parameters of the module. - * - * @generated from rpc babylon.btccheckpoint.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * BtcCheckpointInfo returns checkpoint info for a given epoch - * - * @generated from rpc babylon.btccheckpoint.v1.Query.BtcCheckpointInfo - */ -export const QueryBtcCheckpointInfoService = { - typeName: TYPE_NAME, - method: "BtcCheckpointInfo", - Request: QueryBtcCheckpointInfoRequest, - Response: QueryBtcCheckpointInfoResponse, -} as const; - -/** - * BtcCheckpointsInfo returns checkpoint info for a range of epochs - * - * @generated from rpc babylon.btccheckpoint.v1.Query.BtcCheckpointsInfo - */ -export const QueryBtcCheckpointsInfoService = { - typeName: TYPE_NAME, - method: "BtcCheckpointsInfo", - Request: QueryBtcCheckpointsInfoRequest, - Response: QueryBtcCheckpointsInfoResponse, -} as const; - -/** - * EpochSubmissions returns all submissions for a given epoch - * - * @generated from rpc babylon.btccheckpoint.v1.Query.EpochSubmissions - */ -export const QueryEpochSubmissionsService = { - typeName: TYPE_NAME, - method: "EpochSubmissions", - Request: QueryEpochSubmissionsRequest, - Response: QueryEpochSubmissionsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_pb.ts deleted file mode 100644 index 126df6a..0000000 --- a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/query_pb.ts +++ /dev/null @@ -1,604 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btccheckpoint/v1/query.proto (package babylon.btccheckpoint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message babylon.btccheckpoint.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message babylon.btccheckpoint.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: babylon.btccheckpoint.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryBtcCheckpointInfoRequest defines the query to get the best checkpoint - * for a given epoch - * - * @generated from message babylon.btccheckpoint.v1.QueryBtcCheckpointInfoRequest - */ -export class QueryBtcCheckpointInfoRequest extends Message { - /** - * Number of epoch for which the earliest checkpointing btc height is - * requested - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryBtcCheckpointInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBtcCheckpointInfoRequest { - return new QueryBtcCheckpointInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBtcCheckpointInfoRequest { - return new QueryBtcCheckpointInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBtcCheckpointInfoRequest { - return new QueryBtcCheckpointInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBtcCheckpointInfoRequest | PlainMessage | undefined, b: QueryBtcCheckpointInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBtcCheckpointInfoRequest, a, b); - } -} - -/** - * QueryBtcCheckpointInfoResponse is response type for the - * Query/BtcCheckpointInfo RPC method - * - * @generated from message babylon.btccheckpoint.v1.QueryBtcCheckpointInfoResponse - */ -export class QueryBtcCheckpointInfoResponse extends Message { - /** - * @generated from field: babylon.btccheckpoint.v1.BTCCheckpointInfoResponse info = 1; - */ - info?: BTCCheckpointInfoResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryBtcCheckpointInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "info", kind: "message", T: BTCCheckpointInfoResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBtcCheckpointInfoResponse { - return new QueryBtcCheckpointInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBtcCheckpointInfoResponse { - return new QueryBtcCheckpointInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBtcCheckpointInfoResponse { - return new QueryBtcCheckpointInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBtcCheckpointInfoResponse | PlainMessage | undefined, b: QueryBtcCheckpointInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBtcCheckpointInfoResponse, a, b); - } -} - -/** - * QueryBtcCheckpointsInfoRequest is request type for the - * Query/BtcCheckpointsInfo RPC method - * - * @generated from message babylon.btccheckpoint.v1.QueryBtcCheckpointsInfoRequest - */ -export class QueryBtcCheckpointsInfoRequest extends Message { - /** - * pagination defines whether to have the pagination in the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryBtcCheckpointsInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBtcCheckpointsInfoRequest { - return new QueryBtcCheckpointsInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBtcCheckpointsInfoRequest { - return new QueryBtcCheckpointsInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBtcCheckpointsInfoRequest { - return new QueryBtcCheckpointsInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBtcCheckpointsInfoRequest | PlainMessage | undefined, b: QueryBtcCheckpointsInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBtcCheckpointsInfoRequest, a, b); - } -} - -/** - * QueryBtcCheckpointsInfoResponse is response type for the - * Query/BtcCheckpointsInfo RPC method - * - * @generated from message babylon.btccheckpoint.v1.QueryBtcCheckpointsInfoResponse - */ -export class QueryBtcCheckpointsInfoResponse extends Message { - /** - * @generated from field: repeated babylon.btccheckpoint.v1.BTCCheckpointInfoResponse info_list = 1; - */ - infoList: BTCCheckpointInfoResponse[] = []; - - /** - * pagination defines the pagination in the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryBtcCheckpointsInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "info_list", kind: "message", T: BTCCheckpointInfoResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBtcCheckpointsInfoResponse { - return new QueryBtcCheckpointsInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBtcCheckpointsInfoResponse { - return new QueryBtcCheckpointsInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBtcCheckpointsInfoResponse { - return new QueryBtcCheckpointsInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBtcCheckpointsInfoResponse | PlainMessage | undefined, b: QueryBtcCheckpointsInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBtcCheckpointsInfoResponse, a, b); - } -} - -/** - * QueryEpochSubmissionsRequest defines a request to get all submissions in - * given epoch - * - * @generated from message babylon.btccheckpoint.v1.QueryEpochSubmissionsRequest - */ -export class QueryEpochSubmissionsRequest extends Message { - /** - * Number of epoch for which submissions are requested - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryEpochSubmissionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochSubmissionsRequest { - return new QueryEpochSubmissionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochSubmissionsRequest { - return new QueryEpochSubmissionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochSubmissionsRequest { - return new QueryEpochSubmissionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochSubmissionsRequest | PlainMessage | undefined, b: QueryEpochSubmissionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochSubmissionsRequest, a, b); - } -} - -/** - * QueryEpochSubmissionsResponse defines a response to get all submissions in - * given epoch (QueryEpochSubmissionsRequest) - * - * @generated from message babylon.btccheckpoint.v1.QueryEpochSubmissionsResponse - */ -export class QueryEpochSubmissionsResponse extends Message { - /** - * Keys All submissions transactions key saved during an epoch. - * - * @generated from field: repeated babylon.btccheckpoint.v1.SubmissionKeyResponse keys = 1; - */ - keys: SubmissionKeyResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.QueryEpochSubmissionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "keys", kind: "message", T: SubmissionKeyResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochSubmissionsResponse { - return new QueryEpochSubmissionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochSubmissionsResponse { - return new QueryEpochSubmissionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochSubmissionsResponse { - return new QueryEpochSubmissionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochSubmissionsResponse | PlainMessage | undefined, b: QueryEpochSubmissionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochSubmissionsResponse, a, b); - } -} - -/** - * BTCCheckpointInfoResponse contains all data about best submission of checkpoint for - * given epoch. Best submission is the submission which is deeper in btc ledger. - * - * @generated from message babylon.btccheckpoint.v1.BTCCheckpointInfoResponse - */ -export class BTCCheckpointInfoResponse extends Message { - /** - * EpochNumber of this checkpoint. - * - * @generated from field: uint64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - /** - * btc height of the best submission of the epoch - * - * @generated from field: uint64 best_submission_btc_block_height = 2; - */ - bestSubmissionBtcBlockHeight = protoInt64.zero; - - /** - * hash of the btc block which determines checkpoint btc block height i.e. - * youngest block of best submission Hexadecimal - * - * @generated from field: string best_submission_btc_block_hash = 3; - */ - bestSubmissionBtcBlockHash = ""; - - /** - * the BTC checkpoint transactions of the best submission - * - * @generated from field: repeated babylon.btccheckpoint.v1.TransactionInfoResponse best_submission_transactions = 4; - */ - bestSubmissionTransactions: TransactionInfoResponse[] = []; - - /** - * list of vigilantes' addresses of the best submission - * - * @generated from field: repeated babylon.btccheckpoint.v1.CheckpointAddressesResponse best_submission_vigilante_address_list = 5; - */ - bestSubmissionVigilanteAddressList: CheckpointAddressesResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.BTCCheckpointInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "best_submission_btc_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "best_submission_btc_block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "best_submission_transactions", kind: "message", T: TransactionInfoResponse, repeated: true }, - { no: 5, name: "best_submission_vigilante_address_list", kind: "message", T: CheckpointAddressesResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCCheckpointInfoResponse { - return new BTCCheckpointInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCCheckpointInfoResponse { - return new BTCCheckpointInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCCheckpointInfoResponse { - return new BTCCheckpointInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: BTCCheckpointInfoResponse | PlainMessage | undefined, b: BTCCheckpointInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCCheckpointInfoResponse, a, b); - } -} - -/** - * TransactionInfoResponse is the info of a tx on Bitcoin, - * including - * - the position of the tx on BTC blockchain - * - the full tx content - * - the Merkle proof that this tx is on the above position - * - * @generated from message babylon.btccheckpoint.v1.TransactionInfoResponse - */ -export class TransactionInfoResponse extends Message { - /** - * Index Bitcoin Transaction index in block. - * - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * Hash BTC Header hash as hex. - * - * @generated from field: string hash = 2; - */ - hash = ""; - - /** - * transaction is the full transaction data as str hex. - * - * @generated from field: string transaction = 3; - */ - transaction = ""; - - /** - * proof is the Merkle proof that this tx is included in the position in `key` - * - * @generated from field: string proof = 4; - */ - proof = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.TransactionInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "transaction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "proof", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TransactionInfoResponse { - return new TransactionInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TransactionInfoResponse { - return new TransactionInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TransactionInfoResponse { - return new TransactionInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: TransactionInfoResponse | PlainMessage | undefined, b: TransactionInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TransactionInfoResponse, a, b); - } -} - -/** - * CheckpointAddressesResponse contains the addresses of the submitter and reporter of a - * given checkpoint - * - * @generated from message babylon.btccheckpoint.v1.CheckpointAddressesResponse - */ -export class CheckpointAddressesResponse extends Message { - /** - * submitter is the address of the checkpoint submitter to BTC, extracted from - * the checkpoint itself. - * - * @generated from field: string submitter = 1; - */ - submitter = ""; - - /** - * reporter is the address of the reporter who reported the submissions, - * calculated from submission message MsgInsertBTCSpvProof itself - * - * @generated from field: string reporter = 2; - */ - reporter = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.CheckpointAddressesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "submitter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "reporter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CheckpointAddressesResponse { - return new CheckpointAddressesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CheckpointAddressesResponse { - return new CheckpointAddressesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CheckpointAddressesResponse { - return new CheckpointAddressesResponse().fromJsonString(jsonString, options); - } - - static equals(a: CheckpointAddressesResponse | PlainMessage | undefined, b: CheckpointAddressesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CheckpointAddressesResponse, a, b); - } -} - -/** - * SubmissionKeyResponse Checkpoint can be composed from multiple transactions, - * so to identify whole submission we need list of transaction keys. - * Each submission can generally be identified by this list of (txIdx, - * blockHash) tuples. Note: this could possibly be optimized as if transactions - * were in one block they would have the same block hash and different indexes, - * but each blockhash is only 33 (1 byte for prefix encoding and 32 byte hash), - * so there should be other strong arguments for this optimization - * - * @generated from message babylon.btccheckpoint.v1.SubmissionKeyResponse - */ -export class SubmissionKeyResponse extends Message { - /** - * FirstTxBlockHash is the BTCHeaderHashBytes in hex. - * - * @generated from field: string first_tx_block_hash = 1; - */ - firstTxBlockHash = ""; - - /** - * @generated from field: uint32 first_tx_index = 2; - */ - firstTxIndex = 0; - - /** - * SecondBlockHash is the BTCHeaderHashBytes in hex. - * - * @generated from field: string second_tx_block_hash = 3; - */ - secondTxBlockHash = ""; - - /** - * @generated from field: uint32 second_tx_index = 4; - */ - secondTxIndex = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.SubmissionKeyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "first_tx_block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "first_tx_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "second_tx_block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "second_tx_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SubmissionKeyResponse { - return new SubmissionKeyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SubmissionKeyResponse { - return new SubmissionKeyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SubmissionKeyResponse { - return new SubmissionKeyResponse().fromJsonString(jsonString, options); - } - - static equals(a: SubmissionKeyResponse | PlainMessage | undefined, b: SubmissionKeyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SubmissionKeyResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_cosmes.ts deleted file mode 100644 index 1236457..0000000 --- a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/btccheckpoint/v1/tx.proto (package babylon.btccheckpoint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgInsertBTCSpvProof, MsgInsertBTCSpvProofResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "babylon.btccheckpoint.v1.Msg"; - -/** - * InsertBTCSpvProof tries to insert a new checkpoint into the store. - * - * @generated from rpc babylon.btccheckpoint.v1.Msg.InsertBTCSpvProof - */ -export const MsgInsertBTCSpvProofService = { - typeName: TYPE_NAME, - method: "InsertBTCSpvProof", - Request: MsgInsertBTCSpvProof, - Response: MsgInsertBTCSpvProofResponse, -} as const; - -/** - * UpdateParams updates the btccheckpoint module parameters. - * - * @generated from rpc babylon.btccheckpoint.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_pb.ts b/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_pb.ts deleted file mode 100644 index 7a116fc..0000000 --- a/libs/es-client/src/protobufs/babylon/btccheckpoint/v1/tx_pb.ts +++ /dev/null @@ -1,177 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btccheckpoint/v1/tx.proto (package babylon.btccheckpoint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { BTCSpvProof } from "./btccheckpoint_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * MsgInsertBTCSpvProof defines resquest to insert a new checkpoint into the - * store - * - * @generated from message babylon.btccheckpoint.v1.MsgInsertBTCSpvProof - */ -export class MsgInsertBTCSpvProof extends Message { - /** - * @generated from field: string submitter = 1; - */ - submitter = ""; - - /** - * @generated from field: repeated babylon.btccheckpoint.v1.BTCSpvProof proofs = 2; - */ - proofs: BTCSpvProof[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.MsgInsertBTCSpvProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "submitter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "proofs", kind: "message", T: BTCSpvProof, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInsertBTCSpvProof { - return new MsgInsertBTCSpvProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInsertBTCSpvProof { - return new MsgInsertBTCSpvProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInsertBTCSpvProof { - return new MsgInsertBTCSpvProof().fromJsonString(jsonString, options); - } - - static equals(a: MsgInsertBTCSpvProof | PlainMessage | undefined, b: MsgInsertBTCSpvProof | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInsertBTCSpvProof, a, b); - } -} - -/** - * MsgInsertBTCSpvProofResponse defines the response for the - * MsgInsertBTCSpvProof message - * - * @generated from message babylon.btccheckpoint.v1.MsgInsertBTCSpvProofResponse - */ -export class MsgInsertBTCSpvProofResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.MsgInsertBTCSpvProofResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInsertBTCSpvProofResponse { - return new MsgInsertBTCSpvProofResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInsertBTCSpvProofResponse { - return new MsgInsertBTCSpvProofResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInsertBTCSpvProofResponse { - return new MsgInsertBTCSpvProofResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgInsertBTCSpvProofResponse | PlainMessage | undefined, b: MsgInsertBTCSpvProofResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInsertBTCSpvProofResponse, a, b); - } -} - -/** - * MsgUpdateParams defines a message to update the btccheckpoint module params. - * - * @generated from message babylon.btccheckpoint.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * just FYI: cosmos.AddressString marks that this field should use type alias - * for AddressString instead of string, but the functionality is not yet implemented - * in cosmos-proto - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the btccheckpoint parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: babylon.btccheckpoint.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response to the MsgUpdateParams message. - * - * @generated from message babylon.btccheckpoint.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btccheckpoint.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/btclightclient_pb.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/btclightclient_pb.ts deleted file mode 100644 index 1d453bd..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/btclightclient_pb.ts +++ /dev/null @@ -1,72 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/btclightclient.proto (package babylon.btclightclient.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * BTCHeaderInfo is a structure that contains all relevant information about a - * BTC header - * - Full header bytes - * - Header hash for easy retrieval - * - Height of the header in the BTC chain - * - Total work spent on the header. This is the sum of the work corresponding - * to the header Bits field - * and the total work of the header. - * - * @generated from message babylon.btclightclient.v1.BTCHeaderInfo - */ -export class BTCHeaderInfo extends Message { - /** - * @generated from field: bytes header = 1; - */ - header = new Uint8Array(0); - - /** - * @generated from field: bytes hash = 2; - */ - hash = new Uint8Array(0); - - /** - * @generated from field: uint64 height = 3; - */ - height = protoInt64.zero; - - /** - * @generated from field: bytes work = 4; - */ - work = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.BTCHeaderInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "work", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCHeaderInfo { - return new BTCHeaderInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCHeaderInfo { - return new BTCHeaderInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCHeaderInfo { - return new BTCHeaderInfo().fromJsonString(jsonString, options); - } - - static equals(a: BTCHeaderInfo | PlainMessage | undefined, b: BTCHeaderInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCHeaderInfo, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/event_pb.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/event_pb.ts deleted file mode 100644 index b9d42e8..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/event_pb.ts +++ /dev/null @@ -1,134 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/event.proto (package babylon.btclightclient.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { BTCHeaderInfo } from "./btclightclient_pb.js"; - -/** - * The header included in the event is the block in the history - * of the current mainchain to which we are rolling back to. - * In other words, there is one rollback event emitted per re-org, to the - * greatest common ancestor of the old and the new fork. - * - * @generated from message babylon.btclightclient.v1.EventBTCRollBack - */ -export class EventBTCRollBack extends Message { - /** - * @generated from field: babylon.btclightclient.v1.BTCHeaderInfo header = 1; - */ - header?: BTCHeaderInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.EventBTCRollBack"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: BTCHeaderInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBTCRollBack { - return new EventBTCRollBack().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBTCRollBack { - return new EventBTCRollBack().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBTCRollBack { - return new EventBTCRollBack().fromJsonString(jsonString, options); - } - - static equals(a: EventBTCRollBack | PlainMessage | undefined, b: EventBTCRollBack | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBTCRollBack, a, b); - } -} - -/** - * EventBTCRollForward is emitted on Msg/InsertHeader - * The header included in the event is the one the main chain is extended with. - * In the event of a reorg, each block on the new fork that comes after - * the greatest common ancestor will have a corresponding roll forward event. - * - * @generated from message babylon.btclightclient.v1.EventBTCRollForward - */ -export class EventBTCRollForward extends Message { - /** - * @generated from field: babylon.btclightclient.v1.BTCHeaderInfo header = 1; - */ - header?: BTCHeaderInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.EventBTCRollForward"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: BTCHeaderInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBTCRollForward { - return new EventBTCRollForward().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBTCRollForward { - return new EventBTCRollForward().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBTCRollForward { - return new EventBTCRollForward().fromJsonString(jsonString, options); - } - - static equals(a: EventBTCRollForward | PlainMessage | undefined, b: EventBTCRollForward | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBTCRollForward, a, b); - } -} - -/** - * EventBTCHeaderInserted is emitted on Msg/InsertHeader - * The header included in the event is the one that was added to the - * on chain BTC storage. - * - * @generated from message babylon.btclightclient.v1.EventBTCHeaderInserted - */ -export class EventBTCHeaderInserted extends Message { - /** - * @generated from field: babylon.btclightclient.v1.BTCHeaderInfo header = 1; - */ - header?: BTCHeaderInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.EventBTCHeaderInserted"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: BTCHeaderInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBTCHeaderInserted { - return new EventBTCHeaderInserted().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBTCHeaderInserted { - return new EventBTCHeaderInserted().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBTCHeaderInserted { - return new EventBTCHeaderInserted().fromJsonString(jsonString, options); - } - - static equals(a: EventBTCHeaderInserted | PlainMessage | undefined, b: EventBTCHeaderInserted | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBTCHeaderInserted, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/genesis_pb.ts deleted file mode 100644 index 04ff956..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/genesis_pb.ts +++ /dev/null @@ -1,55 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/genesis.proto (package babylon.btclightclient.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { BTCHeaderInfo } from "./btclightclient_pb.js"; - -/** - * GenesisState defines the btclightclient module's genesis state. - * - * @generated from message babylon.btclightclient.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: babylon.btclightclient.v1.Params params = 1; - */ - params?: Params; - - /** - * @generated from field: repeated babylon.btclightclient.v1.BTCHeaderInfo btc_headers = 2; - */ - btcHeaders: BTCHeaderInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "btc_headers", kind: "message", T: BTCHeaderInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/params_pb.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/params_pb.ts deleted file mode 100644 index 1d9289d..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/params_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/params.proto (package babylon.btclightclient.v1, 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 babylon.btclightclient.v1.Params - */ -export class Params extends Message { - /** - * List of addresses which are allowed to insert headers to btc light client - * if the list is empty, any address can insert headers - * - * @generated from field: repeated string insert_headers_allow_list = 1; - */ - insertHeadersAllowList: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "insert_headers_allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/query_cosmes.ts deleted file mode 100644 index 9546bf4..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/query_cosmes.ts +++ /dev/null @@ -1,110 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/query.proto (package babylon.btclightclient.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBaseHeaderRequest, QueryBaseHeaderResponse, QueryContainsBytesRequest, QueryContainsBytesResponse, QueryContainsRequest, QueryContainsResponse, QueryHashesRequest, QueryHashesResponse, QueryHeaderDepthRequest, QueryHeaderDepthResponse, QueryMainChainRequest, QueryMainChainResponse, QueryParamsRequest, QueryParamsResponse, QueryTipRequest, QueryTipResponse } from "./query_pb.js"; - -const TYPE_NAME = "babylon.btclightclient.v1.Query"; - -/** - * Params queries the parameters of the module. - * - * @generated from rpc babylon.btclightclient.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Hashes retrieves the hashes maintained by the module. - * - * @generated from rpc babylon.btclightclient.v1.Query.Hashes - */ -export const QueryHashesService = { - typeName: TYPE_NAME, - method: "Hashes", - Request: QueryHashesRequest, - Response: QueryHashesResponse, -} as const; - -/** - * Contains checks whether a hash is maintained by the module. - * - * @generated from rpc babylon.btclightclient.v1.Query.Contains - */ -export const QueryContainsService = { - typeName: TYPE_NAME, - method: "Contains", - Request: QueryContainsRequest, - Response: QueryContainsResponse, -} as const; - -/** - * ContainsBytes is a temporary method that - * checks whether a hash is maintained by the module. - * See discussion at https://github.com/babylonchain/babylon/pull/132 - * for more details. - * - * @generated from rpc babylon.btclightclient.v1.Query.ContainsBytes - */ -export const QueryContainsBytesService = { - typeName: TYPE_NAME, - method: "ContainsBytes", - Request: QueryContainsBytesRequest, - Response: QueryContainsBytesResponse, -} as const; - -/** - * MainChain returns the canonical chain - * - * @generated from rpc babylon.btclightclient.v1.Query.MainChain - */ -export const QueryMainChainService = { - typeName: TYPE_NAME, - method: "MainChain", - Request: QueryMainChainRequest, - Response: QueryMainChainResponse, -} as const; - -/** - * Tip return best header on canonical chain - * - * @generated from rpc babylon.btclightclient.v1.Query.Tip - */ -export const QueryTipService = { - typeName: TYPE_NAME, - method: "Tip", - Request: QueryTipRequest, - Response: QueryTipResponse, -} as const; - -/** - * BaseHeader returns the base BTC header of the chain. This header is defined - * on genesis. - * - * @generated from rpc babylon.btclightclient.v1.Query.BaseHeader - */ -export const QueryBaseHeaderService = { - typeName: TYPE_NAME, - method: "BaseHeader", - Request: QueryBaseHeaderRequest, - Response: QueryBaseHeaderResponse, -} as const; - -/** - * HeaderDepth returns the depth of the header in main chain or error if the - * block is not found or it exists on fork - * - * @generated from rpc babylon.btclightclient.v1.Query.HeaderDepth - */ -export const QueryHeaderDepthService = { - typeName: TYPE_NAME, - method: "HeaderDepth", - Request: QueryHeaderDepthRequest, - Response: QueryHeaderDepthResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/query_pb.ts deleted file mode 100644 index 5084c2f..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/query_pb.ts +++ /dev/null @@ -1,705 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/query.proto (package babylon.btclightclient.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: babylon.btclightclient.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryHashesRequest is request type for the Query/Hashes RPC method. - * It involves retrieving all hashes that are maintained by the module. - * - * @generated from message babylon.btclightclient.v1.QueryHashesRequest - */ -export class QueryHashesRequest extends Message { - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryHashesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHashesRequest { - return new QueryHashesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHashesRequest { - return new QueryHashesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHashesRequest { - return new QueryHashesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryHashesRequest | PlainMessage | undefined, b: QueryHashesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHashesRequest, a, b); - } -} - -/** - * QueryHashesResponse is response type for the Query/Hashes RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryHashesResponse - */ -export class QueryHashesResponse extends Message { - /** - * @generated from field: repeated bytes hashes = 1; - */ - hashes: Uint8Array[] = []; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryHashesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHashesResponse { - return new QueryHashesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHashesResponse { - return new QueryHashesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHashesResponse { - return new QueryHashesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryHashesResponse | PlainMessage | undefined, b: QueryHashesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHashesResponse, a, b); - } -} - -/** - * QueryContainsRequest is request type for the Query/Contains RPC method. - * It involves checking whether a hash is maintained by the module. - * - * @generated from message babylon.btclightclient.v1.QueryContainsRequest - */ -export class QueryContainsRequest extends Message { - /** - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryContainsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContainsRequest { - return new QueryContainsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContainsRequest { - return new QueryContainsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContainsRequest { - return new QueryContainsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryContainsRequest | PlainMessage | undefined, b: QueryContainsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContainsRequest, a, b); - } -} - -/** - * QueryContainsResponse is response type for the Query/Contains RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryContainsResponse - */ -export class QueryContainsResponse extends Message { - /** - * @generated from field: bool contains = 1; - */ - contains = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryContainsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contains", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContainsResponse { - return new QueryContainsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContainsResponse { - return new QueryContainsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContainsResponse { - return new QueryContainsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryContainsResponse | PlainMessage | undefined, b: QueryContainsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContainsResponse, a, b); - } -} - -/** - * QueryContainsRequest is request type for the temporary Query/ContainsBytes - * RPC method. It involves checking whether a hash is maintained by the module. - * - * @generated from message babylon.btclightclient.v1.QueryContainsBytesRequest - */ -export class QueryContainsBytesRequest extends Message { - /** - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryContainsBytesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContainsBytesRequest { - return new QueryContainsBytesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContainsBytesRequest { - return new QueryContainsBytesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContainsBytesRequest { - return new QueryContainsBytesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryContainsBytesRequest | PlainMessage | undefined, b: QueryContainsBytesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContainsBytesRequest, a, b); - } -} - -/** - * QueryContainsResponse is response type for the temporary Query/ContainsBytes - * RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryContainsBytesResponse - */ -export class QueryContainsBytesResponse extends Message { - /** - * @generated from field: bool contains = 1; - */ - contains = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryContainsBytesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contains", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContainsBytesResponse { - return new QueryContainsBytesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContainsBytesResponse { - return new QueryContainsBytesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContainsBytesResponse { - return new QueryContainsBytesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryContainsBytesResponse | PlainMessage | undefined, b: QueryContainsBytesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContainsBytesResponse, a, b); - } -} - -/** - * QueryMainChainRequest is request type for the Query/MainChain RPC method. - * It involves retrieving the canonical chain maintained by the module. - * - * @generated from message babylon.btclightclient.v1.QueryMainChainRequest - */ -export class QueryMainChainRequest extends Message { - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryMainChainRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryMainChainRequest { - return new QueryMainChainRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryMainChainRequest { - return new QueryMainChainRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryMainChainRequest { - return new QueryMainChainRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryMainChainRequest | PlainMessage | undefined, b: QueryMainChainRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryMainChainRequest, a, b); - } -} - -/** - * QueryMainChainResponse is response type for the Query/MainChain RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryMainChainResponse - */ -export class QueryMainChainResponse extends Message { - /** - * @generated from field: repeated babylon.btclightclient.v1.BTCHeaderInfoResponse headers = 1; - */ - headers: BTCHeaderInfoResponse[] = []; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryMainChainResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "headers", kind: "message", T: BTCHeaderInfoResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryMainChainResponse { - return new QueryMainChainResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryMainChainResponse { - return new QueryMainChainResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryMainChainResponse { - return new QueryMainChainResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryMainChainResponse | PlainMessage | undefined, b: QueryMainChainResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryMainChainResponse, a, b); - } -} - -/** - * QueryTipRequest is the request type for the Query/Tip RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryTipRequest - */ -export class QueryTipRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryTipRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTipRequest { - return new QueryTipRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTipRequest { - return new QueryTipRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTipRequest { - return new QueryTipRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTipRequest | PlainMessage | undefined, b: QueryTipRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTipRequest, a, b); - } -} - -/** - * QueryTipResponse is the response type for the Query/Tip RPC method. - * - * @generated from message babylon.btclightclient.v1.QueryTipResponse - */ -export class QueryTipResponse extends Message { - /** - * @generated from field: babylon.btclightclient.v1.BTCHeaderInfoResponse header = 1; - */ - header?: BTCHeaderInfoResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryTipResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: BTCHeaderInfoResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTipResponse { - return new QueryTipResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTipResponse { - return new QueryTipResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTipResponse { - return new QueryTipResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTipResponse | PlainMessage | undefined, b: QueryTipResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTipResponse, a, b); - } -} - -/** - * QueryBaseHeaderRequest is the request type for the Query/BaseHeader RPC - * method. - * - * @generated from message babylon.btclightclient.v1.QueryBaseHeaderRequest - */ -export class QueryBaseHeaderRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryBaseHeaderRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseHeaderRequest { - return new QueryBaseHeaderRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseHeaderRequest { - return new QueryBaseHeaderRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseHeaderRequest { - return new QueryBaseHeaderRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseHeaderRequest | PlainMessage | undefined, b: QueryBaseHeaderRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseHeaderRequest, a, b); - } -} - -/** - * QueryBaseHeaderResponse is the response type for the Query/BaseHeader RPC - * method. - * - * @generated from message babylon.btclightclient.v1.QueryBaseHeaderResponse - */ -export class QueryBaseHeaderResponse extends Message { - /** - * @generated from field: babylon.btclightclient.v1.BTCHeaderInfoResponse header = 1; - */ - header?: BTCHeaderInfoResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryBaseHeaderResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: BTCHeaderInfoResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseHeaderResponse { - return new QueryBaseHeaderResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseHeaderResponse { - return new QueryBaseHeaderResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseHeaderResponse { - return new QueryBaseHeaderResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseHeaderResponse | PlainMessage | undefined, b: QueryBaseHeaderResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseHeaderResponse, a, b); - } -} - -/** - * QueryMainChainDepthRequest is the request type for the Query/MainChainDepth RPC - * it contains hex encoded hash of btc block header as parameter - * - * @generated from message babylon.btclightclient.v1.QueryHeaderDepthRequest - */ -export class QueryHeaderDepthRequest extends Message { - /** - * @generated from field: string hash = 1; - */ - hash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryHeaderDepthRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHeaderDepthRequest { - return new QueryHeaderDepthRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHeaderDepthRequest { - return new QueryHeaderDepthRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHeaderDepthRequest { - return new QueryHeaderDepthRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryHeaderDepthRequest | PlainMessage | undefined, b: QueryHeaderDepthRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHeaderDepthRequest, a, b); - } -} - -/** - * QueryMainChainDepthResponse is the response type for the Query/MainChainDepth RPC - * it contains depth of the block in main chain - * - * @generated from message babylon.btclightclient.v1.QueryHeaderDepthResponse - */ -export class QueryHeaderDepthResponse extends Message { - /** - * @generated from field: uint64 depth = 1; - */ - depth = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.QueryHeaderDepthResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "depth", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHeaderDepthResponse { - return new QueryHeaderDepthResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHeaderDepthResponse { - return new QueryHeaderDepthResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHeaderDepthResponse { - return new QueryHeaderDepthResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryHeaderDepthResponse | PlainMessage | undefined, b: QueryHeaderDepthResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHeaderDepthResponse, a, b); - } -} - -/** - * BTCHeaderInfoResponse is a structure that contains all relevant information about a - * BTC header response - * - Full header as string hex. - * - Header hash for easy retrieval as string hex. - * - Height of the header in the BTC chain. - * - Total work spent on the header. This is the sum of the work corresponding - * to the header Bits field - * and the total work of the header. - * - * @generated from message babylon.btclightclient.v1.BTCHeaderInfoResponse - */ -export class BTCHeaderInfoResponse extends Message { - /** - * @generated from field: string header_hex = 1; - */ - headerHex = ""; - - /** - * @generated from field: string hash_hex = 2; - */ - hashHex = ""; - - /** - * @generated from field: uint64 height = 3; - */ - height = protoInt64.zero; - - /** - * Work is the sdkmath.Uint as string. - * - * @generated from field: string work = 4; - */ - work = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.BTCHeaderInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "hash_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "work", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCHeaderInfoResponse { - return new BTCHeaderInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCHeaderInfoResponse { - return new BTCHeaderInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCHeaderInfoResponse { - return new BTCHeaderInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: BTCHeaderInfoResponse | PlainMessage | undefined, b: BTCHeaderInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCHeaderInfoResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_cosmes.ts deleted file mode 100644 index 00ad6a6..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/tx.proto (package babylon.btclightclient.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgInsertHeaders, MsgInsertHeadersResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "babylon.btclightclient.v1.Msg"; - -/** - * InsertHeaders adds a batch of headers to the BTC light client chain - * - * @generated from rpc babylon.btclightclient.v1.Msg.InsertHeaders - */ -export const MsgInsertHeadersService = { - typeName: TYPE_NAME, - method: "InsertHeaders", - Request: MsgInsertHeaders, - Response: MsgInsertHeadersResponse, -} as const; - -/** - * UpdateParams defines a method for updating btc light client module parameters. - * - * @generated from rpc babylon.btclightclient.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_pb.ts b/libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_pb.ts deleted file mode 100644 index cb2efd8..0000000 --- a/libs/es-client/src/protobufs/babylon/btclightclient/v1/tx_pb.ts +++ /dev/null @@ -1,174 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btclightclient/v1/tx.proto (package babylon.btclightclient.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * MsgInsertHeaders defines the message for multiple incoming header bytes - * - * @generated from message babylon.btclightclient.v1.MsgInsertHeaders - */ -export class MsgInsertHeaders extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * @generated from field: repeated bytes headers = 2; - */ - headers: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.MsgInsertHeaders"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "headers", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInsertHeaders { - return new MsgInsertHeaders().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInsertHeaders { - return new MsgInsertHeaders().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInsertHeaders { - return new MsgInsertHeaders().fromJsonString(jsonString, options); - } - - static equals(a: MsgInsertHeaders | PlainMessage | undefined, b: MsgInsertHeaders | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInsertHeaders, a, b); - } -} - -/** - * MsgInsertHeadersResponse defines the response for the InsertHeaders transaction - * - * @generated from message babylon.btclightclient.v1.MsgInsertHeadersResponse - */ -export class MsgInsertHeadersResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.MsgInsertHeadersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInsertHeadersResponse { - return new MsgInsertHeadersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInsertHeadersResponse { - return new MsgInsertHeadersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInsertHeadersResponse { - return new MsgInsertHeadersResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgInsertHeadersResponse | PlainMessage | undefined, b: MsgInsertHeadersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInsertHeadersResponse, a, b); - } -} - -/** - * MsgUpdateParams defines a message for updating btc light client module parameters. - * - * @generated from message babylon.btclightclient.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * just FYI: cosmos.AddressString marks that this field should use type alias - * for AddressString instead of string, but the functionality is not yet implemented - * in cosmos-proto - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the btc light client parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: babylon.btclightclient.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse is the response to the MsgUpdateParams message. - * - * @generated from message babylon.btclightclient.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btclightclient.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/btcstaking_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/btcstaking_pb.ts deleted file mode 100644 index 6cbb010..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/btcstaking_pb.ts +++ /dev/null @@ -1,723 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/btcstaking.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Description } from "../../../cosmos/staking/v1beta1/staking_pb.js"; -import { PubKey } from "../../../cosmos/crypto/secp256k1/keys_pb.js"; -import { ProofOfPossession } from "./pop_pb.js"; - -/** - * BTCDelegationStatus is the status of a delegation. The state transition path is - * PENDING -> ACTIVE -> UNBONDED with two possibilities: - * 1. the typical path when timelock of staking transaction expires. - * 2. the path when staker requests early undelegation through MsgBTCUndelegate message. - * - * @generated from enum babylon.btcstaking.v1.BTCDelegationStatus - */ -export enum BTCDelegationStatus { - /** - * PENDING defines a delegation that is waiting for covenant signatures to become active. - * - * @generated from enum value: PENDING = 0; - */ - PENDING = 0, - - /** - * ACTIVE defines a delegation that has voting power - * - * @generated from enum value: ACTIVE = 1; - */ - ACTIVE = 1, - - /** - * UNBONDED defines a delegation no longer has voting power: - * - either reaching the end of staking transaction timelock - * - or receiving unbonding tx with signatures from staker and covenant committee - * - * @generated from enum value: UNBONDED = 2; - */ - UNBONDED = 2, - - /** - * ANY is any of the above status - * - * @generated from enum value: ANY = 3; - */ - ANY = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(BTCDelegationStatus) -proto3.util.setEnumType(BTCDelegationStatus, "babylon.btcstaking.v1.BTCDelegationStatus", [ - { no: 0, name: "PENDING" }, - { no: 1, name: "ACTIVE" }, - { no: 2, name: "UNBONDED" }, - { no: 3, name: "ANY" }, -]); - -/** - * FinalityProvider defines a finality provider - * - * @generated from message babylon.btcstaking.v1.FinalityProvider - */ -export class FinalityProvider extends Message { - /** - * description defines the description terms for the finality provider. - * - * @generated from field: cosmos.staking.v1beta1.Description description = 1; - */ - description?: Description; - - /** - * commission defines the commission rate of the finality provider. - * - * @generated from field: string commission = 2; - */ - commission = ""; - - /** - * babylon_pk is the Babylon secp256k1 PK of this finality provider - * - * @generated from field: cosmos.crypto.secp256k1.PubKey babylon_pk = 3; - */ - babylonPk?: PubKey; - - /** - * btc_pk is the Bitcoin secp256k1 PK of this finality provider - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 4; - */ - btcPk = new Uint8Array(0); - - /** - * pop is the proof of possession of babylon_pk and btc_pk - * - * @generated from field: babylon.btcstaking.v1.ProofOfPossession pop = 5; - */ - pop?: ProofOfPossession; - - /** - * slashed_babylon_height indicates the Babylon height when - * the finality provider is slashed. - * if it's 0 then the finality provider is not slashed - * - * @generated from field: uint64 slashed_babylon_height = 6; - */ - slashedBabylonHeight = protoInt64.zero; - - /** - * slashed_btc_height indicates the BTC height when - * the finality provider is slashed. - * if it's 0 then the finality provider is not slashed - * - * @generated from field: uint64 slashed_btc_height = 7; - */ - slashedBtcHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.FinalityProvider"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "description", kind: "message", T: Description }, - { no: 2, name: "commission", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "babylon_pk", kind: "message", T: PubKey }, - { no: 4, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "pop", kind: "message", T: ProofOfPossession }, - { no: 6, name: "slashed_babylon_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "slashed_btc_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FinalityProvider { - return new FinalityProvider().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FinalityProvider { - return new FinalityProvider().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FinalityProvider { - return new FinalityProvider().fromJsonString(jsonString, options); - } - - static equals(a: FinalityProvider | PlainMessage | undefined, b: FinalityProvider | PlainMessage | undefined): boolean { - return proto3.util.equals(FinalityProvider, a, b); - } -} - -/** - * FinalityProviderWithMeta wraps the FinalityProvider with metadata. - * - * @generated from message babylon.btcstaking.v1.FinalityProviderWithMeta - */ -export class FinalityProviderWithMeta extends Message { - /** - * btc_pk is the Bitcoin secp256k1 PK of thisfinality provider - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 1; - */ - btcPk = new Uint8Array(0); - - /** - * height is the queried Babylon height - * - * @generated from field: uint64 height = 2; - */ - height = protoInt64.zero; - - /** - * voting_power is the voting power of this finality provider at the given height - * - * @generated from field: uint64 voting_power = 3; - */ - votingPower = protoInt64.zero; - - /** - * slashed_babylon_height indicates the Babylon height when - * the finality provider is slashed. - * if it's 0 then the finality provider is not slashed - * - * @generated from field: uint64 slashed_babylon_height = 4; - */ - slashedBabylonHeight = protoInt64.zero; - - /** - * slashed_btc_height indicates the BTC height when - * the finality provider is slashed. - * if it's 0 then the finality provider is not slashed - * - * @generated from field: uint64 slashed_btc_height = 5; - */ - slashedBtcHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.FinalityProviderWithMeta"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "slashed_babylon_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "slashed_btc_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FinalityProviderWithMeta { - return new FinalityProviderWithMeta().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FinalityProviderWithMeta { - return new FinalityProviderWithMeta().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FinalityProviderWithMeta { - return new FinalityProviderWithMeta().fromJsonString(jsonString, options); - } - - static equals(a: FinalityProviderWithMeta | PlainMessage | undefined, b: FinalityProviderWithMeta | PlainMessage | undefined): boolean { - return proto3.util.equals(FinalityProviderWithMeta, a, b); - } -} - -/** - * BTCDelegation defines a BTC delegation - * - * @generated from message babylon.btcstaking.v1.BTCDelegation - */ -export class BTCDelegation extends Message { - /** - * babylon_pk is the Babylon secp256k1 PK of this BTC delegation - * - * @generated from field: cosmos.crypto.secp256k1.PubKey babylon_pk = 1; - */ - babylonPk?: PubKey; - - /** - * btc_pk is the Bitcoin secp256k1 PK of this BTC delegation - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 2; - */ - btcPk = new Uint8Array(0); - - /** - * pop is the proof of possession of babylon_pk and btc_pk - * - * @generated from field: babylon.btcstaking.v1.ProofOfPossession pop = 3; - */ - pop?: ProofOfPossession; - - /** - * fp_btc_pk_list is the list of BIP-340 PKs of the finality providers that - * this BTC delegation delegates to - * If there is more than 1 PKs, then this means the delegation is restaked - * to multiple finality providers - * - * @generated from field: repeated bytes fp_btc_pk_list = 4; - */ - fpBtcPkList: Uint8Array[] = []; - - /** - * start_height is the start BTC height of the BTC delegation - * it is the start BTC height of the timelock - * - * @generated from field: uint64 start_height = 5; - */ - startHeight = protoInt64.zero; - - /** - * end_height is the end height of the BTC delegation - * it is the end BTC height of the timelock - w - * - * @generated from field: uint64 end_height = 6; - */ - endHeight = protoInt64.zero; - - /** - * total_sat is the total amount of BTC stakes in this delegation - * quantified in satoshi - * - * @generated from field: uint64 total_sat = 7; - */ - totalSat = protoInt64.zero; - - /** - * staking_tx is the staking tx - * - * @generated from field: bytes staking_tx = 8; - */ - stakingTx = new Uint8Array(0); - - /** - * staking_output_idx is the index of the staking output in the staking tx - * - * @generated from field: uint32 staking_output_idx = 9; - */ - stakingOutputIdx = 0; - - /** - * slashing_tx is the slashing tx - * It is partially signed by SK corresponding to btc_pk, but not signed by - * finality provider or covenant yet. - * - * @generated from field: bytes slashing_tx = 10; - */ - slashingTx = new Uint8Array(0); - - /** - * delegator_sig is the signature on the slashing tx - * by the delegator (i.e., SK corresponding to btc_pk). - * It will be a part of the witness for the staking tx output. - * - * @generated from field: bytes delegator_sig = 11; - */ - delegatorSig = new Uint8Array(0); - - /** - * covenant_sigs is a list of adaptor signatures on the slashing tx - * by each covenant member - * It will be a part of the witness for the staking tx output. - * - * @generated from field: repeated babylon.btcstaking.v1.CovenantAdaptorSignatures covenant_sigs = 12; - */ - covenantSigs: CovenantAdaptorSignatures[] = []; - - /** - * unbonding_time describes how long the funds will be locked either in unbonding output - * or slashing change output - * - * @generated from field: uint32 unbonding_time = 13; - */ - unbondingTime = 0; - - /** - * btc_undelegation is the information about the early unbonding path of the BTC delegation - * - * @generated from field: babylon.btcstaking.v1.BTCUndelegation btc_undelegation = 14; - */ - btcUndelegation?: BTCUndelegation; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCDelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "babylon_pk", kind: "message", T: PubKey }, - { no: 2, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "pop", kind: "message", T: ProofOfPossession }, - { no: 4, name: "fp_btc_pk_list", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 5, name: "start_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "end_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "total_sat", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "staking_tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "staking_output_idx", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 10, name: "slashing_tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "delegator_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 12, name: "covenant_sigs", kind: "message", T: CovenantAdaptorSignatures, repeated: true }, - { no: 13, name: "unbonding_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 14, name: "btc_undelegation", kind: "message", T: BTCUndelegation }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCDelegation { - return new BTCDelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCDelegation { - return new BTCDelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCDelegation { - return new BTCDelegation().fromJsonString(jsonString, options); - } - - static equals(a: BTCDelegation | PlainMessage | undefined, b: BTCDelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCDelegation, a, b); - } -} - -/** - * BTCUndelegation contains the information about the early unbonding path of the BTC delegation - * - * @generated from message babylon.btcstaking.v1.BTCUndelegation - */ -export class BTCUndelegation extends Message { - /** - * unbonding_tx is the transaction which will transfer the funds from staking - * output to unbonding output. Unbonding output will usually have lower timelock - * than staking output. - * - * @generated from field: bytes unbonding_tx = 1; - */ - unbondingTx = new Uint8Array(0); - - /** - * slashing_tx is the slashing tx for unbonding transactions - * It is partially signed by SK corresponding to btc_pk, but not signed by - * finality provider or covenant yet. - * - * @generated from field: bytes slashing_tx = 2; - */ - slashingTx = new Uint8Array(0); - - /** - * delegator_unbonding_sig is the signature on the unbonding tx - * by the delegator (i.e., SK corresponding to btc_pk). - * It effectively proves that the delegator wants to unbond and thus - * Babylon will consider this BTC delegation unbonded. Delegator's BTC - * on Bitcoin will be unbonded after timelock - * - * @generated from field: bytes delegator_unbonding_sig = 3; - */ - delegatorUnbondingSig = new Uint8Array(0); - - /** - * delegator_slashing_sig is the signature on the slashing tx - * by the delegator (i.e., SK corresponding to btc_pk). - * It will be a part of the witness for the unbonding tx output. - * - * @generated from field: bytes delegator_slashing_sig = 4; - */ - delegatorSlashingSig = new Uint8Array(0); - - /** - * covenant_slashing_sigs is a list of adaptor signatures on the slashing tx - * by each covenant member - * It will be a part of the witness for the staking tx output. - * - * @generated from field: repeated babylon.btcstaking.v1.CovenantAdaptorSignatures covenant_slashing_sigs = 5; - */ - covenantSlashingSigs: CovenantAdaptorSignatures[] = []; - - /** - * covenant_unbonding_sig_list is the list of signatures on the unbonding tx - * by covenant members - * It must be provided after processing undelegate message by Babylon - * - * @generated from field: repeated babylon.btcstaking.v1.SignatureInfo covenant_unbonding_sig_list = 6; - */ - covenantUnbondingSigList: SignatureInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCUndelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unbonding_tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "slashing_tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "delegator_unbonding_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "delegator_slashing_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "covenant_slashing_sigs", kind: "message", T: CovenantAdaptorSignatures, repeated: true }, - { no: 6, name: "covenant_unbonding_sig_list", kind: "message", T: SignatureInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCUndelegation { - return new BTCUndelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCUndelegation { - return new BTCUndelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCUndelegation { - return new BTCUndelegation().fromJsonString(jsonString, options); - } - - static equals(a: BTCUndelegation | PlainMessage | undefined, b: BTCUndelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCUndelegation, a, b); - } -} - -/** - * BTCDelegatorDelegations is a collection of BTC delegations from the same delegator. - * - * @generated from message babylon.btcstaking.v1.BTCDelegatorDelegations - */ -export class BTCDelegatorDelegations extends Message { - /** - * @generated from field: repeated babylon.btcstaking.v1.BTCDelegation dels = 1; - */ - dels: BTCDelegation[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCDelegatorDelegations"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dels", kind: "message", T: BTCDelegation, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCDelegatorDelegations { - return new BTCDelegatorDelegations().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCDelegatorDelegations { - return new BTCDelegatorDelegations().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCDelegatorDelegations { - return new BTCDelegatorDelegations().fromJsonString(jsonString, options); - } - - static equals(a: BTCDelegatorDelegations | PlainMessage | undefined, b: BTCDelegatorDelegations | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCDelegatorDelegations, a, b); - } -} - -/** - * BTCDelegatorDelegationIndex is a list of staking tx hashes of BTC delegations from the same delegator. - * - * @generated from message babylon.btcstaking.v1.BTCDelegatorDelegationIndex - */ -export class BTCDelegatorDelegationIndex extends Message { - /** - * @generated from field: repeated bytes staking_tx_hash_list = 1; - */ - stakingTxHashList: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCDelegatorDelegationIndex"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "staking_tx_hash_list", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCDelegatorDelegationIndex { - return new BTCDelegatorDelegationIndex().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCDelegatorDelegationIndex { - return new BTCDelegatorDelegationIndex().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCDelegatorDelegationIndex { - return new BTCDelegatorDelegationIndex().fromJsonString(jsonString, options); - } - - static equals(a: BTCDelegatorDelegationIndex | PlainMessage | undefined, b: BTCDelegatorDelegationIndex | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCDelegatorDelegationIndex, a, b); - } -} - -/** - * SignatureInfo is a BIP-340 signature together with its signer's BIP-340 PK - * - * @generated from message babylon.btcstaking.v1.SignatureInfo - */ -export class SignatureInfo extends Message { - /** - * @generated from field: bytes pk = 1; - */ - pk = new Uint8Array(0); - - /** - * @generated from field: bytes sig = 2; - */ - sig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.SignatureInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureInfo { - return new SignatureInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureInfo { - return new SignatureInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureInfo { - return new SignatureInfo().fromJsonString(jsonString, options); - } - - static equals(a: SignatureInfo | PlainMessage | undefined, b: SignatureInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureInfo, a, b); - } -} - -/** - * CovenantAdaptorSignatures is a list adaptor signatures signed by the - * covenant with different finality provider's public keys as encryption keys - * - * @generated from message babylon.btcstaking.v1.CovenantAdaptorSignatures - */ -export class CovenantAdaptorSignatures extends Message { - /** - * cov_pk is the public key of the covenant emulator, used as the public key of the adaptor signature - * - * @generated from field: bytes cov_pk = 1; - */ - covPk = new Uint8Array(0); - - /** - * adaptor_sigs is a list of adaptor signatures, each encrypted by a restaked BTC finality provider's public key - * - * @generated from field: repeated bytes adaptor_sigs = 2; - */ - adaptorSigs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.CovenantAdaptorSignatures"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cov_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "adaptor_sigs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CovenantAdaptorSignatures { - return new CovenantAdaptorSignatures().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CovenantAdaptorSignatures { - return new CovenantAdaptorSignatures().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CovenantAdaptorSignatures { - return new CovenantAdaptorSignatures().fromJsonString(jsonString, options); - } - - static equals(a: CovenantAdaptorSignatures | PlainMessage | undefined, b: CovenantAdaptorSignatures | PlainMessage | undefined): boolean { - return proto3.util.equals(CovenantAdaptorSignatures, a, b); - } -} - -/** - * SelectiveSlashingEvidence is the evidence that the finality provider - * selectively slashed a BTC delegation - * NOTE: it's possible that a slashed finality provider exploits the - * SelectiveSlashingEvidence endpoint while it is actually slashed due to - * equivocation. But such behaviour does not affect the system's security - * or gives any benefit for the adversary - * - * @generated from message babylon.btcstaking.v1.SelectiveSlashingEvidence - */ -export class SelectiveSlashingEvidence extends Message { - /** - * staking_tx_hash is the hash of the staking tx. - * It uniquely identifies a BTC delegation - * - * @generated from field: string staking_tx_hash = 1; - */ - stakingTxHash = ""; - - /** - * fp_btc_pk is the BTC PK of the finality provider who - * launches the selective slashing offence - * - * @generated from field: bytes fp_btc_pk = 2; - */ - fpBtcPk = new Uint8Array(0); - - /** - * recovered_fp_btc_sk is the finality provider's BTC SK recovered from - * the covenant adaptor/Schnorr signature pair. It is the consequence - * of selective slashing. - * - * @generated from field: bytes recovered_fp_btc_sk = 3; - */ - recoveredFpBtcSk = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.SelectiveSlashingEvidence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "staking_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "recovered_fp_btc_sk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SelectiveSlashingEvidence { - return new SelectiveSlashingEvidence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SelectiveSlashingEvidence { - return new SelectiveSlashingEvidence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SelectiveSlashingEvidence { - return new SelectiveSlashingEvidence().fromJsonString(jsonString, options); - } - - static equals(a: SelectiveSlashingEvidence | PlainMessage | undefined, b: SelectiveSlashingEvidence | PlainMessage | undefined): boolean { - return proto3.util.equals(SelectiveSlashingEvidence, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/events_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/events_pb.ts deleted file mode 100644 index 67c93d2..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/events_pb.ts +++ /dev/null @@ -1,245 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/events.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { BTCDelegationStatus, FinalityProvider, SelectiveSlashingEvidence } from "./btcstaking_pb.js"; - -/** - * EventNewFinalityProvider is the event emitted when a finality provider is created - * - * @generated from message babylon.btcstaking.v1.EventNewFinalityProvider - */ -export class EventNewFinalityProvider extends Message { - /** - * @generated from field: babylon.btcstaking.v1.FinalityProvider fp = 1; - */ - fp?: FinalityProvider; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.EventNewFinalityProvider"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp", kind: "message", T: FinalityProvider }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventNewFinalityProvider { - return new EventNewFinalityProvider().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventNewFinalityProvider { - return new EventNewFinalityProvider().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventNewFinalityProvider { - return new EventNewFinalityProvider().fromJsonString(jsonString, options); - } - - static equals(a: EventNewFinalityProvider | PlainMessage | undefined, b: EventNewFinalityProvider | PlainMessage | undefined): boolean { - return proto3.util.equals(EventNewFinalityProvider, a, b); - } -} - -/** - * EventBTCDelegationStateUpdate is the event emitted when a BTC delegation's state is - * updated. There are the following possible state transitions: - * - non-existing -> pending, which happens upon `MsgCreateBTCDelegation` - * - pending -> active, which happens upon `MsgAddCovenantSigs` - * - active -> unbonded, which happens upon `MsgBTCUndelegate` or upon staking tx timelock expires - * - * @generated from message babylon.btcstaking.v1.EventBTCDelegationStateUpdate - */ -export class EventBTCDelegationStateUpdate extends Message { - /** - * staking_tx_hash is the hash of the staking tx. - * It uniquely identifies a BTC delegation - * - * @generated from field: string staking_tx_hash = 1; - */ - stakingTxHash = ""; - - /** - * new_state is the new state of this BTC delegation - * - * @generated from field: babylon.btcstaking.v1.BTCDelegationStatus new_state = 2; - */ - newState = BTCDelegationStatus.PENDING; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.EventBTCDelegationStateUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "staking_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "new_state", kind: "enum", T: proto3.getEnumType(BTCDelegationStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBTCDelegationStateUpdate { - return new EventBTCDelegationStateUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBTCDelegationStateUpdate { - return new EventBTCDelegationStateUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBTCDelegationStateUpdate { - return new EventBTCDelegationStateUpdate().fromJsonString(jsonString, options); - } - - static equals(a: EventBTCDelegationStateUpdate | PlainMessage | undefined, b: EventBTCDelegationStateUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBTCDelegationStateUpdate, a, b); - } -} - -/** - * EventSelectiveSlashing is the event emitted when an adversarial - * finality provider selectively slashes a BTC delegation. This will - * result in slashing of all BTC delegations under this finality provider. - * - * @generated from message babylon.btcstaking.v1.EventSelectiveSlashing - */ -export class EventSelectiveSlashing extends Message { - /** - * evidence is the evidence of selective slashing - * - * @generated from field: babylon.btcstaking.v1.SelectiveSlashingEvidence evidence = 1; - */ - evidence?: SelectiveSlashingEvidence; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.EventSelectiveSlashing"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence", kind: "message", T: SelectiveSlashingEvidence }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventSelectiveSlashing { - return new EventSelectiveSlashing().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventSelectiveSlashing { - return new EventSelectiveSlashing().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventSelectiveSlashing { - return new EventSelectiveSlashing().fromJsonString(jsonString, options); - } - - static equals(a: EventSelectiveSlashing | PlainMessage | undefined, b: EventSelectiveSlashing | PlainMessage | undefined): boolean { - return proto3.util.equals(EventSelectiveSlashing, a, b); - } -} - -/** - * EventPowerDistUpdate is an event that affects voting power distirbution - * of BTC staking protocol - * - * @generated from message babylon.btcstaking.v1.EventPowerDistUpdate - */ -export class EventPowerDistUpdate extends Message { - /** - * ev is the event that affects voting power distribution - * - * @generated from oneof babylon.btcstaking.v1.EventPowerDistUpdate.ev - */ - ev: { - /** - * slashed_fp means a finality provider is slashed - * - * @generated from field: babylon.btcstaking.v1.EventPowerDistUpdate.EventSlashedFinalityProvider slashed_fp = 1; - */ - value: EventPowerDistUpdate_EventSlashedFinalityProvider; - case: "slashedFp"; - } | { - /** - * btc_del_state_update means a BTC delegation's state is updated - * - * @generated from field: babylon.btcstaking.v1.EventBTCDelegationStateUpdate btc_del_state_update = 2; - */ - value: EventBTCDelegationStateUpdate; - case: "btcDelStateUpdate"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.EventPowerDistUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "slashed_fp", kind: "message", T: EventPowerDistUpdate_EventSlashedFinalityProvider, oneof: "ev" }, - { no: 2, name: "btc_del_state_update", kind: "message", T: EventBTCDelegationStateUpdate, oneof: "ev" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventPowerDistUpdate { - return new EventPowerDistUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventPowerDistUpdate { - return new EventPowerDistUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventPowerDistUpdate { - return new EventPowerDistUpdate().fromJsonString(jsonString, options); - } - - static equals(a: EventPowerDistUpdate | PlainMessage | undefined, b: EventPowerDistUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(EventPowerDistUpdate, a, b); - } -} - -/** - * EventSlashedFinalityProvider defines an event that a finality provider - * is slashed - * TODO: unify with existing slashing events - * - * @generated from message babylon.btcstaking.v1.EventPowerDistUpdate.EventSlashedFinalityProvider - */ -export class EventPowerDistUpdate_EventSlashedFinalityProvider extends Message { - /** - * @generated from field: bytes pk = 1; - */ - pk = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.EventPowerDistUpdate.EventSlashedFinalityProvider"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventPowerDistUpdate_EventSlashedFinalityProvider { - return new EventPowerDistUpdate_EventSlashedFinalityProvider().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventPowerDistUpdate_EventSlashedFinalityProvider { - return new EventPowerDistUpdate_EventSlashedFinalityProvider().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventPowerDistUpdate_EventSlashedFinalityProvider { - return new EventPowerDistUpdate_EventSlashedFinalityProvider().fromJsonString(jsonString, options); - } - - static equals(a: EventPowerDistUpdate_EventSlashedFinalityProvider | PlainMessage | undefined, b: EventPowerDistUpdate_EventSlashedFinalityProvider | PlainMessage | undefined): boolean { - return proto3.util.equals(EventPowerDistUpdate_EventSlashedFinalityProvider, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/genesis_pb.ts deleted file mode 100644 index f1cd64c..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/genesis_pb.ts +++ /dev/null @@ -1,378 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/genesis.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { BTCDelegation, BTCDelegatorDelegationIndex, FinalityProvider } from "./btcstaking_pb.js"; -import { VotingPowerDistCache } from "./incentive_pb.js"; -import { EventPowerDistUpdate } from "./events_pb.js"; - -/** - * GenesisState defines the btcstaking module's genesis state. - * - * @generated from message babylon.btcstaking.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: babylon.btcstaking.v1.Params params = 1; - */ - params?: Params; - - /** - * finality_providers all the finality providers registered. - * - * @generated from field: repeated babylon.btcstaking.v1.FinalityProvider finality_providers = 2; - */ - finalityProviders: FinalityProvider[] = []; - - /** - * btc_delegations all the btc delegations in the state. - * - * @generated from field: repeated babylon.btcstaking.v1.BTCDelegation btc_delegations = 3; - */ - btcDelegations: BTCDelegation[] = []; - - /** - * voting_powers the voting power of every finality provider at every block height. - * - * @generated from field: repeated babylon.btcstaking.v1.VotingPowerFP voting_powers = 4; - */ - votingPowers: VotingPowerFP[] = []; - - /** - * block_height_chains the block height of babylon and bitcoin. - * - * @generated from field: repeated babylon.btcstaking.v1.BlockHeightBbnToBtc block_height_chains = 5; - */ - blockHeightChains: BlockHeightBbnToBtc[] = []; - - /** - * btc_delegators contains all the btc delegators with the associated finality provider. - * - * @generated from field: repeated babylon.btcstaking.v1.BTCDelegator btc_delegators = 6; - */ - btcDelegators: BTCDelegator[] = []; - - /** - * all the events and its indexes. - * - * @generated from field: repeated babylon.btcstaking.v1.EventIndex events = 7; - */ - events: EventIndex[] = []; - - /** - * vp_dst_cache is the table of all providers voting power with the total at one specific block. - * TODO: remove this after not storing in the keeper store it anymore. - * - * @generated from field: repeated babylon.btcstaking.v1.VotingPowerDistCacheBlkHeight vp_dst_cache = 8; - */ - vpDstCache: VotingPowerDistCacheBlkHeight[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "finality_providers", kind: "message", T: FinalityProvider, repeated: true }, - { no: 3, name: "btc_delegations", kind: "message", T: BTCDelegation, repeated: true }, - { no: 4, name: "voting_powers", kind: "message", T: VotingPowerFP, repeated: true }, - { no: 5, name: "block_height_chains", kind: "message", T: BlockHeightBbnToBtc, repeated: true }, - { no: 6, name: "btc_delegators", kind: "message", T: BTCDelegator, repeated: true }, - { no: 7, name: "events", kind: "message", T: EventIndex, repeated: true }, - { no: 8, name: "vp_dst_cache", kind: "message", T: VotingPowerDistCacheBlkHeight, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * VotingPowerFP contains the information about the voting power - * of an finality provider in a specific block height. - * - * @generated from message babylon.btcstaking.v1.VotingPowerFP - */ -export class VotingPowerFP extends Message { - /** - * block_height is the height of the block the voting power was stored. - * - * @generated from field: uint64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * fp_btc_pk the finality provider btc public key. - * - * @generated from field: bytes fp_btc_pk = 2; - */ - fpBtcPk = new Uint8Array(0); - - /** - * voting_power is the power of the finality provider at this specific block height. - * - * @generated from field: uint64 voting_power = 3; - */ - votingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.VotingPowerFP"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VotingPowerFP { - return new VotingPowerFP().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VotingPowerFP { - return new VotingPowerFP().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VotingPowerFP { - return new VotingPowerFP().fromJsonString(jsonString, options); - } - - static equals(a: VotingPowerFP | PlainMessage | undefined, b: VotingPowerFP | PlainMessage | undefined): boolean { - return proto3.util.equals(VotingPowerFP, a, b); - } -} - -/** - * VotingPowerDistCacheBlkHeight the total voting power of the finality providers at one specific block height - * - * @generated from message babylon.btcstaking.v1.VotingPowerDistCacheBlkHeight - */ -export class VotingPowerDistCacheBlkHeight extends Message { - /** - * block_height is the height of the block the voting power distribution cached was stored. - * - * @generated from field: uint64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * vp_distribution the finality providers distribution cache at that height. - * - * @generated from field: babylon.btcstaking.v1.VotingPowerDistCache vp_distribution = 2; - */ - vpDistribution?: VotingPowerDistCache; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.VotingPowerDistCacheBlkHeight"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "vp_distribution", kind: "message", T: VotingPowerDistCache }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VotingPowerDistCacheBlkHeight { - return new VotingPowerDistCacheBlkHeight().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VotingPowerDistCacheBlkHeight { - return new VotingPowerDistCacheBlkHeight().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VotingPowerDistCacheBlkHeight { - return new VotingPowerDistCacheBlkHeight().fromJsonString(jsonString, options); - } - - static equals(a: VotingPowerDistCacheBlkHeight | PlainMessage | undefined, b: VotingPowerDistCacheBlkHeight | PlainMessage | undefined): boolean { - return proto3.util.equals(VotingPowerDistCacheBlkHeight, a, b); - } -} - -/** - * BlockHeightBbnToBtc stores the btc <-> bbn block. - * - * @generated from message babylon.btcstaking.v1.BlockHeightBbnToBtc - */ -export class BlockHeightBbnToBtc extends Message { - /** - * block_height_bbn is the height of the block in the babylon chain. - * - * @generated from field: uint64 block_height_bbn = 1; - */ - blockHeightBbn = protoInt64.zero; - - /** - * block_height_btc is the height of the block in the BTC. - * - * @generated from field: uint64 block_height_btc = 2; - */ - blockHeightBtc = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BlockHeightBbnToBtc"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height_bbn", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "block_height_btc", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlockHeightBbnToBtc { - return new BlockHeightBbnToBtc().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlockHeightBbnToBtc { - return new BlockHeightBbnToBtc().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlockHeightBbnToBtc { - return new BlockHeightBbnToBtc().fromJsonString(jsonString, options); - } - - static equals(a: BlockHeightBbnToBtc | PlainMessage | undefined, b: BlockHeightBbnToBtc | PlainMessage | undefined): boolean { - return proto3.util.equals(BlockHeightBbnToBtc, a, b); - } -} - -/** - * BTCDelegator BTC delegator information with the associated finality provider. - * - * @generated from message babylon.btcstaking.v1.BTCDelegator - */ -export class BTCDelegator extends Message { - /** - * idx the btc delegator index. - * - * @generated from field: babylon.btcstaking.v1.BTCDelegatorDelegationIndex idx = 1; - */ - idx?: BTCDelegatorDelegationIndex; - - /** - * fp_btc_pk the finality provider btc public key. - * - * @generated from field: bytes fp_btc_pk = 2; - */ - fpBtcPk = new Uint8Array(0); - - /** - * del_btc_pk the delegator btc public key. - * - * @generated from field: bytes del_btc_pk = 3; - */ - delBtcPk = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCDelegator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "idx", kind: "message", T: BTCDelegatorDelegationIndex }, - { no: 2, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "del_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCDelegator { - return new BTCDelegator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCDelegator { - return new BTCDelegator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCDelegator { - return new BTCDelegator().fromJsonString(jsonString, options); - } - - static equals(a: BTCDelegator | PlainMessage | undefined, b: BTCDelegator | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCDelegator, a, b); - } -} - -/** - * EventIndex contains the event and its index. - * - * @generated from message babylon.btcstaking.v1.EventIndex - */ -export class EventIndex extends Message { - /** - * idx is the index the event was stored. - * - * @generated from field: uint64 idx = 1; - */ - idx = protoInt64.zero; - - /** - * block_height_btc is the height of the block in the BTC chain. - * - * @generated from field: uint64 block_height_btc = 2; - */ - blockHeightBtc = protoInt64.zero; - - /** - * event the event stored. - * - * @generated from field: babylon.btcstaking.v1.EventPowerDistUpdate event = 3; - */ - event?: EventPowerDistUpdate; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.EventIndex"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "idx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "block_height_btc", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "event", kind: "message", T: EventPowerDistUpdate }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventIndex { - return new EventIndex().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventIndex { - return new EventIndex().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventIndex { - return new EventIndex().fromJsonString(jsonString, options); - } - - static equals(a: EventIndex | PlainMessage | undefined, b: EventIndex | PlainMessage | undefined): boolean { - return proto3.util.equals(EventIndex, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/incentive_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/incentive_pb.ts deleted file mode 100644 index dc6ef72..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/incentive_pb.ts +++ /dev/null @@ -1,197 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/incentive.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PubKey } from "../../../cosmos/crypto/secp256k1/keys_pb.js"; - -/** - * VotingPowerDistCache is the cache for voting power distribution of finality providers - * and their BTC delegations at a height - * - * @generated from message babylon.btcstaking.v1.VotingPowerDistCache - */ -export class VotingPowerDistCache extends Message { - /** - * @generated from field: uint64 total_voting_power = 1; - */ - totalVotingPower = protoInt64.zero; - - /** - * finality_providers is a list of finality providers' voting power information - * - * @generated from field: repeated babylon.btcstaking.v1.FinalityProviderDistInfo finality_providers = 2; - */ - finalityProviders: FinalityProviderDistInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.VotingPowerDistCache"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "finality_providers", kind: "message", T: FinalityProviderDistInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VotingPowerDistCache { - return new VotingPowerDistCache().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VotingPowerDistCache { - return new VotingPowerDistCache().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VotingPowerDistCache { - return new VotingPowerDistCache().fromJsonString(jsonString, options); - } - - static equals(a: VotingPowerDistCache | PlainMessage | undefined, b: VotingPowerDistCache | PlainMessage | undefined): boolean { - return proto3.util.equals(VotingPowerDistCache, a, b); - } -} - -/** - * FinalityProviderDistInfo is the reward distribution of a finality provider and its BTC delegations - * - * @generated from message babylon.btcstaking.v1.FinalityProviderDistInfo - */ -export class FinalityProviderDistInfo extends Message { - /** - * btc_pk is the Bitcoin secp256k1 PK of this finality provider - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 1; - */ - btcPk = new Uint8Array(0); - - /** - * babylon_pk is the Babylon public key of the finality provider - * - * @generated from field: cosmos.crypto.secp256k1.PubKey babylon_pk = 2; - */ - babylonPk?: PubKey; - - /** - * commission defines the commission rate of finality provider - * - * @generated from field: string commission = 3; - */ - commission = ""; - - /** - * total_voting_power is the total voting power of the finality provider - * - * @generated from field: uint64 total_voting_power = 4; - */ - totalVotingPower = protoInt64.zero; - - /** - * btc_dels is a list of BTC delegations' voting power information under this finality provider - * - * @generated from field: repeated babylon.btcstaking.v1.BTCDelDistInfo btc_dels = 5; - */ - btcDels: BTCDelDistInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.FinalityProviderDistInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "babylon_pk", kind: "message", T: PubKey }, - { no: 3, name: "commission", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "total_voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "btc_dels", kind: "message", T: BTCDelDistInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FinalityProviderDistInfo { - return new FinalityProviderDistInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FinalityProviderDistInfo { - return new FinalityProviderDistInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FinalityProviderDistInfo { - return new FinalityProviderDistInfo().fromJsonString(jsonString, options); - } - - static equals(a: FinalityProviderDistInfo | PlainMessage | undefined, b: FinalityProviderDistInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(FinalityProviderDistInfo, a, b); - } -} - -/** - * BTCDelDistInfo contains the information related to reward distribution for a BTC delegation - * - * @generated from message babylon.btcstaking.v1.BTCDelDistInfo - */ -export class BTCDelDistInfo extends Message { - /** - * btc_pk is the Bitcoin secp256k1 PK of this BTC delegation - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 1; - */ - btcPk = new Uint8Array(0); - - /** - * babylon_pk is the Babylon public key of the BTC delegation - * - * @generated from field: cosmos.crypto.secp256k1.PubKey babylon_pk = 2; - */ - babylonPk?: PubKey; - - /** - * staking_tx_hash is the staking tx hash of the BTC delegation - * - * @generated from field: string staking_tx_hash = 3; - */ - stakingTxHash = ""; - - /** - * voting_power is the voting power of the BTC delegation - * - * @generated from field: uint64 voting_power = 4; - */ - votingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCDelDistInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "babylon_pk", kind: "message", T: PubKey }, - { no: 3, name: "staking_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCDelDistInfo { - return new BTCDelDistInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCDelDistInfo { - return new BTCDelDistInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCDelDistInfo { - return new BTCDelDistInfo().fromJsonString(jsonString, options); - } - - static equals(a: BTCDelDistInfo | PlainMessage | undefined, b: BTCDelDistInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCDelDistInfo, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/params_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/params_pb.ts deleted file mode 100644 index 0472c38..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/params_pb.ts +++ /dev/null @@ -1,123 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/params.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message babylon.btcstaking.v1.Params - */ -export class Params extends Message { - /** - * covenant_pks is the list of public keys held by the covenant committee - * each PK follows encoding in BIP-340 spec on Bitcoin - * - * @generated from field: repeated bytes covenant_pks = 1; - */ - covenantPks: Uint8Array[] = []; - - /** - * covenant_quorum is the minimum number of signatures needed for the covenant - * multisignature - * - * @generated from field: uint32 covenant_quorum = 2; - */ - covenantQuorum = 0; - - /** - * slashing address is the address that the slashed BTC goes to - * the address is in string on Bitcoin - * - * @generated from field: string slashing_address = 3; - */ - slashingAddress = ""; - - /** - * min_slashing_tx_fee_sat is the minimum amount of tx fee (quantified - * in Satoshi) needed for the pre-signed slashing tx - * TODO: change to satoshi per byte? - * - * @generated from field: int64 min_slashing_tx_fee_sat = 4; - */ - minSlashingTxFeeSat = protoInt64.zero; - - /** - * min_commission_rate is the chain-wide minimum commission rate that a finality provider can charge their delegators - * - * @generated from field: string min_commission_rate = 5; - */ - minCommissionRate = ""; - - /** - * slashing_rate determines the portion of the staked amount to be slashed, - * expressed as a decimal (e.g., 0.5 for 50%). - * - * @generated from field: string slashing_rate = 6; - */ - slashingRate = ""; - - /** - * max_active_finality_providers is the maximum number of active finality providers in the BTC staking protocol - * - * @generated from field: uint32 max_active_finality_providers = 7; - */ - maxActiveFinalityProviders = 0; - - /** - * min_unbonding_time is the minimum time for unbonding transaction timelock in BTC blocks - * - * @generated from field: uint32 min_unbonding_time = 8; - */ - minUnbondingTime = 0; - - /** - * min_unbonding_rate is the minimum amount of BTC that are required in unbonding - * output, expressed as a fraction of staking output - * example: if min_unbonding_rate=0.9, then the unbonding output value - * must be at least 90% of staking output, for staking request to be considered - * valid - * - * @generated from field: string min_unbonding_rate = 9; - */ - minUnbondingRate = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "covenant_pks", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 2, name: "covenant_quorum", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "slashing_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "min_slashing_tx_fee_sat", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "min_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "slashing_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "max_active_finality_providers", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 8, name: "min_unbonding_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 9, name: "min_unbonding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/pop_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/pop_pb.ts deleted file mode 100644 index c3dc715..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/pop_pb.ts +++ /dev/null @@ -1,153 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/pop.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * BTCSigType indicates the type of btc_sig in a pop - * - * @generated from enum babylon.btcstaking.v1.BTCSigType - */ -export enum BTCSigType { - /** - * BIP340 means the btc_sig will follow the BIP-340 encoding - * - * @generated from enum value: BIP340 = 0; - */ - BIP340 = 0, - - /** - * BIP322 means the btc_sig will follow the BIP-322 encoding - * - * @generated from enum value: BIP322 = 1; - */ - BIP322 = 1, - - /** - * ECDSA means the btc_sig will follow the ECDSA encoding - * ref: https://github.com/okx/js-wallet-sdk/blob/a57c2acbe6ce917c0aa4e951d96c4e562ad58444/packages/coin-bitcoin/src/BtcWallet.ts#L331 - * - * @generated from enum value: ECDSA = 2; - */ - ECDSA = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(BTCSigType) -proto3.util.setEnumType(BTCSigType, "babylon.btcstaking.v1.BTCSigType", [ - { no: 0, name: "BIP340" }, - { no: 1, name: "BIP322" }, - { no: 2, name: "ECDSA" }, -]); - -/** - * ProofOfPossession is the proof of possession that a Babylon secp256k1 - * secret key and a Bitcoin secp256k1 secret key are held by the same - * person - * - * @generated from message babylon.btcstaking.v1.ProofOfPossession - */ -export class ProofOfPossession extends Message { - /** - * btc_sig_type indicates the type of btc_sig in the pop - * - * @generated from field: babylon.btcstaking.v1.BTCSigType btc_sig_type = 1; - */ - btcSigType = BTCSigType.BIP340; - - /** - * babylon_sig is the signature generated via sign(sk_babylon, pk_btc) - * - * @generated from field: bytes babylon_sig = 2; - */ - babylonSig = new Uint8Array(0); - - /** - * btc_sig is the signature generated via sign(sk_btc, babylon_sig) - * the signature follows encoding in either BIP-340 spec or BIP-322 spec - * - * @generated from field: bytes btc_sig = 3; - */ - btcSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.ProofOfPossession"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_sig_type", kind: "enum", T: proto3.getEnumType(BTCSigType) }, - { no: 2, name: "babylon_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "btc_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofOfPossession { - return new ProofOfPossession().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofOfPossession { - return new ProofOfPossession().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofOfPossession { - return new ProofOfPossession().fromJsonString(jsonString, options); - } - - static equals(a: ProofOfPossession | PlainMessage | undefined, b: ProofOfPossession | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofOfPossession, a, b); - } -} - -/** - * BIP322Sig is a BIP-322 signature together with the address corresponding to - * the signer - * - * @generated from message babylon.btcstaking.v1.BIP322Sig - */ -export class BIP322Sig extends Message { - /** - * address is the signer's address - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * sig is the actual signature in BIP-322 format - * - * @generated from field: bytes sig = 2; - */ - sig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BIP322Sig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BIP322Sig { - return new BIP322Sig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BIP322Sig { - return new BIP322Sig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BIP322Sig { - return new BIP322Sig().fromJsonString(jsonString, options); - } - - static equals(a: BIP322Sig | PlainMessage | undefined, b: BIP322Sig | PlainMessage | undefined): boolean { - return proto3.util.equals(BIP322Sig, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/query_cosmes.ts deleted file mode 100644 index 49e2dc3..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/query_cosmes.ts +++ /dev/null @@ -1,130 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/query.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryActivatedHeightRequest, QueryActivatedHeightResponse, QueryActiveFinalityProvidersAtHeightRequest, QueryActiveFinalityProvidersAtHeightResponse, QueryBTCDelegationRequest, QueryBTCDelegationResponse, QueryBTCDelegationsRequest, QueryBTCDelegationsResponse, QueryFinalityProviderCurrentPowerRequest, QueryFinalityProviderCurrentPowerResponse, QueryFinalityProviderDelegationsRequest, QueryFinalityProviderDelegationsResponse, QueryFinalityProviderPowerAtHeightRequest, QueryFinalityProviderPowerAtHeightResponse, QueryFinalityProviderRequest, QueryFinalityProviderResponse, QueryFinalityProvidersRequest, QueryFinalityProvidersResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "babylon.btcstaking.v1.Query"; - -/** - * Parameters queries the parameters of the module. - * - * @generated from rpc babylon.btcstaking.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * FinalityProviders queries all finality providers - * - * @generated from rpc babylon.btcstaking.v1.Query.FinalityProviders - */ -export const QueryFinalityProvidersService = { - typeName: TYPE_NAME, - method: "FinalityProviders", - Request: QueryFinalityProvidersRequest, - Response: QueryFinalityProvidersResponse, -} as const; - -/** - * FinalityProvider info about one finality provider - * - * @generated from rpc babylon.btcstaking.v1.Query.FinalityProvider - */ -export const QueryFinalityProviderService = { - typeName: TYPE_NAME, - method: "FinalityProvider", - Request: QueryFinalityProviderRequest, - Response: QueryFinalityProviderResponse, -} as const; - -/** - * BTCDelegations queries all BTC delegations under a given status - * - * @generated from rpc babylon.btcstaking.v1.Query.BTCDelegations - */ -export const QueryBTCDelegationsService = { - typeName: TYPE_NAME, - method: "BTCDelegations", - Request: QueryBTCDelegationsRequest, - Response: QueryBTCDelegationsResponse, -} as const; - -/** - * ActiveFinalityProvidersAtHeight queries finality providers with non zero voting power at given height. - * - * @generated from rpc babylon.btcstaking.v1.Query.ActiveFinalityProvidersAtHeight - */ -export const QueryActiveFinalityProvidersAtHeightService = { - typeName: TYPE_NAME, - method: "ActiveFinalityProvidersAtHeight", - Request: QueryActiveFinalityProvidersAtHeightRequest, - Response: QueryActiveFinalityProvidersAtHeightResponse, -} as const; - -/** - * FinalityProviderPowerAtHeight queries the voting power of a finality provider at a given height - * - * @generated from rpc babylon.btcstaking.v1.Query.FinalityProviderPowerAtHeight - */ -export const QueryFinalityProviderPowerAtHeightService = { - typeName: TYPE_NAME, - method: "FinalityProviderPowerAtHeight", - Request: QueryFinalityProviderPowerAtHeightRequest, - Response: QueryFinalityProviderPowerAtHeightResponse, -} as const; - -/** - * FinalityProviderCurrentPower queries the voting power of a finality provider at the current height - * - * @generated from rpc babylon.btcstaking.v1.Query.FinalityProviderCurrentPower - */ -export const QueryFinalityProviderCurrentPowerService = { - typeName: TYPE_NAME, - method: "FinalityProviderCurrentPower", - Request: QueryFinalityProviderCurrentPowerRequest, - Response: QueryFinalityProviderCurrentPowerResponse, -} as const; - -/** - * ActivatedHeight queries the height when BTC staking protocol is activated, i.e., the first height when - * there exists 1 finality provider with voting power - * - * @generated from rpc babylon.btcstaking.v1.Query.ActivatedHeight - */ -export const QueryActivatedHeightService = { - typeName: TYPE_NAME, - method: "ActivatedHeight", - Request: QueryActivatedHeightRequest, - Response: QueryActivatedHeightResponse, -} as const; - -/** - * FinalityProviderDelegations queries all BTC delegations of the given finality provider - * - * @generated from rpc babylon.btcstaking.v1.Query.FinalityProviderDelegations - */ -export const QueryFinalityProviderDelegationsService = { - typeName: TYPE_NAME, - method: "FinalityProviderDelegations", - Request: QueryFinalityProviderDelegationsRequest, - Response: QueryFinalityProviderDelegationsResponse, -} as const; - -/** - * BTCDelegation retrieves delegation by corresponding staking tx hash - * - * @generated from rpc babylon.btcstaking.v1.Query.BTCDelegation - */ -export const QueryBTCDelegationService = { - typeName: TYPE_NAME, - method: "BTCDelegation", - Request: QueryBTCDelegationRequest, - Response: QueryBTCDelegationResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/query_pb.ts deleted file mode 100644 index 85dc4b9..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/query_pb.ts +++ /dev/null @@ -1,1305 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/query.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { BTCDelegationStatus, CovenantAdaptorSignatures, FinalityProviderWithMeta, SignatureInfo } from "./btcstaking_pb.js"; -import { Description } from "../../../cosmos/staking/v1beta1/staking_pb.js"; -import { PubKey } from "../../../cosmos/crypto/secp256k1/keys_pb.js"; -import { ProofOfPossession } from "./pop_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: babylon.btcstaking.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryFinalityProvidersRequest is the request type for the - * Query/FinalityProviders RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProvidersRequest - */ -export class QueryFinalityProvidersRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProvidersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProvidersRequest { - return new QueryFinalityProvidersRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProvidersRequest { - return new QueryFinalityProvidersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProvidersRequest { - return new QueryFinalityProvidersRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProvidersRequest | PlainMessage | undefined, b: QueryFinalityProvidersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProvidersRequest, a, b); - } -} - -/** - * QueryFinalityProvidersResponse is the response type for the - * Query/FinalityProviders RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProvidersResponse - */ -export class QueryFinalityProvidersResponse extends Message { - /** - * finality_providers contains all the finality providers - * - * @generated from field: repeated babylon.btcstaking.v1.FinalityProviderResponse finality_providers = 1; - */ - finalityProviders: FinalityProviderResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProvidersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "finality_providers", kind: "message", T: FinalityProviderResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProvidersResponse { - return new QueryFinalityProvidersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProvidersResponse { - return new QueryFinalityProvidersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProvidersResponse { - return new QueryFinalityProvidersResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProvidersResponse | PlainMessage | undefined, b: QueryFinalityProvidersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProvidersResponse, a, b); - } -} - -/** - * QueryFinalityProviderRequest requests information about a finality provider - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderRequest - */ -export class QueryFinalityProviderRequest extends Message { - /** - * fp_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the finality provider - * - * @generated from field: string fp_btc_pk_hex = 1; - */ - fpBtcPkHex = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp_btc_pk_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderRequest { - return new QueryFinalityProviderRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderRequest { - return new QueryFinalityProviderRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderRequest { - return new QueryFinalityProviderRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderRequest | PlainMessage | undefined, b: QueryFinalityProviderRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderRequest, a, b); - } -} - -/** - * QueryFinalityProviderResponse contains information about a finality provider - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderResponse - */ -export class QueryFinalityProviderResponse extends Message { - /** - * finality_provider contains the FinalityProvider - * - * @generated from field: babylon.btcstaking.v1.FinalityProviderResponse finality_provider = 1; - */ - finalityProvider?: FinalityProviderResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "finality_provider", kind: "message", T: FinalityProviderResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderResponse { - return new QueryFinalityProviderResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderResponse { - return new QueryFinalityProviderResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderResponse { - return new QueryFinalityProviderResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderResponse | PlainMessage | undefined, b: QueryFinalityProviderResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderResponse, a, b); - } -} - -/** - * QueryBTCDelegationsRequest is the request type for the - * Query/BTCDelegations RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryBTCDelegationsRequest - */ -export class QueryBTCDelegationsRequest extends Message { - /** - * status is the queried status for BTC delegations - * - * @generated from field: babylon.btcstaking.v1.BTCDelegationStatus status = 1; - */ - status = BTCDelegationStatus.PENDING; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryBTCDelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(BTCDelegationStatus) }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCDelegationsRequest { - return new QueryBTCDelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCDelegationsRequest { - return new QueryBTCDelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCDelegationsRequest { - return new QueryBTCDelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCDelegationsRequest | PlainMessage | undefined, b: QueryBTCDelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCDelegationsRequest, a, b); - } -} - -/** - * QueryBTCDelegationsResponse is the response type for the - * Query/BTCDelegations RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryBTCDelegationsResponse - */ -export class QueryBTCDelegationsResponse extends Message { - /** - * btc_delegations contains all the queried BTC delegations under the given status - * - * @generated from field: repeated babylon.btcstaking.v1.BTCDelegationResponse btc_delegations = 1; - */ - btcDelegations: BTCDelegationResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryBTCDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_delegations", kind: "message", T: BTCDelegationResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCDelegationsResponse { - return new QueryBTCDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCDelegationsResponse { - return new QueryBTCDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCDelegationsResponse { - return new QueryBTCDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCDelegationsResponse | PlainMessage | undefined, b: QueryBTCDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCDelegationsResponse, a, b); - } -} - -/** - * QueryFinalityProviderPowerAtHeightRequest is the request type for the - * Query/FinalityProviderPowerAtHeight RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderPowerAtHeightRequest - */ -export class QueryFinalityProviderPowerAtHeightRequest extends Message { - /** - * fp_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the finality provider that - * this BTC delegation delegates to - * the PK follows encoding in BIP-340 spec - * - * @generated from field: string fp_btc_pk_hex = 1; - */ - fpBtcPkHex = ""; - - /** - * height is used for querying the given finality provider's voting power at this height - * - * @generated from field: uint64 height = 2; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderPowerAtHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp_btc_pk_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderPowerAtHeightRequest { - return new QueryFinalityProviderPowerAtHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderPowerAtHeightRequest { - return new QueryFinalityProviderPowerAtHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderPowerAtHeightRequest { - return new QueryFinalityProviderPowerAtHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderPowerAtHeightRequest | PlainMessage | undefined, b: QueryFinalityProviderPowerAtHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderPowerAtHeightRequest, a, b); - } -} - -/** - * QueryFinalityProviderPowerAtHeightResponse is the response type for the - * Query/FinalityProviderPowerAtHeight RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderPowerAtHeightResponse - */ -export class QueryFinalityProviderPowerAtHeightResponse extends Message { - /** - * voting_power is the voting power of the finality provider - * - * @generated from field: uint64 voting_power = 1; - */ - votingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderPowerAtHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderPowerAtHeightResponse { - return new QueryFinalityProviderPowerAtHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderPowerAtHeightResponse { - return new QueryFinalityProviderPowerAtHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderPowerAtHeightResponse { - return new QueryFinalityProviderPowerAtHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderPowerAtHeightResponse | PlainMessage | undefined, b: QueryFinalityProviderPowerAtHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderPowerAtHeightResponse, a, b); - } -} - -/** - * QueryFinalityProviderCurrentPowerRequest is the request type for the - * Query/FinalityProviderCurrentPower RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderCurrentPowerRequest - */ -export class QueryFinalityProviderCurrentPowerRequest extends Message { - /** - * fp_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the finality provider that - * this BTC delegation delegates to - * the PK follows encoding in BIP-340 spec - * - * @generated from field: string fp_btc_pk_hex = 1; - */ - fpBtcPkHex = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderCurrentPowerRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp_btc_pk_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderCurrentPowerRequest { - return new QueryFinalityProviderCurrentPowerRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderCurrentPowerRequest { - return new QueryFinalityProviderCurrentPowerRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderCurrentPowerRequest { - return new QueryFinalityProviderCurrentPowerRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderCurrentPowerRequest | PlainMessage | undefined, b: QueryFinalityProviderCurrentPowerRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderCurrentPowerRequest, a, b); - } -} - -/** - * QueryFinalityProviderCurrentPowerResponse is the response type for the - * Query/FinalityProviderCurrentPower RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderCurrentPowerResponse - */ -export class QueryFinalityProviderCurrentPowerResponse extends Message { - /** - * height is the current height - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - /** - * voting_power is the voting power of the finality provider - * - * @generated from field: uint64 voting_power = 2; - */ - votingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderCurrentPowerResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderCurrentPowerResponse { - return new QueryFinalityProviderCurrentPowerResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderCurrentPowerResponse { - return new QueryFinalityProviderCurrentPowerResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderCurrentPowerResponse { - return new QueryFinalityProviderCurrentPowerResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderCurrentPowerResponse | PlainMessage | undefined, b: QueryFinalityProviderCurrentPowerResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderCurrentPowerResponse, a, b); - } -} - -/** - * QueryActiveFinalityProvidersAtHeightRequest is the request type for the - * Query/ActiveFinalityProvidersAtHeight RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryActiveFinalityProvidersAtHeightRequest - */ -export class QueryActiveFinalityProvidersAtHeightRequest extends Message { - /** - * height defines at which Babylon height to query the finality providers info. - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryActiveFinalityProvidersAtHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryActiveFinalityProvidersAtHeightRequest { - return new QueryActiveFinalityProvidersAtHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryActiveFinalityProvidersAtHeightRequest { - return new QueryActiveFinalityProvidersAtHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryActiveFinalityProvidersAtHeightRequest { - return new QueryActiveFinalityProvidersAtHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryActiveFinalityProvidersAtHeightRequest | PlainMessage | undefined, b: QueryActiveFinalityProvidersAtHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryActiveFinalityProvidersAtHeightRequest, a, b); - } -} - -/** - * QueryActiveFinalityProvidersAtHeightResponse is the response type for the - * Query/ActiveFinalityProvidersAtHeight RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryActiveFinalityProvidersAtHeightResponse - */ -export class QueryActiveFinalityProvidersAtHeightResponse extends Message { - /** - * finality_providers contains all the queried finality providersn. - * - * @generated from field: repeated babylon.btcstaking.v1.FinalityProviderWithMeta finality_providers = 1; - */ - finalityProviders: FinalityProviderWithMeta[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryActiveFinalityProvidersAtHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "finality_providers", kind: "message", T: FinalityProviderWithMeta, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryActiveFinalityProvidersAtHeightResponse { - return new QueryActiveFinalityProvidersAtHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryActiveFinalityProvidersAtHeightResponse { - return new QueryActiveFinalityProvidersAtHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryActiveFinalityProvidersAtHeightResponse { - return new QueryActiveFinalityProvidersAtHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryActiveFinalityProvidersAtHeightResponse | PlainMessage | undefined, b: QueryActiveFinalityProvidersAtHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryActiveFinalityProvidersAtHeightResponse, a, b); - } -} - -/** - * QueryActivatedHeightRequest is the request type for the Query/ActivatedHeight RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryActivatedHeightRequest - */ -export class QueryActivatedHeightRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryActivatedHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryActivatedHeightRequest { - return new QueryActivatedHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryActivatedHeightRequest { - return new QueryActivatedHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryActivatedHeightRequest { - return new QueryActivatedHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryActivatedHeightRequest | PlainMessage | undefined, b: QueryActivatedHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryActivatedHeightRequest, a, b); - } -} - -/** - * QueryActivatedHeightResponse is the response type for the Query/ActivatedHeight RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryActivatedHeightResponse - */ -export class QueryActivatedHeightResponse extends Message { - /** - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryActivatedHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryActivatedHeightResponse { - return new QueryActivatedHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryActivatedHeightResponse { - return new QueryActivatedHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryActivatedHeightResponse { - return new QueryActivatedHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryActivatedHeightResponse | PlainMessage | undefined, b: QueryActivatedHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryActivatedHeightResponse, a, b); - } -} - -/** - * QueryFinalityProviderDelegationsRequest is the request type for the - * Query/FinalityProviderDelegations RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderDelegationsRequest - */ -export class QueryFinalityProviderDelegationsRequest extends Message { - /** - * fp_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the finality providerthat - * this BTC delegation delegates to - * the PK follows encoding in BIP-340 spec - * - * @generated from field: string fp_btc_pk_hex = 1; - */ - fpBtcPkHex = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderDelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp_btc_pk_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderDelegationsRequest { - return new QueryFinalityProviderDelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderDelegationsRequest { - return new QueryFinalityProviderDelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderDelegationsRequest { - return new QueryFinalityProviderDelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderDelegationsRequest | PlainMessage | undefined, b: QueryFinalityProviderDelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderDelegationsRequest, a, b); - } -} - -/** - * QueryFinalityProviderDelegationsResponse is the response type for the - * Query/FinalityProviderDelegations RPC method. - * - * @generated from message babylon.btcstaking.v1.QueryFinalityProviderDelegationsResponse - */ -export class QueryFinalityProviderDelegationsResponse extends Message { - /** - * btc_delegator_delegations contains all the queried BTC delegations. - * - * @generated from field: repeated babylon.btcstaking.v1.BTCDelegatorDelegationsResponse btc_delegator_delegations = 1; - */ - btcDelegatorDelegations: BTCDelegatorDelegationsResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryFinalityProviderDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_delegator_delegations", kind: "message", T: BTCDelegatorDelegationsResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalityProviderDelegationsResponse { - return new QueryFinalityProviderDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalityProviderDelegationsResponse { - return new QueryFinalityProviderDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalityProviderDelegationsResponse { - return new QueryFinalityProviderDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalityProviderDelegationsResponse | PlainMessage | undefined, b: QueryFinalityProviderDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalityProviderDelegationsResponse, a, b); - } -} - -/** - * QueryBTCDelegationRequest is the request type to retrieve a BTC delegation by - * staking tx hash - * - * @generated from message babylon.btcstaking.v1.QueryBTCDelegationRequest - */ -export class QueryBTCDelegationRequest extends Message { - /** - * Hash of staking transaction in btc format - * - * @generated from field: string staking_tx_hash_hex = 1; - */ - stakingTxHashHex = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryBTCDelegationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "staking_tx_hash_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCDelegationRequest { - return new QueryBTCDelegationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCDelegationRequest { - return new QueryBTCDelegationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCDelegationRequest { - return new QueryBTCDelegationRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCDelegationRequest | PlainMessage | undefined, b: QueryBTCDelegationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCDelegationRequest, a, b); - } -} - -/** - * QueryBTCDelegationResponse is response type matching QueryBTCDelegationRequest - * and containing BTC delegation information - * - * @generated from message babylon.btcstaking.v1.QueryBTCDelegationResponse - */ -export class QueryBTCDelegationResponse extends Message { - /** - * BTCDelegation represents the client needed information of an BTCDelegation. - * - * @generated from field: babylon.btcstaking.v1.BTCDelegationResponse btc_delegation = 1; - */ - btcDelegation?: BTCDelegationResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.QueryBTCDelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_delegation", kind: "message", T: BTCDelegationResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCDelegationResponse { - return new QueryBTCDelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCDelegationResponse { - return new QueryBTCDelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCDelegationResponse { - return new QueryBTCDelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCDelegationResponse | PlainMessage | undefined, b: QueryBTCDelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCDelegationResponse, a, b); - } -} - -/** - * BTCDelegationResponse is the client needed information from a BTCDelegation with the current status based on parameters. - * - * @generated from message babylon.btcstaking.v1.BTCDelegationResponse - */ -export class BTCDelegationResponse extends Message { - /** - * btc_pk is the Bitcoin secp256k1 PK of this BTC delegation - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 1; - */ - btcPk = new Uint8Array(0); - - /** - * fp_btc_pk_list is the list of BIP-340 PKs of the finality providers that - * this BTC delegation delegates to - * - * @generated from field: repeated bytes fp_btc_pk_list = 2; - */ - fpBtcPkList: Uint8Array[] = []; - - /** - * start_height is the start BTC height of the BTC delegation - * it is the start BTC height of the timelock - * - * @generated from field: uint64 start_height = 3; - */ - startHeight = protoInt64.zero; - - /** - * end_height is the end height of the BTC delegation - * it is the end BTC height of the timelock - w - * - * @generated from field: uint64 end_height = 4; - */ - endHeight = protoInt64.zero; - - /** - * total_sat is the total amount of BTC stakes in this delegation - * quantified in satoshi - * - * @generated from field: uint64 total_sat = 5; - */ - totalSat = protoInt64.zero; - - /** - * staking_tx_hex is the hex string of staking tx - * - * @generated from field: string staking_tx_hex = 6; - */ - stakingTxHex = ""; - - /** - * slashing_tx_hex is the hex string of slashing tx - * - * @generated from field: string slashing_tx_hex = 7; - */ - slashingTxHex = ""; - - /** - * delegator_slash_sig_hex is the signature on the slashing tx - * by the delegator (i.e., SK corresponding to btc_pk) as string hex. - * It will be a part of the witness for the staking tx output. - * - * @generated from field: string delegator_slash_sig_hex = 8; - */ - delegatorSlashSigHex = ""; - - /** - * covenant_sigs is a list of adaptor signatures on the slashing tx - * by each covenant member - * It will be a part of the witness for the staking tx output. - * - * @generated from field: repeated babylon.btcstaking.v1.CovenantAdaptorSignatures covenant_sigs = 9; - */ - covenantSigs: CovenantAdaptorSignatures[] = []; - - /** - * staking_output_idx is the index of the staking output in the staking tx - * - * @generated from field: uint32 staking_output_idx = 10; - */ - stakingOutputIdx = 0; - - /** - * whether this delegation is active - * - * @generated from field: bool active = 11; - */ - active = false; - - /** - * descriptive status of current delegation. - * - * @generated from field: string status_desc = 12; - */ - statusDesc = ""; - - /** - * unbonding_time used in unbonding output timelock path and in slashing transactions - * change outputs - * - * @generated from field: uint32 unbonding_time = 13; - */ - unbondingTime = 0; - - /** - * undelegation_response is the undelegation info of this delegation. - * - * @generated from field: babylon.btcstaking.v1.BTCUndelegationResponse undelegation_response = 14; - */ - undelegationResponse?: BTCUndelegationResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCDelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "fp_btc_pk_list", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 3, name: "start_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "end_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "total_sat", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "staking_tx_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "slashing_tx_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "delegator_slash_sig_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "covenant_sigs", kind: "message", T: CovenantAdaptorSignatures, repeated: true }, - { no: 10, name: "staking_output_idx", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 11, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 12, name: "status_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "unbonding_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 14, name: "undelegation_response", kind: "message", T: BTCUndelegationResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCDelegationResponse { - return new BTCDelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCDelegationResponse { - return new BTCDelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCDelegationResponse { - return new BTCDelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: BTCDelegationResponse | PlainMessage | undefined, b: BTCDelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCDelegationResponse, a, b); - } -} - -/** - * BTCUndelegationResponse provides all necessary info about the undeleagation - * - * @generated from message babylon.btcstaking.v1.BTCUndelegationResponse - */ -export class BTCUndelegationResponse extends Message { - /** - * unbonding_tx is the transaction which will transfer the funds from staking - * output to unbonding output. Unbonding output will usually have lower timelock - * than staking output. The unbonding tx as string hex. - * - * @generated from field: string unbonding_tx_hex = 1; - */ - unbondingTxHex = ""; - - /** - * delegator_unbonding_sig is the signature on the unbonding tx - * by the delegator (i.e., SK corresponding to btc_pk). - * It effectively proves that the delegator wants to unbond and thus - * Babylon will consider this BTC delegation unbonded. Delegator's BTC - * on Bitcoin will be unbonded after timelock. The unbonding delegator sig as string hex. - * - * @generated from field: string delegator_unbonding_sig_hex = 2; - */ - delegatorUnbondingSigHex = ""; - - /** - * covenant_unbonding_sig_list is the list of signatures on the unbonding tx - * by covenant members - * - * @generated from field: repeated babylon.btcstaking.v1.SignatureInfo covenant_unbonding_sig_list = 3; - */ - covenantUnbondingSigList: SignatureInfo[] = []; - - /** - * slashingTxHex is the hex string of slashing tx - * - * @generated from field: string slashing_tx_hex = 4; - */ - slashingTxHex = ""; - - /** - * delegator_slashing_sig is the signature on the slashing tx - * by the delegator (i.e., SK corresponding to btc_pk). - * It will be a part of the witness for the unbonding tx output. - * The delegator slashing sig as string hex. - * - * @generated from field: string delegator_slashing_sig_hex = 5; - */ - delegatorSlashingSigHex = ""; - - /** - * covenant_slashing_sigs is a list of adaptor signatures on the - * unbonding slashing tx by each covenant member - * It will be a part of the witness for the staking tx output. - * - * @generated from field: repeated babylon.btcstaking.v1.CovenantAdaptorSignatures covenant_slashing_sigs = 6; - */ - covenantSlashingSigs: CovenantAdaptorSignatures[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCUndelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unbonding_tx_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "delegator_unbonding_sig_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "covenant_unbonding_sig_list", kind: "message", T: SignatureInfo, repeated: true }, - { no: 4, name: "slashing_tx_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "delegator_slashing_sig_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "covenant_slashing_sigs", kind: "message", T: CovenantAdaptorSignatures, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCUndelegationResponse { - return new BTCUndelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCUndelegationResponse { - return new BTCUndelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCUndelegationResponse { - return new BTCUndelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: BTCUndelegationResponse | PlainMessage | undefined, b: BTCUndelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCUndelegationResponse, a, b); - } -} - -/** - * BTCDelegatorDelegationsResponse is a collection of BTC delegations responses from the same delegator. - * - * @generated from message babylon.btcstaking.v1.BTCDelegatorDelegationsResponse - */ -export class BTCDelegatorDelegationsResponse extends Message { - /** - * @generated from field: repeated babylon.btcstaking.v1.BTCDelegationResponse dels = 1; - */ - dels: BTCDelegationResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.BTCDelegatorDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dels", kind: "message", T: BTCDelegationResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCDelegatorDelegationsResponse { - return new BTCDelegatorDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCDelegatorDelegationsResponse { - return new BTCDelegatorDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCDelegatorDelegationsResponse { - return new BTCDelegatorDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: BTCDelegatorDelegationsResponse | PlainMessage | undefined, b: BTCDelegatorDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCDelegatorDelegationsResponse, a, b); - } -} - -/** - * FinalityProviderResponse defines a finality provider with voting power information. - * - * @generated from message babylon.btcstaking.v1.FinalityProviderResponse - */ -export class FinalityProviderResponse extends Message { - /** - * description defines the description terms for the finality provider. - * - * @generated from field: cosmos.staking.v1beta1.Description description = 1; - */ - description?: Description; - - /** - * commission defines the commission rate of the finality provider. - * - * @generated from field: string commission = 2; - */ - commission = ""; - - /** - * babylon_pk is the Babylon secp256k1 PK of this finality provider - * - * @generated from field: cosmos.crypto.secp256k1.PubKey babylon_pk = 3; - */ - babylonPk?: PubKey; - - /** - * btc_pk is the Bitcoin secp256k1 PK of this finality provider - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 4; - */ - btcPk = new Uint8Array(0); - - /** - * pop is the proof of possession of babylon_pk and btc_pk - * - * @generated from field: babylon.btcstaking.v1.ProofOfPossession pop = 5; - */ - pop?: ProofOfPossession; - - /** - * slashed_babylon_height indicates the Babylon height when - * the finality provider is slashed. - * if it's 0 then the finality provider is not slashed - * - * @generated from field: uint64 slashed_babylon_height = 6; - */ - slashedBabylonHeight = protoInt64.zero; - - /** - * slashed_btc_height indicates the BTC height when - * the finality provider is slashed. - * if it's 0 then the finality provider is not slashed - * - * @generated from field: uint64 slashed_btc_height = 7; - */ - slashedBtcHeight = protoInt64.zero; - - /** - * height is the queried Babylon height - * - * @generated from field: uint64 height = 8; - */ - height = protoInt64.zero; - - /** - * voting_power is the voting power of this finality provider at the given height - * - * @generated from field: uint64 voting_power = 9; - */ - votingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.FinalityProviderResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "description", kind: "message", T: Description }, - { no: 2, name: "commission", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "babylon_pk", kind: "message", T: PubKey }, - { no: 4, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "pop", kind: "message", T: ProofOfPossession }, - { no: 6, name: "slashed_babylon_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "slashed_btc_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 9, name: "voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FinalityProviderResponse { - return new FinalityProviderResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FinalityProviderResponse { - return new FinalityProviderResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FinalityProviderResponse { - return new FinalityProviderResponse().fromJsonString(jsonString, options); - } - - static equals(a: FinalityProviderResponse | PlainMessage | undefined, b: FinalityProviderResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(FinalityProviderResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_cosmes.ts deleted file mode 100644 index 96995fd..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_cosmes.ts +++ /dev/null @@ -1,94 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/tx.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAddCovenantSigs, MsgAddCovenantSigsResponse, MsgBTCUndelegate, MsgBTCUndelegateResponse, MsgCreateBTCDelegation, MsgCreateBTCDelegationResponse, MsgCreateFinalityProvider, MsgCreateFinalityProviderResponse, MsgEditFinalityProvider, MsgEditFinalityProviderResponse, MsgSelectiveSlashingEvidence, MsgSelectiveSlashingEvidenceResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "babylon.btcstaking.v1.Msg"; - -/** - * CreateFinalityProvider creates a new finality provider - * - * @generated from rpc babylon.btcstaking.v1.Msg.CreateFinalityProvider - */ -export const MsgCreateFinalityProviderService = { - typeName: TYPE_NAME, - method: "CreateFinalityProvider", - Request: MsgCreateFinalityProvider, - Response: MsgCreateFinalityProviderResponse, -} as const; - -/** - * EditFinalityProvider edits an existing finality provider - * - * @generated from rpc babylon.btcstaking.v1.Msg.EditFinalityProvider - */ -export const MsgEditFinalityProviderService = { - typeName: TYPE_NAME, - method: "EditFinalityProvider", - Request: MsgEditFinalityProvider, - Response: MsgEditFinalityProviderResponse, -} as const; - -/** - * CreateBTCDelegation creates a new BTC delegation - * - * @generated from rpc babylon.btcstaking.v1.Msg.CreateBTCDelegation - */ -export const MsgCreateBTCDelegationService = { - typeName: TYPE_NAME, - method: "CreateBTCDelegation", - Request: MsgCreateBTCDelegation, - Response: MsgCreateBTCDelegationResponse, -} as const; - -/** - * AddCovenantSigs handles signatures from a covenant member - * - * @generated from rpc babylon.btcstaking.v1.Msg.AddCovenantSigs - */ -export const MsgAddCovenantSigsService = { - typeName: TYPE_NAME, - method: "AddCovenantSigs", - Request: MsgAddCovenantSigs, - Response: MsgAddCovenantSigsResponse, -} as const; - -/** - * BTCUndelegate handles a signature on unbonding tx from its delegator - * - * @generated from rpc babylon.btcstaking.v1.Msg.BTCUndelegate - */ -export const MsgBTCUndelegateService = { - typeName: TYPE_NAME, - method: "BTCUndelegate", - Request: MsgBTCUndelegate, - Response: MsgBTCUndelegateResponse, -} as const; - -/** - * SelectiveSlashingEvidence handles the evidence of selective slashing launched - * by a finality provider - * - * @generated from rpc babylon.btcstaking.v1.Msg.SelectiveSlashingEvidence - */ -export const MsgSelectiveSlashingEvidenceService = { - typeName: TYPE_NAME, - method: "SelectiveSlashingEvidence", - Request: MsgSelectiveSlashingEvidence, - Response: MsgSelectiveSlashingEvidenceResponse, -} as const; - -/** - * UpdateParams updates the btcstaking module parameters. - * - * @generated from rpc babylon.btcstaking.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_pb.ts b/libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_pb.ts deleted file mode 100644 index 6ad9bde..0000000 --- a/libs/es-client/src/protobufs/babylon/btcstaking/v1/tx_pb.ts +++ /dev/null @@ -1,812 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/btcstaking/v1/tx.proto (package babylon.btcstaking.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Description } from "../../../cosmos/staking/v1beta1/staking_pb.js"; -import { PubKey } from "../../../cosmos/crypto/secp256k1/keys_pb.js"; -import { ProofOfPossession } from "./pop_pb.js"; -import { TransactionInfo } from "../../btccheckpoint/v1/btccheckpoint_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * MsgCreateFinalityProvider is the message for creating a finality provider - * - * @generated from message babylon.btcstaking.v1.MsgCreateFinalityProvider - */ -export class MsgCreateFinalityProvider extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * description defines the description terms for the finality provider - * - * @generated from field: cosmos.staking.v1beta1.Description description = 2; - */ - description?: Description; - - /** - * commission defines the commission rate of the finality provider - * - * @generated from field: string commission = 3; - */ - commission = ""; - - /** - * babylon_pk is the Babylon secp256k1 PK of this finality provider - * - * @generated from field: cosmos.crypto.secp256k1.PubKey babylon_pk = 4; - */ - babylonPk?: PubKey; - - /** - * btc_pk is the Bitcoin secp256k1 PK of this finality provider - * the PK follows encoding in BIP-340 spec - * - * @generated from field: bytes btc_pk = 5; - */ - btcPk = new Uint8Array(0); - - /** - * pop is the proof of possession of babylon_pk and btc_pk - * - * @generated from field: babylon.btcstaking.v1.ProofOfPossession pop = 6; - */ - pop?: ProofOfPossession; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgCreateFinalityProvider"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "message", T: Description }, - { no: 3, name: "commission", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "babylon_pk", kind: "message", T: PubKey }, - { no: 5, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "pop", kind: "message", T: ProofOfPossession }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateFinalityProvider { - return new MsgCreateFinalityProvider().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateFinalityProvider { - return new MsgCreateFinalityProvider().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateFinalityProvider { - return new MsgCreateFinalityProvider().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateFinalityProvider | PlainMessage | undefined, b: MsgCreateFinalityProvider | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateFinalityProvider, a, b); - } -} - -/** - * MsgCreateFinalityProviderResponse is the response for MsgCreateFinalityProvider - * - * @generated from message babylon.btcstaking.v1.MsgCreateFinalityProviderResponse - */ -export class MsgCreateFinalityProviderResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgCreateFinalityProviderResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateFinalityProviderResponse { - return new MsgCreateFinalityProviderResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateFinalityProviderResponse { - return new MsgCreateFinalityProviderResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateFinalityProviderResponse { - return new MsgCreateFinalityProviderResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateFinalityProviderResponse | PlainMessage | undefined, b: MsgCreateFinalityProviderResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateFinalityProviderResponse, a, b); - } -} - -/** - * MsgEditFinalityProvider is the message for editing an existing finality provider - * - * @generated from message babylon.btcstaking.v1.MsgEditFinalityProvider - */ -export class MsgEditFinalityProvider extends Message { - /** - * NOTE: this signer needs to correspond to babylon_pk of the finality provider - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * btc_pk is the Bitcoin secp256k1 PK of the finality provider to be edited - * - * @generated from field: bytes btc_pk = 2; - */ - btcPk = new Uint8Array(0); - - /** - * description defines the updated description terms for the finality provider - * - * @generated from field: cosmos.staking.v1beta1.Description description = 3; - */ - description?: Description; - - /** - * commission defines the updated commission rate of the finality provider - * - * @generated from field: string commission = 4; - */ - commission = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgEditFinalityProvider"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "description", kind: "message", T: Description }, - { no: 4, name: "commission", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditFinalityProvider { - return new MsgEditFinalityProvider().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditFinalityProvider { - return new MsgEditFinalityProvider().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEditFinalityProvider { - return new MsgEditFinalityProvider().fromJsonString(jsonString, options); - } - - static equals(a: MsgEditFinalityProvider | PlainMessage | undefined, b: MsgEditFinalityProvider | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEditFinalityProvider, a, b); - } -} - -/** - * MsgEditFinalityProviderResponse is the response for MsgEditFinalityProvider - * - * @generated from message babylon.btcstaking.v1.MsgEditFinalityProviderResponse - */ -export class MsgEditFinalityProviderResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgEditFinalityProviderResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditFinalityProviderResponse { - return new MsgEditFinalityProviderResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditFinalityProviderResponse { - return new MsgEditFinalityProviderResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEditFinalityProviderResponse { - return new MsgEditFinalityProviderResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgEditFinalityProviderResponse | PlainMessage | undefined, b: MsgEditFinalityProviderResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEditFinalityProviderResponse, a, b); - } -} - -/** - * MsgCreateBTCDelegation is the message for creating a BTC delegation - * - * @generated from message babylon.btcstaking.v1.MsgCreateBTCDelegation - */ -export class MsgCreateBTCDelegation extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * babylon_pk is the Babylon secp256k1 PK of this BTC delegation - * - * @generated from field: cosmos.crypto.secp256k1.PubKey babylon_pk = 2; - */ - babylonPk?: PubKey; - - /** - * pop is the proof of possession of babylon_pk and btc_pk - * - * @generated from field: babylon.btcstaking.v1.ProofOfPossession pop = 3; - */ - pop?: ProofOfPossession; - - /** - * btc_pk is the Bitcoin secp256k1 PK of the BTC delegator - * - * @generated from field: bytes btc_pk = 4; - */ - btcPk = new Uint8Array(0); - - /** - * fp_btc_pk_list is the list of Bitcoin secp256k1 PKs of the finality providers, if there is more than one - * finality provider pk it means that delegation is re-staked - * - * @generated from field: repeated bytes fp_btc_pk_list = 5; - */ - fpBtcPkList: Uint8Array[] = []; - - /** - * staking_time is the time lock used in staking transaction - * - * @generated from field: uint32 staking_time = 6; - */ - stakingTime = 0; - - /** - * staking_value is the amount of satoshis locked in staking output - * - * @generated from field: int64 staking_value = 7; - */ - stakingValue = protoInt64.zero; - - /** - * staking_tx is the staking tx along with the merkle proof of inclusion in btc block - * - * @generated from field: babylon.btccheckpoint.v1.TransactionInfo staking_tx = 8; - */ - stakingTx?: TransactionInfo; - - /** - * slashing_tx is the slashing tx - * Note that the tx itself does not contain signatures, which are off-chain. - * - * @generated from field: bytes slashing_tx = 9; - */ - slashingTx = new Uint8Array(0); - - /** - * delegator_slashing_sig is the signature on the slashing tx by the delegator (i.e., SK corresponding to btc_pk). - * It will be a part of the witness for the staking tx output. - * The staking tx output further needs signatures from covenant and finality provider in - * order to be spendable. - * - * @generated from field: bytes delegator_slashing_sig = 10; - */ - delegatorSlashingSig = new Uint8Array(0); - - /** - * unbonding_time is the time lock used when funds are being unbonded. It is be used in: - * - unbonding transaction, time lock spending path - * - staking slashing transaction, change output - * - unbonding slashing transaction, change output - * It must be smaller than math.MaxUInt16 and larger that max(MinUnbondingTime, CheckpointFinalizationTimeout) - * - * @generated from field: uint32 unbonding_time = 11; - */ - unbondingTime = 0; - - /** - * fields related to unbonding transaction - * unbonding_tx is a bitcoin unbonding transaction i.e transaction that spends - * staking output and sends it to the unbonding output - * - * @generated from field: bytes unbonding_tx = 12; - */ - unbondingTx = new Uint8Array(0); - - /** - * unbonding_value is amount of satoshis locked in unbonding output. - * NOTE: staking_value and unbonding_value could be different because of the difference between the fee for staking tx and that for unbonding - * - * @generated from field: int64 unbonding_value = 13; - */ - unbondingValue = protoInt64.zero; - - /** - * unbonding_slashing_tx is the slashing tx which slash unbonding contract - * Note that the tx itself does not contain signatures, which are off-chain. - * - * @generated from field: bytes unbonding_slashing_tx = 14; - */ - unbondingSlashingTx = new Uint8Array(0); - - /** - * delegator_unbonding_slashing_sig is the signature on the slashing tx by the delegator (i.e., SK corresponding to btc_pk). - * - * @generated from field: bytes delegator_unbonding_slashing_sig = 15; - */ - delegatorUnbondingSlashingSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgCreateBTCDelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "babylon_pk", kind: "message", T: PubKey }, - { no: 3, name: "pop", kind: "message", T: ProofOfPossession }, - { no: 4, name: "btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "fp_btc_pk_list", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 6, name: "staking_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 7, name: "staking_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 8, name: "staking_tx", kind: "message", T: TransactionInfo }, - { no: 9, name: "slashing_tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "delegator_slashing_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "unbonding_time", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 12, name: "unbonding_tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 13, name: "unbonding_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 14, name: "unbonding_slashing_tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 15, name: "delegator_unbonding_slashing_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBTCDelegation { - return new MsgCreateBTCDelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBTCDelegation { - return new MsgCreateBTCDelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateBTCDelegation { - return new MsgCreateBTCDelegation().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateBTCDelegation | PlainMessage | undefined, b: MsgCreateBTCDelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateBTCDelegation, a, b); - } -} - -/** - * MsgCreateBTCDelegationResponse is the response for MsgCreateBTCDelegation - * - * @generated from message babylon.btcstaking.v1.MsgCreateBTCDelegationResponse - */ -export class MsgCreateBTCDelegationResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgCreateBTCDelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBTCDelegationResponse { - return new MsgCreateBTCDelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBTCDelegationResponse { - return new MsgCreateBTCDelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateBTCDelegationResponse { - return new MsgCreateBTCDelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateBTCDelegationResponse | PlainMessage | undefined, b: MsgCreateBTCDelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateBTCDelegationResponse, a, b); - } -} - -/** - * MsgAddCovenantSigs is the message for handling signatures from a covenant member - * - * @generated from message babylon.btcstaking.v1.MsgAddCovenantSigs - */ -export class MsgAddCovenantSigs extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * pk is the BTC public key of the covenant member - * - * @generated from field: bytes pk = 2; - */ - pk = new Uint8Array(0); - - /** - * staking_tx_hash is the hash of the staking tx. - * It uniquely identifies a BTC delegation - * - * @generated from field: string staking_tx_hash = 3; - */ - stakingTxHash = ""; - - /** - * sigs is a list of adaptor signatures of the covenant - * the order of sigs should respect the order of finality providers - * of the corresponding delegation - * - * @generated from field: repeated bytes slashing_tx_sigs = 4; - */ - slashingTxSigs: Uint8Array[] = []; - - /** - * unbonding_tx_sig is the signature of the covenant on the unbonding tx submitted to babylon - * the signature follows encoding in BIP-340 spec - * - * @generated from field: bytes unbonding_tx_sig = 5; - */ - unbondingTxSig = new Uint8Array(0); - - /** - * slashing_unbonding_tx_sigs is a list of adaptor signatures of the covenant - * on slashing tx corresponding to unbonding tx submitted to babylon - * the order of sigs should respect the order of finality providers - * of the corresponding delegation - * - * @generated from field: repeated bytes slashing_unbonding_tx_sigs = 6; - */ - slashingUnbondingTxSigs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgAddCovenantSigs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "staking_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "slashing_tx_sigs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 5, name: "unbonding_tx_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "slashing_unbonding_tx_sigs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCovenantSigs { - return new MsgAddCovenantSigs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCovenantSigs { - return new MsgAddCovenantSigs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddCovenantSigs { - return new MsgAddCovenantSigs().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddCovenantSigs | PlainMessage | undefined, b: MsgAddCovenantSigs | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddCovenantSigs, a, b); - } -} - -/** - * MsgAddCovenantSigsResponse is the response for MsgAddCovenantSigs - * - * @generated from message babylon.btcstaking.v1.MsgAddCovenantSigsResponse - */ -export class MsgAddCovenantSigsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgAddCovenantSigsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCovenantSigsResponse { - return new MsgAddCovenantSigsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCovenantSigsResponse { - return new MsgAddCovenantSigsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddCovenantSigsResponse { - return new MsgAddCovenantSigsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddCovenantSigsResponse | PlainMessage | undefined, b: MsgAddCovenantSigsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddCovenantSigsResponse, a, b); - } -} - -/** - * MsgBTCUndelegate is the message for handling signature on unbonding tx - * from its delegator. This signature effectively proves that the delegator - * wants to unbond this BTC delegation - * - * @generated from message babylon.btcstaking.v1.MsgBTCUndelegate - */ -export class MsgBTCUndelegate extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * staking_tx_hash is the hash of the staking tx. - * It uniquely identifies a BTC delegation - * - * @generated from field: string staking_tx_hash = 2; - */ - stakingTxHash = ""; - - /** - * unbonding_tx_sig is the signature of the staker on the unbonding tx submitted to babylon - * the signature follows encoding in BIP-340 spec - * - * @generated from field: bytes unbonding_tx_sig = 3; - */ - unbondingTxSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgBTCUndelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "staking_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "unbonding_tx_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBTCUndelegate { - return new MsgBTCUndelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBTCUndelegate { - return new MsgBTCUndelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBTCUndelegate { - return new MsgBTCUndelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgBTCUndelegate | PlainMessage | undefined, b: MsgBTCUndelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBTCUndelegate, a, b); - } -} - -/** - * MsgBTCUndelegateResponse is the response for MsgBTCUndelegate - * - * @generated from message babylon.btcstaking.v1.MsgBTCUndelegateResponse - */ -export class MsgBTCUndelegateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgBTCUndelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBTCUndelegateResponse { - return new MsgBTCUndelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBTCUndelegateResponse { - return new MsgBTCUndelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBTCUndelegateResponse { - return new MsgBTCUndelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgBTCUndelegateResponse | PlainMessage | undefined, b: MsgBTCUndelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBTCUndelegateResponse, a, b); - } -} - -/** - * MsgSelectiveSlashingEvidence is the message for handling evidence of selective slashing - * launched by a finality provider - * - * @generated from message babylon.btcstaking.v1.MsgSelectiveSlashingEvidence - */ -export class MsgSelectiveSlashingEvidence extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * staking_tx_hash is the hash of the staking tx. - * It uniquely identifies a BTC delegation - * - * @generated from field: string staking_tx_hash = 2; - */ - stakingTxHash = ""; - - /** - * recovered_fp_btc_sk is the BTC SK of the finality provider who - * launches the selective slashing offence. The SK is recovered by - * using a covenant adaptor signature and the corresponding Schnorr - * signature - * - * @generated from field: bytes recovered_fp_btc_sk = 3; - */ - recoveredFpBtcSk = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgSelectiveSlashingEvidence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "staking_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "recovered_fp_btc_sk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSelectiveSlashingEvidence { - return new MsgSelectiveSlashingEvidence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSelectiveSlashingEvidence { - return new MsgSelectiveSlashingEvidence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSelectiveSlashingEvidence { - return new MsgSelectiveSlashingEvidence().fromJsonString(jsonString, options); - } - - static equals(a: MsgSelectiveSlashingEvidence | PlainMessage | undefined, b: MsgSelectiveSlashingEvidence | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSelectiveSlashingEvidence, a, b); - } -} - -/** - * MsgSelectiveSlashingEvidenceResponse is the response for MsgSelectiveSlashingEvidence - * - * @generated from message babylon.btcstaking.v1.MsgSelectiveSlashingEvidenceResponse - */ -export class MsgSelectiveSlashingEvidenceResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgSelectiveSlashingEvidenceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSelectiveSlashingEvidenceResponse { - return new MsgSelectiveSlashingEvidenceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSelectiveSlashingEvidenceResponse { - return new MsgSelectiveSlashingEvidenceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSelectiveSlashingEvidenceResponse { - return new MsgSelectiveSlashingEvidenceResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSelectiveSlashingEvidenceResponse | PlainMessage | undefined, b: MsgSelectiveSlashingEvidenceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSelectiveSlashingEvidenceResponse, a, b); - } -} - -/** - * MsgUpdateParams defines a message for updating btcstaking module parameters. - * - * @generated from message babylon.btcstaking.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * just FYI: cosmos.AddressString marks that this field should use type alias - * for AddressString instead of string, but the functionality is not yet implemented - * in cosmos-proto - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the finality parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: babylon.btcstaking.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse is the response to the MsgUpdateParams message. - * - * @generated from message babylon.btcstaking.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.btcstaking.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/bls_key_pb.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/bls_key_pb.ts deleted file mode 100644 index 74f8956..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/bls_key_pb.ts +++ /dev/null @@ -1,287 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/bls_key.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * BlsKey wraps BLS public key with PoP - * - * @generated from message babylon.checkpointing.v1.BlsKey - */ -export class BlsKey extends Message { - /** - * pubkey is the BLS public key of a validator - * - * @generated from field: bytes pubkey = 1; - */ - pubkey = new Uint8Array(0); - - /** - * pop is the proof-of-possession of the BLS key - * - * @generated from field: babylon.checkpointing.v1.ProofOfPossession pop = 2; - */ - pop?: ProofOfPossession; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.BlsKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pubkey", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "pop", kind: "message", T: ProofOfPossession }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlsKey { - return new BlsKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlsKey { - return new BlsKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlsKey { - return new BlsKey().fromJsonString(jsonString, options); - } - - static equals(a: BlsKey | PlainMessage | undefined, b: BlsKey | PlainMessage | undefined): boolean { - return proto3.util.equals(BlsKey, a, b); - } -} - -/** - * ProofOfPossession defines proof for the ownership of Ed25519 and BLS private - * keys - * - * @generated from message babylon.checkpointing.v1.ProofOfPossession - */ -export class ProofOfPossession extends Message { - /** - * ed25519_sig is used for verification, ed25519_sig = sign(key = Ed25519_sk, - * data = BLS_pk) - * - * @generated from field: bytes ed25519_sig = 1; - */ - ed25519Sig = new Uint8Array(0); - - /** - * bls_sig is the result of PoP, bls_sig = sign(key = BLS_sk, data = - * ed25519_sig) - * - * @generated from field: bytes bls_sig = 2; - */ - blsSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.ProofOfPossession"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ed25519_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "bls_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofOfPossession { - return new ProofOfPossession().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofOfPossession { - return new ProofOfPossession().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofOfPossession { - return new ProofOfPossession().fromJsonString(jsonString, options); - } - - static equals(a: ProofOfPossession | PlainMessage | undefined, b: ProofOfPossession | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofOfPossession, a, b); - } -} - -/** - * ValidatorWithBLSSet defines a set of validators with their BLS public keys - * - * @generated from message babylon.checkpointing.v1.ValidatorWithBlsKeySet - */ -export class ValidatorWithBlsKeySet extends Message { - /** - * @generated from field: repeated babylon.checkpointing.v1.ValidatorWithBlsKey val_set = 1; - */ - valSet: ValidatorWithBlsKey[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.ValidatorWithBlsKeySet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "val_set", kind: "message", T: ValidatorWithBlsKey, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorWithBlsKeySet { - return new ValidatorWithBlsKeySet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorWithBlsKeySet { - return new ValidatorWithBlsKeySet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorWithBlsKeySet { - return new ValidatorWithBlsKeySet().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorWithBlsKeySet | PlainMessage | undefined, b: ValidatorWithBlsKeySet | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorWithBlsKeySet, a, b); - } -} - -/** - * ValidatorWithBlsKey couples validator address, voting power, and its bls - * public key - * - * @generated from message babylon.checkpointing.v1.ValidatorWithBlsKey - */ -export class ValidatorWithBlsKey extends Message { - /** - * validator_address is the address of the validator - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * bls_pub_key is the BLS public key of the validator - * - * @generated from field: bytes bls_pub_key = 2; - */ - blsPubKey = new Uint8Array(0); - - /** - * voting_power is the voting power of the validator at the given epoch - * - * @generated from field: uint64 voting_power = 3; - */ - votingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.ValidatorWithBlsKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "bls_pub_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "voting_power", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorWithBlsKey { - return new ValidatorWithBlsKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorWithBlsKey { - return new ValidatorWithBlsKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorWithBlsKey { - return new ValidatorWithBlsKey().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorWithBlsKey | PlainMessage | undefined, b: ValidatorWithBlsKey | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorWithBlsKey, a, b); - } -} - -/** - * VoteExtension defines the structure used to create a BLS vote extension. - * - * @generated from message babylon.checkpointing.v1.VoteExtension - */ -export class VoteExtension extends Message { - /** - * signer is the address of the vote extension signer - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * validator_address is the address of the validator - * - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * block_hash is the hash of the block that the vote extension is signed over - * - * @generated from field: bytes block_hash = 3; - */ - blockHash = new Uint8Array(0); - - /** - * epoch_num is the epoch number of the vote extension - * - * @generated from field: uint64 epoch_num = 4; - */ - epochNum = protoInt64.zero; - - /** - * height is the height of the vote extension - * - * @generated from field: uint64 height = 5; - */ - height = protoInt64.zero; - - /** - * bls_sig is the BLS signature - * - * @generated from field: bytes bls_sig = 6; - */ - blsSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.VoteExtension"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "bls_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VoteExtension { - return new VoteExtension().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VoteExtension { - return new VoteExtension().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VoteExtension { - return new VoteExtension().fromJsonString(jsonString, options); - } - - static equals(a: VoteExtension | PlainMessage | undefined, b: VoteExtension | PlainMessage | undefined): boolean { - return proto3.util.equals(VoteExtension, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/checkpoint_pb.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/checkpoint_pb.ts deleted file mode 100644 index 72e1611..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/checkpoint_pb.ts +++ /dev/null @@ -1,382 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/checkpoint.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { ExtendedCommitInfo } from "../../../tendermint/abci/types_pb.js"; - -/** - * CheckpointStatus is the status of a checkpoint. - * - * @generated from enum babylon.checkpointing.v1.CheckpointStatus - */ -export enum CheckpointStatus { - /** - * ACCUMULATING defines a checkpoint that is awaiting for BLS signatures. - * - * @generated from enum value: CKPT_STATUS_ACCUMULATING = 0; - */ - CKPT_STATUS_ACCUMULATING = 0, - - /** - * SEALED defines a checkpoint that has accumulated sufficient BLS signatures. - * - * @generated from enum value: CKPT_STATUS_SEALED = 1; - */ - CKPT_STATUS_SEALED = 1, - - /** - * SUBMITTED defines a checkpoint that is included on BTC. - * - * @generated from enum value: CKPT_STATUS_SUBMITTED = 2; - */ - CKPT_STATUS_SUBMITTED = 2, - - /** - * CONFIRMED defines a checkpoint that is k-deep on BTC. - * - * @generated from enum value: CKPT_STATUS_CONFIRMED = 3; - */ - CKPT_STATUS_CONFIRMED = 3, - - /** - * FINALIZED defines a checkpoint that is w-deep on BTC. - * - * @generated from enum value: CKPT_STATUS_FINALIZED = 4; - */ - CKPT_STATUS_FINALIZED = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(CheckpointStatus) -proto3.util.setEnumType(CheckpointStatus, "babylon.checkpointing.v1.CheckpointStatus", [ - { no: 0, name: "CKPT_STATUS_ACCUMULATING" }, - { no: 1, name: "CKPT_STATUS_SEALED" }, - { no: 2, name: "CKPT_STATUS_SUBMITTED" }, - { no: 3, name: "CKPT_STATUS_CONFIRMED" }, - { no: 4, name: "CKPT_STATUS_FINALIZED" }, -]); - -/** - * RawCheckpoint wraps the BLS multi sig with metadata - * - * @generated from message babylon.checkpointing.v1.RawCheckpoint - */ -export class RawCheckpoint extends Message { - /** - * epoch_num defines the epoch number the raw checkpoint is for - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * block_hash defines the 'BlockID.Hash', which is the hash of - * the block that individual BLS sigs are signed on - * - * @generated from field: bytes block_hash = 2; - */ - blockHash = new Uint8Array(0); - - /** - * bitmap defines the bitmap that indicates the signers of the BLS multi sig - * - * @generated from field: bytes bitmap = 3; - */ - bitmap = new Uint8Array(0); - - /** - * bls_multi_sig defines the multi sig that is aggregated from individual BLS - * sigs - * - * @generated from field: bytes bls_multi_sig = 4; - */ - blsMultiSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.RawCheckpoint"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "bitmap", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "bls_multi_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RawCheckpoint { - return new RawCheckpoint().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RawCheckpoint { - return new RawCheckpoint().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RawCheckpoint { - return new RawCheckpoint().fromJsonString(jsonString, options); - } - - static equals(a: RawCheckpoint | PlainMessage | undefined, b: RawCheckpoint | PlainMessage | undefined): boolean { - return proto3.util.equals(RawCheckpoint, a, b); - } -} - -/** - * RawCheckpointWithMeta wraps the raw checkpoint with metadata. - * - * @generated from message babylon.checkpointing.v1.RawCheckpointWithMeta - */ -export class RawCheckpointWithMeta extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpoint ckpt = 1; - */ - ckpt?: RawCheckpoint; - - /** - * status defines the status of the checkpoint - * - * @generated from field: babylon.checkpointing.v1.CheckpointStatus status = 2; - */ - status = CheckpointStatus.CKPT_STATUS_ACCUMULATING; - - /** - * bls_aggr_pk defines the aggregated BLS public key - * - * @generated from field: bytes bls_aggr_pk = 3; - */ - blsAggrPk = new Uint8Array(0); - - /** - * power_sum defines the accumulated voting power for the checkpoint - * - * @generated from field: uint64 power_sum = 4; - */ - powerSum = protoInt64.zero; - - /** - * lifecycle defines the lifecycle of this checkpoint, i.e., each state - * transition and the time (in both timestamp and block height) of this - * transition. - * - * @generated from field: repeated babylon.checkpointing.v1.CheckpointStateUpdate lifecycle = 5; - */ - lifecycle: CheckpointStateUpdate[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.RawCheckpointWithMeta"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ckpt", kind: "message", T: RawCheckpoint }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(CheckpointStatus) }, - { no: 3, name: "bls_aggr_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "power_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "lifecycle", kind: "message", T: CheckpointStateUpdate, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RawCheckpointWithMeta { - return new RawCheckpointWithMeta().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RawCheckpointWithMeta { - return new RawCheckpointWithMeta().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RawCheckpointWithMeta { - return new RawCheckpointWithMeta().fromJsonString(jsonString, options); - } - - static equals(a: RawCheckpointWithMeta | PlainMessage | undefined, b: RawCheckpointWithMeta | PlainMessage | undefined): boolean { - return proto3.util.equals(RawCheckpointWithMeta, a, b); - } -} - -/** - * InjectedCheckpoint wraps the checkpoint and the extended votes - * - * @generated from message babylon.checkpointing.v1.InjectedCheckpoint - */ -export class InjectedCheckpoint extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta ckpt = 1; - */ - ckpt?: RawCheckpointWithMeta; - - /** - * extended_commit_info is the commit info including the vote extensions - * from the previous proposal - * - * @generated from field: tendermint.abci.ExtendedCommitInfo extended_commit_info = 2; - */ - extendedCommitInfo?: ExtendedCommitInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.InjectedCheckpoint"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ckpt", kind: "message", T: RawCheckpointWithMeta }, - { no: 2, name: "extended_commit_info", kind: "message", T: ExtendedCommitInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InjectedCheckpoint { - return new InjectedCheckpoint().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InjectedCheckpoint { - return new InjectedCheckpoint().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InjectedCheckpoint { - return new InjectedCheckpoint().fromJsonString(jsonString, options); - } - - static equals(a: InjectedCheckpoint | PlainMessage | undefined, b: InjectedCheckpoint | PlainMessage | undefined): boolean { - return proto3.util.equals(InjectedCheckpoint, a, b); - } -} - -/** - * CheckpointStateUpdate defines a state transition on the checkpoint. - * - * @generated from message babylon.checkpointing.v1.CheckpointStateUpdate - */ -export class CheckpointStateUpdate extends Message { - /** - * state defines the event of a state transition towards this state - * - * @generated from field: babylon.checkpointing.v1.CheckpointStatus state = 1; - */ - state = CheckpointStatus.CKPT_STATUS_ACCUMULATING; - - /** - * block_height is the height of the Babylon block that triggers the state - * update - * - * @generated from field: uint64 block_height = 2; - */ - blockHeight = protoInt64.zero; - - /** - * block_time is the timestamp in the Babylon block that triggers the state - * update - * - * @generated from field: google.protobuf.Timestamp block_time = 3; - */ - blockTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.CheckpointStateUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(CheckpointStatus) }, - { no: 2, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "block_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CheckpointStateUpdate { - return new CheckpointStateUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CheckpointStateUpdate { - return new CheckpointStateUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CheckpointStateUpdate { - return new CheckpointStateUpdate().fromJsonString(jsonString, options); - } - - static equals(a: CheckpointStateUpdate | PlainMessage | undefined, b: CheckpointStateUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(CheckpointStateUpdate, a, b); - } -} - -/** - * BlsSig wraps the BLS sig with metadata. - * - * @generated from message babylon.checkpointing.v1.BlsSig - */ -export class BlsSig extends Message { - /** - * epoch_num defines the epoch number that the BLS sig is signed on - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * block_hash defines the 'BlockID.Hash', which is the hash of - * the block that individual BLS sigs are signed on - * - * @generated from field: bytes block_hash = 2; - */ - blockHash = new Uint8Array(0); - - /** - * @generated from field: bytes bls_sig = 3; - */ - blsSig = new Uint8Array(0); - - /** - * can't find cosmos_proto.scalar when compiling due to cosmos v0.45.4 does - * not support scalar string signer_address = 4 [(cosmos_proto.scalar) = - * "cosmos.AddressString"] - * the signer_address defines the address of the - * signer - * - * @generated from field: string signer_address = 4; - */ - signerAddress = ""; - - /** - * validator_address defines the validator's consensus address - * - * @generated from field: string validator_address = 5; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.BlsSig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "bls_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "signer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlsSig { - return new BlsSig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlsSig { - return new BlsSig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlsSig { - return new BlsSig().fromJsonString(jsonString, options); - } - - static equals(a: BlsSig | PlainMessage | undefined, b: BlsSig | PlainMessage | undefined): boolean { - return proto3.util.equals(BlsSig, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/events_pb.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/events_pb.ts deleted file mode 100644 index dec006f..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/events_pb.ts +++ /dev/null @@ -1,295 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/events.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { RawCheckpoint, RawCheckpointWithMeta } from "./checkpoint_pb.js"; - -/** - * EventCheckpointAccumulating is emitted when a checkpoint reaches the - * `Accumulating` state. - * - * @generated from message babylon.checkpointing.v1.EventCheckpointAccumulating - */ -export class EventCheckpointAccumulating extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta checkpoint = 1; - */ - checkpoint?: RawCheckpointWithMeta; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.EventCheckpointAccumulating"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checkpoint", kind: "message", T: RawCheckpointWithMeta }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCheckpointAccumulating { - return new EventCheckpointAccumulating().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCheckpointAccumulating { - return new EventCheckpointAccumulating().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCheckpointAccumulating { - return new EventCheckpointAccumulating().fromJsonString(jsonString, options); - } - - static equals(a: EventCheckpointAccumulating | PlainMessage | undefined, b: EventCheckpointAccumulating | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCheckpointAccumulating, a, b); - } -} - -/** - * EventCheckpointSealed is emitted when a checkpoint reaches the `Sealed` - * state. - * - * @generated from message babylon.checkpointing.v1.EventCheckpointSealed - */ -export class EventCheckpointSealed extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta checkpoint = 1; - */ - checkpoint?: RawCheckpointWithMeta; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.EventCheckpointSealed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checkpoint", kind: "message", T: RawCheckpointWithMeta }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCheckpointSealed { - return new EventCheckpointSealed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCheckpointSealed { - return new EventCheckpointSealed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCheckpointSealed { - return new EventCheckpointSealed().fromJsonString(jsonString, options); - } - - static equals(a: EventCheckpointSealed | PlainMessage | undefined, b: EventCheckpointSealed | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCheckpointSealed, a, b); - } -} - -/** - * EventCheckpointSubmitted is emitted when a checkpoint reaches the `Submitted` - * state. - * - * @generated from message babylon.checkpointing.v1.EventCheckpointSubmitted - */ -export class EventCheckpointSubmitted extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta checkpoint = 1; - */ - checkpoint?: RawCheckpointWithMeta; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.EventCheckpointSubmitted"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checkpoint", kind: "message", T: RawCheckpointWithMeta }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCheckpointSubmitted { - return new EventCheckpointSubmitted().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCheckpointSubmitted { - return new EventCheckpointSubmitted().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCheckpointSubmitted { - return new EventCheckpointSubmitted().fromJsonString(jsonString, options); - } - - static equals(a: EventCheckpointSubmitted | PlainMessage | undefined, b: EventCheckpointSubmitted | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCheckpointSubmitted, a, b); - } -} - -/** - * EventCheckpointConfirmed is emitted when a checkpoint reaches the `Confirmed` - * state. - * - * @generated from message babylon.checkpointing.v1.EventCheckpointConfirmed - */ -export class EventCheckpointConfirmed extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta checkpoint = 1; - */ - checkpoint?: RawCheckpointWithMeta; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.EventCheckpointConfirmed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checkpoint", kind: "message", T: RawCheckpointWithMeta }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCheckpointConfirmed { - return new EventCheckpointConfirmed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCheckpointConfirmed { - return new EventCheckpointConfirmed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCheckpointConfirmed { - return new EventCheckpointConfirmed().fromJsonString(jsonString, options); - } - - static equals(a: EventCheckpointConfirmed | PlainMessage | undefined, b: EventCheckpointConfirmed | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCheckpointConfirmed, a, b); - } -} - -/** - * EventCheckpointFinalized is emitted when a checkpoint reaches the `Finalized` - * state. - * - * @generated from message babylon.checkpointing.v1.EventCheckpointFinalized - */ -export class EventCheckpointFinalized extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta checkpoint = 1; - */ - checkpoint?: RawCheckpointWithMeta; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.EventCheckpointFinalized"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checkpoint", kind: "message", T: RawCheckpointWithMeta }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCheckpointFinalized { - return new EventCheckpointFinalized().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCheckpointFinalized { - return new EventCheckpointFinalized().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCheckpointFinalized { - return new EventCheckpointFinalized().fromJsonString(jsonString, options); - } - - static equals(a: EventCheckpointFinalized | PlainMessage | undefined, b: EventCheckpointFinalized | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCheckpointFinalized, a, b); - } -} - -/** - * EventCheckpointForgotten is emitted when a checkpoint switches to a - * `Forgotten` state. - * - * @generated from message babylon.checkpointing.v1.EventCheckpointForgotten - */ -export class EventCheckpointForgotten extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta checkpoint = 1; - */ - checkpoint?: RawCheckpointWithMeta; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.EventCheckpointForgotten"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checkpoint", kind: "message", T: RawCheckpointWithMeta }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCheckpointForgotten { - return new EventCheckpointForgotten().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCheckpointForgotten { - return new EventCheckpointForgotten().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCheckpointForgotten { - return new EventCheckpointForgotten().fromJsonString(jsonString, options); - } - - static equals(a: EventCheckpointForgotten | PlainMessage | undefined, b: EventCheckpointForgotten | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCheckpointForgotten, a, b); - } -} - -/** - * EventConflictingCheckpoint is emitted when two conflicting checkpoints are - * found. - * - * @generated from message babylon.checkpointing.v1.EventConflictingCheckpoint - */ -export class EventConflictingCheckpoint extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpoint conflicting_checkpoint = 1; - */ - conflictingCheckpoint?: RawCheckpoint; - - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMeta local_checkpoint = 2; - */ - localCheckpoint?: RawCheckpointWithMeta; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.EventConflictingCheckpoint"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "conflicting_checkpoint", kind: "message", T: RawCheckpoint }, - { no: 2, name: "local_checkpoint", kind: "message", T: RawCheckpointWithMeta }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventConflictingCheckpoint { - return new EventConflictingCheckpoint().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventConflictingCheckpoint { - return new EventConflictingCheckpoint().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventConflictingCheckpoint { - return new EventConflictingCheckpoint().fromJsonString(jsonString, options); - } - - static equals(a: EventConflictingCheckpoint | PlainMessage | undefined, b: EventConflictingCheckpoint | PlainMessage | undefined): boolean { - return proto3.util.equals(EventConflictingCheckpoint, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/genesis_pb.ts deleted file mode 100644 index 243a0f3..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/genesis_pb.ts +++ /dev/null @@ -1,108 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/genesis.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { BlsKey } from "./bls_key_pb.js"; -import { PubKey } from "../../../cosmos/crypto/ed25519/keys_pb.js"; - -/** - * GenesisState defines the checkpointing module's genesis state. - * - * @generated from message babylon.checkpointing.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * genesis_keys defines the public keys for the genesis validators - * - * @generated from field: repeated babylon.checkpointing.v1.GenesisKey genesis_keys = 1; - */ - genesisKeys: GenesisKey[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "genesis_keys", kind: "message", T: GenesisKey, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * GenesisKey defines public key information about the genesis validators - * - * @generated from message babylon.checkpointing.v1.GenesisKey - */ -export class GenesisKey extends Message { - /** - * validator_address is the address corresponding to a validator - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * bls_key defines the BLS key of the validator at genesis - * - * @generated from field: babylon.checkpointing.v1.BlsKey bls_key = 2; - */ - blsKey?: BlsKey; - - /** - * val_pubkey defines the ed25519 public key of the validator at genesis - * - * @generated from field: cosmos.crypto.ed25519.PubKey val_pubkey = 3; - */ - valPubkey?: PubKey; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.GenesisKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "bls_key", kind: "message", T: BlsKey }, - { no: 3, name: "val_pubkey", kind: "message", T: PubKey }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisKey { - return new GenesisKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisKey { - return new GenesisKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisKey { - return new GenesisKey().fromJsonString(jsonString, options); - } - - static equals(a: GenesisKey | PlainMessage | undefined, b: GenesisKey | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisKey, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/query_cosmes.ts deleted file mode 100644 index eeaa9bb..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/query_cosmes.ts +++ /dev/null @@ -1,96 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/query.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBlsPublicKeyListRequest, QueryBlsPublicKeyListResponse, QueryEpochStatusRequest, QueryEpochStatusResponse, QueryLastCheckpointWithStatusRequest, QueryLastCheckpointWithStatusResponse, QueryRawCheckpointListRequest, QueryRawCheckpointListResponse, QueryRawCheckpointRequest, QueryRawCheckpointResponse, QueryRawCheckpointsRequest, QueryRawCheckpointsResponse, QueryRecentEpochStatusCountRequest, QueryRecentEpochStatusCountResponse } from "./query_pb.js"; - -const TYPE_NAME = "babylon.checkpointing.v1.Query"; - -/** - * RawCheckpointList queries all checkpoints that match the given status. - * - * @generated from rpc babylon.checkpointing.v1.Query.RawCheckpointList - */ -export const QueryRawCheckpointListService = { - typeName: TYPE_NAME, - method: "RawCheckpointList", - Request: QueryRawCheckpointListRequest, - Response: QueryRawCheckpointListResponse, -} as const; - -/** - * RawCheckpoint queries a checkpoints at a given epoch number. - * - * @generated from rpc babylon.checkpointing.v1.Query.RawCheckpoint - */ -export const QueryRawCheckpointService = { - typeName: TYPE_NAME, - method: "RawCheckpoint", - Request: QueryRawCheckpointRequest, - Response: QueryRawCheckpointResponse, -} as const; - -/** - * RawCheckpoints queries checkpoints for a epoch range specified in pagination params. - * - * @generated from rpc babylon.checkpointing.v1.Query.RawCheckpoints - */ -export const QueryRawCheckpointsService = { - typeName: TYPE_NAME, - method: "RawCheckpoints", - Request: QueryRawCheckpointsRequest, - Response: QueryRawCheckpointsResponse, -} as const; - -/** - * BlsPublicKeyList queries a list of bls public keys of the validators at a - * given epoch number. - * - * @generated from rpc babylon.checkpointing.v1.Query.BlsPublicKeyList - */ -export const QueryBlsPublicKeyListService = { - typeName: TYPE_NAME, - method: "BlsPublicKeyList", - Request: QueryBlsPublicKeyListRequest, - Response: QueryBlsPublicKeyListResponse, -} as const; - -/** - * EpochStatus queries the status of the checkpoint at a given epoch - * - * @generated from rpc babylon.checkpointing.v1.Query.EpochStatus - */ -export const QueryEpochStatusService = { - typeName: TYPE_NAME, - method: "EpochStatus", - Request: QueryEpochStatusRequest, - Response: QueryEpochStatusResponse, -} as const; - -/** - * RecentEpochStatusCount queries the number of epochs with each status in - * recent epochs - * - * @generated from rpc babylon.checkpointing.v1.Query.RecentEpochStatusCount - */ -export const QueryRecentEpochStatusCountService = { - typeName: TYPE_NAME, - method: "RecentEpochStatusCount", - Request: QueryRecentEpochStatusCountRequest, - Response: QueryRecentEpochStatusCountResponse, -} as const; - -/** - * LastCheckpointWithStatus queries the last checkpoint with a given status or - * a more matured status - * - * @generated from rpc babylon.checkpointing.v1.Query.LastCheckpointWithStatus - */ -export const QueryLastCheckpointWithStatusService = { - typeName: TYPE_NAME, - method: "LastCheckpointWithStatus", - Request: QueryLastCheckpointWithStatusRequest, - Response: QueryLastCheckpointWithStatusResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/query_pb.ts deleted file mode 100644 index 8341b74..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/query_pb.ts +++ /dev/null @@ -1,853 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/query.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { CheckpointStatus } from "./checkpoint_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { ValidatorWithBlsKey } from "./bls_key_pb.js"; - -/** - * QueryRawCheckpointListRequest is the request type for the - * Query/RawCheckpoints RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRawCheckpointListRequest - */ -export class QueryRawCheckpointListRequest extends Message { - /** - * status defines the status of the raw checkpoints of the query - * - * @generated from field: babylon.checkpointing.v1.CheckpointStatus status = 1; - */ - status = CheckpointStatus.CKPT_STATUS_ACCUMULATING; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRawCheckpointListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(CheckpointStatus) }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawCheckpointListRequest { - return new QueryRawCheckpointListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawCheckpointListRequest { - return new QueryRawCheckpointListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawCheckpointListRequest { - return new QueryRawCheckpointListRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawCheckpointListRequest | PlainMessage | undefined, b: QueryRawCheckpointListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawCheckpointListRequest, a, b); - } -} - -/** - * QueryRawCheckpointListResponse is the response type for the - * Query/RawCheckpoints RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRawCheckpointListResponse - */ -export class QueryRawCheckpointListResponse extends Message { - /** - * the order is going from the newest to oldest based on the epoch number - * - * @generated from field: repeated babylon.checkpointing.v1.RawCheckpointWithMetaResponse raw_checkpoints = 1; - */ - rawCheckpoints: RawCheckpointWithMetaResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRawCheckpointListResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "raw_checkpoints", kind: "message", T: RawCheckpointWithMetaResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawCheckpointListResponse { - return new QueryRawCheckpointListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawCheckpointListResponse { - return new QueryRawCheckpointListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawCheckpointListResponse { - return new QueryRawCheckpointListResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawCheckpointListResponse | PlainMessage | undefined, b: QueryRawCheckpointListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawCheckpointListResponse, a, b); - } -} - -/** - * QueryRawCheckpointRequest is the request type for the Query/RawCheckpoint - * RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRawCheckpointRequest - */ -export class QueryRawCheckpointRequest extends Message { - /** - * epoch_num defines the epoch for the queried checkpoint - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRawCheckpointRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawCheckpointRequest { - return new QueryRawCheckpointRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawCheckpointRequest { - return new QueryRawCheckpointRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawCheckpointRequest { - return new QueryRawCheckpointRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawCheckpointRequest | PlainMessage | undefined, b: QueryRawCheckpointRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawCheckpointRequest, a, b); - } -} - -/** - * QueryRawCheckpointResponse is the response type for the Query/RawCheckpoint - * RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRawCheckpointResponse - */ -export class QueryRawCheckpointResponse extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointWithMetaResponse raw_checkpoint = 1; - */ - rawCheckpoint?: RawCheckpointWithMetaResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRawCheckpointResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "raw_checkpoint", kind: "message", T: RawCheckpointWithMetaResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawCheckpointResponse { - return new QueryRawCheckpointResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawCheckpointResponse { - return new QueryRawCheckpointResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawCheckpointResponse { - return new QueryRawCheckpointResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawCheckpointResponse | PlainMessage | undefined, b: QueryRawCheckpointResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawCheckpointResponse, a, b); - } -} - -/** - * QueryRawCheckpointsRequest is the request type for the Query/RawCheckpoints - * RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRawCheckpointsRequest - */ -export class QueryRawCheckpointsRequest extends Message { - /** - * pagination defines whether to have the pagination in the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRawCheckpointsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawCheckpointsRequest { - return new QueryRawCheckpointsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawCheckpointsRequest { - return new QueryRawCheckpointsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawCheckpointsRequest { - return new QueryRawCheckpointsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawCheckpointsRequest | PlainMessage | undefined, b: QueryRawCheckpointsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawCheckpointsRequest, a, b); - } -} - -/** - * QueryRawCheckpointsResponse is the response type for the Query/RawCheckpoints - * RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRawCheckpointsResponse - */ -export class QueryRawCheckpointsResponse extends Message { - /** - * the order is going from the newest to oldest based on the epoch number - * - * @generated from field: repeated babylon.checkpointing.v1.RawCheckpointWithMetaResponse raw_checkpoints = 1; - */ - rawCheckpoints: RawCheckpointWithMetaResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRawCheckpointsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "raw_checkpoints", kind: "message", T: RawCheckpointWithMetaResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawCheckpointsResponse { - return new QueryRawCheckpointsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawCheckpointsResponse { - return new QueryRawCheckpointsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawCheckpointsResponse { - return new QueryRawCheckpointsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawCheckpointsResponse | PlainMessage | undefined, b: QueryRawCheckpointsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawCheckpointsResponse, a, b); - } -} - -/** - * QueryBlsPublicKeyListRequest is the request type for the Query/BlsPublicKeys - * RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryBlsPublicKeyListRequest - */ -export class QueryBlsPublicKeyListRequest extends Message { - /** - * epoch_num defines the epoch for the queried bls public keys - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryBlsPublicKeyListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlsPublicKeyListRequest { - return new QueryBlsPublicKeyListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlsPublicKeyListRequest { - return new QueryBlsPublicKeyListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBlsPublicKeyListRequest { - return new QueryBlsPublicKeyListRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBlsPublicKeyListRequest | PlainMessage | undefined, b: QueryBlsPublicKeyListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBlsPublicKeyListRequest, a, b); - } -} - -/** - * QueryBlsPublicKeyListResponse is the response type for the - * Query/BlsPublicKeys RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryBlsPublicKeyListResponse - */ -export class QueryBlsPublicKeyListResponse extends Message { - /** - * @generated from field: repeated babylon.checkpointing.v1.ValidatorWithBlsKey validator_with_bls_keys = 1; - */ - validatorWithBlsKeys: ValidatorWithBlsKey[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryBlsPublicKeyListResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_with_bls_keys", kind: "message", T: ValidatorWithBlsKey, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlsPublicKeyListResponse { - return new QueryBlsPublicKeyListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlsPublicKeyListResponse { - return new QueryBlsPublicKeyListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBlsPublicKeyListResponse { - return new QueryBlsPublicKeyListResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBlsPublicKeyListResponse | PlainMessage | undefined, b: QueryBlsPublicKeyListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBlsPublicKeyListResponse, a, b); - } -} - -/** - * QueryEpochStatusRequest is the request type for the Query/EpochStatus - * RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryEpochStatusRequest - */ -export class QueryEpochStatusRequest extends Message { - /** - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryEpochStatusRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochStatusRequest { - return new QueryEpochStatusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochStatusRequest { - return new QueryEpochStatusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochStatusRequest { - return new QueryEpochStatusRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochStatusRequest | PlainMessage | undefined, b: QueryEpochStatusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochStatusRequest, a, b); - } -} - -/** - * QueryEpochStatusResponse is the response type for the Query/EpochStatus - * RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryEpochStatusResponse - */ -export class QueryEpochStatusResponse extends Message { - /** - * @generated from field: babylon.checkpointing.v1.CheckpointStatus status = 1; - */ - status = CheckpointStatus.CKPT_STATUS_ACCUMULATING; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryEpochStatusResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(CheckpointStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochStatusResponse { - return new QueryEpochStatusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochStatusResponse { - return new QueryEpochStatusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochStatusResponse { - return new QueryEpochStatusResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochStatusResponse | PlainMessage | undefined, b: QueryEpochStatusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochStatusResponse, a, b); - } -} - -/** - * QueryRecentEpochStatusCountRequest is the request type for the - * Query/EpochStatusCount RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRecentEpochStatusCountRequest - */ -export class QueryRecentEpochStatusCountRequest extends Message { - /** - * epoch_count is the number of the most recent epochs to include in the - * aggregation - * - * @generated from field: uint64 epoch_count = 1; - */ - epochCount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRecentEpochStatusCountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRecentEpochStatusCountRequest { - return new QueryRecentEpochStatusCountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRecentEpochStatusCountRequest { - return new QueryRecentEpochStatusCountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRecentEpochStatusCountRequest { - return new QueryRecentEpochStatusCountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRecentEpochStatusCountRequest | PlainMessage | undefined, b: QueryRecentEpochStatusCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRecentEpochStatusCountRequest, a, b); - } -} - -/** - * QueryRecentEpochStatusCountResponse is the response type for the - * Query/EpochStatusCount RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryRecentEpochStatusCountResponse - */ -export class QueryRecentEpochStatusCountResponse extends Message { - /** - * @generated from field: uint64 tip_epoch = 1; - */ - tipEpoch = protoInt64.zero; - - /** - * @generated from field: uint64 epoch_count = 2; - */ - epochCount = protoInt64.zero; - - /** - * @generated from field: map status_count = 3; - */ - statusCount: { [key: string]: bigint } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryRecentEpochStatusCountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tip_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "epoch_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "status_count", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 4 /* ScalarType.UINT64 */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRecentEpochStatusCountResponse { - return new QueryRecentEpochStatusCountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRecentEpochStatusCountResponse { - return new QueryRecentEpochStatusCountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRecentEpochStatusCountResponse { - return new QueryRecentEpochStatusCountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRecentEpochStatusCountResponse | PlainMessage | undefined, b: QueryRecentEpochStatusCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRecentEpochStatusCountResponse, a, b); - } -} - -/** - * QueryLastCheckpointWithStatusRequest is the request type for the - * Query/LastCheckpointWithStatus RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryLastCheckpointWithStatusRequest - */ -export class QueryLastCheckpointWithStatusRequest extends Message { - /** - * @generated from field: babylon.checkpointing.v1.CheckpointStatus status = 1; - */ - status = CheckpointStatus.CKPT_STATUS_ACCUMULATING; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryLastCheckpointWithStatusRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(CheckpointStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastCheckpointWithStatusRequest { - return new QueryLastCheckpointWithStatusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastCheckpointWithStatusRequest { - return new QueryLastCheckpointWithStatusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLastCheckpointWithStatusRequest { - return new QueryLastCheckpointWithStatusRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryLastCheckpointWithStatusRequest | PlainMessage | undefined, b: QueryLastCheckpointWithStatusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLastCheckpointWithStatusRequest, a, b); - } -} - -/** - * QueryLastCheckpointWithStatusResponse is the response type for the - * Query/LastCheckpointWithStatus RPC method. - * - * @generated from message babylon.checkpointing.v1.QueryLastCheckpointWithStatusResponse - */ -export class QueryLastCheckpointWithStatusResponse extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointResponse raw_checkpoint = 1; - */ - rawCheckpoint?: RawCheckpointResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.QueryLastCheckpointWithStatusResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "raw_checkpoint", kind: "message", T: RawCheckpointResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastCheckpointWithStatusResponse { - return new QueryLastCheckpointWithStatusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastCheckpointWithStatusResponse { - return new QueryLastCheckpointWithStatusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLastCheckpointWithStatusResponse { - return new QueryLastCheckpointWithStatusResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryLastCheckpointWithStatusResponse | PlainMessage | undefined, b: QueryLastCheckpointWithStatusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLastCheckpointWithStatusResponse, a, b); - } -} - -/** - * RawCheckpointResponse wraps the BLS multi sig with metadata - * - * @generated from message babylon.checkpointing.v1.RawCheckpointResponse - */ -export class RawCheckpointResponse extends Message { - /** - * epoch_num defines the epoch number the raw checkpoint is for - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * block_hash_hex defines the 'BlockID.Hash', which is the hash of - * the block that individual BLS sigs are signed on as hex string - * - * @generated from field: string block_hash_hex = 2; - */ - blockHashHex = ""; - - /** - * bitmap defines the bitmap that indicates the signers of the BLS multi sig - * - * @generated from field: bytes bitmap = 3; - */ - bitmap = new Uint8Array(0); - - /** - * bls_multi_sig defines the multi sig that is aggregated from individual BLS - * sigs - * - * @generated from field: bytes bls_multi_sig = 4; - */ - blsMultiSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.RawCheckpointResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "block_hash_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "bitmap", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "bls_multi_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RawCheckpointResponse { - return new RawCheckpointResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RawCheckpointResponse { - return new RawCheckpointResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RawCheckpointResponse { - return new RawCheckpointResponse().fromJsonString(jsonString, options); - } - - static equals(a: RawCheckpointResponse | PlainMessage | undefined, b: RawCheckpointResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RawCheckpointResponse, a, b); - } -} - -/** - * CheckpointStateUpdateResponse defines a state transition on the checkpoint. - * - * @generated from message babylon.checkpointing.v1.CheckpointStateUpdateResponse - */ -export class CheckpointStateUpdateResponse extends Message { - /** - * state defines the event of a state transition towards this state - * - * @generated from field: babylon.checkpointing.v1.CheckpointStatus state = 1; - */ - state = CheckpointStatus.CKPT_STATUS_ACCUMULATING; - - /** - * status_desc respresents the description of status enum. - * - * @generated from field: string status_desc = 2; - */ - statusDesc = ""; - - /** - * block_height is the height of the Babylon block that triggers the state - * update - * - * @generated from field: uint64 block_height = 3; - */ - blockHeight = protoInt64.zero; - - /** - * block_time is the timestamp in the Babylon block that triggers the state - * update - * - * @generated from field: google.protobuf.Timestamp block_time = 4; - */ - blockTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.CheckpointStateUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(CheckpointStatus) }, - { no: 2, name: "status_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "block_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CheckpointStateUpdateResponse { - return new CheckpointStateUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CheckpointStateUpdateResponse { - return new CheckpointStateUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CheckpointStateUpdateResponse { - return new CheckpointStateUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: CheckpointStateUpdateResponse | PlainMessage | undefined, b: CheckpointStateUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CheckpointStateUpdateResponse, a, b); - } -} - -/** - * RawCheckpointWithMetaResponse wraps the raw checkpoint with metadata. - * - * @generated from message babylon.checkpointing.v1.RawCheckpointWithMetaResponse - */ -export class RawCheckpointWithMetaResponse extends Message { - /** - * @generated from field: babylon.checkpointing.v1.RawCheckpointResponse ckpt = 1; - */ - ckpt?: RawCheckpointResponse; - - /** - * status defines the status of the checkpoint - * - * @generated from field: babylon.checkpointing.v1.CheckpointStatus status = 2; - */ - status = CheckpointStatus.CKPT_STATUS_ACCUMULATING; - - /** - * status_desc respresents the description of status enum. - * - * @generated from field: string status_desc = 3; - */ - statusDesc = ""; - - /** - * bls_aggr_pk defines the aggregated BLS public key - * - * @generated from field: bytes bls_aggr_pk = 4; - */ - blsAggrPk = new Uint8Array(0); - - /** - * power_sum defines the accumulated voting power for the checkpoint - * - * @generated from field: uint64 power_sum = 5; - */ - powerSum = protoInt64.zero; - - /** - * lifecycle defines the lifecycle of this checkpoint, i.e., each state - * transition and the time (in both timestamp and block height) of this - * transition. - * - * @generated from field: repeated babylon.checkpointing.v1.CheckpointStateUpdateResponse lifecycle = 6; - */ - lifecycle: CheckpointStateUpdateResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.RawCheckpointWithMetaResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ckpt", kind: "message", T: RawCheckpointResponse }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(CheckpointStatus) }, - { no: 3, name: "status_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "bls_aggr_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "power_sum", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "lifecycle", kind: "message", T: CheckpointStateUpdateResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RawCheckpointWithMetaResponse { - return new RawCheckpointWithMetaResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RawCheckpointWithMetaResponse { - return new RawCheckpointWithMetaResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RawCheckpointWithMetaResponse { - return new RawCheckpointWithMetaResponse().fromJsonString(jsonString, options); - } - - static equals(a: RawCheckpointWithMetaResponse | PlainMessage | undefined, b: RawCheckpointWithMetaResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RawCheckpointWithMetaResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_cosmes.ts deleted file mode 100644 index 4d16e36..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_cosmes.ts +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/tx.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgWrappedCreateValidator, MsgWrappedCreateValidatorResponse } from "./tx_pb.js"; - -const TYPE_NAME = "babylon.checkpointing.v1.Msg"; - -/** - * WrappedCreateValidator defines a method for registering a new validator - * - * @generated from rpc babylon.checkpointing.v1.Msg.WrappedCreateValidator - */ -export const MsgWrappedCreateValidatorService = { - typeName: TYPE_NAME, - method: "WrappedCreateValidator", - Request: MsgWrappedCreateValidator, - Response: MsgWrappedCreateValidatorResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_pb.ts b/libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_pb.ts deleted file mode 100644 index 363116a..0000000 --- a/libs/es-client/src/protobufs/babylon/checkpointing/v1/tx_pb.ts +++ /dev/null @@ -1,89 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/checkpointing/v1/tx.proto (package babylon.checkpointing.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { BlsKey } from "./bls_key_pb.js"; -import { MsgCreateValidator } from "../../../cosmos/staking/v1beta1/tx_pb.js"; - -/** - * MsgWrappedCreateValidator defines a wrapped message to create a validator - * - * @generated from message babylon.checkpointing.v1.MsgWrappedCreateValidator - */ -export class MsgWrappedCreateValidator extends Message { - /** - * @generated from field: babylon.checkpointing.v1.BlsKey key = 1; - */ - key?: BlsKey; - - /** - * @generated from field: cosmos.staking.v1beta1.MsgCreateValidator msg_create_validator = 2; - */ - msgCreateValidator?: MsgCreateValidator; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.MsgWrappedCreateValidator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "message", T: BlsKey }, - { no: 2, name: "msg_create_validator", kind: "message", T: MsgCreateValidator }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedCreateValidator { - return new MsgWrappedCreateValidator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedCreateValidator { - return new MsgWrappedCreateValidator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedCreateValidator { - return new MsgWrappedCreateValidator().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedCreateValidator | PlainMessage | undefined, b: MsgWrappedCreateValidator | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedCreateValidator, a, b); - } -} - -/** - * MsgWrappedCreateValidatorResponse defines the MsgWrappedCreateValidator - * response type - * - * @generated from message babylon.checkpointing.v1.MsgWrappedCreateValidatorResponse - */ -export class MsgWrappedCreateValidatorResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.checkpointing.v1.MsgWrappedCreateValidatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedCreateValidatorResponse { - return new MsgWrappedCreateValidatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedCreateValidatorResponse { - return new MsgWrappedCreateValidatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedCreateValidatorResponse { - return new MsgWrappedCreateValidatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedCreateValidatorResponse | PlainMessage | undefined, b: MsgWrappedCreateValidatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedCreateValidatorResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/epoching_pb.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/epoching_pb.ts deleted file mode 100644 index d9b528b..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/epoching_pb.ts +++ /dev/null @@ -1,523 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/epoching/v1/epoching.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { MsgBeginRedelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgDelegate, MsgUndelegate } from "../../../cosmos/staking/v1beta1/tx_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * BondState is the bond state of a validator or delegation - * - * @generated from enum babylon.epoching.v1.BondState - */ -export enum BondState { - /** - * CREATED is when the validator/delegation has been created - * - * @generated from enum value: CREATED = 0; - */ - CREATED = 0, - - /** - * CREATED is when the validator/delegation has become bonded - * - * @generated from enum value: BONDED = 1; - */ - BONDED = 1, - - /** - * CREATED is when the validator/delegation has become unbonding - * - * @generated from enum value: UNBONDING = 2; - */ - UNBONDING = 2, - - /** - * CREATED is when the validator/delegation has become unbonded - * - * @generated from enum value: UNBONDED = 3; - */ - UNBONDED = 3, - - /** - * CREATED is when the validator/delegation has been removed - * - * @generated from enum value: REMOVED = 4; - */ - REMOVED = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(BondState) -proto3.util.setEnumType(BondState, "babylon.epoching.v1.BondState", [ - { no: 0, name: "CREATED" }, - { no: 1, name: "BONDED" }, - { no: 2, name: "UNBONDING" }, - { no: 3, name: "UNBONDED" }, - { no: 4, name: "REMOVED" }, -]); - -/** - * Epoch is a structure that contains the metadata of an epoch - * - * @generated from message babylon.epoching.v1.Epoch - */ -export class Epoch extends Message { - /** - * epoch_number is the number of this epoch - * - * @generated from field: uint64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - /** - * current_epoch_interval is the epoch interval at the time of this epoch - * - * @generated from field: uint64 current_epoch_interval = 2; - */ - currentEpochInterval = protoInt64.zero; - - /** - * first_block_height is the height of the first block in this epoch - * - * @generated from field: uint64 first_block_height = 3; - */ - firstBlockHeight = protoInt64.zero; - - /** - * last_block_time is the time of the last block in this epoch. - * Babylon needs to remember the last header's time of each epoch to complete - * unbonding validators/delegations when a previous epoch's checkpoint is - * finalised. The last_block_time field is nil in the epoch's beginning, and - * is set upon the end of this epoch. - * - * @generated from field: google.protobuf.Timestamp last_block_time = 4; - */ - lastBlockTime?: Timestamp; - - /** - * app_hash_root is the Merkle root of all AppHashs in this epoch - * It will be used for proving a block is in an epoch - * - * @generated from field: bytes app_hash_root = 5; - */ - appHashRoot = new Uint8Array(0); - - /** - * sealer is the last block of the sealed epoch - * sealer_app_hash points to the sealer but stored in the 1st header - * of the next epoch - * - * @generated from field: bytes sealer_app_hash = 6; - */ - sealerAppHash = new Uint8Array(0); - - /** - * sealer_block_hash is the hash of the sealer - * the validator set has generated a BLS multisig on the hash, - * i.e., hash of the last block in the epoch - * - * @generated from field: bytes sealer_block_hash = 7; - */ - sealerBlockHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.Epoch"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "current_epoch_interval", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "first_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "last_block_time", kind: "message", T: Timestamp }, - { no: 5, name: "app_hash_root", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "sealer_app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "sealer_block_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Epoch { - return new Epoch().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Epoch { - return new Epoch().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Epoch { - return new Epoch().fromJsonString(jsonString, options); - } - - static equals(a: Epoch | PlainMessage | undefined, b: Epoch | PlainMessage | undefined): boolean { - return proto3.util.equals(Epoch, a, b); - } -} - -/** - * QueuedMessage is a message that can change the validator set and is delayed - * to the end of an epoch - * - * @generated from message babylon.epoching.v1.QueuedMessage - */ -export class QueuedMessage extends Message { - /** - * tx_id is the ID of the tx that contains the message - * - * @generated from field: bytes tx_id = 1; - */ - txId = new Uint8Array(0); - - /** - * msg_id is the original message ID, i.e., hash of the marshaled message - * - * @generated from field: bytes msg_id = 2; - */ - msgId = new Uint8Array(0); - - /** - * block_height is the height when this msg is submitted to Babylon - * - * @generated from field: uint64 block_height = 3; - */ - blockHeight = protoInt64.zero; - - /** - * block_time is the timestamp when this msg is submitted to Babylon - * - * @generated from field: google.protobuf.Timestamp block_time = 4; - */ - blockTime?: Timestamp; - - /** - * msg is the actual message that is sent by a user and is queued by the - * epoching module - * - * @generated from oneof babylon.epoching.v1.QueuedMessage.msg - */ - msg: { - /** - * @generated from field: cosmos.staking.v1beta1.MsgCreateValidator msg_create_validator = 5; - */ - value: MsgCreateValidator; - case: "msgCreateValidator"; - } | { - /** - * @generated from field: cosmos.staking.v1beta1.MsgDelegate msg_delegate = 6; - */ - value: MsgDelegate; - case: "msgDelegate"; - } | { - /** - * @generated from field: cosmos.staking.v1beta1.MsgUndelegate msg_undelegate = 7; - */ - value: MsgUndelegate; - case: "msgUndelegate"; - } | { - /** - * @generated from field: cosmos.staking.v1beta1.MsgBeginRedelegate msg_begin_redelegate = 8; - */ - value: MsgBeginRedelegate; - case: "msgBeginRedelegate"; - } | { - /** - * @generated from field: cosmos.staking.v1beta1.MsgCancelUnbondingDelegation msg_cancel_unbonding_delegation = 9; - */ - value: MsgCancelUnbondingDelegation; - case: "msgCancelUnbondingDelegation"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueuedMessage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "msg_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "block_time", kind: "message", T: Timestamp }, - { no: 5, name: "msg_create_validator", kind: "message", T: MsgCreateValidator, oneof: "msg" }, - { no: 6, name: "msg_delegate", kind: "message", T: MsgDelegate, oneof: "msg" }, - { no: 7, name: "msg_undelegate", kind: "message", T: MsgUndelegate, oneof: "msg" }, - { no: 8, name: "msg_begin_redelegate", kind: "message", T: MsgBeginRedelegate, oneof: "msg" }, - { no: 9, name: "msg_cancel_unbonding_delegation", kind: "message", T: MsgCancelUnbondingDelegation, oneof: "msg" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueuedMessage { - return new QueuedMessage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueuedMessage { - return new QueuedMessage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueuedMessage { - return new QueuedMessage().fromJsonString(jsonString, options); - } - - static equals(a: QueuedMessage | PlainMessage | undefined, b: QueuedMessage | PlainMessage | undefined): boolean { - return proto3.util.equals(QueuedMessage, a, b); - } -} - -/** - * ValStateUpdate is a message that records a state update of a validator - * - * @generated from message babylon.epoching.v1.ValStateUpdate - */ -export class ValStateUpdate extends Message { - /** - * @generated from field: babylon.epoching.v1.BondState state = 1; - */ - state = BondState.CREATED; - - /** - * @generated from field: uint64 block_height = 2; - */ - blockHeight = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp block_time = 3; - */ - blockTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.ValStateUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(BondState) }, - { no: 2, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "block_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValStateUpdate { - return new ValStateUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValStateUpdate { - return new ValStateUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValStateUpdate { - return new ValStateUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ValStateUpdate | PlainMessage | undefined, b: ValStateUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ValStateUpdate, a, b); - } -} - -/** - * ValidatorLifecycle is a message that records the lifecycle of - * a validator - * - * @generated from message babylon.epoching.v1.ValidatorLifecycle - */ -export class ValidatorLifecycle extends Message { - /** - * @generated from field: string val_addr = 1; - */ - valAddr = ""; - - /** - * @generated from field: repeated babylon.epoching.v1.ValStateUpdate val_life = 2; - */ - valLife: ValStateUpdate[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.ValidatorLifecycle"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "val_life", kind: "message", T: ValStateUpdate, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorLifecycle { - return new ValidatorLifecycle().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorLifecycle { - return new ValidatorLifecycle().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorLifecycle { - return new ValidatorLifecycle().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorLifecycle | PlainMessage | undefined, b: ValidatorLifecycle | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorLifecycle, a, b); - } -} - -/** - * DelegationStateUpdate is the message that records a state update of a - * delegation - * - * @generated from message babylon.epoching.v1.DelegationStateUpdate - */ -export class DelegationStateUpdate extends Message { - /** - * @generated from field: babylon.epoching.v1.BondState state = 1; - */ - state = BondState.CREATED; - - /** - * @generated from field: string val_addr = 2; - */ - valAddr = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 3; - */ - amount?: Coin; - - /** - * @generated from field: uint64 block_height = 4; - */ - blockHeight = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp block_time = 5; - */ - blockTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.DelegationStateUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(BondState) }, - { no: 2, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin }, - { no: 4, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "block_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelegationStateUpdate { - return new DelegationStateUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelegationStateUpdate { - return new DelegationStateUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelegationStateUpdate { - return new DelegationStateUpdate().fromJsonString(jsonString, options); - } - - static equals(a: DelegationStateUpdate | PlainMessage | undefined, b: DelegationStateUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(DelegationStateUpdate, a, b); - } -} - -/** - * ValidatorLifecycle is a message that records the lifecycle of - * a delegation - * - * @generated from message babylon.epoching.v1.DelegationLifecycle - */ -export class DelegationLifecycle extends Message { - /** - * @generated from field: string del_addr = 1; - */ - delAddr = ""; - - /** - * @generated from field: repeated babylon.epoching.v1.DelegationStateUpdate del_life = 2; - */ - delLife: DelegationStateUpdate[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.DelegationLifecycle"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "del_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "del_life", kind: "message", T: DelegationStateUpdate, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelegationLifecycle { - return new DelegationLifecycle().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelegationLifecycle { - return new DelegationLifecycle().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelegationLifecycle { - return new DelegationLifecycle().fromJsonString(jsonString, options); - } - - static equals(a: DelegationLifecycle | PlainMessage | undefined, b: DelegationLifecycle | PlainMessage | undefined): boolean { - return proto3.util.equals(DelegationLifecycle, a, b); - } -} - -/** - * Validator is a message that denotes a validator - * - * @generated from message babylon.epoching.v1.Validator - */ -export class Validator extends Message { - /** - * addr is the validator's address (in sdk.ValAddress) - * - * @generated from field: bytes addr = 1; - */ - addr = new Uint8Array(0); - - /** - * power is the validator's voting power - * - * @generated from field: int64 power = 2; - */ - power = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.Validator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "addr", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Validator { - return new Validator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Validator { - return new Validator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Validator { - return new Validator().fromJsonString(jsonString, options); - } - - static equals(a: Validator | PlainMessage | undefined, b: Validator | PlainMessage | undefined): boolean { - return proto3.util.equals(Validator, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/events_pb.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/events_pb.ts deleted file mode 100644 index 86581cc..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/events_pb.ts +++ /dev/null @@ -1,476 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/epoching/v1/events.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * EventBeginEpoch is the event emitted when an epoch has started - * - * @generated from message babylon.epoching.v1.EventBeginEpoch - */ -export class EventBeginEpoch extends Message { - /** - * @generated from field: uint64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventBeginEpoch"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBeginEpoch { - return new EventBeginEpoch().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBeginEpoch { - return new EventBeginEpoch().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBeginEpoch { - return new EventBeginEpoch().fromJsonString(jsonString, options); - } - - static equals(a: EventBeginEpoch | PlainMessage | undefined, b: EventBeginEpoch | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBeginEpoch, a, b); - } -} - -/** - * EventEndEpoch is the event emitted when an epoch has ended - * - * @generated from message babylon.epoching.v1.EventEndEpoch - */ -export class EventEndEpoch extends Message { - /** - * @generated from field: uint64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventEndEpoch"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventEndEpoch { - return new EventEndEpoch().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventEndEpoch { - return new EventEndEpoch().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventEndEpoch { - return new EventEndEpoch().fromJsonString(jsonString, options); - } - - static equals(a: EventEndEpoch | PlainMessage | undefined, b: EventEndEpoch | PlainMessage | undefined): boolean { - return proto3.util.equals(EventEndEpoch, a, b); - } -} - -/** - * EventHandleQueuedMsg is the event emitted when a queued message has been - * handled - * - * @generated from message babylon.epoching.v1.EventHandleQueuedMsg - */ -export class EventHandleQueuedMsg extends Message { - /** - * @generated from field: string original_event_type = 1; - */ - originalEventType = ""; - - /** - * @generated from field: uint64 epoch_number = 2; - */ - epochNumber = protoInt64.zero; - - /** - * @generated from field: uint64 height = 3; - */ - height = protoInt64.zero; - - /** - * @generated from field: bytes tx_id = 4; - */ - txId = new Uint8Array(0); - - /** - * @generated from field: bytes msg_id = 5; - */ - msgId = new Uint8Array(0); - - /** - * @generated from field: repeated bytes original_attributes = 6; - */ - originalAttributes: Uint8Array[] = []; - - /** - * @generated from field: string error = 7; - */ - error = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventHandleQueuedMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "original_event_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "tx_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "msg_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "original_attributes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 7, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventHandleQueuedMsg { - return new EventHandleQueuedMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventHandleQueuedMsg { - return new EventHandleQueuedMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventHandleQueuedMsg { - return new EventHandleQueuedMsg().fromJsonString(jsonString, options); - } - - static equals(a: EventHandleQueuedMsg | PlainMessage | undefined, b: EventHandleQueuedMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(EventHandleQueuedMsg, a, b); - } -} - -/** - * EventSlashThreshold is the event emitted when a set of validators have been - * slashed - * - * @generated from message babylon.epoching.v1.EventSlashThreshold - */ -export class EventSlashThreshold extends Message { - /** - * @generated from field: int64 slashed_voting_power = 1; - */ - slashedVotingPower = protoInt64.zero; - - /** - * @generated from field: int64 total_voting_power = 2; - */ - totalVotingPower = protoInt64.zero; - - /** - * @generated from field: repeated bytes slashed_validators = 3; - */ - slashedValidators: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventSlashThreshold"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "slashed_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "total_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "slashed_validators", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventSlashThreshold { - return new EventSlashThreshold().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventSlashThreshold { - return new EventSlashThreshold().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventSlashThreshold { - return new EventSlashThreshold().fromJsonString(jsonString, options); - } - - static equals(a: EventSlashThreshold | PlainMessage | undefined, b: EventSlashThreshold | PlainMessage | undefined): boolean { - return proto3.util.equals(EventSlashThreshold, a, b); - } -} - -/** - * EventWrappedDelegate is the event emitted when a MsgWrappedDelegate has been - * queued - * - * @generated from message babylon.epoching.v1.EventWrappedDelegate - */ -export class EventWrappedDelegate extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: uint64 amount = 3; - */ - amount = protoInt64.zero; - - /** - * @generated from field: string denom = 4; - */ - denom = ""; - - /** - * @generated from field: uint64 epoch_boundary = 5; - */ - epochBoundary = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventWrappedDelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "epoch_boundary", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventWrappedDelegate { - return new EventWrappedDelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventWrappedDelegate { - return new EventWrappedDelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventWrappedDelegate { - return new EventWrappedDelegate().fromJsonString(jsonString, options); - } - - static equals(a: EventWrappedDelegate | PlainMessage | undefined, b: EventWrappedDelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(EventWrappedDelegate, a, b); - } -} - -/** - * EventWrappedUndelegate is the event emitted when a MsgWrappedUndelegate has - * been queued - * - * @generated from message babylon.epoching.v1.EventWrappedUndelegate - */ -export class EventWrappedUndelegate extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: uint64 amount = 3; - */ - amount = protoInt64.zero; - - /** - * @generated from field: string denom = 4; - */ - denom = ""; - - /** - * @generated from field: uint64 epoch_boundary = 5; - */ - epochBoundary = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventWrappedUndelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "epoch_boundary", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventWrappedUndelegate { - return new EventWrappedUndelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventWrappedUndelegate { - return new EventWrappedUndelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventWrappedUndelegate { - return new EventWrappedUndelegate().fromJsonString(jsonString, options); - } - - static equals(a: EventWrappedUndelegate | PlainMessage | undefined, b: EventWrappedUndelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(EventWrappedUndelegate, a, b); - } -} - -/** - * EventWrappedBeginRedelegate is the event emitted when a - * MsgWrappedBeginRedelegate has been queued - * - * @generated from message babylon.epoching.v1.EventWrappedBeginRedelegate - */ -export class EventWrappedBeginRedelegate extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string source_validator_address = 2; - */ - sourceValidatorAddress = ""; - - /** - * @generated from field: string destination_validator_address = 3; - */ - destinationValidatorAddress = ""; - - /** - * @generated from field: uint64 amount = 4; - */ - amount = protoInt64.zero; - - /** - * @generated from field: string denom = 5; - */ - denom = ""; - - /** - * @generated from field: uint64 epoch_boundary = 6; - */ - epochBoundary = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventWrappedBeginRedelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "source_validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "destination_validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "epoch_boundary", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventWrappedBeginRedelegate { - return new EventWrappedBeginRedelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventWrappedBeginRedelegate { - return new EventWrappedBeginRedelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventWrappedBeginRedelegate { - return new EventWrappedBeginRedelegate().fromJsonString(jsonString, options); - } - - static equals(a: EventWrappedBeginRedelegate | PlainMessage | undefined, b: EventWrappedBeginRedelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(EventWrappedBeginRedelegate, a, b); - } -} - -/** - * EventWrappedCancelUnbondingDelegation is the event emitted when a - * MsgWrappedCancelUnbondingDelegation has been queued - * - * @generated from message babylon.epoching.v1.EventWrappedCancelUnbondingDelegation - */ -export class EventWrappedCancelUnbondingDelegation extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: uint64 amount = 3; - */ - amount = protoInt64.zero; - - /** - * @generated from field: int64 creation_height = 4; - */ - creationHeight = protoInt64.zero; - - /** - * @generated from field: uint64 epoch_boundary = 5; - */ - epochBoundary = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EventWrappedCancelUnbondingDelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "creation_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "epoch_boundary", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventWrappedCancelUnbondingDelegation { - return new EventWrappedCancelUnbondingDelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventWrappedCancelUnbondingDelegation { - return new EventWrappedCancelUnbondingDelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventWrappedCancelUnbondingDelegation { - return new EventWrappedCancelUnbondingDelegation().fromJsonString(jsonString, options); - } - - static equals(a: EventWrappedCancelUnbondingDelegation | PlainMessage | undefined, b: EventWrappedCancelUnbondingDelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(EventWrappedCancelUnbondingDelegation, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/genesis_pb.ts deleted file mode 100644 index 2dcd355..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/genesis_pb.ts +++ /dev/null @@ -1,48 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/epoching/v1/genesis.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the epoching module's genesis state. - * - * @generated from message babylon.epoching.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: babylon.epoching.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/params_pb.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/params_pb.ts deleted file mode 100644 index 494985f..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/params_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/epoching/v1/params.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message babylon.epoching.v1.Params - */ -export class Params extends Message { - /** - * epoch_interval is the number of consecutive blocks to form an epoch - * - * @generated from field: uint64 epoch_interval = 1; - */ - epochInterval = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_interval", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/query_cosmes.ts deleted file mode 100644 index f3c4d3c..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/query_cosmes.ts +++ /dev/null @@ -1,138 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/epoching/v1/query.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - QueryCurrentEpochRequest, - QueryCurrentEpochResponse, - QueryDelegationLifecycleRequest, - QueryDelegationLifecycleResponse, - QueryEpochInfoRequest, - QueryEpochInfoResponse, - QueryEpochMsgsRequest, - QueryEpochMsgsResponse, - QueryEpochsInfoRequest, - QueryEpochsInfoResponse, - QueryEpochValSetRequest, - QueryEpochValSetResponse, - QueryLatestEpochMsgsRequest, - QueryLatestEpochMsgsResponse, - QueryParamsRequest, - QueryParamsResponse, - QueryValidatorLifecycleRequest, - QueryValidatorLifecycleResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "babylon.epoching.v1.Query"; - -/** - * Params queries the parameters of the module. - * - * @generated from rpc babylon.epoching.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * EpochInfo queries the information of a given epoch - * - * @generated from rpc babylon.epoching.v1.Query.EpochInfo - */ -export const QueryEpochInfoService = { - typeName: TYPE_NAME, - method: "EpochInfo", - Request: QueryEpochInfoRequest, - Response: QueryEpochInfoResponse, -} as const; - -/** - * EpochsInfo queries the metadata of epochs in a given range, depending on - * the parameters in the pagination request. Th main use case will be querying - * the latest epochs in time order. - * - * @generated from rpc babylon.epoching.v1.Query.EpochsInfo - */ -export const QueryEpochsInfoService = { - typeName: TYPE_NAME, - method: "EpochsInfo", - Request: QueryEpochsInfoRequest, - Response: QueryEpochsInfoResponse, -} as const; - -/** - * CurrentEpoch queries the current epoch - * - * @generated from rpc babylon.epoching.v1.Query.CurrentEpoch - */ -export const QueryCurrentEpochService = { - typeName: TYPE_NAME, - method: "CurrentEpoch", - Request: QueryCurrentEpochRequest, - Response: QueryCurrentEpochResponse, -} as const; - -/** - * EpochMsgs queries the messages of a given epoch - * - * @generated from rpc babylon.epoching.v1.Query.EpochMsgs - */ -export const QueryEpochMsgsService = { - typeName: TYPE_NAME, - method: "EpochMsgs", - Request: QueryEpochMsgsRequest, - Response: QueryEpochMsgsResponse, -} as const; - -/** - * LatestEpochMsgs queries the messages within a given number of most recent - * epochs - * - * @generated from rpc babylon.epoching.v1.Query.LatestEpochMsgs - */ -export const QueryLatestEpochMsgsService = { - typeName: TYPE_NAME, - method: "LatestEpochMsgs", - Request: QueryLatestEpochMsgsRequest, - Response: QueryLatestEpochMsgsResponse, -} as const; - -/** - * ValidatorLifecycle queries the lifecycle of a given validator - * - * @generated from rpc babylon.epoching.v1.Query.ValidatorLifecycle - */ -export const QueryValidatorLifecycleService = { - typeName: TYPE_NAME, - method: "ValidatorLifecycle", - Request: QueryValidatorLifecycleRequest, - Response: QueryValidatorLifecycleResponse, -} as const; - -/** - * DelegationLifecycle queries the lifecycle of a given delegation - * - * @generated from rpc babylon.epoching.v1.Query.DelegationLifecycle - */ -export const QueryDelegationLifecycleService = { - typeName: TYPE_NAME, - method: "DelegationLifecycle", - Request: QueryDelegationLifecycleRequest, - Response: QueryDelegationLifecycleResponse, -} as const; - -/** - * EpochValSet queries the validator set of a given epoch - * - * @generated from rpc babylon.epoching.v1.Query.EpochValSet - */ -export const QueryEpochValSetService = { - typeName: TYPE_NAME, - method: "EpochValSet", - Request: QueryEpochValSetRequest, - Response: QueryEpochValSetResponse, -} as const; diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/query_pb.ts deleted file mode 100644 index 9a0d95c..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/query_pb.ts +++ /dev/null @@ -1,1076 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/epoching/v1/query.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { DelegationLifecycle, Validator } from "./epoching_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message babylon.epoching.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message babylon.epoching.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: babylon.epoching.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryEpochInfoRequest is the request type for the Query/EpochInfo method - * - * @generated from message babylon.epoching.v1.QueryEpochInfoRequest - */ -export class QueryEpochInfoRequest extends Message { - /** - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochInfoRequest { - return new QueryEpochInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochInfoRequest { - return new QueryEpochInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochInfoRequest { - return new QueryEpochInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochInfoRequest | PlainMessage | undefined, b: QueryEpochInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochInfoRequest, a, b); - } -} - -/** - * QueryEpochInfoRequest is the response type for the Query/EpochInfo method - * - * @generated from message babylon.epoching.v1.QueryEpochInfoResponse - */ -export class QueryEpochInfoResponse extends Message { - /** - * @generated from field: babylon.epoching.v1.EpochResponse epoch = 1; - */ - epoch?: EpochResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch", kind: "message", T: EpochResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochInfoResponse { - return new QueryEpochInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochInfoResponse { - return new QueryEpochInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochInfoResponse { - return new QueryEpochInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochInfoResponse | PlainMessage | undefined, b: QueryEpochInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochInfoResponse, a, b); - } -} - -/** - * QueryEpochInfosRequest is the request type for the Query/EpochInfos method - * - * @generated from message babylon.epoching.v1.QueryEpochsInfoRequest - */ -export class QueryEpochsInfoRequest extends Message { - /** - * pagination defines whether to have the pagination in the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochsInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoRequest { - return new QueryEpochsInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoRequest { - return new QueryEpochsInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoRequest { - return new QueryEpochsInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochsInfoRequest | PlainMessage | undefined, b: QueryEpochsInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochsInfoRequest, a, b); - } -} - -/** - * QueryEpochsInfoResponse is the response type for the Query/EpochInfos method - * - * @generated from message babylon.epoching.v1.QueryEpochsInfoResponse - */ -export class QueryEpochsInfoResponse extends Message { - /** - * @generated from field: repeated babylon.epoching.v1.EpochResponse epochs = 1; - */ - epochs: EpochResponse[] = []; - - /** - * pagination defines the pagination in the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochsInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epochs", kind: "message", T: EpochResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoResponse { - return new QueryEpochsInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoResponse { - return new QueryEpochsInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoResponse { - return new QueryEpochsInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochsInfoResponse | PlainMessage | undefined, b: QueryEpochsInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochsInfoResponse, a, b); - } -} - -/** - * QueryCurrentEpochRequest is the request type for the Query/CurrentEpoch RPC - * method - * - * @generated from message babylon.epoching.v1.QueryCurrentEpochRequest - */ -export class QueryCurrentEpochRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryCurrentEpochRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochRequest { - return new QueryCurrentEpochRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochRequest { - return new QueryCurrentEpochRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochRequest { - return new QueryCurrentEpochRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentEpochRequest | PlainMessage | undefined, b: QueryCurrentEpochRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentEpochRequest, a, b); - } -} - -/** - * QueryCurrentEpochResponse is the response type for the Query/CurrentEpoch RPC - * method - * - * @generated from message babylon.epoching.v1.QueryCurrentEpochResponse - */ -export class QueryCurrentEpochResponse extends Message { - /** - * current_epoch is the current epoch number - * - * @generated from field: uint64 current_epoch = 1; - */ - currentEpoch = protoInt64.zero; - - /** - * epoch_boundary is the height of this epoch's last block - * - * @generated from field: uint64 epoch_boundary = 2; - */ - epochBoundary = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryCurrentEpochResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "current_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "epoch_boundary", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochResponse { - return new QueryCurrentEpochResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochResponse { - return new QueryCurrentEpochResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochResponse { - return new QueryCurrentEpochResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentEpochResponse | PlainMessage | undefined, b: QueryCurrentEpochResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentEpochResponse, a, b); - } -} - -/** - * QueryEpochMsgsRequest is the request type for the Query/EpochMsgs RPC method - * - * @generated from message babylon.epoching.v1.QueryEpochMsgsRequest - */ -export class QueryEpochMsgsRequest extends Message { - /** - * epoch_num is the number of epoch of the requested msg queue - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * pagination defines whether to have the pagination in the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochMsgsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochMsgsRequest { - return new QueryEpochMsgsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochMsgsRequest { - return new QueryEpochMsgsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochMsgsRequest { - return new QueryEpochMsgsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochMsgsRequest | PlainMessage | undefined, b: QueryEpochMsgsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochMsgsRequest, a, b); - } -} - -/** - * QueryEpochMsgsResponse is the response type for the Query/EpochMsgs RPC - * method - * - * @generated from message babylon.epoching.v1.QueryEpochMsgsResponse - */ -export class QueryEpochMsgsResponse extends Message { - /** - * msgs is the list of messages queued in the current epoch - * - * @generated from field: repeated babylon.epoching.v1.QueuedMessageResponse msgs = 1; - */ - msgs: QueuedMessageResponse[] = []; - - /** - * pagination defines the pagination in the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochMsgsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msgs", kind: "message", T: QueuedMessageResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochMsgsResponse { - return new QueryEpochMsgsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochMsgsResponse { - return new QueryEpochMsgsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochMsgsResponse { - return new QueryEpochMsgsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochMsgsResponse | PlainMessage | undefined, b: QueryEpochMsgsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochMsgsResponse, a, b); - } -} - -/** - * QueryLatestEpochMsgsRequest is the request type for the Query/LatestEpochMsgs - * RPC method it returns epoch msgs within epoch [max(1, - * end_epoch-epoch_count+1), end_epoch] - * - * @generated from message babylon.epoching.v1.QueryLatestEpochMsgsRequest - */ -export class QueryLatestEpochMsgsRequest extends Message { - /** - * end_epoch is the number of the last epoch to query - * - * @generated from field: uint64 end_epoch = 1; - */ - endEpoch = protoInt64.zero; - - /** - * epoch_count is the number of epochs to query - * - * @generated from field: uint64 epoch_count = 2; - */ - epochCount = protoInt64.zero; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryLatestEpochMsgsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "end_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "epoch_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLatestEpochMsgsRequest { - return new QueryLatestEpochMsgsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLatestEpochMsgsRequest { - return new QueryLatestEpochMsgsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLatestEpochMsgsRequest { - return new QueryLatestEpochMsgsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryLatestEpochMsgsRequest | PlainMessage | undefined, b: QueryLatestEpochMsgsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLatestEpochMsgsRequest, a, b); - } -} - -/** - * QueryLatestEpochMsgsResponse is the response type for the - * Query/LatestEpochMsgs RPC method - * - * @generated from message babylon.epoching.v1.QueryLatestEpochMsgsResponse - */ -export class QueryLatestEpochMsgsResponse extends Message { - /** - * latest_epoch_msgs is a list of QueuedMessageList - * each QueuedMessageList has a field identifying the epoch number - * - * @generated from field: repeated babylon.epoching.v1.QueuedMessageList latest_epoch_msgs = 1; - */ - latestEpochMsgs: QueuedMessageList[] = []; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryLatestEpochMsgsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "latest_epoch_msgs", kind: "message", T: QueuedMessageList, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLatestEpochMsgsResponse { - return new QueryLatestEpochMsgsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLatestEpochMsgsResponse { - return new QueryLatestEpochMsgsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLatestEpochMsgsResponse { - return new QueryLatestEpochMsgsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryLatestEpochMsgsResponse | PlainMessage | undefined, b: QueryLatestEpochMsgsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLatestEpochMsgsResponse, a, b); - } -} - -/** - * QueryValidatorLifecycleRequest is the request type for the - * Query/ValidatorLifecycle RPC method - * - * @generated from message babylon.epoching.v1.QueryValidatorLifecycleRequest - */ -export class QueryValidatorLifecycleRequest extends Message { - /** - * @generated from field: string val_addr = 1; - */ - valAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryValidatorLifecycleRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorLifecycleRequest { - return new QueryValidatorLifecycleRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorLifecycleRequest { - return new QueryValidatorLifecycleRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorLifecycleRequest { - return new QueryValidatorLifecycleRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorLifecycleRequest | PlainMessage | undefined, b: QueryValidatorLifecycleRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorLifecycleRequest, a, b); - } -} - -/** - * QueryValidatorLifecycleResponse is the response type for the - * Query/ValidatorLifecycle RPC method - * - * @generated from message babylon.epoching.v1.QueryValidatorLifecycleResponse - */ -export class QueryValidatorLifecycleResponse extends Message { - /** - * @generated from field: string val_addr = 1; - */ - valAddr = ""; - - /** - * @generated from field: repeated babylon.epoching.v1.ValStateUpdateResponse val_life = 2; - */ - valLife: ValStateUpdateResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryValidatorLifecycleResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "val_life", kind: "message", T: ValStateUpdateResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorLifecycleResponse { - return new QueryValidatorLifecycleResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorLifecycleResponse { - return new QueryValidatorLifecycleResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorLifecycleResponse { - return new QueryValidatorLifecycleResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorLifecycleResponse | PlainMessage | undefined, b: QueryValidatorLifecycleResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorLifecycleResponse, a, b); - } -} - -/** - * QueryDelegationLifecycleRequest is the request type for the - * Query/DelegationLifecycle RPC method - * - * @generated from message babylon.epoching.v1.QueryDelegationLifecycleRequest - */ -export class QueryDelegationLifecycleRequest extends Message { - /** - * @generated from field: string del_addr = 1; - */ - delAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryDelegationLifecycleRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "del_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationLifecycleRequest { - return new QueryDelegationLifecycleRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationLifecycleRequest { - return new QueryDelegationLifecycleRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationLifecycleRequest { - return new QueryDelegationLifecycleRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationLifecycleRequest | PlainMessage | undefined, b: QueryDelegationLifecycleRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationLifecycleRequest, a, b); - } -} - -/** - * QueryDelegationLifecycleRequest is the response type for the - * Query/DelegationLifecycle RPC method - * - * @generated from message babylon.epoching.v1.QueryDelegationLifecycleResponse - */ -export class QueryDelegationLifecycleResponse extends Message { - /** - * @generated from field: babylon.epoching.v1.DelegationLifecycle del_life = 1; - */ - delLife?: DelegationLifecycle; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryDelegationLifecycleResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "del_life", kind: "message", T: DelegationLifecycle }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationLifecycleResponse { - return new QueryDelegationLifecycleResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationLifecycleResponse { - return new QueryDelegationLifecycleResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationLifecycleResponse { - return new QueryDelegationLifecycleResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationLifecycleResponse | PlainMessage | undefined, b: QueryDelegationLifecycleResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationLifecycleResponse, a, b); - } -} - -/** - * QueryEpochValSetRequest is the request type for the Query/EpochValSet RPC - * method - * - * @generated from message babylon.epoching.v1.QueryEpochValSetRequest - */ -export class QueryEpochValSetRequest extends Message { - /** - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochValSetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochValSetRequest { - return new QueryEpochValSetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochValSetRequest { - return new QueryEpochValSetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochValSetRequest { - return new QueryEpochValSetRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochValSetRequest | PlainMessage | undefined, b: QueryEpochValSetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochValSetRequest, a, b); - } -} - -/** - * QueryEpochValSetRequest is the response type for the Query/EpochValSet RPC - * method - * - * @generated from message babylon.epoching.v1.QueryEpochValSetResponse - */ -export class QueryEpochValSetResponse extends Message { - /** - * @generated from field: repeated babylon.epoching.v1.Validator validators = 1; - */ - validators: Validator[] = []; - - /** - * @generated from field: int64 total_voting_power = 2; - */ - totalVotingPower = protoInt64.zero; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueryEpochValSetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validators", kind: "message", T: Validator, repeated: true }, - { no: 2, name: "total_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochValSetResponse { - return new QueryEpochValSetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochValSetResponse { - return new QueryEpochValSetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochValSetResponse { - return new QueryEpochValSetResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochValSetResponse | PlainMessage | undefined, b: QueryEpochValSetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochValSetResponse, a, b); - } -} - -/** - * EpochResponse is a structure that contains the metadata of an epoch - * - * @generated from message babylon.epoching.v1.EpochResponse - */ -export class EpochResponse extends Message { - /** - * epoch_number is the number of this epoch - * - * @generated from field: uint64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - /** - * current_epoch_interval is the epoch interval at the time of this epoch - * - * @generated from field: uint64 current_epoch_interval = 2; - */ - currentEpochInterval = protoInt64.zero; - - /** - * first_block_height is the height of the first block in this epoch - * - * @generated from field: uint64 first_block_height = 3; - */ - firstBlockHeight = protoInt64.zero; - - /** - * last_block_time is the time of the last block in this epoch. - * Babylon needs to remember the last header's time of each epoch to complete - * unbonding validators/delegations when a previous epoch's checkpoint is - * finalised. The last_block_time field is nil in the epoch's beginning, and - * is set upon the end of this epoch. - * - * @generated from field: google.protobuf.Timestamp last_block_time = 4; - */ - lastBlockTime?: Timestamp; - - /** - * app_hash_root is the Merkle root of all AppHashs in this epoch - * It will be used for proving a block is in an epoch as hex string. - * - * @generated from field: string app_hash_root_hex = 5; - */ - appHashRootHex = ""; - - /** - * sealer is the last block of the sealed epoch - * sealer_app_hash points to the sealer but stored in the 1st header - * of the next epoch as hex string. - * - * @generated from field: string sealer_app_hash_hex = 6; - */ - sealerAppHashHex = ""; - - /** - * sealer_block_hash is the hash of the sealer - * the validator set has generated a BLS multisig on the hash, - * i.e., hash of the last block in the epoch as hex string. - * - * @generated from field: string sealer_block_hash = 7; - */ - sealerBlockHash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.EpochResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "current_epoch_interval", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "first_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "last_block_time", kind: "message", T: Timestamp }, - { no: 5, name: "app_hash_root_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "sealer_app_hash_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "sealer_block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EpochResponse { - return new EpochResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EpochResponse { - return new EpochResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EpochResponse { - return new EpochResponse().fromJsonString(jsonString, options); - } - - static equals(a: EpochResponse | PlainMessage | undefined, b: EpochResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(EpochResponse, a, b); - } -} - -/** - * QueuedMessageResponse is a message that can change the validator set and is delayed - * to the end of an epoch - * - * @generated from message babylon.epoching.v1.QueuedMessageResponse - */ -export class QueuedMessageResponse extends Message { - /** - * tx_id is the ID of the tx that contains the message as hex. - * - * @generated from field: string tx_id = 1; - */ - txId = ""; - - /** - * msg_id is the original message ID, i.e., hash of the marshaled message as hex. - * - * @generated from field: string msg_id = 2; - */ - msgId = ""; - - /** - * block_height is the height when this msg is submitted to Babylon - * - * @generated from field: uint64 block_height = 3; - */ - blockHeight = protoInt64.zero; - - /** - * block_time is the timestamp when this msg is submitted to Babylon - * - * @generated from field: google.protobuf.Timestamp block_time = 4; - */ - blockTime?: Timestamp; - - /** - * msg is the actual message that is sent by a user and is queued by the - * epoching module as string. - * - * @generated from field: string msg = 5; - */ - msg = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueuedMessageResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "msg_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "block_time", kind: "message", T: Timestamp }, - { no: 5, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueuedMessageResponse { - return new QueuedMessageResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueuedMessageResponse { - return new QueuedMessageResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueuedMessageResponse { - return new QueuedMessageResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueuedMessageResponse | PlainMessage | undefined, b: QueuedMessageResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueuedMessageResponse, a, b); - } -} - -/** - * QueuedMessageList is a message that contains a list of staking-related - * messages queued for an epoch - * - * @generated from message babylon.epoching.v1.QueuedMessageList - */ -export class QueuedMessageList extends Message { - /** - * @generated from field: uint64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - /** - * @generated from field: repeated babylon.epoching.v1.QueuedMessageResponse msgs = 2; - */ - msgs: QueuedMessageResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.QueuedMessageList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "msgs", kind: "message", T: QueuedMessageResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueuedMessageList { - return new QueuedMessageList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueuedMessageList { - return new QueuedMessageList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueuedMessageList { - return new QueuedMessageList().fromJsonString(jsonString, options); - } - - static equals(a: QueuedMessageList | PlainMessage | undefined, b: QueuedMessageList | PlainMessage | undefined): boolean { - return proto3.util.equals(QueuedMessageList, a, b); - } -} - -/** - * ValStateUpdateResponse is a message response that records a state update of a validator. - * - * @generated from message babylon.epoching.v1.ValStateUpdateResponse - */ -export class ValStateUpdateResponse extends Message { - /** - * StateDesc defines the descriptive state. - * - * @generated from field: string state_desc = 1; - */ - stateDesc = ""; - - /** - * @generated from field: uint64 block_height = 2; - */ - blockHeight = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp block_time = 3; - */ - blockTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.ValStateUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state_desc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "block_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValStateUpdateResponse { - return new ValStateUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValStateUpdateResponse { - return new ValStateUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValStateUpdateResponse { - return new ValStateUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: ValStateUpdateResponse | PlainMessage | undefined, b: ValStateUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ValStateUpdateResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/tx_cosmes.ts deleted file mode 100644 index 6dafd8a..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/tx_cosmes.ts +++ /dev/null @@ -1,73 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/epoching/v1/tx.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUpdateParams, MsgUpdateParamsResponse, MsgWrappedBeginRedelegate, MsgWrappedBeginRedelegateResponse, MsgWrappedCancelUnbondingDelegation, MsgWrappedCancelUnbondingDelegationResponse, MsgWrappedDelegate, MsgWrappedDelegateResponse, MsgWrappedUndelegate, MsgWrappedUndelegateResponse } from "./tx_pb.js"; - -const TYPE_NAME = "babylon.epoching.v1.Msg"; - -/** - * WrappedDelegate defines a method for performing a delegation of coins from - * a delegator to a validator. - * - * @generated from rpc babylon.epoching.v1.Msg.WrappedDelegate - */ -export const MsgWrappedDelegateService = { - typeName: TYPE_NAME, - method: "WrappedDelegate", - Request: MsgWrappedDelegate, - Response: MsgWrappedDelegateResponse, -} as const; - -/** - * WrappedUndelegate defines a method for performing an undelegation from a - * delegate and a validator. - * - * @generated from rpc babylon.epoching.v1.Msg.WrappedUndelegate - */ -export const MsgWrappedUndelegateService = { - typeName: TYPE_NAME, - method: "WrappedUndelegate", - Request: MsgWrappedUndelegate, - Response: MsgWrappedUndelegateResponse, -} as const; - -/** - * WrappedBeginRedelegate defines a method for performing a redelegation of - * coins from a delegator and source validator to a destination validator. - * - * @generated from rpc babylon.epoching.v1.Msg.WrappedBeginRedelegate - */ -export const MsgWrappedBeginRedelegateService = { - typeName: TYPE_NAME, - method: "WrappedBeginRedelegate", - Request: MsgWrappedBeginRedelegate, - Response: MsgWrappedBeginRedelegateResponse, -} as const; - -/** - * WrappedCancelUnbondingDelegation defines a method for cancelling unbonding of - * coins from a delegator and source validator to a destination validator. - * - * @generated from rpc babylon.epoching.v1.Msg.WrappedCancelUnbondingDelegation - */ -export const MsgWrappedCancelUnbondingDelegationService = { - typeName: TYPE_NAME, - method: "WrappedCancelUnbondingDelegation", - Request: MsgWrappedCancelUnbondingDelegation, - Response: MsgWrappedCancelUnbondingDelegationResponse, -} as const; - -/** - * UpdateParams defines a method for updating epoching module parameters. - * - * @generated from rpc babylon.epoching.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/epoching/v1/tx_pb.ts b/libs/es-client/src/protobufs/babylon/epoching/v1/tx_pb.ts deleted file mode 100644 index 72c5999..0000000 --- a/libs/es-client/src/protobufs/babylon/epoching/v1/tx_pb.ts +++ /dev/null @@ -1,390 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/epoching/v1/tx.proto (package babylon.epoching.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { MsgBeginRedelegate, MsgCancelUnbondingDelegation, MsgDelegate, MsgUndelegate } from "../../../cosmos/staking/v1beta1/tx_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * MsgWrappedDelegate is the message for delegating stakes - * - * @generated from message babylon.epoching.v1.MsgWrappedDelegate - */ -export class MsgWrappedDelegate extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.MsgDelegate msg = 1; - */ - msg?: MsgDelegate; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedDelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg", kind: "message", T: MsgDelegate }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedDelegate { - return new MsgWrappedDelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedDelegate { - return new MsgWrappedDelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedDelegate { - return new MsgWrappedDelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedDelegate | PlainMessage | undefined, b: MsgWrappedDelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedDelegate, a, b); - } -} - -/** - * MsgWrappedDelegate is the response to the MsgWrappedDelegate message - * - * @generated from message babylon.epoching.v1.MsgWrappedDelegateResponse - */ -export class MsgWrappedDelegateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedDelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedDelegateResponse { - return new MsgWrappedDelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedDelegateResponse { - return new MsgWrappedDelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedDelegateResponse { - return new MsgWrappedDelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedDelegateResponse | PlainMessage | undefined, b: MsgWrappedDelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedDelegateResponse, a, b); - } -} - -/** - * MsgWrappedUndelegate is the message for undelegating stakes - * - * @generated from message babylon.epoching.v1.MsgWrappedUndelegate - */ -export class MsgWrappedUndelegate extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.MsgUndelegate msg = 1; - */ - msg?: MsgUndelegate; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedUndelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg", kind: "message", T: MsgUndelegate }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedUndelegate { - return new MsgWrappedUndelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedUndelegate { - return new MsgWrappedUndelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedUndelegate { - return new MsgWrappedUndelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedUndelegate | PlainMessage | undefined, b: MsgWrappedUndelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedUndelegate, a, b); - } -} - -/** - * MsgWrappedUndelegateResponse is the response to the MsgWrappedUndelegate - * message - * - * @generated from message babylon.epoching.v1.MsgWrappedUndelegateResponse - */ -export class MsgWrappedUndelegateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedUndelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedUndelegateResponse { - return new MsgWrappedUndelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedUndelegateResponse { - return new MsgWrappedUndelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedUndelegateResponse { - return new MsgWrappedUndelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedUndelegateResponse | PlainMessage | undefined, b: MsgWrappedUndelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedUndelegateResponse, a, b); - } -} - -/** - * MsgWrappedDelegate is the message for moving bonded stakes from a - * validator to another validator - * - * @generated from message babylon.epoching.v1.MsgWrappedBeginRedelegate - */ -export class MsgWrappedBeginRedelegate extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.MsgBeginRedelegate msg = 1; - */ - msg?: MsgBeginRedelegate; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedBeginRedelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg", kind: "message", T: MsgBeginRedelegate }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedBeginRedelegate { - return new MsgWrappedBeginRedelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedBeginRedelegate { - return new MsgWrappedBeginRedelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedBeginRedelegate { - return new MsgWrappedBeginRedelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedBeginRedelegate | PlainMessage | undefined, b: MsgWrappedBeginRedelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedBeginRedelegate, a, b); - } -} - -/** - * MsgWrappedBeginRedelegateResponse is the response to the - * MsgWrappedBeginRedelegate message - * - * @generated from message babylon.epoching.v1.MsgWrappedBeginRedelegateResponse - */ -export class MsgWrappedBeginRedelegateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedBeginRedelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedBeginRedelegateResponse { - return new MsgWrappedBeginRedelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedBeginRedelegateResponse { - return new MsgWrappedBeginRedelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedBeginRedelegateResponse { - return new MsgWrappedBeginRedelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedBeginRedelegateResponse | PlainMessage | undefined, b: MsgWrappedBeginRedelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedBeginRedelegateResponse, a, b); - } -} - -/** - * MsgWrappedCancelUnbondingDelegation is the message for cancelling - * an unbonding delegation - * - * @generated from message babylon.epoching.v1.MsgWrappedCancelUnbondingDelegation - */ -export class MsgWrappedCancelUnbondingDelegation extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.MsgCancelUnbondingDelegation msg = 1; - */ - msg?: MsgCancelUnbondingDelegation; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedCancelUnbondingDelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg", kind: "message", T: MsgCancelUnbondingDelegation }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedCancelUnbondingDelegation { - return new MsgWrappedCancelUnbondingDelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedCancelUnbondingDelegation { - return new MsgWrappedCancelUnbondingDelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedCancelUnbondingDelegation { - return new MsgWrappedCancelUnbondingDelegation().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedCancelUnbondingDelegation | PlainMessage | undefined, b: MsgWrappedCancelUnbondingDelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedCancelUnbondingDelegation, a, b); - } -} - -/** - * MsgWrappedCancelUnbondingDelegationResponse is the response to the - * MsgWrappedCancelUnbondingDelegation message - * - * @generated from message babylon.epoching.v1.MsgWrappedCancelUnbondingDelegationResponse - */ -export class MsgWrappedCancelUnbondingDelegationResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgWrappedCancelUnbondingDelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWrappedCancelUnbondingDelegationResponse { - return new MsgWrappedCancelUnbondingDelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWrappedCancelUnbondingDelegationResponse { - return new MsgWrappedCancelUnbondingDelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWrappedCancelUnbondingDelegationResponse { - return new MsgWrappedCancelUnbondingDelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWrappedCancelUnbondingDelegationResponse | PlainMessage | undefined, b: MsgWrappedCancelUnbondingDelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWrappedCancelUnbondingDelegationResponse, a, b); - } -} - -/** - * MsgUpdateParams defines a message for updating epoching module parameters. - * - * @generated from message babylon.epoching.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * just FYI: cosmos.AddressString marks that this field should use type alias - * for AddressString instead of string, but the functionality is not yet implemented - * in cosmos-proto - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the epoching parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: babylon.epoching.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse is the response to the MsgUpdateParams message. - * - * @generated from message babylon.epoching.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.epoching.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/events_pb.ts b/libs/es-client/src/protobufs/babylon/finality/v1/events_pb.ts deleted file mode 100644 index 1b1b537..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/events_pb.ts +++ /dev/null @@ -1,51 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/finality/v1/events.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Evidence } from "./finality_pb.js"; - -/** - * EventSlashedFinalityProvider is the event emitted when a finality provider is slashed - * due to signing two conflicting blocks - * - * @generated from message babylon.finality.v1.EventSlashedFinalityProvider - */ -export class EventSlashedFinalityProvider extends Message { - /** - * evidence is the evidence that the finality provider double signs - * - * @generated from field: babylon.finality.v1.Evidence evidence = 1; - */ - evidence?: Evidence; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.EventSlashedFinalityProvider"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence", kind: "message", T: Evidence }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventSlashedFinalityProvider { - return new EventSlashedFinalityProvider().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventSlashedFinalityProvider { - return new EventSlashedFinalityProvider().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventSlashedFinalityProvider { - return new EventSlashedFinalityProvider().fromJsonString(jsonString, options); - } - - static equals(a: EventSlashedFinalityProvider | PlainMessage | undefined, b: EventSlashedFinalityProvider | PlainMessage | undefined): boolean { - return proto3.util.equals(EventSlashedFinalityProvider, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/finality_pb.ts b/libs/es-client/src/protobufs/babylon/finality/v1/finality_pb.ts deleted file mode 100644 index 05cf25a..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/finality_pb.ts +++ /dev/null @@ -1,160 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/finality/v1/finality.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * IndexedBlock is the necessary metadata and finalization status of a block - * - * @generated from message babylon.finality.v1.IndexedBlock - */ -export class IndexedBlock extends Message { - /** - * height is the height of the block - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - /** - * app_hash is the AppHash of the block - * - * @generated from field: bytes app_hash = 2; - */ - appHash = new Uint8Array(0); - - /** - * finalized indicates whether the IndexedBlock is finalised by 2/3 - * finality providers or not - * - * @generated from field: bool finalized = 3; - */ - finalized = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.IndexedBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "finalized", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IndexedBlock { - return new IndexedBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IndexedBlock { - return new IndexedBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IndexedBlock { - return new IndexedBlock().fromJsonString(jsonString, options); - } - - static equals(a: IndexedBlock | PlainMessage | undefined, b: IndexedBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(IndexedBlock, a, b); - } -} - -/** - * Evidence is the evidence that a finality provider has signed finality - * signatures with correct public randomness on two conflicting Babylon headers - * - * @generated from message babylon.finality.v1.Evidence - */ -export class Evidence extends Message { - /** - * fp_btc_pk is the BTC PK of the finality provider that casts this vote - * - * @generated from field: bytes fp_btc_pk = 1; - */ - fpBtcPk = new Uint8Array(0); - - /** - * block_height is the height of the conflicting blocks - * - * @generated from field: uint64 block_height = 2; - */ - blockHeight = protoInt64.zero; - - /** - * pub_rand is the public randomness the finality provider has committed to - * - * @generated from field: bytes pub_rand = 3; - */ - pubRand = new Uint8Array(0); - - /** - * canonical_app_hash is the AppHash of the canonical block - * - * @generated from field: bytes canonical_app_hash = 4; - */ - canonicalAppHash = new Uint8Array(0); - - /** - * fork_app_hash is the AppHash of the fork block - * - * @generated from field: bytes fork_app_hash = 5; - */ - forkAppHash = new Uint8Array(0); - - /** - * canonical_finality_sig is the finality signature to the canonical block - * where finality signature is an EOTS signature, i.e., - * the `s` in a Schnorr signature `(r, s)` - * `r` is the public randomness that is already committed by the finality provider - * - * @generated from field: bytes canonical_finality_sig = 6; - */ - canonicalFinalitySig = new Uint8Array(0); - - /** - * fork_finality_sig is the finality signature to the fork block - * where finality signature is an EOTS signature - * - * @generated from field: bytes fork_finality_sig = 7; - */ - forkFinalitySig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.Evidence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "pub_rand", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "canonical_app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "fork_app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "canonical_finality_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "fork_finality_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Evidence { - return new Evidence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Evidence { - return new Evidence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Evidence { - return new Evidence().fromJsonString(jsonString, options); - } - - static equals(a: Evidence | PlainMessage | undefined, b: Evidence | PlainMessage | undefined): boolean { - return proto3.util.equals(Evidence, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/finality/v1/genesis_pb.ts deleted file mode 100644 index 3b3fe48..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/genesis_pb.ts +++ /dev/null @@ -1,199 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/finality/v1/genesis.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { Evidence, IndexedBlock } from "./finality_pb.js"; - -/** - * GenesisState defines the finality module's genesis state. - * - * @generated from message babylon.finality.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * params the current params of the state. - * - * @generated from field: babylon.finality.v1.Params params = 1; - */ - params?: Params; - - /** - * indexed_blocks all the btc blocks and if their status are finalized. - * - * @generated from field: repeated babylon.finality.v1.IndexedBlock indexed_blocks = 2; - */ - indexedBlocks: IndexedBlock[] = []; - - /** - * evidences all the evidences ever registered. - * - * @generated from field: repeated babylon.finality.v1.Evidence evidences = 3; - */ - evidences: Evidence[] = []; - - /** - * votes_sigs contains all the votes of finality providers ever registered. - * - * @generated from field: repeated babylon.finality.v1.VoteSig vote_sigs = 4; - */ - voteSigs: VoteSig[] = []; - - /** - * public_randomness contains all the public randomness ever commited from the finality providers. - * - * @generated from field: repeated babylon.finality.v1.PublicRandomness public_randomness = 5; - */ - publicRandomness: PublicRandomness[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "indexed_blocks", kind: "message", T: IndexedBlock, repeated: true }, - { no: 3, name: "evidences", kind: "message", T: Evidence, repeated: true }, - { no: 4, name: "vote_sigs", kind: "message", T: VoteSig, repeated: true }, - { no: 5, name: "public_randomness", kind: "message", T: PublicRandomness, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * VoteSig the vote of an finality provider - * with the block of the vote, the finality provider btc public key and the vote signature. - * - * @generated from message babylon.finality.v1.VoteSig - */ -export class VoteSig extends Message { - /** - * block_height is the height of the voted block. - * - * @generated from field: uint64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * fp_btc_pk is the BTC PK of the finality provider that casts this vote - * - * @generated from field: bytes fp_btc_pk = 2; - */ - fpBtcPk = new Uint8Array(0); - - /** - * finality_sig is the finality signature to this block - * where finality signature is an EOTS signature, i.e. - * - * @generated from field: bytes finality_sig = 3; - */ - finalitySig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.VoteSig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "finality_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VoteSig { - return new VoteSig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VoteSig { - return new VoteSig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VoteSig { - return new VoteSig().fromJsonString(jsonString, options); - } - - static equals(a: VoteSig | PlainMessage | undefined, b: VoteSig | PlainMessage | undefined): boolean { - return proto3.util.equals(VoteSig, a, b); - } -} - -/** - * PublicRandomness the block height and public randomness that the finality provider has submitted. - * - * @generated from message babylon.finality.v1.PublicRandomness - */ -export class PublicRandomness extends Message { - /** - * block_height is the height of block which the finality provider submited public randomness. - * - * @generated from field: uint64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * fp_btc_pk is the BTC PK of the finality provider that casts this vote. - * - * @generated from field: bytes fp_btc_pk = 2; - */ - fpBtcPk = new Uint8Array(0); - - /** - * pub_rand is the public randomness the finality provider has committed to. - * - * @generated from field: bytes pub_rand = 3; - */ - pubRand = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.PublicRandomness"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "pub_rand", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PublicRandomness { - return new PublicRandomness().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PublicRandomness { - return new PublicRandomness().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PublicRandomness { - return new PublicRandomness().fromJsonString(jsonString, options); - } - - static equals(a: PublicRandomness | PlainMessage | undefined, b: PublicRandomness | PlainMessage | undefined): boolean { - return proto3.util.equals(PublicRandomness, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/params_pb.ts b/libs/es-client/src/protobufs/babylon/finality/v1/params_pb.ts deleted file mode 100644 index bff9fc9..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/params_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/finality/v1/params.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message babylon.finality.v1.Params - */ -export class Params extends Message { - /** - * min_pub_rand is the minimum number of public randomness each - * message should commit - * - * @generated from field: uint64 min_pub_rand = 1; - */ - minPubRand = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "min_pub_rand", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/finality/v1/query_cosmes.ts deleted file mode 100644 index 59bdcb9..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/query_cosmes.ts +++ /dev/null @@ -1,93 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/finality/v1/query.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBlockRequest, QueryBlockResponse, QueryEvidenceRequest, QueryEvidenceResponse, QueryListBlocksRequest, QueryListBlocksResponse, QueryListEvidencesRequest, QueryListEvidencesResponse, QueryListPublicRandomnessRequest, QueryListPublicRandomnessResponse, QueryParamsRequest, QueryParamsResponse, QueryVotesAtHeightRequest, QueryVotesAtHeightResponse } from "./query_pb.js"; - -const TYPE_NAME = "babylon.finality.v1.Query"; - -/** - * Parameters queries the parameters of the module. - * - * @generated from rpc babylon.finality.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * ListPublicRandomness is a range query for public randomness of a given finality provider - * - * @generated from rpc babylon.finality.v1.Query.ListPublicRandomness - */ -export const QueryListPublicRandomnessService = { - typeName: TYPE_NAME, - method: "ListPublicRandomness", - Request: QueryListPublicRandomnessRequest, - Response: QueryListPublicRandomnessResponse, -} as const; - -/** - * Block queries a block at a given height - * - * @generated from rpc babylon.finality.v1.Query.Block - */ -export const QueryBlockService = { - typeName: TYPE_NAME, - method: "Block", - Request: QueryBlockRequest, - Response: QueryBlockResponse, -} as const; - -/** - * ListBlocks is a range query for blocks at a given status - * - * @generated from rpc babylon.finality.v1.Query.ListBlocks - */ -export const QueryListBlocksService = { - typeName: TYPE_NAME, - method: "ListBlocks", - Request: QueryListBlocksRequest, - Response: QueryListBlocksResponse, -} as const; - -/** - * VotesAtHeight queries finality providers who have signed the block at given height. - * - * @generated from rpc babylon.finality.v1.Query.VotesAtHeight - */ -export const QueryVotesAtHeightService = { - typeName: TYPE_NAME, - method: "VotesAtHeight", - Request: QueryVotesAtHeightRequest, - Response: QueryVotesAtHeightResponse, -} as const; - -/** - * Evidence queries the first evidence which can be used for extracting the BTC SK - * - * @generated from rpc babylon.finality.v1.Query.Evidence - */ -export const QueryEvidenceService = { - typeName: TYPE_NAME, - method: "Evidence", - Request: QueryEvidenceRequest, - Response: QueryEvidenceResponse, -} as const; - -/** - * ListEvidences queries is a range query for evidences - * - * @generated from rpc babylon.finality.v1.Query.ListEvidences - */ -export const QueryListEvidencesService = { - typeName: TYPE_NAME, - method: "ListEvidences", - Request: QueryListEvidencesRequest, - Response: QueryListEvidencesResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/finality/v1/query_pb.ts deleted file mode 100644 index e31d5e8..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/query_pb.ts +++ /dev/null @@ -1,673 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/finality/v1/query.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Evidence, IndexedBlock } from "./finality_pb.js"; - -/** - * QueriedBlockStatus is the status of blocks that the querier wants to query. - * - * @generated from enum babylon.finality.v1.QueriedBlockStatus - */ -export enum QueriedBlockStatus { - /** - * NON_FINALIZED means the block is not finalised - * - * @generated from enum value: NON_FINALIZED = 0; - */ - NON_FINALIZED = 0, - - /** - * FINALIZED means the block is finalized - * - * @generated from enum value: FINALIZED = 1; - */ - FINALIZED = 1, - - /** - * ANY means the block can be in any status - * - * @generated from enum value: ANY = 2; - */ - ANY = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(QueriedBlockStatus) -proto3.util.setEnumType(QueriedBlockStatus, "babylon.finality.v1.QueriedBlockStatus", [ - { no: 0, name: "NON_FINALIZED" }, - { no: 1, name: "FINALIZED" }, - { no: 2, name: "ANY" }, -]); - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message babylon.finality.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message babylon.finality.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: babylon.finality.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryListPublicRandomnessRequest is the request type for the - * Query/ListPublicRandomness RPC method. - * - * @generated from message babylon.finality.v1.QueryListPublicRandomnessRequest - */ -export class QueryListPublicRandomnessRequest extends Message { - /** - * fp_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the finality provider - * - * @generated from field: string fp_btc_pk_hex = 1; - */ - fpBtcPkHex = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryListPublicRandomnessRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp_btc_pk_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListPublicRandomnessRequest { - return new QueryListPublicRandomnessRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListPublicRandomnessRequest { - return new QueryListPublicRandomnessRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListPublicRandomnessRequest { - return new QueryListPublicRandomnessRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryListPublicRandomnessRequest | PlainMessage | undefined, b: QueryListPublicRandomnessRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListPublicRandomnessRequest, a, b); - } -} - -/** - * QueryListPublicRandomnessResponse is the response type for the - * Query/ListPublicRandomness RPC method. - * - * @generated from message babylon.finality.v1.QueryListPublicRandomnessResponse - */ -export class QueryListPublicRandomnessResponse extends Message { - /** - * pub_rand_map is the map where the key is the height and the value - * is the public randomness at this height for the given finality provider - * - * @generated from field: map pub_rand_map = 1; - */ - pubRandMap: { [key: string]: Uint8Array } = {}; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryListPublicRandomnessResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pub_rand_map", kind: "map", K: 4 /* ScalarType.UINT64 */, V: {kind: "scalar", T: 12 /* ScalarType.BYTES */} }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListPublicRandomnessResponse { - return new QueryListPublicRandomnessResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListPublicRandomnessResponse { - return new QueryListPublicRandomnessResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListPublicRandomnessResponse { - return new QueryListPublicRandomnessResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryListPublicRandomnessResponse | PlainMessage | undefined, b: QueryListPublicRandomnessResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListPublicRandomnessResponse, a, b); - } -} - -/** - * QueryBlockRequest is the request type for the - * Query/Block RPC method. - * - * @generated from message babylon.finality.v1.QueryBlockRequest - */ -export class QueryBlockRequest extends Message { - /** - * height is the height of the Babylon block - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryBlockRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlockRequest { - return new QueryBlockRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlockRequest { - return new QueryBlockRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBlockRequest { - return new QueryBlockRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBlockRequest | PlainMessage | undefined, b: QueryBlockRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBlockRequest, a, b); - } -} - -/** - * QueryBlockResponse is the response type for the - * Query/Block RPC method. - * - * @generated from message babylon.finality.v1.QueryBlockResponse - */ -export class QueryBlockResponse extends Message { - /** - * block is the Babylon at the given height - * - * @generated from field: babylon.finality.v1.IndexedBlock block = 1; - */ - block?: IndexedBlock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryBlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block", kind: "message", T: IndexedBlock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlockResponse { - return new QueryBlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlockResponse { - return new QueryBlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBlockResponse { - return new QueryBlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBlockResponse | PlainMessage | undefined, b: QueryBlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBlockResponse, a, b); - } -} - -/** - * QueryListBlocksRequest is the request type for the - * Query/ListBlocks RPC method. - * - * @generated from message babylon.finality.v1.QueryListBlocksRequest - */ -export class QueryListBlocksRequest extends Message { - /** - * status indicates the status of blocks that the querier wants to query - * - * @generated from field: babylon.finality.v1.QueriedBlockStatus status = 1; - */ - status = QueriedBlockStatus.NON_FINALIZED; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryListBlocksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(QueriedBlockStatus) }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListBlocksRequest { - return new QueryListBlocksRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListBlocksRequest { - return new QueryListBlocksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListBlocksRequest { - return new QueryListBlocksRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryListBlocksRequest | PlainMessage | undefined, b: QueryListBlocksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListBlocksRequest, a, b); - } -} - -/** - * QueryListBlocksResponse is the response type for the - * Query/ListBlocks RPC method. - * - * @generated from message babylon.finality.v1.QueryListBlocksResponse - */ -export class QueryListBlocksResponse extends Message { - /** - * blocks is the list of blocks at the given status - * - * @generated from field: repeated babylon.finality.v1.IndexedBlock blocks = 1; - */ - blocks: IndexedBlock[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryListBlocksResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "blocks", kind: "message", T: IndexedBlock, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListBlocksResponse { - return new QueryListBlocksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListBlocksResponse { - return new QueryListBlocksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListBlocksResponse { - return new QueryListBlocksResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryListBlocksResponse | PlainMessage | undefined, b: QueryListBlocksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListBlocksResponse, a, b); - } -} - -/** - * QueryVotesAtHeightRequest is the request type for the - * Query/VotesAtHeight RPC method. - * - * @generated from message babylon.finality.v1.QueryVotesAtHeightRequest - */ -export class QueryVotesAtHeightRequest extends Message { - /** - * height defines at which height to query the finality providers. - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryVotesAtHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesAtHeightRequest { - return new QueryVotesAtHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesAtHeightRequest { - return new QueryVotesAtHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesAtHeightRequest { - return new QueryVotesAtHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesAtHeightRequest | PlainMessage | undefined, b: QueryVotesAtHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesAtHeightRequest, a, b); - } -} - -/** - * QueryVotesAtHeightResponse is the response type for the - * Query/VotesAtHeight RPC method. - * - * @generated from message babylon.finality.v1.QueryVotesAtHeightResponse - */ -export class QueryVotesAtHeightResponse extends Message { - /** - * btc_pk is the Bitcoin secp256k1 PK of finality providers who have signed the block at given height. - * the PK follows encoding in BIP-340 spec - * - * @generated from field: repeated bytes btc_pks = 1; - */ - btcPks: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryVotesAtHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_pks", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesAtHeightResponse { - return new QueryVotesAtHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesAtHeightResponse { - return new QueryVotesAtHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesAtHeightResponse { - return new QueryVotesAtHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesAtHeightResponse | PlainMessage | undefined, b: QueryVotesAtHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesAtHeightResponse, a, b); - } -} - -/** - * QueryEvidenceRequest is the request type for the - * Query/Evidence RPC method. - * - * @generated from message babylon.finality.v1.QueryEvidenceRequest - */ -export class QueryEvidenceRequest extends Message { - /** - * fp_btc_pk_hex is the hex str of Bitcoin secp256k1 PK - * (in BIP340 format) of the finality provider - * - * @generated from field: string fp_btc_pk_hex = 1; - */ - fpBtcPkHex = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryEvidenceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fp_btc_pk_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEvidenceRequest { - return new QueryEvidenceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEvidenceRequest { - return new QueryEvidenceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEvidenceRequest { - return new QueryEvidenceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEvidenceRequest | PlainMessage | undefined, b: QueryEvidenceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEvidenceRequest, a, b); - } -} - -/** - * QueryEvidenceResponse is the response type for the - * Query/Evidence RPC method. - * - * @generated from message babylon.finality.v1.QueryEvidenceResponse - */ -export class QueryEvidenceResponse extends Message { - /** - * @generated from field: babylon.finality.v1.Evidence evidence = 1; - */ - evidence?: Evidence; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryEvidenceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence", kind: "message", T: Evidence }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEvidenceResponse { - return new QueryEvidenceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEvidenceResponse { - return new QueryEvidenceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEvidenceResponse { - return new QueryEvidenceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEvidenceResponse | PlainMessage | undefined, b: QueryEvidenceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEvidenceResponse, a, b); - } -} - -/** - * QueryListEvidencesRequest is the request type for the - * Query/ListEvidences RPC method. - * - * @generated from message babylon.finality.v1.QueryListEvidencesRequest - */ -export class QueryListEvidencesRequest extends Message { - /** - * start_height is the starting height that the querier specifies - * such that the RPC will only return evidences since this height - * - * @generated from field: uint64 start_height = 1; - */ - startHeight = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryListEvidencesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "start_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListEvidencesRequest { - return new QueryListEvidencesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListEvidencesRequest { - return new QueryListEvidencesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListEvidencesRequest { - return new QueryListEvidencesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryListEvidencesRequest | PlainMessage | undefined, b: QueryListEvidencesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListEvidencesRequest, a, b); - } -} - -/** - * QueryListEvidencesResponse is the response type for the - * Query/ListEvidences RPC method. - * - * @generated from message babylon.finality.v1.QueryListEvidencesResponse - */ -export class QueryListEvidencesResponse extends Message { - /** - * blocks is the list of evidences - * - * @generated from field: repeated babylon.finality.v1.Evidence evidences = 1; - */ - evidences: Evidence[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.QueryListEvidencesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidences", kind: "message", T: Evidence, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListEvidencesResponse { - return new QueryListEvidencesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListEvidencesResponse { - return new QueryListEvidencesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListEvidencesResponse { - return new QueryListEvidencesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryListEvidencesResponse | PlainMessage | undefined, b: QueryListEvidencesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListEvidencesResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/finality/v1/tx_cosmes.ts deleted file mode 100644 index d3ce9ee..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/tx_cosmes.ts +++ /dev/null @@ -1,46 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/finality/v1/tx.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAddFinalitySig, MsgAddFinalitySigResponse, MsgCommitPubRandList, MsgCommitPubRandListResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "babylon.finality.v1.Msg"; - -/** - * AddFinalitySig adds a finality signature to a given block - * - * @generated from rpc babylon.finality.v1.Msg.AddFinalitySig - */ -export const MsgAddFinalitySigService = { - typeName: TYPE_NAME, - method: "AddFinalitySig", - Request: MsgAddFinalitySig, - Response: MsgAddFinalitySigResponse, -} as const; - -/** - * CommitPubRandList commits a list of public randomness for EOTS - * - * @generated from rpc babylon.finality.v1.Msg.CommitPubRandList - */ -export const MsgCommitPubRandListService = { - typeName: TYPE_NAME, - method: "CommitPubRandList", - Request: MsgCommitPubRandList, - Response: MsgCommitPubRandListResponse, -} as const; - -/** - * TODO: msg for evidence of equivocation. this is not specified yet - * UpdateParams updates the finality module parameters. - * - * @generated from rpc babylon.finality.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/finality/v1/tx_pb.ts b/libs/es-client/src/protobufs/babylon/finality/v1/tx_pb.ts deleted file mode 100644 index b0aab41..0000000 --- a/libs/es-client/src/protobufs/babylon/finality/v1/tx_pb.ts +++ /dev/null @@ -1,311 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/finality/v1/tx.proto (package babylon.finality.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * MsgAddFinalitySig defines a message for adding a finality vote - * - * @generated from message babylon.finality.v1.MsgAddFinalitySig - */ -export class MsgAddFinalitySig extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * fp_btc_pk is the BTC PK of the finality provider that casts this vote - * - * @generated from field: bytes fp_btc_pk = 2; - */ - fpBtcPk = new Uint8Array(0); - - /** - * block_height is the height of the voted block - * - * @generated from field: uint64 block_height = 3; - */ - blockHeight = protoInt64.zero; - - /** - * block_app_hash is the AppHash of the voted block - * - * @generated from field: bytes block_app_hash = 4; - */ - blockAppHash = new Uint8Array(0); - - /** - * finality_sig is the finality signature to this block - * where finality signature is an EOTS signature, i.e., - * the `s` in a Schnorr signature `(r, s)` - * `r` is the public randomness that is already committed by the finality provider - * - * @generated from field: bytes finality_sig = 5; - */ - finalitySig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.MsgAddFinalitySig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "block_app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "finality_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddFinalitySig { - return new MsgAddFinalitySig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddFinalitySig { - return new MsgAddFinalitySig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddFinalitySig { - return new MsgAddFinalitySig().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddFinalitySig | PlainMessage | undefined, b: MsgAddFinalitySig | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddFinalitySig, a, b); - } -} - -/** - * MsgAddFinalitySigResponse is the response to the MsgAddFinalitySig message - * - * @generated from message babylon.finality.v1.MsgAddFinalitySigResponse - */ -export class MsgAddFinalitySigResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.MsgAddFinalitySigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddFinalitySigResponse { - return new MsgAddFinalitySigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddFinalitySigResponse { - return new MsgAddFinalitySigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddFinalitySigResponse { - return new MsgAddFinalitySigResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddFinalitySigResponse | PlainMessage | undefined, b: MsgAddFinalitySigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddFinalitySigResponse, a, b); - } -} - -/** - * MsgCommitPubRandList defines a message for committing a list of public randomness for EOTS - * - * @generated from message babylon.finality.v1.MsgCommitPubRandList - */ -export class MsgCommitPubRandList extends Message { - /** - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * fp_btc_pk is the BTC PK of the finality provider that commits the public randomness - * - * @generated from field: bytes fp_btc_pk = 2; - */ - fpBtcPk = new Uint8Array(0); - - /** - * start_height is the start block height of the list of public randomness - * - * @generated from field: uint64 start_height = 3; - */ - startHeight = protoInt64.zero; - - /** - * pub_rand_list is the list of public randomness - * - * @generated from field: repeated bytes pub_rand_list = 4; - */ - pubRandList: Uint8Array[] = []; - - /** - * sig is the signature on (start_height || pub_rand_list) signed by - * SK corresponding to fp_btc_pk. This prevents others to commit public - * randomness on behalf of fp_btc_pk - * TODO: another option is to restrict signer to correspond to fp_btc_pk. This restricts - * the tx submitter to be the holder of fp_btc_pk. Decide this later - * - * @generated from field: bytes sig = 5; - */ - sig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.MsgCommitPubRandList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "fp_btc_pk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "start_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "pub_rand_list", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 5, name: "sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCommitPubRandList { - return new MsgCommitPubRandList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCommitPubRandList { - return new MsgCommitPubRandList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCommitPubRandList { - return new MsgCommitPubRandList().fromJsonString(jsonString, options); - } - - static equals(a: MsgCommitPubRandList | PlainMessage | undefined, b: MsgCommitPubRandList | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCommitPubRandList, a, b); - } -} - -/** - * MsgCommitPubRandListResponse is the response to the MsgCommitPubRandList message - * - * @generated from message babylon.finality.v1.MsgCommitPubRandListResponse - */ -export class MsgCommitPubRandListResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.MsgCommitPubRandListResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCommitPubRandListResponse { - return new MsgCommitPubRandListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCommitPubRandListResponse { - return new MsgCommitPubRandListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCommitPubRandListResponse { - return new MsgCommitPubRandListResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCommitPubRandListResponse | PlainMessage | undefined, b: MsgCommitPubRandListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCommitPubRandListResponse, a, b); - } -} - -/** - * MsgUpdateParams defines a message for updating finality module parameters. - * - * @generated from message babylon.finality.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * just FYI: cosmos.AddressString marks that this field should use type alias - * for AddressString instead of string, but the functionality is not yet implemented - * in cosmos-proto - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the finality parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: babylon.finality.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse is the response to the MsgUpdateParams message. - * - * @generated from message babylon.finality.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.finality.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/incentive/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/incentive/genesis_pb.ts deleted file mode 100644 index a2c1c16..0000000 --- a/libs/es-client/src/protobufs/babylon/incentive/genesis_pb.ts +++ /dev/null @@ -1,48 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/incentive/genesis.proto (package babylon.incentive, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the incentive module's genesis state. - * - * @generated from message babylon.incentive.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: babylon.incentive.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/incentive/incentive_pb.ts b/libs/es-client/src/protobufs/babylon/incentive/incentive_pb.ts deleted file mode 100644 index 7a183e9..0000000 --- a/libs/es-client/src/protobufs/babylon/incentive/incentive_pb.ts +++ /dev/null @@ -1,103 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/incentive/incentive.proto (package babylon.incentive, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Gauge is an object that stores rewards to be distributed - * code adapted from https://github.com/osmosis-labs/osmosis/blob/v18.0.0/proto/osmosis/incentives/gauge.proto - * - * @generated from message babylon.incentive.Gauge - */ -export class Gauge extends Message { - /** - * coins are coins that have been in the gauge - * Can have multiple coin denoms - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.Gauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Gauge { - return new Gauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Gauge { - return new Gauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Gauge { - return new Gauge().fromJsonString(jsonString, options); - } - - static equals(a: Gauge | PlainMessage | undefined, b: Gauge | PlainMessage | undefined): boolean { - return proto3.util.equals(Gauge, a, b); - } -} - -/** - * RewardGauge is an object that stores rewards distributed to a BTC staking/timestamping stakeholder - * code adapted from https://github.com/osmosis-labs/osmosis/blob/v18.0.0/proto/osmosis/incentives/gauge.proto - * - * @generated from message babylon.incentive.RewardGauge - */ -export class RewardGauge extends Message { - /** - * coins are coins that have been in the gauge - * Can have multiple coin denoms - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - /** - * withdrawn_coins are coins that have been withdrawn by the stakeholder already - * - * @generated from field: repeated cosmos.base.v1beta1.Coin withdrawn_coins = 2; - */ - withdrawnCoins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.RewardGauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "withdrawn_coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RewardGauge { - return new RewardGauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RewardGauge { - return new RewardGauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RewardGauge { - return new RewardGauge().fromJsonString(jsonString, options); - } - - static equals(a: RewardGauge | PlainMessage | undefined, b: RewardGauge | PlainMessage | undefined): boolean { - return proto3.util.equals(RewardGauge, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/incentive/params_pb.ts b/libs/es-client/src/protobufs/babylon/incentive/params_pb.ts deleted file mode 100644 index 560fb47..0000000 --- a/libs/es-client/src/protobufs/babylon/incentive/params_pb.ts +++ /dev/null @@ -1,70 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/incentive/params.proto (package babylon.incentive, 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, including portions of rewards - * distributed to each type of stakeholder. Note that sum of the portions should - * be strictly less than 1 so that the rest will go to Comet validators/delegations - * adapted from https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/proto/cosmos/distribution/v1beta1/distribution.proto - * - * @generated from message babylon.incentive.Params - */ -export class Params extends Message { - /** - * submitter_portion is the portion of rewards that goes to submitter - * - * @generated from field: string submitter_portion = 1; - */ - submitterPortion = ""; - - /** - * reporter_portion is the portion of rewards that goes to reporter - * - * @generated from field: string reporter_portion = 2; - */ - reporterPortion = ""; - - /** - * btc_staking_portion is the portion of rewards that goes to Finality Providers/delegations - * NOTE: the portion of each Finality Provider/delegation is calculated by using its voting - * power and finality provider's commission - * - * @generated from field: string btc_staking_portion = 3; - */ - btcStakingPortion = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "submitter_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "reporter_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "btc_staking_portion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/incentive/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/incentive/query_cosmes.ts deleted file mode 100644 index f269e13..0000000 --- a/libs/es-client/src/protobufs/babylon/incentive/query_cosmes.ts +++ /dev/null @@ -1,57 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/incentive/query.proto (package babylon.incentive, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBTCStakingGaugeRequest, QueryBTCStakingGaugeResponse, QueryBTCTimestampingGaugeRequest, QueryBTCTimestampingGaugeResponse, QueryParamsRequest, QueryParamsResponse, QueryRewardGaugesRequest, QueryRewardGaugesResponse } from "./query_pb.js"; - -const TYPE_NAME = "babylon.incentive.Query"; - -/** - * Parameters queries the parameters of the module. - * - * @generated from rpc babylon.incentive.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * RewardGauge queries the reward gauge of a given stakeholder address - * - * @generated from rpc babylon.incentive.Query.RewardGauges - */ -export const QueryRewardGaugesService = { - typeName: TYPE_NAME, - method: "RewardGauges", - Request: QueryRewardGaugesRequest, - Response: QueryRewardGaugesResponse, -} as const; - -/** - * BTCStakingGauge queries the BTC staking gauge of a given height - * - * @generated from rpc babylon.incentive.Query.BTCStakingGauge - */ -export const QueryBTCStakingGaugeService = { - typeName: TYPE_NAME, - method: "BTCStakingGauge", - Request: QueryBTCStakingGaugeRequest, - Response: QueryBTCStakingGaugeResponse, -} as const; - -/** - * BTCTimestampingGauge queries the BTC timestamping gauge of a given epoch - * - * @generated from rpc babylon.incentive.Query.BTCTimestampingGauge - */ -export const QueryBTCTimestampingGaugeService = { - typeName: TYPE_NAME, - method: "BTCTimestampingGauge", - Request: QueryBTCTimestampingGaugeRequest, - Response: QueryBTCTimestampingGaugeResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/incentive/query_pb.ts b/libs/es-client/src/protobufs/babylon/incentive/query_pb.ts deleted file mode 100644 index 1155d29..0000000 --- a/libs/es-client/src/protobufs/babylon/incentive/query_pb.ts +++ /dev/null @@ -1,331 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/incentive/query.proto (package babylon.incentive, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { Gauge, RewardGauge } from "./incentive_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message babylon.incentive.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message babylon.incentive.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: babylon.incentive.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryRewardGaugesRequest is request type for the Query/RewardGauges RPC method. - * - * @generated from message babylon.incentive.QueryRewardGaugesRequest - */ -export class QueryRewardGaugesRequest extends Message { - /** - * address is the address of the stakeholder in bech32 string - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryRewardGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardGaugesRequest { - return new QueryRewardGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardGaugesRequest { - return new QueryRewardGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRewardGaugesRequest { - return new QueryRewardGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRewardGaugesRequest | PlainMessage | undefined, b: QueryRewardGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRewardGaugesRequest, a, b); - } -} - -/** - * QueryRewardGaugesResponse is response type for the Query/RewardGauges RPC method. - * - * @generated from message babylon.incentive.QueryRewardGaugesResponse - */ -export class QueryRewardGaugesResponse extends Message { - /** - * reward_gauges is the map of reward gauges, where key is the stakeholder type - * and value is the reward gauge holding all rewards for the stakeholder in that type - * - * @generated from field: map reward_gauges = 1; - */ - rewardGauges: { [key: string]: RewardGauge } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryRewardGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reward_gauges", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: RewardGauge} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRewardGaugesResponse { - return new QueryRewardGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRewardGaugesResponse { - return new QueryRewardGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRewardGaugesResponse { - return new QueryRewardGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRewardGaugesResponse | PlainMessage | undefined, b: QueryRewardGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRewardGaugesResponse, a, b); - } -} - -/** - * QueryBTCStakingGaugeRequest is request type for the Query/BTCStakingGauge RPC method. - * - * @generated from message babylon.incentive.QueryBTCStakingGaugeRequest - */ -export class QueryBTCStakingGaugeRequest extends Message { - /** - * height is the queried Babylon height - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryBTCStakingGaugeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCStakingGaugeRequest { - return new QueryBTCStakingGaugeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCStakingGaugeRequest { - return new QueryBTCStakingGaugeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCStakingGaugeRequest { - return new QueryBTCStakingGaugeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCStakingGaugeRequest | PlainMessage | undefined, b: QueryBTCStakingGaugeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCStakingGaugeRequest, a, b); - } -} - -/** - * QueryBTCStakingGaugeResponse is response type for the Query/BTCStakingGauge RPC method. - * - * @generated from message babylon.incentive.QueryBTCStakingGaugeResponse - */ -export class QueryBTCStakingGaugeResponse extends Message { - /** - * gauge is the BTC staking gauge at the queried height - * - * @generated from field: babylon.incentive.Gauge gauge = 1; - */ - gauge?: Gauge; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryBTCStakingGaugeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge", kind: "message", T: Gauge }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCStakingGaugeResponse { - return new QueryBTCStakingGaugeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCStakingGaugeResponse { - return new QueryBTCStakingGaugeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCStakingGaugeResponse { - return new QueryBTCStakingGaugeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCStakingGaugeResponse | PlainMessage | undefined, b: QueryBTCStakingGaugeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCStakingGaugeResponse, a, b); - } -} - -/** - * QueryBTCTimestampingGaugeRequest is request type for the Query/BTCTimestampingGauge RPC method. - * - * @generated from message babylon.incentive.QueryBTCTimestampingGaugeRequest - */ -export class QueryBTCTimestampingGaugeRequest extends Message { - /** - * epoch_num is the queried epoch number - * - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryBTCTimestampingGaugeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCTimestampingGaugeRequest { - return new QueryBTCTimestampingGaugeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCTimestampingGaugeRequest { - return new QueryBTCTimestampingGaugeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCTimestampingGaugeRequest { - return new QueryBTCTimestampingGaugeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCTimestampingGaugeRequest | PlainMessage | undefined, b: QueryBTCTimestampingGaugeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCTimestampingGaugeRequest, a, b); - } -} - -/** - * QueryBTCTimestampingGaugeResponse is response type for the Query/BTCTimestampingGauge RPC method. - * - * @generated from message babylon.incentive.QueryBTCTimestampingGaugeResponse - */ -export class QueryBTCTimestampingGaugeResponse extends Message { - /** - * gauge is the BTC timestamping gauge at the queried epoch - * - * @generated from field: babylon.incentive.Gauge gauge = 1; - */ - gauge?: Gauge; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.QueryBTCTimestampingGaugeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge", kind: "message", T: Gauge }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBTCTimestampingGaugeResponse { - return new QueryBTCTimestampingGaugeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBTCTimestampingGaugeResponse { - return new QueryBTCTimestampingGaugeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBTCTimestampingGaugeResponse { - return new QueryBTCTimestampingGaugeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBTCTimestampingGaugeResponse | PlainMessage | undefined, b: QueryBTCTimestampingGaugeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBTCTimestampingGaugeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/incentive/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/incentive/tx_cosmes.ts deleted file mode 100644 index 30f9cf3..0000000 --- a/libs/es-client/src/protobufs/babylon/incentive/tx_cosmes.ts +++ /dev/null @@ -1,37 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/incentive/tx.proto (package babylon.incentive, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - MsgUpdateParams, - MsgUpdateParamsResponse, - MsgWithdrawReward, - MsgWithdrawRewardResponse, -} from "./tx_pb.js"; - -const TYPE_NAME = "babylon.incentive.Msg"; - -/** - * WithdrawReward defines a method to withdraw rewards of a stakeholder - * - * @generated from rpc babylon.incentive.Msg.WithdrawReward - */ -export const MsgWithdrawRewardService = { - typeName: TYPE_NAME, - method: "WithdrawReward", - Request: MsgWithdrawReward, - Response: MsgWithdrawRewardResponse, -} as const; - -/** - * UpdateParams updates the incentive module parameters. - * - * @generated from rpc babylon.incentive.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/babylon/incentive/tx_pb.ts b/libs/es-client/src/protobufs/babylon/incentive/tx_pb.ts deleted file mode 100644 index b0c1a3a..0000000 --- a/libs/es-client/src/protobufs/babylon/incentive/tx_pb.ts +++ /dev/null @@ -1,188 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/incentive/tx.proto (package babylon.incentive, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * MsgWithdrawReward defines a message for withdrawing reward of a stakeholder. - * - * @generated from message babylon.incentive.MsgWithdrawReward - */ -export class MsgWithdrawReward extends Message { - /** - * {submitter, reporter, finality_provider, btc_delegation} - * - * @generated from field: string type = 1; - */ - type = ""; - - /** - * address is the address of the stakeholder in bech32 string - * signer of this msg has to be this address - * - * @generated from field: string address = 2; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.MsgWithdrawReward"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawReward { - return new MsgWithdrawReward().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawReward { - return new MsgWithdrawReward().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawReward { - return new MsgWithdrawReward().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawReward | PlainMessage | undefined, b: MsgWithdrawReward | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawReward, a, b); - } -} - -/** - * MsgWithdrawRewardResponse is the response to the MsgWithdrawReward message - * - * @generated from message babylon.incentive.MsgWithdrawRewardResponse - */ -export class MsgWithdrawRewardResponse extends Message { - /** - * coins is the withdrawed coins - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.MsgWithdrawRewardResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawRewardResponse { - return new MsgWithdrawRewardResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawRewardResponse { - return new MsgWithdrawRewardResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawRewardResponse { - return new MsgWithdrawRewardResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawRewardResponse | PlainMessage | undefined, b: MsgWithdrawRewardResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawRewardResponse, a, b); - } -} - -/** - * MsgUpdateParams defines a message for updating incentive module parameters. - * - * @generated from message babylon.incentive.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * just FYI: cosmos.AddressString marks that this field should use type alias - * for AddressString instead of string, but the functionality is not yet implemented - * in cosmos-proto - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the incentive parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: babylon.incentive.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse is the response to the MsgUpdateParams message. - * - * @generated from message babylon.incentive.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.incentive.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/monitor/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/monitor/v1/genesis_pb.ts deleted file mode 100644 index 55b53e0..0000000 --- a/libs/es-client/src/protobufs/babylon/monitor/v1/genesis_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/monitor/v1/genesis.proto (package babylon.monitor.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * GenesisState defines the monitor module's genesis state. - * - * @generated from message babylon.monitor.v1.GenesisState - */ -export class GenesisState extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.monitor.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/monitor/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/monitor/v1/query_cosmes.ts deleted file mode 100644 index fb271d7..0000000 --- a/libs/es-client/src/protobufs/babylon/monitor/v1/query_cosmes.ts +++ /dev/null @@ -1,35 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/monitor/v1/query.proto (package babylon.monitor.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryEndedEpochBtcHeightRequest, QueryEndedEpochBtcHeightResponse, QueryReportedCheckpointBtcHeightRequest, QueryReportedCheckpointBtcHeightResponse } from "./query_pb.js"; - -const TYPE_NAME = "babylon.monitor.v1.Query"; - -/** - * EndedEpochBtcHeight returns the BTC light client height at provided epoch - * finish - * - * @generated from rpc babylon.monitor.v1.Query.EndedEpochBtcHeight - */ -export const QueryEndedEpochBtcHeightService = { - typeName: TYPE_NAME, - method: "EndedEpochBtcHeight", - Request: QueryEndedEpochBtcHeightRequest, - Response: QueryEndedEpochBtcHeightResponse, -} as const; - -/** - * ReportedCheckpointBtcHeight returns the BTC light client height at which - * the checkpoint with the given hash is reported back to Babylon - * - * @generated from rpc babylon.monitor.v1.Query.ReportedCheckpointBtcHeight - */ -export const QueryReportedCheckpointBtcHeightService = { - typeName: TYPE_NAME, - method: "ReportedCheckpointBtcHeight", - Request: QueryReportedCheckpointBtcHeightRequest, - Response: QueryReportedCheckpointBtcHeightResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/monitor/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/monitor/v1/query_pb.ts deleted file mode 100644 index 2825a82..0000000 --- a/libs/es-client/src/protobufs/babylon/monitor/v1/query_pb.ts +++ /dev/null @@ -1,174 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/monitor/v1/query.proto (package babylon.monitor.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * QueryEndedEpochBtcHeightRequest defines a query type for EndedEpochBtcHeight - * RPC method - * - * @generated from message babylon.monitor.v1.QueryEndedEpochBtcHeightRequest - */ -export class QueryEndedEpochBtcHeightRequest extends Message { - /** - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.monitor.v1.QueryEndedEpochBtcHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEndedEpochBtcHeightRequest { - return new QueryEndedEpochBtcHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEndedEpochBtcHeightRequest { - return new QueryEndedEpochBtcHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEndedEpochBtcHeightRequest { - return new QueryEndedEpochBtcHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEndedEpochBtcHeightRequest | PlainMessage | undefined, b: QueryEndedEpochBtcHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEndedEpochBtcHeightRequest, a, b); - } -} - -/** - * QueryEndedEpochBtcHeightResponse defines a response type for - * EndedEpochBtcHeight RPC method - * - * @generated from message babylon.monitor.v1.QueryEndedEpochBtcHeightResponse - */ -export class QueryEndedEpochBtcHeightResponse extends Message { - /** - * height of btc light client when epoch ended - * - * @generated from field: uint64 btc_light_client_height = 1; - */ - btcLightClientHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.monitor.v1.QueryEndedEpochBtcHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_light_client_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEndedEpochBtcHeightResponse { - return new QueryEndedEpochBtcHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEndedEpochBtcHeightResponse { - return new QueryEndedEpochBtcHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEndedEpochBtcHeightResponse { - return new QueryEndedEpochBtcHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEndedEpochBtcHeightResponse | PlainMessage | undefined, b: QueryEndedEpochBtcHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEndedEpochBtcHeightResponse, a, b); - } -} - -/** - * QueryReportedCheckpointBtcHeightRequest defines a query type for - * ReportedCheckpointBtcHeight RPC method - * - * @generated from message babylon.monitor.v1.QueryReportedCheckpointBtcHeightRequest - */ -export class QueryReportedCheckpointBtcHeightRequest extends Message { - /** - * ckpt_hash is hex encoded byte string of the hash of the checkpoint - * - * @generated from field: string ckpt_hash = 1; - */ - ckptHash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.monitor.v1.QueryReportedCheckpointBtcHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ckpt_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryReportedCheckpointBtcHeightRequest { - return new QueryReportedCheckpointBtcHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryReportedCheckpointBtcHeightRequest { - return new QueryReportedCheckpointBtcHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryReportedCheckpointBtcHeightRequest { - return new QueryReportedCheckpointBtcHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryReportedCheckpointBtcHeightRequest | PlainMessage | undefined, b: QueryReportedCheckpointBtcHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryReportedCheckpointBtcHeightRequest, a, b); - } -} - -/** - * QueryReportedCheckpointBtcHeightResponse defines a response type for - * ReportedCheckpointBtcHeight RPC method - * - * @generated from message babylon.monitor.v1.QueryReportedCheckpointBtcHeightResponse - */ -export class QueryReportedCheckpointBtcHeightResponse extends Message { - /** - * height of btc light client when checkpoint is reported - * - * @generated from field: uint64 btc_light_client_height = 1; - */ - btcLightClientHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.monitor.v1.QueryReportedCheckpointBtcHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_light_client_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryReportedCheckpointBtcHeightResponse { - return new QueryReportedCheckpointBtcHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryReportedCheckpointBtcHeightResponse { - return new QueryReportedCheckpointBtcHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryReportedCheckpointBtcHeightResponse { - return new QueryReportedCheckpointBtcHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryReportedCheckpointBtcHeightResponse | PlainMessage | undefined, b: QueryReportedCheckpointBtcHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryReportedCheckpointBtcHeightResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/genesis_pb.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/genesis_pb.ts deleted file mode 100644 index ab2b0fd..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/genesis_pb.ts +++ /dev/null @@ -1,54 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/genesis.proto (package babylon.zoneconcierge.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the zoneconcierge module's genesis state. - * - * @generated from message babylon.zoneconcierge.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: babylon.zoneconcierge.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/packet_pb.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/packet_pb.ts deleted file mode 100644 index c23ab19..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/packet_pb.ts +++ /dev/null @@ -1,150 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/packet.proto (package babylon.zoneconcierge.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { IndexedHeader, ProofFinalizedChainInfo } from "./zoneconcierge_pb.js"; -import { BTCHeaderInfo } from "../../btclightclient/v1/btclightclient_pb.js"; -import { Epoch } from "../../epoching/v1/epoching_pb.js"; -import { RawCheckpoint } from "../../checkpointing/v1/checkpoint_pb.js"; -import { SubmissionKey } from "../../btccheckpoint/v1/btccheckpoint_pb.js"; - -/** - * ZoneconciergePacketData is the message that defines the IBC packets of - * ZoneConcierge - * - * @generated from message babylon.zoneconcierge.v1.ZoneconciergePacketData - */ -export class ZoneconciergePacketData extends Message { - /** - * packet is the actual message carried in the IBC packet - * - * @generated from oneof babylon.zoneconcierge.v1.ZoneconciergePacketData.packet - */ - packet: { - /** - * @generated from field: babylon.zoneconcierge.v1.BTCTimestamp btc_timestamp = 1; - */ - value: BTCTimestamp; - case: "btcTimestamp"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.ZoneconciergePacketData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_timestamp", kind: "message", T: BTCTimestamp, oneof: "packet" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ZoneconciergePacketData { - return new ZoneconciergePacketData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ZoneconciergePacketData { - return new ZoneconciergePacketData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ZoneconciergePacketData { - return new ZoneconciergePacketData().fromJsonString(jsonString, options); - } - - static equals(a: ZoneconciergePacketData | PlainMessage | undefined, b: ZoneconciergePacketData | PlainMessage | undefined): boolean { - return proto3.util.equals(ZoneconciergePacketData, a, b); - } -} - -/** - * BTCTimestamp is a BTC timestamp that carries information of a BTC-finalised epoch - * It includes a number of BTC headers, a raw checkpoint, an epoch metadata, and - * a CZ header if there exists CZ headers checkpointed to this epoch. - * Upon a newly finalised epoch in Babylon, Babylon will send a BTC timestamp to each - * Cosmos zone that has phase-2 integration with Babylon via IBC. - * - * @generated from message babylon.zoneconcierge.v1.BTCTimestamp - */ -export class BTCTimestamp extends Message { - /** - * header is the last CZ header in the finalized Babylon epoch - * - * @generated from field: babylon.zoneconcierge.v1.IndexedHeader header = 1; - */ - header?: IndexedHeader; - - /** - * btc_headers is BTC headers between - * - the block AFTER the common ancestor of BTC tip at epoch `lastFinalizedEpoch-1` and BTC tip at epoch `lastFinalizedEpoch` - * - BTC tip at epoch `lastFinalizedEpoch` - * where `lastFinalizedEpoch` is the last finalised epoch in Babylon - * - * @generated from field: repeated babylon.btclightclient.v1.BTCHeaderInfo btc_headers = 2; - */ - btcHeaders: BTCHeaderInfo[] = []; - - /** - * epoch_info is the metadata of the sealed epoch - * - * @generated from field: babylon.epoching.v1.Epoch epoch_info = 3; - */ - epochInfo?: Epoch; - - /** - * raw_checkpoint is the raw checkpoint that seals this epoch - * - * @generated from field: babylon.checkpointing.v1.RawCheckpoint raw_checkpoint = 4; - */ - rawCheckpoint?: RawCheckpoint; - - /** - * btc_submission_key is position of two BTC txs that include the raw checkpoint of this epoch - * - * @generated from field: babylon.btccheckpoint.v1.SubmissionKey btc_submission_key = 5; - */ - btcSubmissionKey?: SubmissionKey; - - /** - * - * Proofs that the header is finalized - * - * @generated from field: babylon.zoneconcierge.v1.ProofFinalizedChainInfo proof = 6; - */ - proof?: ProofFinalizedChainInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.BTCTimestamp"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: IndexedHeader }, - { no: 2, name: "btc_headers", kind: "message", T: BTCHeaderInfo, repeated: true }, - { no: 3, name: "epoch_info", kind: "message", T: Epoch }, - { no: 4, name: "raw_checkpoint", kind: "message", T: RawCheckpoint }, - { no: 5, name: "btc_submission_key", kind: "message", T: SubmissionKey }, - { no: 6, name: "proof", kind: "message", T: ProofFinalizedChainInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCTimestamp { - return new BTCTimestamp().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCTimestamp { - return new BTCTimestamp().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCTimestamp { - return new BTCTimestamp().fromJsonString(jsonString, options); - } - - static equals(a: BTCTimestamp | PlainMessage | undefined, b: BTCTimestamp | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCTimestamp, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/params_pb.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/params_pb.ts deleted file mode 100644 index 85a570d..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/params_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/params.proto (package babylon.zoneconcierge.v1, 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 babylon.zoneconcierge.v1.Params - */ -export class Params extends Message { - /** - * ibc_packet_timeout_seconds is the time period after which an unrelayed - * IBC packet becomes timeout, measured in seconds - * - * @generated from field: uint32 ibc_packet_timeout_seconds = 1; - */ - ibcPacketTimeoutSeconds = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ibc_packet_timeout_seconds", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_cosmes.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_cosmes.ts deleted file mode 100644 index 6140eea..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_cosmes.ts +++ /dev/null @@ -1,139 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/query.proto (package babylon.zoneconcierge.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - QueryChainListRequest, - QueryChainListResponse, - QueryChainsInfoRequest, - QueryChainsInfoResponse, - QueryEpochChainsInfoRequest, - QueryEpochChainsInfoResponse, - QueryFinalizedChainInfoUntilHeightRequest, - QueryFinalizedChainInfoUntilHeightResponse, - QueryFinalizedChainsInfoRequest, - QueryFinalizedChainsInfoResponse, - QueryHeaderRequest, - QueryHeaderResponse, - QueryListEpochHeadersRequest, - QueryListEpochHeadersResponse, - QueryListHeadersRequest, - QueryListHeadersResponse, - QueryParamsRequest, - QueryParamsResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "babylon.zoneconcierge.v1.Query"; - -/** - * Params queries the parameters of the module. - * - * @generated from rpc babylon.zoneconcierge.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Header queries the CZ header and fork headers at a given height. - * - * @generated from rpc babylon.zoneconcierge.v1.Query.Header - */ -export const QueryHeaderService = { - typeName: TYPE_NAME, - method: "Header", - Request: QueryHeaderRequest, - Response: QueryHeaderResponse, -} as const; - -/** - * ChainList queries the list of chains that checkpoint to Babylon - * - * @generated from rpc babylon.zoneconcierge.v1.Query.ChainList - */ -export const QueryChainListService = { - typeName: TYPE_NAME, - method: "ChainList", - Request: QueryChainListRequest, - Response: QueryChainListResponse, -} as const; - -/** - * ChainsInfo queries the latest info for a given list of chains in Babylon's view - * - * @generated from rpc babylon.zoneconcierge.v1.Query.ChainsInfo - */ -export const QueryChainsInfoService = { - typeName: TYPE_NAME, - method: "ChainsInfo", - Request: QueryChainsInfoRequest, - Response: QueryChainsInfoResponse, -} as const; - -/** - * EpochChainsInfo queries the latest info for a list of chains - * in a given epoch in Babylon's view - * - * @generated from rpc babylon.zoneconcierge.v1.Query.EpochChainsInfo - */ -export const QueryEpochChainsInfoService = { - typeName: TYPE_NAME, - method: "EpochChainsInfo", - Request: QueryEpochChainsInfoRequest, - Response: QueryEpochChainsInfoResponse, -} as const; - -/** - * ListHeaders queries the headers of a chain in Babylon's view, with - * pagination support - * - * @generated from rpc babylon.zoneconcierge.v1.Query.ListHeaders - */ -export const QueryListHeadersService = { - typeName: TYPE_NAME, - method: "ListHeaders", - Request: QueryListHeadersRequest, - Response: QueryListHeadersResponse, -} as const; - -/** - * ListEpochHeaders queries the headers of a chain timestamped in a given - * epoch of Babylon, with pagination support - * - * @generated from rpc babylon.zoneconcierge.v1.Query.ListEpochHeaders - */ -export const QueryListEpochHeadersService = { - typeName: TYPE_NAME, - method: "ListEpochHeaders", - Request: QueryListEpochHeadersRequest, - Response: QueryListEpochHeadersResponse, -} as const; - -/** - * FinalizedChainsInfo queries the BTC-finalised info of chains with given IDs, with proofs - * - * @generated from rpc babylon.zoneconcierge.v1.Query.FinalizedChainsInfo - */ -export const QueryFinalizedChainsInfoService = { - typeName: TYPE_NAME, - method: "FinalizedChainsInfo", - Request: QueryFinalizedChainsInfoRequest, - Response: QueryFinalizedChainsInfoResponse, -} as const; - -/** - * FinalizedChainInfoUntilHeight queries the BTC-finalised info no later than - * the provided CZ height, with proofs - * - * @generated from rpc babylon.zoneconcierge.v1.Query.FinalizedChainInfoUntilHeight - */ -export const QueryFinalizedChainInfoUntilHeightService = { - typeName: TYPE_NAME, - method: "FinalizedChainInfoUntilHeight", - Request: QueryFinalizedChainInfoUntilHeightRequest, - Response: QueryFinalizedChainInfoUntilHeightResponse, -} as const; diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_pb.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_pb.ts deleted file mode 100644 index 5934224..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/query_pb.ts +++ /dev/null @@ -1,844 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/query.proto (package babylon.zoneconcierge.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { ChainInfo, FinalizedChainInfo, Forks, IndexedHeader, ProofFinalizedChainInfo } from "./zoneconcierge_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Epoch } from "../../epoching/v1/epoching_pb.js"; -import { RawCheckpoint } from "../../checkpointing/v1/checkpoint_pb.js"; -import { SubmissionKey } from "../../btccheckpoint/v1/btccheckpoint_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: babylon.zoneconcierge.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryHeaderRequest is request type for the Query/Header RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryHeaderRequest - */ -export class QueryHeaderRequest extends Message { - /** - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * @generated from field: uint64 height = 2; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryHeaderRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHeaderRequest { - return new QueryHeaderRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHeaderRequest { - return new QueryHeaderRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHeaderRequest { - return new QueryHeaderRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryHeaderRequest | PlainMessage | undefined, b: QueryHeaderRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHeaderRequest, a, b); - } -} - -/** - * QueryHeaderResponse is response type for the Query/Header RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryHeaderResponse - */ -export class QueryHeaderResponse extends Message { - /** - * @generated from field: babylon.zoneconcierge.v1.IndexedHeader header = 1; - */ - header?: IndexedHeader; - - /** - * @generated from field: babylon.zoneconcierge.v1.Forks fork_headers = 2; - */ - forkHeaders?: Forks; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryHeaderResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: IndexedHeader }, - { no: 2, name: "fork_headers", kind: "message", T: Forks }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHeaderResponse { - return new QueryHeaderResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHeaderResponse { - return new QueryHeaderResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHeaderResponse { - return new QueryHeaderResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryHeaderResponse | PlainMessage | undefined, b: QueryHeaderResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHeaderResponse, a, b); - } -} - -/** - * QueryChainListRequest is request type for the Query/ChainList RPC method - * - * @generated from message babylon.zoneconcierge.v1.QueryChainListRequest - */ -export class QueryChainListRequest extends Message { - /** - * pagination defines whether to have the pagination in the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryChainListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChainListRequest { - return new QueryChainListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChainListRequest { - return new QueryChainListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChainListRequest { - return new QueryChainListRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChainListRequest | PlainMessage | undefined, b: QueryChainListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChainListRequest, a, b); - } -} - -/** - * QueryChainListResponse is response type for the Query/ChainList RPC method - * - * @generated from message babylon.zoneconcierge.v1.QueryChainListResponse - */ -export class QueryChainListResponse extends Message { - /** - * chain_ids are IDs of the chains in ascending alphabetical order - * - * @generated from field: repeated string chain_ids = 1; - */ - chainIds: string[] = []; - - /** - * pagination defines the pagination in the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryChainListResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChainListResponse { - return new QueryChainListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChainListResponse { - return new QueryChainListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChainListResponse { - return new QueryChainListResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChainListResponse | PlainMessage | undefined, b: QueryChainListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChainListResponse, a, b); - } -} - -/** - * QueryChainsInfoRequest is request type for the Query/ChainsInfo RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryChainsInfoRequest - */ -export class QueryChainsInfoRequest extends Message { - /** - * @generated from field: repeated string chain_ids = 1; - */ - chainIds: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryChainsInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChainsInfoRequest { - return new QueryChainsInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChainsInfoRequest { - return new QueryChainsInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChainsInfoRequest { - return new QueryChainsInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChainsInfoRequest | PlainMessage | undefined, b: QueryChainsInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChainsInfoRequest, a, b); - } -} - -/** - * QueryChainsInfoResponse is response type for the Query/ChainsInfo RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryChainsInfoResponse - */ -export class QueryChainsInfoResponse extends Message { - /** - * @generated from field: repeated babylon.zoneconcierge.v1.ChainInfo chains_info = 1; - */ - chainsInfo: ChainInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryChainsInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chains_info", kind: "message", T: ChainInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChainsInfoResponse { - return new QueryChainsInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChainsInfoResponse { - return new QueryChainsInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChainsInfoResponse { - return new QueryChainsInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChainsInfoResponse | PlainMessage | undefined, b: QueryChainsInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChainsInfoResponse, a, b); - } -} - -/** - * QueryEpochChainsInfoRequest is request type for the Query/EpochChainsInfo RPC - * method. - * - * @generated from message babylon.zoneconcierge.v1.QueryEpochChainsInfoRequest - */ -export class QueryEpochChainsInfoRequest extends Message { - /** - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * @generated from field: repeated string chain_ids = 2; - */ - chainIds: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryEpochChainsInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "chain_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochChainsInfoRequest { - return new QueryEpochChainsInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochChainsInfoRequest { - return new QueryEpochChainsInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochChainsInfoRequest { - return new QueryEpochChainsInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochChainsInfoRequest | PlainMessage | undefined, b: QueryEpochChainsInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochChainsInfoRequest, a, b); - } -} - -/** - * QueryEpochChainsInfoResponse is response type for the Query/EpochChainsInfo RPC - * method. - * - * @generated from message babylon.zoneconcierge.v1.QueryEpochChainsInfoResponse - */ -export class QueryEpochChainsInfoResponse extends Message { - /** - * chain_info is the info of the CZ - * - * @generated from field: repeated babylon.zoneconcierge.v1.ChainInfo chains_info = 1; - */ - chainsInfo: ChainInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryEpochChainsInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chains_info", kind: "message", T: ChainInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochChainsInfoResponse { - return new QueryEpochChainsInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochChainsInfoResponse { - return new QueryEpochChainsInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochChainsInfoResponse { - return new QueryEpochChainsInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochChainsInfoResponse | PlainMessage | undefined, b: QueryEpochChainsInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochChainsInfoResponse, a, b); - } -} - -/** - * QueryListHeadersRequest is request type for the Query/ListHeaders RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryListHeadersRequest - */ -export class QueryListHeadersRequest extends Message { - /** - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * pagination defines whether to have the pagination in the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryListHeadersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListHeadersRequest { - return new QueryListHeadersRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListHeadersRequest { - return new QueryListHeadersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListHeadersRequest { - return new QueryListHeadersRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryListHeadersRequest | PlainMessage | undefined, b: QueryListHeadersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListHeadersRequest, a, b); - } -} - -/** - * QueryListHeadersResponse is response type for the Query/ListHeaders RPC - * method. - * - * @generated from message babylon.zoneconcierge.v1.QueryListHeadersResponse - */ -export class QueryListHeadersResponse extends Message { - /** - * headers is the list of headers - * - * @generated from field: repeated babylon.zoneconcierge.v1.IndexedHeader headers = 1; - */ - headers: IndexedHeader[] = []; - - /** - * pagination defines the pagination in the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryListHeadersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "headers", kind: "message", T: IndexedHeader, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListHeadersResponse { - return new QueryListHeadersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListHeadersResponse { - return new QueryListHeadersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListHeadersResponse { - return new QueryListHeadersResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryListHeadersResponse | PlainMessage | undefined, b: QueryListHeadersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListHeadersResponse, a, b); - } -} - -/** - * QueryListEpochHeadersRequest is request type for the Query/ListEpochHeaders - * RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryListEpochHeadersRequest - */ -export class QueryListEpochHeadersRequest extends Message { - /** - * @generated from field: uint64 epoch_num = 1; - */ - epochNum = protoInt64.zero; - - /** - * @generated from field: string chain_id = 2; - */ - chainId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryListEpochHeadersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_num", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListEpochHeadersRequest { - return new QueryListEpochHeadersRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListEpochHeadersRequest { - return new QueryListEpochHeadersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListEpochHeadersRequest { - return new QueryListEpochHeadersRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryListEpochHeadersRequest | PlainMessage | undefined, b: QueryListEpochHeadersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListEpochHeadersRequest, a, b); - } -} - -/** - * QueryListEpochHeadersResponse is response type for the Query/ListEpochHeaders - * RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryListEpochHeadersResponse - */ -export class QueryListEpochHeadersResponse extends Message { - /** - * headers is the list of headers - * - * @generated from field: repeated babylon.zoneconcierge.v1.IndexedHeader headers = 1; - */ - headers: IndexedHeader[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryListEpochHeadersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "headers", kind: "message", T: IndexedHeader, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryListEpochHeadersResponse { - return new QueryListEpochHeadersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryListEpochHeadersResponse { - return new QueryListEpochHeadersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryListEpochHeadersResponse { - return new QueryListEpochHeadersResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryListEpochHeadersResponse | PlainMessage | undefined, b: QueryListEpochHeadersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryListEpochHeadersResponse, a, b); - } -} - -/** - * QueryFinalizedChainsInfoRequest is request type for the - * Query/FinalizedChainsInfo RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryFinalizedChainsInfoRequest - */ -export class QueryFinalizedChainsInfoRequest extends Message { - /** - * chain_ids is the list of ids of CZs - * - * @generated from field: repeated string chain_ids = 1; - */ - chainIds: string[] = []; - - /** - * prove indicates whether the querier wants to get proofs of this timestamp - * - * @generated from field: bool prove = 2; - */ - prove = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryFinalizedChainsInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "prove", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalizedChainsInfoRequest { - return new QueryFinalizedChainsInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalizedChainsInfoRequest { - return new QueryFinalizedChainsInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalizedChainsInfoRequest { - return new QueryFinalizedChainsInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalizedChainsInfoRequest | PlainMessage | undefined, b: QueryFinalizedChainsInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalizedChainsInfoRequest, a, b); - } -} - -/** - * QueryFinalizedChainsInfoResponse is response type for the - * Query/FinalizedChainsInfo RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryFinalizedChainsInfoResponse - */ -export class QueryFinalizedChainsInfoResponse extends Message { - /** - * @generated from field: repeated babylon.zoneconcierge.v1.FinalizedChainInfo finalized_chains_info = 1; - */ - finalizedChainsInfo: FinalizedChainInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryFinalizedChainsInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "finalized_chains_info", kind: "message", T: FinalizedChainInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalizedChainsInfoResponse { - return new QueryFinalizedChainsInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalizedChainsInfoResponse { - return new QueryFinalizedChainsInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalizedChainsInfoResponse { - return new QueryFinalizedChainsInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalizedChainsInfoResponse | PlainMessage | undefined, b: QueryFinalizedChainsInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalizedChainsInfoResponse, a, b); - } -} - -/** - * QueryFinalizedChainInfoUntilHeightRequest is request type for the - * Query/FinalizedChainInfoUntilHeight RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryFinalizedChainInfoUntilHeightRequest - */ -export class QueryFinalizedChainInfoUntilHeightRequest extends Message { - /** - * chain_id is the ID of the CZ - * - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * height is the height of the CZ chain - * such that the returned finalised chain info will be no later than this - * height - * - * @generated from field: uint64 height = 2; - */ - height = protoInt64.zero; - - /** - * prove indicates whether the querier wants to get proofs of this timestamp - * - * @generated from field: bool prove = 3; - */ - prove = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryFinalizedChainInfoUntilHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "prove", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalizedChainInfoUntilHeightRequest { - return new QueryFinalizedChainInfoUntilHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalizedChainInfoUntilHeightRequest { - return new QueryFinalizedChainInfoUntilHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalizedChainInfoUntilHeightRequest { - return new QueryFinalizedChainInfoUntilHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalizedChainInfoUntilHeightRequest | PlainMessage | undefined, b: QueryFinalizedChainInfoUntilHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalizedChainInfoUntilHeightRequest, a, b); - } -} - -/** - * QueryFinalizedChainInfoUntilHeightResponse is response type for the - * Query/FinalizedChainInfoUntilHeight RPC method. - * - * @generated from message babylon.zoneconcierge.v1.QueryFinalizedChainInfoUntilHeightResponse - */ -export class QueryFinalizedChainInfoUntilHeightResponse extends Message { - /** - * finalized_chain_info is the info of the CZ - * - * @generated from field: babylon.zoneconcierge.v1.ChainInfo finalized_chain_info = 1; - */ - finalizedChainInfo?: ChainInfo; - - /** - * epoch_info is the metadata of the last BTC-finalised epoch - * - * @generated from field: babylon.epoching.v1.Epoch epoch_info = 2; - */ - epochInfo?: Epoch; - - /** - * raw_checkpoint is the raw checkpoint of this epoch - * - * @generated from field: babylon.checkpointing.v1.RawCheckpoint raw_checkpoint = 3; - */ - rawCheckpoint?: RawCheckpoint; - - /** - * btc_submission_key is position of two BTC txs that include the raw - * checkpoint of this epoch - * - * @generated from field: babylon.btccheckpoint.v1.SubmissionKey btc_submission_key = 4; - */ - btcSubmissionKey?: SubmissionKey; - - /** - * proof is the proof that the chain info is finalized - * - * @generated from field: babylon.zoneconcierge.v1.ProofFinalizedChainInfo proof = 5; - */ - proof?: ProofFinalizedChainInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.QueryFinalizedChainInfoUntilHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "finalized_chain_info", kind: "message", T: ChainInfo }, - { no: 2, name: "epoch_info", kind: "message", T: Epoch }, - { no: 3, name: "raw_checkpoint", kind: "message", T: RawCheckpoint }, - { no: 4, name: "btc_submission_key", kind: "message", T: SubmissionKey }, - { no: 5, name: "proof", kind: "message", T: ProofFinalizedChainInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFinalizedChainInfoUntilHeightResponse { - return new QueryFinalizedChainInfoUntilHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFinalizedChainInfoUntilHeightResponse { - return new QueryFinalizedChainInfoUntilHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFinalizedChainInfoUntilHeightResponse { - return new QueryFinalizedChainInfoUntilHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFinalizedChainInfoUntilHeightResponse | PlainMessage | undefined, b: QueryFinalizedChainInfoUntilHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFinalizedChainInfoUntilHeightResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_cosmes.ts deleted file mode 100644 index 5a3905c..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_cosmes.ts +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/tx.proto (package babylon.zoneconcierge.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "babylon.zoneconcierge.v1.Msg"; - -/** - * UpdateParams updates the zoneconcierge module parameters. - * - * @generated from rpc babylon.zoneconcierge.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_pb.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_pb.ts deleted file mode 100644 index 0d628b0..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/tx_pb.ts +++ /dev/null @@ -1,96 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/tx.proto (package babylon.zoneconcierge.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * MsgUpdateParams defines a message for updating zoneconcierge module parameters. - * - * @generated from message babylon.zoneconcierge.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * just FYI: cosmos.AddressString marks that this field should use type alias - * for AddressString instead of string, but the functionality is not yet implemented - * in cosmos-proto - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the zoneconcierge parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: babylon.zoneconcierge.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse is the response to the MsgUpdateParams message. - * - * @generated from message babylon.zoneconcierge.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/zoneconcierge_pb.ts b/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/zoneconcierge_pb.ts deleted file mode 100644 index cc9cbdb..0000000 --- a/libs/es-client/src/protobufs/babylon/zoneconcierge/v1/zoneconcierge_pb.ts +++ /dev/null @@ -1,495 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file babylon/zoneconcierge/v1/zoneconcierge.proto (package babylon.zoneconcierge.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Epoch } from "../../epoching/v1/epoching_pb.js"; -import { RawCheckpoint } from "../../checkpointing/v1/checkpoint_pb.js"; -import { SubmissionKey, TransactionInfo } from "../../btccheckpoint/v1/btccheckpoint_pb.js"; -import { ValidatorWithBlsKey } from "../../checkpointing/v1/bls_key_pb.js"; -import { ProofOps } from "../../../tendermint/crypto/proof_pb.js"; -import { BTCHeaderInfo } from "../../btclightclient/v1/btclightclient_pb.js"; - -/** - * IndexedHeader is the metadata of a CZ header - * - * @generated from message babylon.zoneconcierge.v1.IndexedHeader - */ -export class IndexedHeader extends Message { - /** - * chain_id is the unique ID of the chain - * - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * hash is the hash of this header - * - * @generated from field: bytes hash = 2; - */ - hash = new Uint8Array(0); - - /** - * height is the height of this header on CZ ledger - * (hash, height) jointly provides the position of the header on CZ ledger - * - * @generated from field: uint64 height = 3; - */ - height = protoInt64.zero; - - /** - * time is the timestamp of this header on CZ ledger - * it is needed for CZ to unbond all mature validators/delegations - * before this timestamp when this header is BTC-finalised - * - * @generated from field: google.protobuf.Timestamp time = 4; - */ - time?: Timestamp; - - /** - * babylon_header_hash is the hash of the babylon block that includes this CZ - * header - * - * @generated from field: bytes babylon_header_hash = 5; - */ - babylonHeaderHash = new Uint8Array(0); - - /** - * babylon_header_height is the height of the babylon block that includes this CZ - * header - * - * @generated from field: uint64 babylon_header_height = 6; - */ - babylonHeaderHeight = protoInt64.zero; - - /** - * epoch is the epoch number of this header on Babylon ledger - * - * @generated from field: uint64 babylon_epoch = 7; - */ - babylonEpoch = protoInt64.zero; - - /** - * babylon_tx_hash is the hash of the tx that includes this header - * (babylon_block_height, babylon_tx_hash) jointly provides the position of - * the header on Babylon ledger - * - * @generated from field: bytes babylon_tx_hash = 8; - */ - babylonTxHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.IndexedHeader"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "time", kind: "message", T: Timestamp }, - { no: 5, name: "babylon_header_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "babylon_header_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "babylon_epoch", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "babylon_tx_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IndexedHeader { - return new IndexedHeader().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IndexedHeader { - return new IndexedHeader().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IndexedHeader { - return new IndexedHeader().fromJsonString(jsonString, options); - } - - static equals(a: IndexedHeader | PlainMessage | undefined, b: IndexedHeader | PlainMessage | undefined): boolean { - return proto3.util.equals(IndexedHeader, a, b); - } -} - -/** - * Forks is a list of non-canonical `IndexedHeader`s at the same height. - * For example, assuming the following blockchain - * ``` - * A <- B <- C <- D <- E - * \ -- D1 - * \ -- D2 - * ``` - * Then the fork will be {[D1, D2]} where each item is in struct `IndexedBlock`. - * - * Note that each `IndexedHeader` in the fork should have a valid quorum - * certificate. Such forks exist since Babylon considers CZs might have - * dishonest majority. Also note that the IBC-Go implementation will only - * consider the first header in a fork valid, since the subsequent headers - * cannot be verified without knowing the validator set in the previous header. - * - * @generated from message babylon.zoneconcierge.v1.Forks - */ -export class Forks extends Message { - /** - * blocks is the list of non-canonical indexed headers at the same height - * - * @generated from field: repeated babylon.zoneconcierge.v1.IndexedHeader headers = 3; - */ - headers: IndexedHeader[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.Forks"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "headers", kind: "message", T: IndexedHeader, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Forks { - return new Forks().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Forks { - return new Forks().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Forks { - return new Forks().fromJsonString(jsonString, options); - } - - static equals(a: Forks | PlainMessage | undefined, b: Forks | PlainMessage | undefined): boolean { - return proto3.util.equals(Forks, a, b); - } -} - -/** - * ChainInfo is the information of a CZ - * - * @generated from message babylon.zoneconcierge.v1.ChainInfo - */ -export class ChainInfo extends Message { - /** - * chain_id is the ID of the chain - * - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * latest_header is the latest header in CZ's canonical chain - * - * @generated from field: babylon.zoneconcierge.v1.IndexedHeader latest_header = 2; - */ - latestHeader?: IndexedHeader; - - /** - * latest_forks is the latest forks, formed as a series of IndexedHeader (from - * low to high) - * - * @generated from field: babylon.zoneconcierge.v1.Forks latest_forks = 3; - */ - latestForks?: Forks; - - /** - * timestamped_headers_count is the number of timestamped headers in CZ's - * canonical chain - * - * @generated from field: uint64 timestamped_headers_count = 4; - */ - timestampedHeadersCount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.ChainInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "latest_header", kind: "message", T: IndexedHeader }, - { no: 3, name: "latest_forks", kind: "message", T: Forks }, - { no: 4, name: "timestamped_headers_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChainInfo { - return new ChainInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChainInfo { - return new ChainInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChainInfo { - return new ChainInfo().fromJsonString(jsonString, options); - } - - static equals(a: ChainInfo | PlainMessage | undefined, b: ChainInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ChainInfo, a, b); - } -} - -/** - * FinalizedChainInfo is the information of a CZ that is BTC-finalised - * - * @generated from message babylon.zoneconcierge.v1.FinalizedChainInfo - */ -export class FinalizedChainInfo extends Message { - /** - * chain_id is the ID of the chain - * - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * finalized_chain_info is the info of the CZ - * - * @generated from field: babylon.zoneconcierge.v1.ChainInfo finalized_chain_info = 2; - */ - finalizedChainInfo?: ChainInfo; - - /** - * epoch_info is the metadata of the last BTC-finalised epoch - * - * @generated from field: babylon.epoching.v1.Epoch epoch_info = 3; - */ - epochInfo?: Epoch; - - /** - * raw_checkpoint is the raw checkpoint of this epoch - * - * @generated from field: babylon.checkpointing.v1.RawCheckpoint raw_checkpoint = 4; - */ - rawCheckpoint?: RawCheckpoint; - - /** - * btc_submission_key is position of two BTC txs that include the raw - * checkpoint of this epoch - * - * @generated from field: babylon.btccheckpoint.v1.SubmissionKey btc_submission_key = 5; - */ - btcSubmissionKey?: SubmissionKey; - - /** - * proof is the proof that the chain info is finalized - * - * @generated from field: babylon.zoneconcierge.v1.ProofFinalizedChainInfo proof = 6; - */ - proof?: ProofFinalizedChainInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.FinalizedChainInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "finalized_chain_info", kind: "message", T: ChainInfo }, - { no: 3, name: "epoch_info", kind: "message", T: Epoch }, - { no: 4, name: "raw_checkpoint", kind: "message", T: RawCheckpoint }, - { no: 5, name: "btc_submission_key", kind: "message", T: SubmissionKey }, - { no: 6, name: "proof", kind: "message", T: ProofFinalizedChainInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FinalizedChainInfo { - return new FinalizedChainInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FinalizedChainInfo { - return new FinalizedChainInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FinalizedChainInfo { - return new FinalizedChainInfo().fromJsonString(jsonString, options); - } - - static equals(a: FinalizedChainInfo | PlainMessage | undefined, b: FinalizedChainInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(FinalizedChainInfo, a, b); - } -} - -/** - * ProofEpochSealed is the proof that an epoch is sealed by the sealer header, - * i.e., the 2nd header of the next epoch With the access of metadata - * - Metadata of this epoch, which includes the sealer header - * - Raw checkpoint of this epoch - * The verifier can perform the following verification rules: - * - The raw checkpoint's `app_hash` is same as in the sealer header - * - More than 2/3 (in voting power) validators in the validator set of this - * epoch have signed `app_hash` of the sealer header - * - The epoch metadata is committed to the `app_hash` of the sealer header - * - The validator set is committed to the `app_hash` of the sealer header - * - * @generated from message babylon.zoneconcierge.v1.ProofEpochSealed - */ -export class ProofEpochSealed extends Message { - /** - * validator_set is the validator set of the sealed epoch - * This validator set has generated a BLS multisig on `app_hash` of - * the sealer header - * - * @generated from field: repeated babylon.checkpointing.v1.ValidatorWithBlsKey validator_set = 1; - */ - validatorSet: ValidatorWithBlsKey[] = []; - - /** - * proof_epoch_info is the Merkle proof that the epoch's metadata is committed - * to `app_hash` of the sealer header - * - * @generated from field: tendermint.crypto.ProofOps proof_epoch_info = 2; - */ - proofEpochInfo?: ProofOps; - - /** - * proof_epoch_info is the Merkle proof that the epoch's validator set is - * committed to `app_hash` of the sealer header - * - * @generated from field: tendermint.crypto.ProofOps proof_epoch_val_set = 3; - */ - proofEpochValSet?: ProofOps; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.ProofEpochSealed"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_set", kind: "message", T: ValidatorWithBlsKey, repeated: true }, - { no: 2, name: "proof_epoch_info", kind: "message", T: ProofOps }, - { no: 3, name: "proof_epoch_val_set", kind: "message", T: ProofOps }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofEpochSealed { - return new ProofEpochSealed().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofEpochSealed { - return new ProofEpochSealed().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofEpochSealed { - return new ProofEpochSealed().fromJsonString(jsonString, options); - } - - static equals(a: ProofEpochSealed | PlainMessage | undefined, b: ProofEpochSealed | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofEpochSealed, a, b); - } -} - -/** - * ProofFinalizedChainInfo is a set of proofs that attest a chain info is - * BTC-finalised - * - * - * The following fields include proofs that attest the chain info is - * BTC-finalised - * - * @generated from message babylon.zoneconcierge.v1.ProofFinalizedChainInfo - */ -export class ProofFinalizedChainInfo extends Message { - /** - * proof_cz_header_in_epoch is the proof that the CZ header is timestamped - * within a certain epoch - * - * @generated from field: tendermint.crypto.ProofOps proof_cz_header_in_epoch = 1; - */ - proofCzHeaderInEpoch?: ProofOps; - - /** - * proof_epoch_sealed is the proof that the epoch is sealed - * - * @generated from field: babylon.zoneconcierge.v1.ProofEpochSealed proof_epoch_sealed = 2; - */ - proofEpochSealed?: ProofEpochSealed; - - /** - * proof_epoch_submitted is the proof that the epoch's checkpoint is included - * in BTC ledger It is the two TransactionInfo in the best (i.e., earliest) - * checkpoint submission - * - * @generated from field: repeated babylon.btccheckpoint.v1.TransactionInfo proof_epoch_submitted = 3; - */ - proofEpochSubmitted: TransactionInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.ProofFinalizedChainInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proof_cz_header_in_epoch", kind: "message", T: ProofOps }, - { no: 2, name: "proof_epoch_sealed", kind: "message", T: ProofEpochSealed }, - { no: 3, name: "proof_epoch_submitted", kind: "message", T: TransactionInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofFinalizedChainInfo { - return new ProofFinalizedChainInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofFinalizedChainInfo { - return new ProofFinalizedChainInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofFinalizedChainInfo { - return new ProofFinalizedChainInfo().fromJsonString(jsonString, options); - } - - static equals(a: ProofFinalizedChainInfo | PlainMessage | undefined, b: ProofFinalizedChainInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofFinalizedChainInfo, a, b); - } -} - -/** - * Btc light client chain segment grown during last finalized epoch - * - * @generated from message babylon.zoneconcierge.v1.BTCChainSegment - */ -export class BTCChainSegment extends Message { - /** - * @generated from field: repeated babylon.btclightclient.v1.BTCHeaderInfo btc_headers = 1; - */ - btcHeaders: BTCHeaderInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "babylon.zoneconcierge.v1.BTCChainSegment"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "btc_headers", kind: "message", T: BTCHeaderInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BTCChainSegment { - return new BTCChainSegment().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BTCChainSegment { - return new BTCChainSegment().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BTCChainSegment { - return new BTCChainSegment().fromJsonString(jsonString, options); - } - - static equals(a: BTCChainSegment | PlainMessage | undefined, b: BTCChainSegment | PlainMessage | undefined): boolean { - return proto3.util.equals(BTCChainSegment, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts deleted file mode 100644 index 171e40b..0000000 --- a/libs/es-client/src/protobufs/cosmos/app/runtime/v1alpha1/module_pb.ts +++ /dev/null @@ -1,178 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/app/runtime/v1alpha1/module.proto (package cosmos.app.runtime.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object for the runtime module. - * - * @generated from message cosmos.app.runtime.v1alpha1.Module - */ -export class Module extends Message { - /** - * app_name is the name of the app. - * - * @generated from field: string app_name = 1; - */ - appName = ""; - - /** - * begin_blockers specifies the module names of begin blockers - * to call in the order in which they should be called. If this is left empty - * no begin blocker will be registered. - * - * @generated from field: repeated string begin_blockers = 2; - */ - beginBlockers: string[] = []; - - /** - * end_blockers specifies the module names of the end blockers - * to call in the order in which they should be called. If this is left empty - * no end blocker will be registered. - * - * @generated from field: repeated string end_blockers = 3; - */ - endBlockers: string[] = []; - - /** - * init_genesis specifies the module names of init genesis functions - * to call in the order in which they should be called. If this is left empty - * no init genesis function will be registered. - * - * @generated from field: repeated string init_genesis = 4; - */ - initGenesis: string[] = []; - - /** - * export_genesis specifies the order in which to export module genesis data. - * If this is left empty, the init_genesis order will be used for export genesis - * if it is specified. - * - * @generated from field: repeated string export_genesis = 5; - */ - exportGenesis: string[] = []; - - /** - * override_store_keys is an optional list of overrides for the module store keys - * to be used in keeper construction. - * - * @generated from field: repeated cosmos.app.runtime.v1alpha1.StoreKeyConfig override_store_keys = 6; - */ - overrideStoreKeys: StoreKeyConfig[] = []; - - /** - * order_migrations defines the order in which module migrations are performed. - * If this is left empty, it uses the default migration order. - * https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder - * - * @generated from field: repeated string order_migrations = 7; - */ - orderMigrations: string[] = []; - - /** - * precommiters specifies the module names of the precommiters - * to call in the order in which they should be called. If this is left empty - * no precommit function will be registered. - * - * @generated from field: repeated string precommiters = 8; - */ - precommiters: string[] = []; - - /** - * prepare_check_staters specifies the module names of the prepare_check_staters - * to call in the order in which they should be called. If this is left empty - * no preparecheckstate function will be registered. - * - * @generated from field: repeated string prepare_check_staters = 9; - */ - prepareCheckStaters: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.runtime.v1alpha1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "begin_blockers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "end_blockers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "init_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "export_genesis", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "override_store_keys", kind: "message", T: StoreKeyConfig, repeated: true }, - { no: 7, name: "order_migrations", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 8, name: "precommiters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 9, name: "prepare_check_staters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - -/** - * StoreKeyConfig may be supplied to override the default module store key, which - * is the module name. - * - * @generated from message cosmos.app.runtime.v1alpha1.StoreKeyConfig - */ -export class StoreKeyConfig extends Message { - /** - * name of the module to override the store key of - * - * @generated from field: string module_name = 1; - */ - moduleName = ""; - - /** - * the kv store key to use instead of the module name. - * - * @generated from field: string kv_store_key = 2; - */ - kvStoreKey = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.runtime.v1alpha1.StoreKeyConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "kv_store_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreKeyConfig { - return new StoreKeyConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreKeyConfig { - return new StoreKeyConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StoreKeyConfig { - return new StoreKeyConfig().fromJsonString(jsonString, options); - } - - static equals(a: StoreKeyConfig | PlainMessage | undefined, b: StoreKeyConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreKeyConfig, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/config_pb.ts b/libs/es-client/src/protobufs/cosmos/app/v1alpha1/config_pb.ts deleted file mode 100644 index 12078c7..0000000 --- a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/config_pb.ts +++ /dev/null @@ -1,183 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/app/v1alpha1/config.proto (package cosmos.app.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Config represents the configuration for a Cosmos SDK ABCI app. - * It is intended that all state machine logic including the version of - * baseapp and tx handlers (and possibly even Tendermint) that an app needs - * can be described in a config object. For compatibility, the framework should - * allow a mixture of declarative and imperative app wiring, however, apps - * that strive for the maximum ease of maintainability should be able to describe - * their state machine with a config object alone. - * - * @generated from message cosmos.app.v1alpha1.Config - */ -export class Config extends Message { - /** - * modules are the module configurations for the app. - * - * @generated from field: repeated cosmos.app.v1alpha1.ModuleConfig modules = 1; - */ - modules: ModuleConfig[] = []; - - /** - * golang_bindings specifies explicit interface to implementation type bindings which - * depinject uses to resolve interface inputs to provider functions. The scope of this - * field's configuration is global (not module specific). - * - * @generated from field: repeated cosmos.app.v1alpha1.GolangBinding golang_bindings = 2; - */ - golangBindings: GolangBinding[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.Config"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "modules", kind: "message", T: ModuleConfig, repeated: true }, - { no: 2, name: "golang_bindings", kind: "message", T: GolangBinding, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Config { - return new Config().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Config { - return new Config().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Config { - return new Config().fromJsonString(jsonString, options); - } - - static equals(a: Config | PlainMessage | undefined, b: Config | PlainMessage | undefined): boolean { - return proto3.util.equals(Config, a, b); - } -} - -/** - * ModuleConfig is a module configuration for an app. - * - * @generated from message cosmos.app.v1alpha1.ModuleConfig - */ -export class ModuleConfig extends Message { - /** - * name is the unique name of the module within the app. It should be a name - * that persists between different versions of a module so that modules - * can be smoothly upgraded to new versions. - * - * For example, for the module cosmos.bank.module.v1.Module, we may chose - * to simply name the module "bank" in the app. When we upgrade to - * cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same - * and the framework knows that the v2 module should receive all the same state - * that the v1 module had. Note: modules should provide info on which versions - * they can migrate from in the ModuleDescriptor.can_migration_from field. - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * config is the config object for the module. Module config messages should - * define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension. - * - * @generated from field: google.protobuf.Any config = 2; - */ - config?: Any; - - /** - * golang_bindings specifies explicit interface to implementation type bindings which - * depinject uses to resolve interface inputs to provider functions. The scope of this - * field's configuration is module specific. - * - * @generated from field: repeated cosmos.app.v1alpha1.GolangBinding golang_bindings = 3; - */ - golangBindings: GolangBinding[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.ModuleConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "config", kind: "message", T: Any }, - { no: 3, name: "golang_bindings", kind: "message", T: GolangBinding, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleConfig { - return new ModuleConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleConfig { - return new ModuleConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleConfig { - return new ModuleConfig().fromJsonString(jsonString, options); - } - - static equals(a: ModuleConfig | PlainMessage | undefined, b: ModuleConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleConfig, a, b); - } -} - -/** - * GolangBinding is an explicit interface type to implementing type binding for dependency injection. - * - * @generated from message cosmos.app.v1alpha1.GolangBinding - */ -export class GolangBinding extends Message { - /** - * interface_type is the interface type which will be bound to a specific implementation type - * - * @generated from field: string interface_type = 1; - */ - interfaceType = ""; - - /** - * implementation is the implementing type which will be supplied when an input of type interface is requested - * - * @generated from field: string implementation = 2; - */ - implementation = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.GolangBinding"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "interface_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "implementation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GolangBinding { - return new GolangBinding().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GolangBinding { - return new GolangBinding().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GolangBinding { - return new GolangBinding().fromJsonString(jsonString, options); - } - - static equals(a: GolangBinding | PlainMessage | undefined, b: GolangBinding | PlainMessage | undefined): boolean { - return proto3.util.equals(GolangBinding, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/app/v1alpha1/module_pb.ts deleted file mode 100644 index 4f767ee..0000000 --- a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/module_pb.ts +++ /dev/null @@ -1,202 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/app/v1alpha1/module.proto (package cosmos.app.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ModuleDescriptor describes an app module. - * - * @generated from message cosmos.app.v1alpha1.ModuleDescriptor - */ -export class ModuleDescriptor extends Message { - /** - * go_import names the package that should be imported by an app to load the - * module in the runtime module registry. It is required to make debugging - * of configuration errors easier for users. - * - * @generated from field: string go_import = 1; - */ - goImport = ""; - - /** - * use_package refers to a protobuf package that this module - * uses and exposes to the world. In an app, only one module should "use" - * or own a single protobuf package. It is assumed that the module uses - * all of the .proto files in a single package. - * - * @generated from field: repeated cosmos.app.v1alpha1.PackageReference use_package = 2; - */ - usePackage: PackageReference[] = []; - - /** - * can_migrate_from defines which module versions this module can migrate - * state from. The framework will check that one module version is able to - * migrate from a previous module version before attempting to update its - * config. It is assumed that modules can transitively migrate from earlier - * versions. For instance if v3 declares it can migrate from v2, and v2 - * declares it can migrate from v1, the framework knows how to migrate - * from v1 to v3, assuming all 3 module versions are registered at runtime. - * - * @generated from field: repeated cosmos.app.v1alpha1.MigrateFromInfo can_migrate_from = 3; - */ - canMigrateFrom: MigrateFromInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.ModuleDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "go_import", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "use_package", kind: "message", T: PackageReference, repeated: true }, - { no: 3, name: "can_migrate_from", kind: "message", T: MigrateFromInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleDescriptor { - return new ModuleDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleDescriptor { - return new ModuleDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleDescriptor { - return new ModuleDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: ModuleDescriptor | PlainMessage | undefined, b: ModuleDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleDescriptor, a, b); - } -} - -/** - * PackageReference is a reference to a protobuf package used by a module. - * - * @generated from message cosmos.app.v1alpha1.PackageReference - */ -export class PackageReference extends Message { - /** - * name is the fully-qualified name of the package. - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * revision is the optional revision of the package that is being used. - * Protobuf packages used in Cosmos should generally have a major version - * as the last part of the package name, ex. foo.bar.baz.v1. - * The revision of a package can be thought of as the minor version of a - * package which has additional backwards compatible definitions that weren't - * present in a previous version. - * - * A package should indicate its revision with a source code comment - * above the package declaration in one of its files containing the - * text "Revision N" where N is an integer revision. All packages start - * at revision 0 the first time they are released in a module. - * - * When a new version of a module is released and items are added to existing - * .proto files, these definitions should contain comments of the form - * "Since: Revision N" where N is an integer revision. - * - * When the module runtime starts up, it will check the pinned proto - * image and panic if there are runtime protobuf definitions that are not - * in the pinned descriptor which do not have - * a "Since Revision N" comment or have a "Since Revision N" comment where - * N is <= to the revision specified here. This indicates that the protobuf - * files have been updated, but the pinned file descriptor hasn't. - * - * If there are items in the pinned file descriptor with a revision - * greater than the value indicated here, this will also cause a panic - * as it may mean that the pinned descriptor for a legacy module has been - * improperly updated or that there is some other versioning discrepancy. - * Runtime protobuf definitions will also be checked for compatibility - * with pinned file descriptors to make sure there are no incompatible changes. - * - * This behavior ensures that: - * * pinned proto images are up-to-date - * * protobuf files are carefully annotated with revision comments which - * are important good client UX - * * protobuf files are changed in backwards and forwards compatible ways - * - * @generated from field: uint32 revision = 2; - */ - revision = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.PackageReference"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "revision", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PackageReference { - return new PackageReference().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PackageReference { - return new PackageReference().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PackageReference { - return new PackageReference().fromJsonString(jsonString, options); - } - - static equals(a: PackageReference | PlainMessage | undefined, b: PackageReference | PlainMessage | undefined): boolean { - return proto3.util.equals(PackageReference, a, b); - } -} - -/** - * MigrateFromInfo is information on a module version that a newer module - * can migrate from. - * - * @generated from message cosmos.app.v1alpha1.MigrateFromInfo - */ -export class MigrateFromInfo extends Message { - /** - * module is the fully-qualified protobuf name of the module config object - * for the previous module version, ex: "cosmos.group.module.v1.Module". - * - * @generated from field: string module = 1; - */ - module = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.MigrateFromInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MigrateFromInfo { - return new MigrateFromInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MigrateFromInfo { - return new MigrateFromInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MigrateFromInfo { - return new MigrateFromInfo().fromJsonString(jsonString, options); - } - - static equals(a: MigrateFromInfo | PlainMessage | undefined, b: MigrateFromInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(MigrateFromInfo, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_cosmes.ts deleted file mode 100644 index a248007..0000000 --- a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_cosmes.ts +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/app/v1alpha1/query.proto (package cosmos.app.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryConfigRequest, QueryConfigResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.app.v1alpha1.Query"; - -/** - * Config returns the current app config. - * - * @generated from rpc cosmos.app.v1alpha1.Query.Config - */ -export const QueryConfigService = { - typeName: TYPE_NAME, - method: "Config", - Request: QueryConfigRequest, - Response: QueryConfigResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_pb.ts deleted file mode 100644 index 739fbcd..0000000 --- a/libs/es-client/src/protobufs/cosmos/app/v1alpha1/query_pb.ts +++ /dev/null @@ -1,83 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/app/v1alpha1/query.proto (package cosmos.app.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Config } from "./config_pb.js"; - -/** - * QueryConfigRequest is the Query/Config request type. - * - * @generated from message cosmos.app.v1alpha1.QueryConfigRequest - */ -export class QueryConfigRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.QueryConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConfigRequest { - return new QueryConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConfigRequest { - return new QueryConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConfigRequest { - return new QueryConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConfigRequest | PlainMessage | undefined, b: QueryConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConfigRequest, a, b); - } -} - -/** - * QueryConfigRequest is the Query/Config response type. - * - * @generated from message cosmos.app.v1alpha1.QueryConfigResponse - */ -export class QueryConfigResponse extends Message { - /** - * config is the current app config. - * - * @generated from field: cosmos.app.v1alpha1.Config config = 1; - */ - config?: Config; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.app.v1alpha1.QueryConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "message", T: Config }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConfigResponse { - return new QueryConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConfigResponse { - return new QueryConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConfigResponse { - return new QueryConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConfigResponse | PlainMessage | undefined, b: QueryConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConfigResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/auth/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/auth/module/v1/module_pb.ts deleted file mode 100644 index a734a92..0000000 --- a/libs/es-client/src/protobufs/cosmos/auth/module/v1/module_pb.ts +++ /dev/null @@ -1,115 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/auth/module/v1/module.proto (package cosmos.auth.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object for the auth module. - * - * @generated from message cosmos.auth.module.v1.Module - */ -export class Module extends Message { - /** - * bech32_prefix is the bech32 account prefix for the app. - * - * @generated from field: string bech32_prefix = 1; - */ - bech32Prefix = ""; - - /** - * module_account_permissions are module account permissions. - * - * @generated from field: repeated cosmos.auth.module.v1.ModuleAccountPermission module_account_permissions = 2; - */ - moduleAccountPermissions: ModuleAccountPermission[] = []; - - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 3; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bech32_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "module_account_permissions", kind: "message", T: ModuleAccountPermission, repeated: true }, - { no: 3, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - -/** - * ModuleAccountPermission represents permissions for a module account. - * - * @generated from message cosmos.auth.module.v1.ModuleAccountPermission - */ -export class ModuleAccountPermission extends Message { - /** - * account is the name of the module. - * - * @generated from field: string account = 1; - */ - account = ""; - - /** - * permissions are the permissions this module has. Currently recognized - * values are minter, burner and staking. - * - * @generated from field: repeated string permissions = 2; - */ - permissions: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.module.v1.ModuleAccountPermission"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccountPermission { - return new ModuleAccountPermission().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccountPermission { - return new ModuleAccountPermission().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleAccountPermission { - return new ModuleAccountPermission().fromJsonString(jsonString, options); - } - - static equals(a: ModuleAccountPermission | PlainMessage | undefined, b: ModuleAccountPermission | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleAccountPermission, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/auth_pb.ts b/libs/es-client/src/protobufs/cosmos/auth/v1beta1/auth_pb.ts deleted file mode 100644 index 7e2d6cc..0000000 --- a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/auth_pb.ts +++ /dev/null @@ -1,233 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/auth/v1beta1/auth.proto (package cosmos.auth.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * BaseAccount defines a base account type. It contains all the necessary fields - * for basic account functionality. Any custom account type should extend this - * type for additional functionality (e.g. vesting). - * - * @generated from message cosmos.auth.v1beta1.BaseAccount - */ -export class BaseAccount extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: google.protobuf.Any pub_key = 2; - */ - pubKey?: Any; - - /** - * @generated from field: uint64 account_number = 3; - */ - accountNumber = protoInt64.zero; - - /** - * @generated from field: uint64 sequence = 4; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.BaseAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pub_key", kind: "message", T: Any }, - { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BaseAccount { - return new BaseAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BaseAccount { - return new BaseAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BaseAccount { - return new BaseAccount().fromJsonString(jsonString, options); - } - - static equals(a: BaseAccount | PlainMessage | undefined, b: BaseAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(BaseAccount, a, b); - } -} - -/** - * ModuleAccount defines an account for modules that holds coins on a pool. - * - * @generated from message cosmos.auth.v1beta1.ModuleAccount - */ -export class ModuleAccount extends Message { - /** - * @generated from field: cosmos.auth.v1beta1.BaseAccount base_account = 1; - */ - baseAccount?: BaseAccount; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: repeated string permissions = 3; - */ - permissions: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.ModuleAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_account", kind: "message", T: BaseAccount }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleAccount { - return new ModuleAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleAccount { - return new ModuleAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleAccount { - return new ModuleAccount().fromJsonString(jsonString, options); - } - - static equals(a: ModuleAccount | PlainMessage | undefined, b: ModuleAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleAccount, a, b); - } -} - -/** - * ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.auth.v1beta1.ModuleCredential - */ -export class ModuleCredential extends Message { - /** - * module_name is the name of the module used for address derivation (passed into address.Module). - * - * @generated from field: string module_name = 1; - */ - moduleName = ""; - - /** - * derivation_keys is for deriving a module account address (passed into address.Module) - * adding more keys creates sub-account addresses (passed into address.Derive) - * - * @generated from field: repeated bytes derivation_keys = 2; - */ - derivationKeys: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.ModuleCredential"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "derivation_keys", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleCredential { - return new ModuleCredential().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleCredential { - return new ModuleCredential().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleCredential { - return new ModuleCredential().fromJsonString(jsonString, options); - } - - static equals(a: ModuleCredential | PlainMessage | undefined, b: ModuleCredential | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleCredential, a, b); - } -} - -/** - * Params defines the parameters for the auth module. - * - * @generated from message cosmos.auth.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: uint64 max_memo_characters = 1; - */ - maxMemoCharacters = protoInt64.zero; - - /** - * @generated from field: uint64 tx_sig_limit = 2; - */ - txSigLimit = protoInt64.zero; - - /** - * @generated from field: uint64 tx_size_cost_per_byte = 3; - */ - txSizeCostPerByte = protoInt64.zero; - - /** - * @generated from field: uint64 sig_verify_cost_ed25519 = 4; - */ - sigVerifyCostEd25519 = protoInt64.zero; - - /** - * @generated from field: uint64 sig_verify_cost_secp256k1 = 5; - */ - sigVerifyCostSecp256k1 = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_memo_characters", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "tx_sig_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "tx_size_cost_per_byte", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "sig_verify_cost_ed25519", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "sig_verify_cost_secp256k1", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/auth/v1beta1/genesis_pb.ts deleted file mode 100644 index 8e09ae0..0000000 --- a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,58 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/auth/v1beta1/genesis.proto (package cosmos.auth.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./auth_pb.js"; - -/** - * GenesisState defines the auth module's genesis state. - * - * @generated from message cosmos.auth.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines all the parameters of the module. - * - * @generated from field: cosmos.auth.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * accounts are the accounts present at genesis. - * - * @generated from field: repeated google.protobuf.Any accounts = 2; - */ - accounts: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "accounts", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_cosmes.ts deleted file mode 100644 index 5c68e08..0000000 --- a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,166 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/auth/v1beta1/query.proto (package cosmos.auth.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - AddressBytesToStringRequest, - AddressBytesToStringResponse, - AddressStringToBytesRequest, - AddressStringToBytesResponse, - Bech32PrefixRequest, - Bech32PrefixResponse, - QueryAccountAddressByIDRequest, - QueryAccountAddressByIDResponse, - QueryAccountInfoRequest, - QueryAccountInfoResponse, - QueryAccountRequest, - QueryAccountResponse, - QueryAccountsRequest, - QueryAccountsResponse, - QueryModuleAccountByNameRequest, - QueryModuleAccountByNameResponse, - QueryModuleAccountsRequest, - QueryModuleAccountsResponse, - QueryParamsRequest, - QueryParamsResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "cosmos.auth.v1beta1.Query"; - -/** - * Accounts returns all the existing accounts. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * Since: cosmos-sdk 0.43 - * - * @generated from rpc cosmos.auth.v1beta1.Query.Accounts - */ -export const QueryAccountsService = { - typeName: TYPE_NAME, - method: "Accounts", - Request: QueryAccountsRequest, - Response: QueryAccountsResponse, -} as const; - -/** - * Account returns account details based on address. - * - * @generated from rpc cosmos.auth.v1beta1.Query.Account - */ -export const QueryAccountService = { - typeName: TYPE_NAME, - method: "Account", - Request: QueryAccountRequest, - Response: QueryAccountResponse, -} as const; - -/** - * AccountAddressByID returns account address based on account number. - * - * Since: cosmos-sdk 0.46.2 - * - * @generated from rpc cosmos.auth.v1beta1.Query.AccountAddressByID - */ -export const QueryAccountAddressByIDService = { - typeName: TYPE_NAME, - method: "AccountAddressByID", - Request: QueryAccountAddressByIDRequest, - Response: QueryAccountAddressByIDResponse, -} as const; - -/** - * Params queries all parameters. - * - * @generated from rpc cosmos.auth.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * ModuleAccounts returns all the existing module accounts. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.auth.v1beta1.Query.ModuleAccounts - */ -export const QueryModuleAccountsService = { - typeName: TYPE_NAME, - method: "ModuleAccounts", - Request: QueryModuleAccountsRequest, - Response: QueryModuleAccountsResponse, -} as const; - -/** - * ModuleAccountByName returns the module account info by module name - * - * @generated from rpc cosmos.auth.v1beta1.Query.ModuleAccountByName - */ -export const QueryModuleAccountByNameService = { - typeName: TYPE_NAME, - method: "ModuleAccountByName", - Request: QueryModuleAccountByNameRequest, - Response: QueryModuleAccountByNameResponse, -} as const; - -/** - * Bech32Prefix queries bech32Prefix - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.auth.v1beta1.Query.Bech32Prefix - */ -export const QueryBech32PrefixService = { - typeName: TYPE_NAME, - method: "Bech32Prefix", - Request: Bech32PrefixRequest, - Response: Bech32PrefixResponse, -} as const; - -/** - * AddressBytesToString converts Account Address bytes to string - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.auth.v1beta1.Query.AddressBytesToString - */ -export const QueryAddressBytesToStringService = { - typeName: TYPE_NAME, - method: "AddressBytesToString", - Request: AddressBytesToStringRequest, - Response: AddressBytesToStringResponse, -} as const; - -/** - * AddressStringToBytes converts Address string to bytes - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.auth.v1beta1.Query.AddressStringToBytes - */ -export const QueryAddressStringToBytesService = { - typeName: TYPE_NAME, - method: "AddressStringToBytes", - Request: AddressStringToBytesRequest, - Response: AddressStringToBytesResponse, -} as const; - -/** - * AccountInfo queries account info which is common to all account types. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.auth.v1beta1.Query.AccountInfo - */ -export const QueryAccountInfoService = { - typeName: TYPE_NAME, - method: "AccountInfo", - Request: QueryAccountInfoRequest, - Response: QueryAccountInfoResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_pb.ts deleted file mode 100644 index 428cd2c..0000000 --- a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/query_pb.ts +++ /dev/null @@ -1,839 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/auth/v1beta1/query.proto (package cosmos.auth.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; -import { BaseAccount, Params } from "./auth_pb.js"; - -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.auth.v1beta1.QueryAccountsRequest - */ -export class QueryAccountsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsRequest { - return new QueryAccountsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsRequest { - return new QueryAccountsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountsRequest { - return new QueryAccountsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountsRequest | PlainMessage | undefined, b: QueryAccountsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountsRequest, a, b); - } -} - -/** - * QueryAccountsResponse is the response type for the Query/Accounts RPC method. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.auth.v1beta1.QueryAccountsResponse - */ -export class QueryAccountsResponse extends Message { - /** - * accounts are the existing accounts - * - * @generated from field: repeated google.protobuf.Any accounts = 1; - */ - accounts: Any[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accounts", kind: "message", T: Any, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsResponse { - return new QueryAccountsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsResponse { - return new QueryAccountsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountsResponse { - return new QueryAccountsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountsResponse | PlainMessage | undefined, b: QueryAccountsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountsResponse, a, b); - } -} - -/** - * QueryAccountRequest is the request type for the Query/Account RPC method. - * - * @generated from message cosmos.auth.v1beta1.QueryAccountRequest - */ -export class QueryAccountRequest extends Message { - /** - * address defines the address to query for. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountRequest, a, b); - } -} - -/** - * QueryAccountResponse is the response type for the Query/Account RPC method. - * - * @generated from message cosmos.auth.v1beta1.QueryAccountResponse - */ -export class QueryAccountResponse extends Message { - /** - * account defines the account of the corresponding address. - * - * @generated from field: google.protobuf.Any account = 1; - */ - account?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountResponse { - return new QueryAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountResponse { - return new QueryAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountResponse { - return new QueryAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountResponse | PlainMessage | undefined, b: QueryAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountResponse, a, b); - } -} - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message cosmos.auth.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message cosmos.auth.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: cosmos.auth.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.QueryModuleAccountsRequest - */ -export class QueryModuleAccountsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryModuleAccountsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleAccountsRequest { - return new QueryModuleAccountsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleAccountsRequest { - return new QueryModuleAccountsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryModuleAccountsRequest { - return new QueryModuleAccountsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryModuleAccountsRequest | PlainMessage | undefined, b: QueryModuleAccountsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryModuleAccountsRequest, a, b); - } -} - -/** - * QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.QueryModuleAccountsResponse - */ -export class QueryModuleAccountsResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Any accounts = 1; - */ - accounts: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryModuleAccountsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accounts", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleAccountsResponse { - return new QueryModuleAccountsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleAccountsResponse { - return new QueryModuleAccountsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryModuleAccountsResponse { - return new QueryModuleAccountsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryModuleAccountsResponse | PlainMessage | undefined, b: QueryModuleAccountsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryModuleAccountsResponse, a, b); - } -} - -/** - * QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. - * - * @generated from message cosmos.auth.v1beta1.QueryModuleAccountByNameRequest - */ -export class QueryModuleAccountByNameRequest extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryModuleAccountByNameRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleAccountByNameRequest { - return new QueryModuleAccountByNameRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleAccountByNameRequest { - return new QueryModuleAccountByNameRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryModuleAccountByNameRequest { - return new QueryModuleAccountByNameRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryModuleAccountByNameRequest | PlainMessage | undefined, b: QueryModuleAccountByNameRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryModuleAccountByNameRequest, a, b); - } -} - -/** - * QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. - * - * @generated from message cosmos.auth.v1beta1.QueryModuleAccountByNameResponse - */ -export class QueryModuleAccountByNameResponse extends Message { - /** - * @generated from field: google.protobuf.Any account = 1; - */ - account?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryModuleAccountByNameResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleAccountByNameResponse { - return new QueryModuleAccountByNameResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleAccountByNameResponse { - return new QueryModuleAccountByNameResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryModuleAccountByNameResponse { - return new QueryModuleAccountByNameResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryModuleAccountByNameResponse | PlainMessage | undefined, b: QueryModuleAccountByNameResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryModuleAccountByNameResponse, a, b); - } -} - -/** - * Bech32PrefixRequest is the request type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.Bech32PrefixRequest - */ -export class Bech32PrefixRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.Bech32PrefixRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Bech32PrefixRequest { - return new Bech32PrefixRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Bech32PrefixRequest { - return new Bech32PrefixRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Bech32PrefixRequest { - return new Bech32PrefixRequest().fromJsonString(jsonString, options); - } - - static equals(a: Bech32PrefixRequest | PlainMessage | undefined, b: Bech32PrefixRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(Bech32PrefixRequest, a, b); - } -} - -/** - * Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.Bech32PrefixResponse - */ -export class Bech32PrefixResponse extends Message { - /** - * @generated from field: string bech32_prefix = 1; - */ - bech32Prefix = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.Bech32PrefixResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bech32_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Bech32PrefixResponse { - return new Bech32PrefixResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Bech32PrefixResponse { - return new Bech32PrefixResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Bech32PrefixResponse { - return new Bech32PrefixResponse().fromJsonString(jsonString, options); - } - - static equals(a: Bech32PrefixResponse | PlainMessage | undefined, b: Bech32PrefixResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(Bech32PrefixResponse, a, b); - } -} - -/** - * AddressBytesToStringRequest is the request type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.AddressBytesToStringRequest - */ -export class AddressBytesToStringRequest extends Message { - /** - * @generated from field: bytes address_bytes = 1; - */ - addressBytes = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.AddressBytesToStringRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressBytesToStringRequest { - return new AddressBytesToStringRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressBytesToStringRequest { - return new AddressBytesToStringRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AddressBytesToStringRequest { - return new AddressBytesToStringRequest().fromJsonString(jsonString, options); - } - - static equals(a: AddressBytesToStringRequest | PlainMessage | undefined, b: AddressBytesToStringRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AddressBytesToStringRequest, a, b); - } -} - -/** - * AddressBytesToStringResponse is the response type for AddressString rpc method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.AddressBytesToStringResponse - */ -export class AddressBytesToStringResponse extends Message { - /** - * @generated from field: string address_string = 1; - */ - addressString = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.AddressBytesToStringResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address_string", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressBytesToStringResponse { - return new AddressBytesToStringResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressBytesToStringResponse { - return new AddressBytesToStringResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AddressBytesToStringResponse { - return new AddressBytesToStringResponse().fromJsonString(jsonString, options); - } - - static equals(a: AddressBytesToStringResponse | PlainMessage | undefined, b: AddressBytesToStringResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AddressBytesToStringResponse, a, b); - } -} - -/** - * AddressStringToBytesRequest is the request type for AccountBytes rpc method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.AddressStringToBytesRequest - */ -export class AddressStringToBytesRequest extends Message { - /** - * @generated from field: string address_string = 1; - */ - addressString = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.AddressStringToBytesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address_string", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressStringToBytesRequest { - return new AddressStringToBytesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressStringToBytesRequest { - return new AddressStringToBytesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AddressStringToBytesRequest { - return new AddressStringToBytesRequest().fromJsonString(jsonString, options); - } - - static equals(a: AddressStringToBytesRequest | PlainMessage | undefined, b: AddressStringToBytesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AddressStringToBytesRequest, a, b); - } -} - -/** - * AddressStringToBytesResponse is the response type for AddressBytes rpc method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.auth.v1beta1.AddressStringToBytesResponse - */ -export class AddressStringToBytesResponse extends Message { - /** - * @generated from field: bytes address_bytes = 1; - */ - addressBytes = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.AddressStringToBytesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressStringToBytesResponse { - return new AddressStringToBytesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressStringToBytesResponse { - return new AddressStringToBytesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AddressStringToBytesResponse { - return new AddressStringToBytesResponse().fromJsonString(jsonString, options); - } - - static equals(a: AddressStringToBytesResponse | PlainMessage | undefined, b: AddressStringToBytesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AddressStringToBytesResponse, a, b); - } -} - -/** - * QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - * - * @generated from message cosmos.auth.v1beta1.QueryAccountAddressByIDRequest - */ -export class QueryAccountAddressByIDRequest extends Message { - /** - * Deprecated, use account_id instead - * - * id is the account number of the address to be queried. This field - * should have been an uint64 (like all account numbers), and will be - * updated to uint64 in a future version of the auth query. - * - * @generated from field: int64 id = 1 [deprecated = true]; - * @deprecated - */ - id = protoInt64.zero; - - /** - * account_id is the account number of the address to be queried. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: uint64 account_id = 2; - */ - accountId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountAddressByIDRequest { - return new QueryAccountAddressByIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountAddressByIDRequest { - return new QueryAccountAddressByIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountAddressByIDRequest { - return new QueryAccountAddressByIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountAddressByIDRequest | PlainMessage | undefined, b: QueryAccountAddressByIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountAddressByIDRequest, a, b); - } -} - -/** - * QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method - * - * Since: cosmos-sdk 0.46.2 - * - * @generated from message cosmos.auth.v1beta1.QueryAccountAddressByIDResponse - */ -export class QueryAccountAddressByIDResponse extends Message { - /** - * @generated from field: string account_address = 1; - */ - accountAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountAddressByIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountAddressByIDResponse { - return new QueryAccountAddressByIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountAddressByIDResponse { - return new QueryAccountAddressByIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountAddressByIDResponse { - return new QueryAccountAddressByIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountAddressByIDResponse | PlainMessage | undefined, b: QueryAccountAddressByIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountAddressByIDResponse, a, b); - } -} - -/** - * QueryAccountInfoRequest is the Query/AccountInfo request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.auth.v1beta1.QueryAccountInfoRequest - */ -export class QueryAccountInfoRequest extends Message { - /** - * address is the account address string. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountInfoRequest { - return new QueryAccountInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountInfoRequest { - return new QueryAccountInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountInfoRequest { - return new QueryAccountInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountInfoRequest | PlainMessage | undefined, b: QueryAccountInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountInfoRequest, a, b); - } -} - -/** - * QueryAccountInfoResponse is the Query/AccountInfo response type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.auth.v1beta1.QueryAccountInfoResponse - */ -export class QueryAccountInfoResponse extends Message { - /** - * info is the account info which is represented by BaseAccount. - * - * @generated from field: cosmos.auth.v1beta1.BaseAccount info = 1; - */ - info?: BaseAccount; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.QueryAccountInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "info", kind: "message", T: BaseAccount }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountInfoResponse { - return new QueryAccountInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountInfoResponse { - return new QueryAccountInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountInfoResponse { - return new QueryAccountInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountInfoResponse | PlainMessage | undefined, b: QueryAccountInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountInfoResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_cosmes.ts deleted file mode 100644 index a7fb304..0000000 --- a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,23 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/auth/v1beta1/tx.proto (package cosmos.auth.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.auth.v1beta1.Msg"; - -/** - * UpdateParams defines a (governance) operation for updating the x/auth module - * parameters. The authority defaults to the x/gov module account. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.auth.v1beta1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_pb.ts deleted file mode 100644 index bc6c636..0000000 --- a/libs/es-client/src/protobufs/cosmos/auth/v1beta1/tx_pb.ts +++ /dev/null @@ -1,98 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/auth/v1beta1/tx.proto (package cosmos.auth.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./auth_pb.js"; - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.auth.v1beta1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/auth parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmos.auth.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.auth.v1beta1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.auth.v1beta1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/authz/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/authz/module/v1/module_pb.ts deleted file mode 100644 index f3b2f57..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/module/v1/module_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/authz/module/v1/module.proto (package cosmos.authz.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the authz module. - * - * @generated from message cosmos.authz.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/authz_pb.ts b/libs/es-client/src/protobufs/cosmos/authz/v1beta1/authz_pb.ts deleted file mode 100644 index d6db240..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/authz_pb.ts +++ /dev/null @@ -1,201 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/authz/v1beta1/authz.proto (package cosmos.authz.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, Timestamp } from "@bufbuild/protobuf"; - -/** - * GenericAuthorization gives the grantee unrestricted permissions to execute - * the provided method on behalf of the granter's account. - * - * @generated from message cosmos.authz.v1beta1.GenericAuthorization - */ -export class GenericAuthorization extends Message { - /** - * Msg, identified by it's type URL, to grant unrestricted permissions to execute - * - * @generated from field: string msg = 1; - */ - msg = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.GenericAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenericAuthorization { - return new GenericAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenericAuthorization { - return new GenericAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenericAuthorization { - return new GenericAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: GenericAuthorization | PlainMessage | undefined, b: GenericAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(GenericAuthorization, a, b); - } -} - -/** - * Grant gives permissions to execute - * the provide method with expiration time. - * - * @generated from message cosmos.authz.v1beta1.Grant - */ -export class Grant extends Message { - /** - * @generated from field: google.protobuf.Any authorization = 1; - */ - authorization?: Any; - - /** - * time when the grant will expire and will be pruned. If null, then the grant - * doesn't have a time expiration (other conditions in `authorization` - * may apply to invalidate the grant) - * - * @generated from field: google.protobuf.Timestamp expiration = 2; - */ - expiration?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.Grant"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authorization", kind: "message", T: Any }, - { no: 2, name: "expiration", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Grant { - return new Grant().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Grant { - return new Grant().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Grant { - return new Grant().fromJsonString(jsonString, options); - } - - static equals(a: Grant | PlainMessage | undefined, b: Grant | PlainMessage | undefined): boolean { - return proto3.util.equals(Grant, a, b); - } -} - -/** - * GrantAuthorization extends a grant with both the addresses of the grantee and granter. - * It is used in genesis.proto and query.proto - * - * @generated from message cosmos.authz.v1beta1.GrantAuthorization - */ -export class GrantAuthorization extends Message { - /** - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * @generated from field: string grantee = 2; - */ - grantee = ""; - - /** - * @generated from field: google.protobuf.Any authorization = 3; - */ - authorization?: Any; - - /** - * @generated from field: google.protobuf.Timestamp expiration = 4; - */ - expiration?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.GrantAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "authorization", kind: "message", T: Any }, - { no: 4, name: "expiration", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GrantAuthorization { - return new GrantAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GrantAuthorization { - return new GrantAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GrantAuthorization { - return new GrantAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: GrantAuthorization | PlainMessage | undefined, b: GrantAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(GrantAuthorization, a, b); - } -} - -/** - * GrantQueueItem contains the list of TypeURL of a sdk.Msg. - * - * @generated from message cosmos.authz.v1beta1.GrantQueueItem - */ -export class GrantQueueItem extends Message { - /** - * msg_type_urls contains the list of TypeURL of a sdk.Msg. - * - * @generated from field: repeated string msg_type_urls = 1; - */ - msgTypeUrls: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.GrantQueueItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GrantQueueItem { - return new GrantQueueItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GrantQueueItem { - return new GrantQueueItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GrantQueueItem { - return new GrantQueueItem().fromJsonString(jsonString, options); - } - - static equals(a: GrantQueueItem | PlainMessage | undefined, b: GrantQueueItem | PlainMessage | undefined): boolean { - return proto3.util.equals(GrantQueueItem, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/event_pb.ts b/libs/es-client/src/protobufs/cosmos/authz/v1beta1/event_pb.ts deleted file mode 100644 index ddb9e1f..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/event_pb.ts +++ /dev/null @@ -1,124 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/authz/v1beta1/event.proto (package cosmos.authz.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * EventGrant is emitted on Msg/Grant - * - * @generated from message cosmos.authz.v1beta1.EventGrant - */ -export class EventGrant extends Message { - /** - * Msg type URL for which an autorization is granted - * - * @generated from field: string msg_type_url = 2; - */ - msgTypeUrl = ""; - - /** - * Granter account address - * - * @generated from field: string granter = 3; - */ - granter = ""; - - /** - * Grantee account address - * - * @generated from field: string grantee = 4; - */ - grantee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.EventGrant"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventGrant { - return new EventGrant().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventGrant { - return new EventGrant().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventGrant { - return new EventGrant().fromJsonString(jsonString, options); - } - - static equals(a: EventGrant | PlainMessage | undefined, b: EventGrant | PlainMessage | undefined): boolean { - return proto3.util.equals(EventGrant, a, b); - } -} - -/** - * EventRevoke is emitted on Msg/Revoke - * - * @generated from message cosmos.authz.v1beta1.EventRevoke - */ -export class EventRevoke extends Message { - /** - * Msg type URL for which an autorization is revoked - * - * @generated from field: string msg_type_url = 2; - */ - msgTypeUrl = ""; - - /** - * Granter account address - * - * @generated from field: string granter = 3; - */ - granter = ""; - - /** - * Grantee account address - * - * @generated from field: string grantee = 4; - */ - grantee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.EventRevoke"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventRevoke { - return new EventRevoke().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventRevoke { - return new EventRevoke().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventRevoke { - return new EventRevoke().fromJsonString(jsonString, options); - } - - static equals(a: EventRevoke | PlainMessage | undefined, b: EventRevoke | PlainMessage | undefined): boolean { - return proto3.util.equals(EventRevoke, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/authz/v1beta1/genesis_pb.ts deleted file mode 100644 index d445510..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/authz/v1beta1/genesis.proto (package cosmos.authz.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { GrantAuthorization } from "./authz_pb.js"; - -/** - * GenesisState defines the authz module's genesis state. - * - * @generated from message cosmos.authz.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated cosmos.authz.v1beta1.GrantAuthorization authorization = 1; - */ - authorization: GrantAuthorization[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authorization", kind: "message", T: GrantAuthorization, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_cosmes.ts deleted file mode 100644 index 179ba7b..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/authz/v1beta1/query.proto (package cosmos.authz.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryGranteeGrantsRequest, QueryGranteeGrantsResponse, QueryGranterGrantsRequest, QueryGranterGrantsResponse, QueryGrantsRequest, QueryGrantsResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.authz.v1beta1.Query"; - -/** - * Returns list of `Authorization`, granted to the grantee by the granter. - * - * @generated from rpc cosmos.authz.v1beta1.Query.Grants - */ -export const QueryGrantsService = { - typeName: TYPE_NAME, - method: "Grants", - Request: QueryGrantsRequest, - Response: QueryGrantsResponse, -} as const; - -/** - * GranterGrants returns list of `GrantAuthorization`, granted by granter. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.authz.v1beta1.Query.GranterGrants - */ -export const QueryGranterGrantsService = { - typeName: TYPE_NAME, - method: "GranterGrants", - Request: QueryGranterGrantsRequest, - Response: QueryGranterGrantsResponse, -} as const; - -/** - * GranteeGrants returns a list of `GrantAuthorization` by grantee. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.authz.v1beta1.Query.GranteeGrants - */ -export const QueryGranteeGrantsService = { - typeName: TYPE_NAME, - method: "GranteeGrants", - Request: QueryGranteeGrantsRequest, - Response: QueryGranteeGrantsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_pb.ts deleted file mode 100644 index 5b3e7b6..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/query_pb.ts +++ /dev/null @@ -1,314 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/authz/v1beta1/query.proto (package cosmos.authz.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; -import { Grant, GrantAuthorization } from "./authz_pb.js"; - -/** - * QueryGrantsRequest is the request type for the Query/Grants RPC method. - * - * @generated from message cosmos.authz.v1beta1.QueryGrantsRequest - */ -export class QueryGrantsRequest extends Message { - /** - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * @generated from field: string grantee = 2; - */ - grantee = ""; - - /** - * Optional, msg_type_url, when set, will query only grants matching given msg type. - * - * @generated from field: string msg_type_url = 3; - */ - msgTypeUrl = ""; - - /** - * pagination defines an pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.QueryGrantsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantsRequest { - return new QueryGrantsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantsRequest { - return new QueryGrantsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGrantsRequest { - return new QueryGrantsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGrantsRequest | PlainMessage | undefined, b: QueryGrantsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGrantsRequest, a, b); - } -} - -/** - * QueryGrantsResponse is the response type for the Query/Authorizations RPC method. - * - * @generated from message cosmos.authz.v1beta1.QueryGrantsResponse - */ -export class QueryGrantsResponse extends Message { - /** - * authorizations is a list of grants granted for grantee by granter. - * - * @generated from field: repeated cosmos.authz.v1beta1.Grant grants = 1; - */ - grants: Grant[] = []; - - /** - * pagination defines an pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.QueryGrantsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grants", kind: "message", T: Grant, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGrantsResponse { - return new QueryGrantsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGrantsResponse { - return new QueryGrantsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGrantsResponse { - return new QueryGrantsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGrantsResponse | PlainMessage | undefined, b: QueryGrantsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGrantsResponse, a, b); - } -} - -/** - * QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method. - * - * @generated from message cosmos.authz.v1beta1.QueryGranterGrantsRequest - */ -export class QueryGranterGrantsRequest extends Message { - /** - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * pagination defines an pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.QueryGranterGrantsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGranterGrantsRequest { - return new QueryGranterGrantsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGranterGrantsRequest { - return new QueryGranterGrantsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGranterGrantsRequest { - return new QueryGranterGrantsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGranterGrantsRequest | PlainMessage | undefined, b: QueryGranterGrantsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGranterGrantsRequest, a, b); - } -} - -/** - * QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method. - * - * @generated from message cosmos.authz.v1beta1.QueryGranterGrantsResponse - */ -export class QueryGranterGrantsResponse extends Message { - /** - * grants is a list of grants granted by the granter. - * - * @generated from field: repeated cosmos.authz.v1beta1.GrantAuthorization grants = 1; - */ - grants: GrantAuthorization[] = []; - - /** - * pagination defines an pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.QueryGranterGrantsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGranterGrantsResponse { - return new QueryGranterGrantsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGranterGrantsResponse { - return new QueryGranterGrantsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGranterGrantsResponse { - return new QueryGranterGrantsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGranterGrantsResponse | PlainMessage | undefined, b: QueryGranterGrantsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGranterGrantsResponse, a, b); - } -} - -/** - * QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method. - * - * @generated from message cosmos.authz.v1beta1.QueryGranteeGrantsRequest - */ -export class QueryGranteeGrantsRequest extends Message { - /** - * @generated from field: string grantee = 1; - */ - grantee = ""; - - /** - * pagination defines an pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.QueryGranteeGrantsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGranteeGrantsRequest { - return new QueryGranteeGrantsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGranteeGrantsRequest { - return new QueryGranteeGrantsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGranteeGrantsRequest { - return new QueryGranteeGrantsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGranteeGrantsRequest | PlainMessage | undefined, b: QueryGranteeGrantsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGranteeGrantsRequest, a, b); - } -} - -/** - * QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method. - * - * @generated from message cosmos.authz.v1beta1.QueryGranteeGrantsResponse - */ -export class QueryGranteeGrantsResponse extends Message { - /** - * grants is a list of grants granted to the grantee. - * - * @generated from field: repeated cosmos.authz.v1beta1.GrantAuthorization grants = 1; - */ - grants: GrantAuthorization[] = []; - - /** - * pagination defines an pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.QueryGranteeGrantsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grants", kind: "message", T: GrantAuthorization, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGranteeGrantsResponse { - return new QueryGranteeGrantsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGranteeGrantsResponse { - return new QueryGranteeGrantsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGranteeGrantsResponse { - return new QueryGranteeGrantsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGranteeGrantsResponse | PlainMessage | undefined, b: QueryGranteeGrantsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGranteeGrantsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_cosmes.ts deleted file mode 100644 index 4b24484..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,53 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/authz/v1beta1/tx.proto (package cosmos.authz.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgExec, MsgExecResponse, MsgGrant, MsgGrantResponse, MsgRevoke, MsgRevokeResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.authz.v1beta1.Msg"; - -/** - * Grant grants the provided authorization to the grantee on the granter's - * account with the provided expiration time. If there is already a grant - * for the given (granter, grantee, Authorization) triple, then the grant - * will be overwritten. - * - * @generated from rpc cosmos.authz.v1beta1.Msg.Grant - */ -export const MsgGrantService = { - typeName: TYPE_NAME, - method: "Grant", - Request: MsgGrant, - Response: MsgGrantResponse, -} as const; - -/** - * Exec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - * - * @generated from rpc cosmos.authz.v1beta1.Msg.Exec - */ -export const MsgExecService = { - typeName: TYPE_NAME, - method: "Exec", - Request: MsgExec, - Response: MsgExecResponse, -} as const; - -/** - * Revoke revokes any authorization corresponding to the provided method name on the - * granter's account that has been granted to the grantee. - * - * @generated from rpc cosmos.authz.v1beta1.Msg.Revoke - */ -export const MsgRevokeService = { - typeName: TYPE_NAME, - method: "Revoke", - Request: MsgRevoke, - Response: MsgRevokeResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_pb.ts deleted file mode 100644 index b83574d..0000000 --- a/libs/es-client/src/protobufs/cosmos/authz/v1beta1/tx_pb.ts +++ /dev/null @@ -1,271 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/authz/v1beta1/tx.proto (package cosmos.authz.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; -import { Grant } from "./authz_pb.js"; - -/** - * MsgGrant is a request type for Grant method. It declares authorization to the grantee - * on behalf of the granter with the provided expiration time. - * - * @generated from message cosmos.authz.v1beta1.MsgGrant - */ -export class MsgGrant extends Message { - /** - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * @generated from field: string grantee = 2; - */ - grantee = ""; - - /** - * @generated from field: cosmos.authz.v1beta1.Grant grant = 3; - */ - grant?: Grant; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgGrant"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "grant", kind: "message", T: Grant }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrant { - return new MsgGrant().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrant { - return new MsgGrant().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgGrant { - return new MsgGrant().fromJsonString(jsonString, options); - } - - static equals(a: MsgGrant | PlainMessage | undefined, b: MsgGrant | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgGrant, a, b); - } -} - -/** - * MsgGrantResponse defines the Msg/MsgGrant response type. - * - * @generated from message cosmos.authz.v1beta1.MsgGrantResponse - */ -export class MsgGrantResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgGrantResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgGrantResponse { - return new MsgGrantResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgGrantResponse | PlainMessage | undefined, b: MsgGrantResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgGrantResponse, a, b); - } -} - -/** - * MsgExec attempts to execute the provided messages using - * authorizations granted to the grantee. Each message should have only - * one signer corresponding to the granter of the authorization. - * - * @generated from message cosmos.authz.v1beta1.MsgExec - */ -export class MsgExec extends Message { - /** - * @generated from field: string grantee = 1; - */ - grantee = ""; - - /** - * Execute Msg. - * The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) - * triple and validate it. - * - * @generated from field: repeated google.protobuf.Any msgs = 2; - */ - msgs: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgExec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "msgs", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExec { - return new MsgExec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExec { - return new MsgExec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExec { - return new MsgExec().fromJsonString(jsonString, options); - } - - static equals(a: MsgExec | PlainMessage | undefined, b: MsgExec | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExec, a, b); - } -} - -/** - * MsgExecResponse defines the Msg/MsgExecResponse response type. - * - * @generated from message cosmos.authz.v1beta1.MsgExecResponse - */ -export class MsgExecResponse extends Message { - /** - * @generated from field: repeated bytes results = 1; - */ - results: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgExecResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "results", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecResponse | PlainMessage | undefined, b: MsgExecResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecResponse, a, b); - } -} - -/** - * MsgRevoke revokes any authorization with the provided sdk.Msg type on the - * granter's account with that has been granted to the grantee. - * - * @generated from message cosmos.authz.v1beta1.MsgRevoke - */ -export class MsgRevoke extends Message { - /** - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * @generated from field: string grantee = 2; - */ - grantee = ""; - - /** - * @generated from field: string msg_type_url = 3; - */ - msgTypeUrl = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgRevoke"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevoke { - return new MsgRevoke().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevoke { - return new MsgRevoke().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRevoke { - return new MsgRevoke().fromJsonString(jsonString, options); - } - - static equals(a: MsgRevoke | PlainMessage | undefined, b: MsgRevoke | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRevoke, a, b); - } -} - -/** - * MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. - * - * @generated from message cosmos.authz.v1beta1.MsgRevokeResponse - */ -export class MsgRevokeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.authz.v1beta1.MsgRevokeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeResponse { - return new MsgRevokeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeResponse { - return new MsgRevokeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRevokeResponse { - return new MsgRevokeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRevokeResponse | PlainMessage | undefined, b: MsgRevokeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRevokeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/autocli/v1/options_pb.ts b/libs/es-client/src/protobufs/cosmos/autocli/v1/options_pb.ts deleted file mode 100644 index 78382f7..0000000 --- a/libs/es-client/src/protobufs/cosmos/autocli/v1/options_pb.ts +++ /dev/null @@ -1,405 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/autocli/v1/options.proto (package cosmos.autocli.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ModuleOptions describes the CLI options for a Cosmos SDK module. - * - * @generated from message cosmos.autocli.v1.ModuleOptions - */ -export class ModuleOptions extends Message { - /** - * tx describes the tx commands for the module. - * - * @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor tx = 1; - */ - tx?: ServiceCommandDescriptor; - - /** - * query describes the queries commands for the module. - * - * @generated from field: cosmos.autocli.v1.ServiceCommandDescriptor query = 2; - */ - query?: ServiceCommandDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.autocli.v1.ModuleOptions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "message", T: ServiceCommandDescriptor }, - { no: 2, name: "query", kind: "message", T: ServiceCommandDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleOptions { - return new ModuleOptions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleOptions { - return new ModuleOptions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleOptions { - return new ModuleOptions().fromJsonString(jsonString, options); - } - - static equals(a: ModuleOptions | PlainMessage | undefined, b: ModuleOptions | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleOptions, a, b); - } -} - -/** - * ServiceCommandDescriptor describes a CLI command based on a protobuf service. - * - * @generated from message cosmos.autocli.v1.ServiceCommandDescriptor - */ -export class ServiceCommandDescriptor extends Message { - /** - * service is the fully qualified name of the protobuf service to build - * the command from. It can be left empty if sub_commands are used instead - * which may be the case if a module provides multiple tx and/or query services. - * - * @generated from field: string service = 1; - */ - service = ""; - - /** - * rpc_command_options are options for commands generated from rpc methods. - * If no options are specified for a given rpc method on the service, a - * command will be generated for that method with the default options. - * - * @generated from field: repeated cosmos.autocli.v1.RpcCommandOptions rpc_command_options = 2; - */ - rpcCommandOptions: RpcCommandOptions[] = []; - - /** - * sub_commands is a map of optional sub-commands for this command based on - * different protobuf services. The map key is used as the name of the - * sub-command. - * - * @generated from field: map sub_commands = 3; - */ - subCommands: { [key: string]: ServiceCommandDescriptor } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.autocli.v1.ServiceCommandDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "rpc_command_options", kind: "message", T: RpcCommandOptions, repeated: true }, - { no: 3, name: "sub_commands", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ServiceCommandDescriptor} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServiceCommandDescriptor { - return new ServiceCommandDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServiceCommandDescriptor { - return new ServiceCommandDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServiceCommandDescriptor { - return new ServiceCommandDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: ServiceCommandDescriptor | PlainMessage | undefined, b: ServiceCommandDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(ServiceCommandDescriptor, a, b); - } -} - -/** - * RpcCommandOptions specifies options for commands generated from protobuf - * rpc methods. - * - * @generated from message cosmos.autocli.v1.RpcCommandOptions - */ -export class RpcCommandOptions extends Message { - /** - * rpc_method is short name of the protobuf rpc method that this command is - * generated from. - * - * @generated from field: string rpc_method = 1; - */ - rpcMethod = ""; - - /** - * use is the one-line usage method. It also allows specifying an alternate - * name for the command as the first word of the usage text. - * - * By default the name of an rpc command is the kebab-case short name of the - * rpc method. - * - * @generated from field: string use = 2; - */ - use = ""; - - /** - * long is the long message shown in the 'help ' output. - * - * @generated from field: string long = 3; - */ - long = ""; - - /** - * short is the short description shown in the 'help' output. - * - * @generated from field: string short = 4; - */ - short = ""; - - /** - * example is examples of how to use the command. - * - * @generated from field: string example = 5; - */ - example = ""; - - /** - * alias is an array of aliases that can be used instead of the first word in Use. - * - * @generated from field: repeated string alias = 6; - */ - alias: string[] = []; - - /** - * suggest_for is an array of command names for which this command will be suggested - - * similar to aliases but only suggests. - * - * @generated from field: repeated string suggest_for = 7; - */ - suggestFor: string[] = []; - - /** - * deprecated defines, if this command is deprecated and should print this string when used. - * - * @generated from field: string deprecated = 8; - */ - deprecated = ""; - - /** - * version defines the version for this command. If this value is non-empty and the command does not - * define a "version" flag, a "version" boolean flag will be added to the command and, if specified, - * will print content of the "Version" variable. A shorthand "v" flag will also be added if the - * command does not define one. - * - * @generated from field: string version = 9; - */ - version = ""; - - /** - * flag_options are options for flags generated from rpc request fields. - * By default all request fields are configured as flags. They can - * also be configured as positional args instead using positional_args. - * - * @generated from field: map flag_options = 10; - */ - flagOptions: { [key: string]: FlagOptions } = {}; - - /** - * positional_args specifies positional arguments for the command. - * - * @generated from field: repeated cosmos.autocli.v1.PositionalArgDescriptor positional_args = 11; - */ - positionalArgs: PositionalArgDescriptor[] = []; - - /** - * skip specifies whether to skip this rpc method when generating commands. - * - * @generated from field: bool skip = 12; - */ - skip = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.autocli.v1.RpcCommandOptions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rpc_method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "use", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "long", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "short", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "example", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "alias", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 7, name: "suggest_for", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 8, name: "deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "flag_options", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: FlagOptions} }, - { no: 11, name: "positional_args", kind: "message", T: PositionalArgDescriptor, repeated: true }, - { no: 12, name: "skip", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RpcCommandOptions { - return new RpcCommandOptions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RpcCommandOptions { - return new RpcCommandOptions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RpcCommandOptions { - return new RpcCommandOptions().fromJsonString(jsonString, options); - } - - static equals(a: RpcCommandOptions | PlainMessage | undefined, b: RpcCommandOptions | PlainMessage | undefined): boolean { - return proto3.util.equals(RpcCommandOptions, a, b); - } -} - -/** - * FlagOptions are options for flags generated from rpc request fields. - * By default, all request fields are configured as flags based on the - * kebab-case name of the field. Fields can be turned into positional arguments - * instead by using RpcCommandOptions.positional_args. - * - * @generated from message cosmos.autocli.v1.FlagOptions - */ -export class FlagOptions extends Message { - /** - * name is an alternate name to use for the field flag. - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * shorthand is a one-letter abbreviated flag. - * - * @generated from field: string shorthand = 2; - */ - shorthand = ""; - - /** - * usage is the help message. - * - * @generated from field: string usage = 3; - */ - usage = ""; - - /** - * default_value is the default value as text. - * - * @generated from field: string default_value = 4; - */ - defaultValue = ""; - - /** - * deprecated is the usage text to show if this flag is deprecated. - * - * @generated from field: string deprecated = 6; - */ - deprecated = ""; - - /** - * shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated. - * - * @generated from field: string shorthand_deprecated = 7; - */ - shorthandDeprecated = ""; - - /** - * hidden hides the flag from help/usage text - * - * @generated from field: bool hidden = 8; - */ - hidden = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.autocli.v1.FlagOptions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "shorthand", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "usage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "shorthand_deprecated", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FlagOptions { - return new FlagOptions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FlagOptions { - return new FlagOptions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FlagOptions { - return new FlagOptions().fromJsonString(jsonString, options); - } - - static equals(a: FlagOptions | PlainMessage | undefined, b: FlagOptions | PlainMessage | undefined): boolean { - return proto3.util.equals(FlagOptions, a, b); - } -} - -/** - * PositionalArgDescriptor describes a positional argument. - * - * @generated from message cosmos.autocli.v1.PositionalArgDescriptor - */ -export class PositionalArgDescriptor extends Message { - /** - * proto_field specifies the proto field to use as the positional arg. Any - * fields used as positional args will not have a flag generated. - * - * @generated from field: string proto_field = 1; - */ - protoField = ""; - - /** - * varargs makes a positional parameter a varargs parameter. This can only be - * applied to last positional parameter and the proto_field must a repeated - * field. - * - * @generated from field: bool varargs = 2; - */ - varargs = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.autocli.v1.PositionalArgDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proto_field", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "varargs", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PositionalArgDescriptor { - return new PositionalArgDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PositionalArgDescriptor { - return new PositionalArgDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PositionalArgDescriptor { - return new PositionalArgDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: PositionalArgDescriptor | PlainMessage | undefined, b: PositionalArgDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(PositionalArgDescriptor, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/autocli/v1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/autocli/v1/query_cosmes.ts deleted file mode 100644 index 5a1cb5e..0000000 --- a/libs/es-client/src/protobufs/cosmos/autocli/v1/query_cosmes.ts +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/autocli/v1/query.proto (package cosmos.autocli.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { AppOptionsRequest, AppOptionsResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.autocli.v1.Query"; - -/** - * AppOptions returns the autocli options for all of the modules in an app. - * - * @generated from rpc cosmos.autocli.v1.Query.AppOptions - */ -export const QueryAppOptionsService = { - typeName: TYPE_NAME, - method: "AppOptions", - Request: AppOptionsRequest, - Response: AppOptionsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/autocli/v1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/autocli/v1/query_pb.ts deleted file mode 100644 index cc82070..0000000 --- a/libs/es-client/src/protobufs/cosmos/autocli/v1/query_pb.ts +++ /dev/null @@ -1,83 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/autocli/v1/query.proto (package cosmos.autocli.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { ModuleOptions } from "./options_pb.js"; - -/** - * AppOptionsRequest is the RemoteInfoService/AppOptions request type. - * - * @generated from message cosmos.autocli.v1.AppOptionsRequest - */ -export class AppOptionsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.autocli.v1.AppOptionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AppOptionsRequest { - return new AppOptionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AppOptionsRequest { - return new AppOptionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AppOptionsRequest { - return new AppOptionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AppOptionsRequest | PlainMessage | undefined, b: AppOptionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AppOptionsRequest, a, b); - } -} - -/** - * AppOptionsResponse is the RemoteInfoService/AppOptions response type. - * - * @generated from message cosmos.autocli.v1.AppOptionsResponse - */ -export class AppOptionsResponse extends Message { - /** - * module_options is a map of module name to autocli module options. - * - * @generated from field: map module_options = 1; - */ - moduleOptions: { [key: string]: ModuleOptions } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.autocli.v1.AppOptionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module_options", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ModuleOptions} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AppOptionsResponse { - return new AppOptionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AppOptionsResponse { - return new AppOptionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AppOptionsResponse { - return new AppOptionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AppOptionsResponse | PlainMessage | undefined, b: AppOptionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AppOptionsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/bank/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/bank/module/v1/module_pb.ts deleted file mode 100644 index fd2c14e..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/module/v1/module_pb.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/bank/module/v1/module.proto (package cosmos.bank.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the bank module. - * - * @generated from message cosmos.bank.module.v1.Module - */ -export class Module extends Message { - /** - * blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving - * funds. If left empty it defaults to the list of account names supplied in the auth module configuration as - * module_account_permissions - * - * @generated from field: repeated string blocked_module_accounts_override = 1; - */ - blockedModuleAccountsOverride: string[] = []; - - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 2; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "blocked_module_accounts_override", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/authz_pb.ts b/libs/es-client/src/protobufs/cosmos/bank/v1beta1/authz_pb.ts deleted file mode 100644 index 7c5befd..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/authz_pb.ts +++ /dev/null @@ -1,62 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/bank/v1beta1/authz.proto (package cosmos.bank.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * SendAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.bank.v1beta1.SendAuthorization - */ -export class SendAuthorization extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin spend_limit = 1; - */ - spendLimit: Coin[] = []; - - /** - * allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the - * granter. If omitted, any recipient is allowed. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: repeated string allow_list = 2; - */ - allowList: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.SendAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spend_limit", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SendAuthorization { - return new SendAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SendAuthorization { - return new SendAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SendAuthorization { - return new SendAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: SendAuthorization | PlainMessage | undefined, b: SendAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(SendAuthorization, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/bank_pb.ts b/libs/es-client/src/protobufs/cosmos/bank/v1beta1/bank_pb.ts deleted file mode 100644 index b9303a8..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/bank_pb.ts +++ /dev/null @@ -1,408 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/bank/v1beta1/bank.proto (package cosmos.bank.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * Params defines the parameters for the bank module. - * - * @generated from message cosmos.bank.v1beta1.Params - */ -export class Params extends Message { - /** - * Deprecated: Use of SendEnabled in params is deprecated. - * For genesis, use the newly added send_enabled field in the genesis object. - * Storage, lookup, and manipulation of this information is now in the keeper. - * - * As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files. - * - * @generated from field: repeated cosmos.bank.v1beta1.SendEnabled send_enabled = 1 [deprecated = true]; - * @deprecated - */ - sendEnabled: SendEnabled[] = []; - - /** - * @generated from field: bool default_send_enabled = 2; - */ - defaultSendEnabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "send_enabled", kind: "message", T: SendEnabled, repeated: true }, - { no: 2, name: "default_send_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * SendEnabled maps coin denom to a send_enabled status (whether a denom is - * sendable). - * - * @generated from message cosmos.bank.v1beta1.SendEnabled - */ -export class SendEnabled extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: bool enabled = 2; - */ - enabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.SendEnabled"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SendEnabled { - return new SendEnabled().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SendEnabled { - return new SendEnabled().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SendEnabled { - return new SendEnabled().fromJsonString(jsonString, options); - } - - static equals(a: SendEnabled | PlainMessage | undefined, b: SendEnabled | PlainMessage | undefined): boolean { - return proto3.util.equals(SendEnabled, a, b); - } -} - -/** - * Input models transaction input. - * - * @generated from message cosmos.bank.v1beta1.Input - */ -export class Input extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.Input"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Input { - return new Input().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Input { - return new Input().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Input { - return new Input().fromJsonString(jsonString, options); - } - - static equals(a: Input | PlainMessage | undefined, b: Input | PlainMessage | undefined): boolean { - return proto3.util.equals(Input, a, b); - } -} - -/** - * Output models transaction outputs. - * - * @generated from message cosmos.bank.v1beta1.Output - */ -export class Output extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.Output"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Output { - return new Output().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Output { - return new Output().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Output { - return new Output().fromJsonString(jsonString, options); - } - - static equals(a: Output | PlainMessage | undefined, b: Output | PlainMessage | undefined): boolean { - return proto3.util.equals(Output, a, b); - } -} - -/** - * Supply represents a struct that passively keeps track of the total supply - * amounts in the network. - * This message is deprecated now that supply is indexed by denom. - * - * @generated from message cosmos.bank.v1beta1.Supply - * @deprecated - */ -export class Supply extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin total = 1; - */ - total: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.Supply"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Supply { - return new Supply().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Supply { - return new Supply().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Supply { - return new Supply().fromJsonString(jsonString, options); - } - - static equals(a: Supply | PlainMessage | undefined, b: Supply | PlainMessage | undefined): boolean { - return proto3.util.equals(Supply, a, b); - } -} - -/** - * DenomUnit represents a struct that describes a given - * denomination unit of the basic token. - * - * @generated from message cosmos.bank.v1beta1.DenomUnit - */ -export class DenomUnit extends Message { - /** - * denom represents the string name of the given denom unit (e.g uatom). - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * exponent represents power of 10 exponent that one must - * raise the base_denom to in order to equal the given DenomUnit's denom - * 1 denom = 10^exponent base_denom - * (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with - * exponent = 6, thus: 1 atom = 10^6 uatom). - * - * @generated from field: uint32 exponent = 2; - */ - exponent = 0; - - /** - * aliases is a list of string aliases for the given denom - * - * @generated from field: repeated string aliases = 3; - */ - aliases: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.DenomUnit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "exponent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "aliases", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DenomUnit { - return new DenomUnit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DenomUnit { - return new DenomUnit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DenomUnit { - return new DenomUnit().fromJsonString(jsonString, options); - } - - static equals(a: DenomUnit | PlainMessage | undefined, b: DenomUnit | PlainMessage | undefined): boolean { - return proto3.util.equals(DenomUnit, a, b); - } -} - -/** - * Metadata represents a struct that describes - * a basic token. - * - * @generated from message cosmos.bank.v1beta1.Metadata - */ -export class Metadata extends Message { - /** - * @generated from field: string description = 1; - */ - description = ""; - - /** - * denom_units represents the list of DenomUnit's for a given coin - * - * @generated from field: repeated cosmos.bank.v1beta1.DenomUnit denom_units = 2; - */ - denomUnits: DenomUnit[] = []; - - /** - * base represents the base denom (should be the DenomUnit with exponent = 0). - * - * @generated from field: string base = 3; - */ - base = ""; - - /** - * display indicates the suggested denom that should be - * displayed in clients. - * - * @generated from field: string display = 4; - */ - display = ""; - - /** - * name defines the name of the token (eg: Cosmos Atom) - * - * Since: cosmos-sdk 0.43 - * - * @generated from field: string name = 5; - */ - name = ""; - - /** - * symbol is the token symbol usually shown on exchanges (eg: ATOM). This can - * be the same as the display. - * - * Since: cosmos-sdk 0.43 - * - * @generated from field: string symbol = 6; - */ - symbol = ""; - - /** - * URI to a document (on or off-chain) that contains additional information. Optional. - * - * Since: cosmos-sdk 0.46 - * - * @generated from field: string uri = 7; - */ - uri = ""; - - /** - * URIHash is a sha256 hash of a document pointed by URI. It's used to verify that - * the document didn't change. Optional. - * - * Since: cosmos-sdk 0.46 - * - * @generated from field: string uri_hash = 8; - */ - uriHash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.Metadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom_units", kind: "message", T: DenomUnit, repeated: true }, - { no: 3, name: "base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "display", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { - return new Metadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { - return new Metadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Metadata { - return new Metadata().fromJsonString(jsonString, options); - } - - static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { - return proto3.util.equals(Metadata, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/bank/v1beta1/genesis_pb.ts deleted file mode 100644 index e9debc1..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,136 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/bank/v1beta1/genesis.proto (package cosmos.bank.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Metadata, Params, SendEnabled } from "./bank_pb.js"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * GenesisState defines the bank module's genesis state. - * - * @generated from message cosmos.bank.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines all the parameters of the module. - * - * @generated from field: cosmos.bank.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * balances is an array containing the balances of all the accounts. - * - * @generated from field: repeated cosmos.bank.v1beta1.Balance balances = 2; - */ - balances: Balance[] = []; - - /** - * supply represents the total supply. If it is left empty, then supply will be calculated based on the provided - * balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin supply = 3; - */ - supply: Coin[] = []; - - /** - * denom_metadata defines the metadata of the different coins. - * - * @generated from field: repeated cosmos.bank.v1beta1.Metadata denom_metadata = 4; - */ - denomMetadata: Metadata[] = []; - - /** - * send_enabled defines the denoms where send is enabled or disabled. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: repeated cosmos.bank.v1beta1.SendEnabled send_enabled = 5; - */ - sendEnabled: SendEnabled[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "balances", kind: "message", T: Balance, repeated: true }, - { no: 3, name: "supply", kind: "message", T: Coin, repeated: true }, - { no: 4, name: "denom_metadata", kind: "message", T: Metadata, repeated: true }, - { no: 5, name: "send_enabled", kind: "message", T: SendEnabled, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * Balance defines an account address and balance pair used in the bank module's - * genesis state. - * - * @generated from message cosmos.bank.v1beta1.Balance - */ -export class Balance extends Message { - /** - * address is the address of the balance holder. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * coins defines the different coins this balance holds. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.Balance"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Balance { - return new Balance().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Balance { - return new Balance().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Balance { - return new Balance().fromJsonString(jsonString, options); - } - - static equals(a: Balance | PlainMessage | undefined, b: Balance | PlainMessage | undefined): boolean { - return proto3.util.equals(Balance, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts deleted file mode 100644 index f798c11..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,202 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/bank/v1beta1/query.proto (package cosmos.bank.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAllBalancesRequest, QueryAllBalancesResponse, QueryBalanceRequest, QueryBalanceResponse, QueryDenomMetadataByQueryStringRequest, QueryDenomMetadataByQueryStringResponse, QueryDenomMetadataRequest, QueryDenomMetadataResponse, QueryDenomOwnersByQueryRequest, QueryDenomOwnersByQueryResponse, QueryDenomOwnersRequest, QueryDenomOwnersResponse, QueryDenomsMetadataRequest, QueryDenomsMetadataResponse, QueryParamsRequest, QueryParamsResponse, QuerySendEnabledRequest, QuerySendEnabledResponse, QuerySpendableBalanceByDenomRequest, QuerySpendableBalanceByDenomResponse, QuerySpendableBalancesRequest, QuerySpendableBalancesResponse, QuerySupplyOfRequest, QuerySupplyOfResponse, QueryTotalSupplyRequest, QueryTotalSupplyResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.bank.v1beta1.Query"; - -/** - * Balance queries the balance of a single coin for a single account. - * - * @generated from rpc cosmos.bank.v1beta1.Query.Balance - */ -export const QueryBalanceService = { - typeName: TYPE_NAME, - method: "Balance", - Request: QueryBalanceRequest, - Response: QueryBalanceResponse, -} as const; - -/** - * AllBalances queries the balance of all coins for a single account. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.bank.v1beta1.Query.AllBalances - */ -export const QueryAllBalancesService = { - typeName: TYPE_NAME, - method: "AllBalances", - Request: QueryAllBalancesRequest, - Response: QueryAllBalancesResponse, -} as const; - -/** - * SpendableBalances queries the spendable balance of all coins for a single - * account. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.bank.v1beta1.Query.SpendableBalances - */ -export const QuerySpendableBalancesService = { - typeName: TYPE_NAME, - method: "SpendableBalances", - Request: QuerySpendableBalancesRequest, - Response: QuerySpendableBalancesResponse, -} as const; - -/** - * SpendableBalanceByDenom queries the spendable balance of a single denom for - * a single account. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.bank.v1beta1.Query.SpendableBalanceByDenom - */ -export const QuerySpendableBalanceByDenomService = { - typeName: TYPE_NAME, - method: "SpendableBalanceByDenom", - Request: QuerySpendableBalanceByDenomRequest, - Response: QuerySpendableBalanceByDenomResponse, -} as const; - -/** - * TotalSupply queries the total supply of all coins. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.bank.v1beta1.Query.TotalSupply - */ -export const QueryTotalSupplyService = { - typeName: TYPE_NAME, - method: "TotalSupply", - Request: QueryTotalSupplyRequest, - Response: QueryTotalSupplyResponse, -} as const; - -/** - * SupplyOf queries the supply of a single coin. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.bank.v1beta1.Query.SupplyOf - */ -export const QuerySupplyOfService = { - typeName: TYPE_NAME, - method: "SupplyOf", - Request: QuerySupplyOfRequest, - Response: QuerySupplyOfResponse, -} as const; - -/** - * Params queries the parameters of x/bank module. - * - * @generated from rpc cosmos.bank.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * DenomMetadata queries the client metadata of a given coin denomination. - * - * @generated from rpc cosmos.bank.v1beta1.Query.DenomMetadata - */ -export const QueryDenomMetadataService = { - typeName: TYPE_NAME, - method: "DenomMetadata", - Request: QueryDenomMetadataRequest, - Response: QueryDenomMetadataResponse, -} as const; - -/** - * DenomMetadataByQueryString queries the client metadata of a given coin denomination. - * - * @generated from rpc cosmos.bank.v1beta1.Query.DenomMetadataByQueryString - */ -export const QueryDenomMetadataByQueryStringService = { - typeName: TYPE_NAME, - method: "DenomMetadataByQueryString", - Request: QueryDenomMetadataByQueryStringRequest, - Response: QueryDenomMetadataByQueryStringResponse, -} as const; - -/** - * DenomsMetadata queries the client metadata for all registered coin - * denominations. - * - * @generated from rpc cosmos.bank.v1beta1.Query.DenomsMetadata - */ -export const QueryDenomsMetadataService = { - typeName: TYPE_NAME, - method: "DenomsMetadata", - Request: QueryDenomsMetadataRequest, - Response: QueryDenomsMetadataResponse, -} as const; - -/** - * DenomOwners queries for all account addresses that own a particular token - * denomination. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.bank.v1beta1.Query.DenomOwners - */ -export const QueryDenomOwnersService = { - typeName: TYPE_NAME, - method: "DenomOwners", - Request: QueryDenomOwnersRequest, - Response: QueryDenomOwnersResponse, -} as const; - -/** - * DenomOwnersByQuery queries for all account addresses that own a particular token - * denomination. - * - * Since: cosmos-sdk 0.50.3 - * - * @generated from rpc cosmos.bank.v1beta1.Query.DenomOwnersByQuery - */ -export const QueryDenomOwnersByQueryService = { - typeName: TYPE_NAME, - method: "DenomOwnersByQuery", - Request: QueryDenomOwnersByQueryRequest, - Response: QueryDenomOwnersByQueryResponse, -} as const; - -/** - * SendEnabled queries for SendEnabled entries. - * - * This query only returns denominations that have specific SendEnabled settings. - * Any denomination that does not have a specific setting will use the default - * params.default_send_enabled, and will not be returned by this query. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.bank.v1beta1.Query.SendEnabled - */ -export const QuerySendEnabledService = { - typeName: TYPE_NAME, - method: "SendEnabled", - Request: QuerySendEnabledRequest, - Response: QuerySendEnabledResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_pb.ts deleted file mode 100644 index 1ebe26a..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/query_pb.ts +++ /dev/null @@ -1,1277 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/bank/v1beta1/query.proto (package cosmos.bank.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; -import { Metadata, Params, SendEnabled } from "./bank_pb.js"; - -/** - * QueryBalanceRequest is the request type for the Query/Balance RPC method. - * - * @generated from message cosmos.bank.v1beta1.QueryBalanceRequest - */ -export class QueryBalanceRequest extends Message { - /** - * address is the address to query balances for. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * denom is the coin denom to query balances for. - * - * @generated from field: string denom = 2; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryBalanceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBalanceRequest, a, b); - } -} - -/** - * QueryBalanceResponse is the response type for the Query/Balance RPC method. - * - * @generated from message cosmos.bank.v1beta1.QueryBalanceResponse - */ -export class QueryBalanceResponse extends Message { - /** - * balance is the balance of the coin. - * - * @generated from field: cosmos.base.v1beta1.Coin balance = 1; - */ - balance?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryBalanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balance", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBalanceResponse, a, b); - } -} - -/** - * QueryBalanceRequest is the request type for the Query/AllBalances RPC method. - * - * @generated from message cosmos.bank.v1beta1.QueryAllBalancesRequest - */ -export class QueryAllBalancesRequest extends Message { - /** - * address is the address to query balances for. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - /** - * resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: bool resolve_denom = 3; - */ - resolveDenom = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryAllBalancesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - { no: 3, name: "resolve_denom", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBalancesRequest { - return new QueryAllBalancesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBalancesRequest { - return new QueryAllBalancesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllBalancesRequest { - return new QueryAllBalancesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllBalancesRequest | PlainMessage | undefined, b: QueryAllBalancesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllBalancesRequest, a, b); - } -} - -/** - * QueryAllBalancesResponse is the response type for the Query/AllBalances RPC - * method. - * - * @generated from message cosmos.bank.v1beta1.QueryAllBalancesResponse - */ -export class QueryAllBalancesResponse extends Message { - /** - * balances is the balances of all the coins. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin balances = 1; - */ - balances: Coin[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryAllBalancesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balances", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBalancesResponse { - return new QueryAllBalancesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBalancesResponse { - return new QueryAllBalancesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllBalancesResponse { - return new QueryAllBalancesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllBalancesResponse | PlainMessage | undefined, b: QueryAllBalancesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllBalancesResponse, a, b); - } -} - -/** - * QuerySpendableBalancesRequest defines the gRPC request structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.bank.v1beta1.QuerySpendableBalancesRequest - */ -export class QuerySpendableBalancesRequest extends Message { - /** - * address is the address to query spendable balances for. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySpendableBalancesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpendableBalancesRequest { - return new QuerySpendableBalancesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpendableBalancesRequest { - return new QuerySpendableBalancesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpendableBalancesRequest { - return new QuerySpendableBalancesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpendableBalancesRequest | PlainMessage | undefined, b: QuerySpendableBalancesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpendableBalancesRequest, a, b); - } -} - -/** - * QuerySpendableBalancesResponse defines the gRPC response structure for querying - * an account's spendable balances. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.bank.v1beta1.QuerySpendableBalancesResponse - */ -export class QuerySpendableBalancesResponse extends Message { - /** - * balances is the spendable balances of all the coins. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin balances = 1; - */ - balances: Coin[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySpendableBalancesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balances", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpendableBalancesResponse { - return new QuerySpendableBalancesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpendableBalancesResponse { - return new QuerySpendableBalancesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpendableBalancesResponse { - return new QuerySpendableBalancesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpendableBalancesResponse | PlainMessage | undefined, b: QuerySpendableBalancesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpendableBalancesResponse, a, b); - } -} - -/** - * QuerySpendableBalanceByDenomRequest defines the gRPC request structure for - * querying an account's spendable balance for a specific denom. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest - */ -export class QuerySpendableBalanceByDenomRequest extends Message { - /** - * address is the address to query balances for. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * denom is the coin denom to query balances for. - * - * @generated from field: string denom = 2; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpendableBalanceByDenomRequest { - return new QuerySpendableBalanceByDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpendableBalanceByDenomRequest { - return new QuerySpendableBalanceByDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpendableBalanceByDenomRequest { - return new QuerySpendableBalanceByDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpendableBalanceByDenomRequest | PlainMessage | undefined, b: QuerySpendableBalanceByDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpendableBalanceByDenomRequest, a, b); - } -} - -/** - * QuerySpendableBalanceByDenomResponse defines the gRPC response structure for - * querying an account's spendable balance for a specific denom. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse - */ -export class QuerySpendableBalanceByDenomResponse extends Message { - /** - * balance is the balance of the coin. - * - * @generated from field: cosmos.base.v1beta1.Coin balance = 1; - */ - balance?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balance", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpendableBalanceByDenomResponse { - return new QuerySpendableBalanceByDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpendableBalanceByDenomResponse { - return new QuerySpendableBalanceByDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpendableBalanceByDenomResponse { - return new QuerySpendableBalanceByDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpendableBalanceByDenomResponse | PlainMessage | undefined, b: QuerySpendableBalanceByDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpendableBalanceByDenomResponse, a, b); - } -} - -/** - * QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC - * method. - * - * @generated from message cosmos.bank.v1beta1.QueryTotalSupplyRequest - */ -export class QueryTotalSupplyRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * Since: cosmos-sdk 0.43 - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryTotalSupplyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyRequest { - return new QueryTotalSupplyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyRequest { - return new QueryTotalSupplyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyRequest { - return new QueryTotalSupplyRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalSupplyRequest | PlainMessage | undefined, b: QueryTotalSupplyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalSupplyRequest, a, b); - } -} - -/** - * QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC - * method - * - * @generated from message cosmos.bank.v1beta1.QueryTotalSupplyResponse - */ -export class QueryTotalSupplyResponse extends Message { - /** - * supply is the supply of the coins - * - * @generated from field: repeated cosmos.base.v1beta1.Coin supply = 1; - */ - supply: Coin[] = []; - - /** - * pagination defines the pagination in the response. - * - * Since: cosmos-sdk 0.43 - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryTotalSupplyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "supply", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSupplyResponse { - return new QueryTotalSupplyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSupplyResponse { - return new QueryTotalSupplyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalSupplyResponse { - return new QueryTotalSupplyResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalSupplyResponse | PlainMessage | undefined, b: QueryTotalSupplyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalSupplyResponse, a, b); - } -} - -/** - * QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. - * - * @generated from message cosmos.bank.v1beta1.QuerySupplyOfRequest - */ -export class QuerySupplyOfRequest extends Message { - /** - * denom is the coin denom to query balances for. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySupplyOfRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupplyOfRequest { - return new QuerySupplyOfRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupplyOfRequest { - return new QuerySupplyOfRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySupplyOfRequest { - return new QuerySupplyOfRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySupplyOfRequest | PlainMessage | undefined, b: QuerySupplyOfRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySupplyOfRequest, a, b); - } -} - -/** - * QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. - * - * @generated from message cosmos.bank.v1beta1.QuerySupplyOfResponse - */ -export class QuerySupplyOfResponse extends Message { - /** - * amount is the supply of the coin. - * - * @generated from field: cosmos.base.v1beta1.Coin amount = 1; - */ - amount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySupplyOfResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupplyOfResponse { - return new QuerySupplyOfResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupplyOfResponse { - return new QuerySupplyOfResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySupplyOfResponse { - return new QuerySupplyOfResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySupplyOfResponse | PlainMessage | undefined, b: QuerySupplyOfResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySupplyOfResponse, a, b); - } -} - -/** - * QueryParamsRequest defines the request type for querying x/bank parameters. - * - * @generated from message cosmos.bank.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse defines the response type for querying x/bank parameters. - * - * @generated from message cosmos.bank.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params provides the parameters of the bank module. - * - * @generated from field: cosmos.bank.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. - * - * @generated from message cosmos.bank.v1beta1.QueryDenomsMetadataRequest - */ -export class QueryDenomsMetadataRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomsMetadataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsMetadataRequest { - return new QueryDenomsMetadataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsMetadataRequest { - return new QueryDenomsMetadataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomsMetadataRequest { - return new QueryDenomsMetadataRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomsMetadataRequest | PlainMessage | undefined, b: QueryDenomsMetadataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomsMetadataRequest, a, b); - } -} - -/** - * QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC - * method. - * - * @generated from message cosmos.bank.v1beta1.QueryDenomsMetadataResponse - */ -export class QueryDenomsMetadataResponse extends Message { - /** - * metadata provides the client information for all the registered tokens. - * - * @generated from field: repeated cosmos.bank.v1beta1.Metadata metadatas = 1; - */ - metadatas: Metadata[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomsMetadataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadatas", kind: "message", T: Metadata, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsMetadataResponse { - return new QueryDenomsMetadataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsMetadataResponse { - return new QueryDenomsMetadataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomsMetadataResponse { - return new QueryDenomsMetadataResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomsMetadataResponse | PlainMessage | undefined, b: QueryDenomsMetadataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomsMetadataResponse, a, b); - } -} - -/** - * QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. - * - * @generated from message cosmos.bank.v1beta1.QueryDenomMetadataRequest - */ -export class QueryDenomMetadataRequest extends Message { - /** - * denom is the coin denom to query the metadata for. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataRequest { - return new QueryDenomMetadataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataRequest { - return new QueryDenomMetadataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataRequest { - return new QueryDenomMetadataRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomMetadataRequest | PlainMessage | undefined, b: QueryDenomMetadataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomMetadataRequest, a, b); - } -} - -/** - * QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC - * method. - * - * @generated from message cosmos.bank.v1beta1.QueryDenomMetadataResponse - */ -export class QueryDenomMetadataResponse extends Message { - /** - * metadata describes and provides all the client information for the requested token. - * - * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 1; - */ - metadata?: Metadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: Metadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataResponse { - return new QueryDenomMetadataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataResponse { - return new QueryDenomMetadataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataResponse { - return new QueryDenomMetadataResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomMetadataResponse | PlainMessage | undefined, b: QueryDenomMetadataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomMetadataResponse, a, b); - } -} - -/** - * QueryDenomMetadataByQueryStringRequest is the request type for the Query/DenomMetadata RPC method. - * Identical with QueryDenomMetadataRequest but receives denom as query string. - * - * @generated from message cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest - */ -export class QueryDenomMetadataByQueryStringRequest extends Message { - /** - * denom is the coin denom to query the metadata for. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringRequest { - return new QueryDenomMetadataByQueryStringRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringRequest { - return new QueryDenomMetadataByQueryStringRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringRequest { - return new QueryDenomMetadataByQueryStringRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomMetadataByQueryStringRequest, a, b); - } -} - -/** - * QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC - * method. Identical with QueryDenomMetadataResponse but receives denom as query string in request. - * - * @generated from message cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse - */ -export class QueryDenomMetadataByQueryStringResponse extends Message { - /** - * metadata describes and provides all the client information for the requested token. - * - * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 1; - */ - metadata?: Metadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: Metadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomMetadataByQueryStringResponse { - return new QueryDenomMetadataByQueryStringResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomMetadataByQueryStringResponse { - return new QueryDenomMetadataByQueryStringResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomMetadataByQueryStringResponse { - return new QueryDenomMetadataByQueryStringResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined, b: QueryDenomMetadataByQueryStringResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomMetadataByQueryStringResponse, a, b); - } -} - -/** - * QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - * - * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersRequest - */ -export class QueryDenomOwnersRequest extends Message { - /** - * denom defines the coin denomination to query all account holders for. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomOwnersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersRequest { - return new QueryDenomOwnersRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersRequest { - return new QueryDenomOwnersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersRequest { - return new QueryDenomOwnersRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomOwnersRequest | PlainMessage | undefined, b: QueryDenomOwnersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomOwnersRequest, a, b); - } -} - -/** - * DenomOwner defines structure representing an account that owns or holds a - * particular denominated token. It contains the account address and account - * balance of the denominated token. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.bank.v1beta1.DenomOwner - */ -export class DenomOwner extends Message { - /** - * address defines the address that owns a particular denomination. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * balance is the balance of the denominated coin for an account. - * - * @generated from field: cosmos.base.v1beta1.Coin balance = 2; - */ - balance?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.DenomOwner"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "balance", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DenomOwner { - return new DenomOwner().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DenomOwner { - return new DenomOwner().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DenomOwner { - return new DenomOwner().fromJsonString(jsonString, options); - } - - static equals(a: DenomOwner | PlainMessage | undefined, b: DenomOwner | PlainMessage | undefined): boolean { - return proto3.util.equals(DenomOwner, a, b); - } -} - -/** - * QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersResponse - */ -export class QueryDenomOwnersResponse extends Message { - /** - * @generated from field: repeated cosmos.bank.v1beta1.DenomOwner denom_owners = 1; - */ - denomOwners: DenomOwner[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomOwnersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom_owners", kind: "message", T: DenomOwner, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersResponse { - return new QueryDenomOwnersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersResponse { - return new QueryDenomOwnersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersResponse { - return new QueryDenomOwnersResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomOwnersResponse | PlainMessage | undefined, b: QueryDenomOwnersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomOwnersResponse, a, b); - } -} - -/** - * QueryDenomOwnersByQueryRequest defines the request type for the DenomOwnersByQuery RPC query, - * which queries for a paginated set of all account holders of a particular - * denomination. - * - * Since: cosmos-sdk 0.50.3 - * - * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest - */ -export class QueryDenomOwnersByQueryRequest extends Message { - /** - * denom defines the coin denomination to query all account holders for. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersByQueryRequest { - return new QueryDenomOwnersByQueryRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersByQueryRequest { - return new QueryDenomOwnersByQueryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersByQueryRequest { - return new QueryDenomOwnersByQueryRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomOwnersByQueryRequest | PlainMessage | undefined, b: QueryDenomOwnersByQueryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomOwnersByQueryRequest, a, b); - } -} - -/** - * QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. - * - * Since: cosmos-sdk 0.50.3 - * - * @generated from message cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse - */ -export class QueryDenomOwnersByQueryResponse extends Message { - /** - * @generated from field: repeated cosmos.bank.v1beta1.DenomOwner denom_owners = 1; - */ - denomOwners: DenomOwner[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom_owners", kind: "message", T: DenomOwner, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomOwnersByQueryResponse { - return new QueryDenomOwnersByQueryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomOwnersByQueryResponse { - return new QueryDenomOwnersByQueryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomOwnersByQueryResponse { - return new QueryDenomOwnersByQueryResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomOwnersByQueryResponse | PlainMessage | undefined, b: QueryDenomOwnersByQueryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomOwnersByQueryResponse, a, b); - } -} - -/** - * QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.QuerySendEnabledRequest - */ -export class QuerySendEnabledRequest extends Message { - /** - * denoms is the specific denoms you want look up. Leave empty to get all entries. - * - * @generated from field: repeated string denoms = 1; - */ - denoms: string[] = []; - - /** - * pagination defines an optional pagination for the request. This field is - * only read if the denoms field is empty. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 99; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySendEnabledRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 99, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySendEnabledRequest { - return new QuerySendEnabledRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySendEnabledRequest { - return new QuerySendEnabledRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySendEnabledRequest { - return new QuerySendEnabledRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySendEnabledRequest | PlainMessage | undefined, b: QuerySendEnabledRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySendEnabledRequest, a, b); - } -} - -/** - * QuerySendEnabledResponse defines the RPC response of a SendEnable query. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.QuerySendEnabledResponse - */ -export class QuerySendEnabledResponse extends Message { - /** - * @generated from field: repeated cosmos.bank.v1beta1.SendEnabled send_enabled = 1; - */ - sendEnabled: SendEnabled[] = []; - - /** - * pagination defines the pagination in the response. This field is only - * populated if the denoms field in the request is empty. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 99; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.QuerySendEnabledResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "send_enabled", kind: "message", T: SendEnabled, repeated: true }, - { no: 99, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySendEnabledResponse { - return new QuerySendEnabledResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySendEnabledResponse { - return new QuerySendEnabledResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySendEnabledResponse { - return new QuerySendEnabledResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySendEnabledResponse | PlainMessage | undefined, b: QuerySendEnabledResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySendEnabledResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_cosmes.ts deleted file mode 100644 index 53e2c94..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,65 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/bank/v1beta1/tx.proto (package cosmos.bank.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgMultiSend, MsgMultiSendResponse, MsgSend, MsgSendResponse, MsgSetSendEnabled, MsgSetSendEnabledResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.bank.v1beta1.Msg"; - -/** - * Send defines a method for sending coins from one account to another account. - * - * @generated from rpc cosmos.bank.v1beta1.Msg.Send - */ -export const MsgSendService = { - typeName: TYPE_NAME, - method: "Send", - Request: MsgSend, - Response: MsgSendResponse, -} as const; - -/** - * MultiSend defines a method for sending coins from some accounts to other accounts. - * - * @generated from rpc cosmos.bank.v1beta1.Msg.MultiSend - */ -export const MsgMultiSendService = { - typeName: TYPE_NAME, - method: "MultiSend", - Request: MsgMultiSend, - Response: MsgMultiSendResponse, -} as const; - -/** - * UpdateParams defines a governance operation for updating the x/bank module parameters. - * The authority is defined in the keeper. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.bank.v1beta1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * SetSendEnabled is a governance operation for setting the SendEnabled flag - * on any number of Denoms. Only the entries to add or update should be - * included. Entries that already exist in the store, but that aren't - * included in this message, will be left unchanged. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.bank.v1beta1.Msg.SetSendEnabled - */ -export const MsgSetSendEnabledService = { - typeName: TYPE_NAME, - method: "SetSendEnabled", - Request: MsgSetSendEnabled, - Response: MsgSetSendEnabledResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts deleted file mode 100644 index fd428f5..0000000 --- a/libs/es-client/src/protobufs/cosmos/bank/v1beta1/tx_pb.ts +++ /dev/null @@ -1,365 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/bank/v1beta1/tx.proto (package cosmos.bank.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; -import { Input, Output, Params, SendEnabled } from "./bank_pb.js"; - -/** - * MsgSend represents a message to send coins from one account to another. - * - * @generated from message cosmos.bank.v1beta1.MsgSend - */ -export class MsgSend extends Message { - /** - * @generated from field: string from_address = 1; - */ - fromAddress = ""; - - /** - * @generated from field: string to_address = 2; - */ - toAddress = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgSend"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSend { - return new MsgSend().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSend { - return new MsgSend().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSend { - return new MsgSend().fromJsonString(jsonString, options); - } - - static equals(a: MsgSend | PlainMessage | undefined, b: MsgSend | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSend, a, b); - } -} - -/** - * MsgSendResponse defines the Msg/Send response type. - * - * @generated from message cosmos.bank.v1beta1.MsgSendResponse - */ -export class MsgSendResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgSendResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendResponse { - return new MsgSendResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendResponse { - return new MsgSendResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSendResponse { - return new MsgSendResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSendResponse | PlainMessage | undefined, b: MsgSendResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSendResponse, a, b); - } -} - -/** - * MsgMultiSend represents an arbitrary multi-in, multi-out send message. - * - * @generated from message cosmos.bank.v1beta1.MsgMultiSend - */ -export class MsgMultiSend extends Message { - /** - * Inputs, despite being `repeated`, only allows one sender input. This is - * checked in MsgMultiSend's ValidateBasic. - * - * @generated from field: repeated cosmos.bank.v1beta1.Input inputs = 1; - */ - inputs: Input[] = []; - - /** - * @generated from field: repeated cosmos.bank.v1beta1.Output outputs = 2; - */ - outputs: Output[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgMultiSend"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inputs", kind: "message", T: Input, repeated: true }, - { no: 2, name: "outputs", kind: "message", T: Output, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMultiSend { - return new MsgMultiSend().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMultiSend { - return new MsgMultiSend().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMultiSend { - return new MsgMultiSend().fromJsonString(jsonString, options); - } - - static equals(a: MsgMultiSend | PlainMessage | undefined, b: MsgMultiSend | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMultiSend, a, b); - } -} - -/** - * MsgMultiSendResponse defines the Msg/MultiSend response type. - * - * @generated from message cosmos.bank.v1beta1.MsgMultiSendResponse - */ -export class MsgMultiSendResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgMultiSendResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMultiSendResponse { - return new MsgMultiSendResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMultiSendResponse { - return new MsgMultiSendResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMultiSendResponse { - return new MsgMultiSendResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgMultiSendResponse | PlainMessage | undefined, b: MsgMultiSendResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMultiSendResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/bank parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmos.bank.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgSetSendEnabled is the Msg/SetSendEnabled request type. - * - * Only entries to add/update/delete need to be included. - * Existing SendEnabled entries that are not included in this - * message are left unchanged. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.MsgSetSendEnabled - */ -export class MsgSetSendEnabled extends Message { - /** - * authority is the address that controls the module. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * send_enabled is the list of entries to add or update. - * - * @generated from field: repeated cosmos.bank.v1beta1.SendEnabled send_enabled = 2; - */ - sendEnabled: SendEnabled[] = []; - - /** - * use_default_for is a list of denoms that should use the params.default_send_enabled value. - * Denoms listed here will have their SendEnabled entries deleted. - * If a denom is included that doesn't have a SendEnabled entry, - * it will be ignored. - * - * @generated from field: repeated string use_default_for = 3; - */ - useDefaultFor: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgSetSendEnabled"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "send_enabled", kind: "message", T: SendEnabled, repeated: true }, - { no: 3, name: "use_default_for", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetSendEnabled { - return new MsgSetSendEnabled().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetSendEnabled { - return new MsgSetSendEnabled().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetSendEnabled { - return new MsgSetSendEnabled().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetSendEnabled | PlainMessage | undefined, b: MsgSetSendEnabled | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetSendEnabled, a, b); - } -} - -/** - * MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.bank.v1beta1.MsgSetSendEnabledResponse - */ -export class MsgSetSendEnabledResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.bank.v1beta1.MsgSetSendEnabledResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetSendEnabledResponse { - return new MsgSetSendEnabledResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetSendEnabledResponse { - return new MsgSetSendEnabledResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetSendEnabledResponse { - return new MsgSetSendEnabledResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetSendEnabledResponse | PlainMessage | undefined, b: MsgSetSendEnabledResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetSendEnabledResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts b/libs/es-client/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts deleted file mode 100644 index 021d6c3..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/abci/v1beta1/abci_pb.ts +++ /dev/null @@ -1,731 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/abci/v1beta1/abci.proto (package cosmos.base.abci.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Event } from "../../../../tendermint/abci/types_pb.js"; -import { Block } from "../../../../tendermint/types/block_pb.js"; - -/** - * TxResponse defines a structure containing relevant tx data and metadata. The - * tags are stringified and the log is JSON decoded. - * - * @generated from message cosmos.base.abci.v1beta1.TxResponse - */ -export class TxResponse extends Message { - /** - * The block height - * - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * The transaction hash. - * - * @generated from field: string txhash = 2; - */ - txhash = ""; - - /** - * Namespace for the Code - * - * @generated from field: string codespace = 3; - */ - codespace = ""; - - /** - * Response code. - * - * @generated from field: uint32 code = 4; - */ - code = 0; - - /** - * Result bytes, if any. - * - * @generated from field: string data = 5; - */ - data = ""; - - /** - * The output of the application's logger (raw string). May be - * non-deterministic. - * - * @generated from field: string raw_log = 6; - */ - rawLog = ""; - - /** - * The output of the application's logger (typed). May be non-deterministic. - * - * @generated from field: repeated cosmos.base.abci.v1beta1.ABCIMessageLog logs = 7; - */ - logs: ABCIMessageLog[] = []; - - /** - * Additional information. May be non-deterministic. - * - * @generated from field: string info = 8; - */ - info = ""; - - /** - * Amount of gas requested for transaction. - * - * @generated from field: int64 gas_wanted = 9; - */ - gasWanted = protoInt64.zero; - - /** - * Amount of gas consumed by transaction. - * - * @generated from field: int64 gas_used = 10; - */ - gasUsed = protoInt64.zero; - - /** - * The request transaction bytes. - * - * @generated from field: google.protobuf.Any tx = 11; - */ - tx?: Any; - - /** - * Time of the previous block. For heights > 1, it's the weighted median of - * the timestamps of the valid votes in the block.LastCommit. For height == 1, - * it's genesis time. - * - * @generated from field: string timestamp = 12; - */ - timestamp = ""; - - /** - * Events defines all the events emitted by processing a transaction. Note, - * these events include those emitted by processing all the messages and those - * emitted from the ante. Whereas Logs contains the events, with - * additional metadata, emitted only by processing the messages. - * - * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - * - * @generated from field: repeated tendermint.abci.Event events = 13; - */ - events: Event[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.TxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "txhash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "raw_log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "logs", kind: "message", T: ABCIMessageLog, repeated: true }, - { no: 8, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "gas_wanted", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 10, name: "gas_used", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 11, name: "tx", kind: "message", T: Any }, - { no: 12, name: "timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "events", kind: "message", T: Event, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxResponse { - return new TxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxResponse { - return new TxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxResponse { - return new TxResponse().fromJsonString(jsonString, options); - } - - static equals(a: TxResponse | PlainMessage | undefined, b: TxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TxResponse, a, b); - } -} - -/** - * ABCIMessageLog defines a structure containing an indexed tx ABCI message log. - * - * @generated from message cosmos.base.abci.v1beta1.ABCIMessageLog - */ -export class ABCIMessageLog extends Message { - /** - * @generated from field: uint32 msg_index = 1; - */ - msgIndex = 0; - - /** - * @generated from field: string log = 2; - */ - log = ""; - - /** - * Events contains a slice of Event objects that were emitted during some - * execution. - * - * @generated from field: repeated cosmos.base.abci.v1beta1.StringEvent events = 3; - */ - events: StringEvent[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.ABCIMessageLog"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "events", kind: "message", T: StringEvent, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ABCIMessageLog { - return new ABCIMessageLog().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ABCIMessageLog { - return new ABCIMessageLog().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ABCIMessageLog { - return new ABCIMessageLog().fromJsonString(jsonString, options); - } - - static equals(a: ABCIMessageLog | PlainMessage | undefined, b: ABCIMessageLog | PlainMessage | undefined): boolean { - return proto3.util.equals(ABCIMessageLog, a, b); - } -} - -/** - * StringEvent defines en Event object wrapper where all the attributes - * contain key/value pairs that are strings instead of raw bytes. - * - * @generated from message cosmos.base.abci.v1beta1.StringEvent - */ -export class StringEvent extends Message { - /** - * @generated from field: string type = 1; - */ - type = ""; - - /** - * @generated from field: repeated cosmos.base.abci.v1beta1.Attribute attributes = 2; - */ - attributes: Attribute[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.StringEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "attributes", kind: "message", T: Attribute, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StringEvent { - return new StringEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StringEvent { - return new StringEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StringEvent { - return new StringEvent().fromJsonString(jsonString, options); - } - - static equals(a: StringEvent | PlainMessage | undefined, b: StringEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(StringEvent, a, b); - } -} - -/** - * Attribute defines an attribute wrapper where the key and value are - * strings instead of raw bytes. - * - * @generated from message cosmos.base.abci.v1beta1.Attribute - */ -export class Attribute extends Message { - /** - * @generated from field: string key = 1; - */ - key = ""; - - /** - * @generated from field: string value = 2; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.Attribute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Attribute { - return new Attribute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Attribute { - return new Attribute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Attribute { - return new Attribute().fromJsonString(jsonString, options); - } - - static equals(a: Attribute | PlainMessage | undefined, b: Attribute | PlainMessage | undefined): boolean { - return proto3.util.equals(Attribute, a, b); - } -} - -/** - * GasInfo defines tx execution gas context. - * - * @generated from message cosmos.base.abci.v1beta1.GasInfo - */ -export class GasInfo extends Message { - /** - * GasWanted is the maximum units of work we allow this tx to perform. - * - * @generated from field: uint64 gas_wanted = 1; - */ - gasWanted = protoInt64.zero; - - /** - * GasUsed is the amount of gas actually consumed. - * - * @generated from field: uint64 gas_used = 2; - */ - gasUsed = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.GasInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gas_wanted", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GasInfo { - return new GasInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GasInfo { - return new GasInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GasInfo { - return new GasInfo().fromJsonString(jsonString, options); - } - - static equals(a: GasInfo | PlainMessage | undefined, b: GasInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(GasInfo, a, b); - } -} - -/** - * Result is the union of ResponseFormat and ResponseCheckTx. - * - * @generated from message cosmos.base.abci.v1beta1.Result - */ -export class Result extends Message { - /** - * Data is any data returned from message or handler execution. It MUST be - * length prefixed in order to separate data from multiple message executions. - * Deprecated. This field is still populated, but prefer msg_response instead - * because it also contains the Msg response typeURL. - * - * @generated from field: bytes data = 1 [deprecated = true]; - * @deprecated - */ - data = new Uint8Array(0); - - /** - * Log contains the log information from message or handler execution. - * - * @generated from field: string log = 2; - */ - log = ""; - - /** - * Events contains a slice of Event objects that were emitted during message - * or handler execution. - * - * @generated from field: repeated tendermint.abci.Event events = 3; - */ - events: Event[] = []; - - /** - * msg_responses contains the Msg handler responses type packed in Anys. - * - * Since: cosmos-sdk 0.46 - * - * @generated from field: repeated google.protobuf.Any msg_responses = 4; - */ - msgResponses: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.Result"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "events", kind: "message", T: Event, repeated: true }, - { no: 4, name: "msg_responses", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Result { - return new Result().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Result { - return new Result().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Result { - return new Result().fromJsonString(jsonString, options); - } - - static equals(a: Result | PlainMessage | undefined, b: Result | PlainMessage | undefined): boolean { - return proto3.util.equals(Result, a, b); - } -} - -/** - * SimulationResponse defines the response generated when a transaction is - * successfully simulated. - * - * @generated from message cosmos.base.abci.v1beta1.SimulationResponse - */ -export class SimulationResponse extends Message { - /** - * @generated from field: cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - gasInfo?: GasInfo; - - /** - * @generated from field: cosmos.base.abci.v1beta1.Result result = 2; - */ - result?: Result; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.SimulationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gas_info", kind: "message", T: GasInfo }, - { no: 2, name: "result", kind: "message", T: Result }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SimulationResponse { - return new SimulationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SimulationResponse { - return new SimulationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SimulationResponse { - return new SimulationResponse().fromJsonString(jsonString, options); - } - - static equals(a: SimulationResponse | PlainMessage | undefined, b: SimulationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SimulationResponse, a, b); - } -} - -/** - * MsgData defines the data returned in a Result object during message - * execution. - * - * @generated from message cosmos.base.abci.v1beta1.MsgData - * @deprecated - */ -export class MsgData extends Message { - /** - * @generated from field: string msg_type = 1; - */ - msgType = ""; - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.MsgData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgData { - return new MsgData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgData { - return new MsgData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgData { - return new MsgData().fromJsonString(jsonString, options); - } - - static equals(a: MsgData | PlainMessage | undefined, b: MsgData | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgData, a, b); - } -} - -/** - * TxMsgData defines a list of MsgData. A transaction will have a MsgData object - * for each message. - * - * @generated from message cosmos.base.abci.v1beta1.TxMsgData - */ -export class TxMsgData extends Message { - /** - * data field is deprecated and not populated. - * - * @generated from field: repeated cosmos.base.abci.v1beta1.MsgData data = 1 [deprecated = true]; - * @deprecated - */ - data: MsgData[] = []; - - /** - * msg_responses contains the Msg handler responses packed into Anys. - * - * Since: cosmos-sdk 0.46 - * - * @generated from field: repeated google.protobuf.Any msg_responses = 2; - */ - msgResponses: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.TxMsgData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: MsgData, repeated: true }, - { no: 2, name: "msg_responses", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxMsgData { - return new TxMsgData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxMsgData { - return new TxMsgData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxMsgData { - return new TxMsgData().fromJsonString(jsonString, options); - } - - static equals(a: TxMsgData | PlainMessage | undefined, b: TxMsgData | PlainMessage | undefined): boolean { - return proto3.util.equals(TxMsgData, a, b); - } -} - -/** - * SearchTxsResult defines a structure for querying txs pageable - * - * @generated from message cosmos.base.abci.v1beta1.SearchTxsResult - */ -export class SearchTxsResult extends Message { - /** - * Count of all txs - * - * @generated from field: uint64 total_count = 1; - */ - totalCount = protoInt64.zero; - - /** - * Count of txs in current page - * - * @generated from field: uint64 count = 2; - */ - count = protoInt64.zero; - - /** - * Index of current page, start from 1 - * - * @generated from field: uint64 page_number = 3; - */ - pageNumber = protoInt64.zero; - - /** - * Count of total pages - * - * @generated from field: uint64 page_total = 4; - */ - pageTotal = protoInt64.zero; - - /** - * Max count txs per page - * - * @generated from field: uint64 limit = 5; - */ - limit = protoInt64.zero; - - /** - * List of txs in current page - * - * @generated from field: repeated cosmos.base.abci.v1beta1.TxResponse txs = 6; - */ - txs: TxResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.SearchTxsResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "page_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "page_total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "txs", kind: "message", T: TxResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SearchTxsResult { - return new SearchTxsResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SearchTxsResult { - return new SearchTxsResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SearchTxsResult { - return new SearchTxsResult().fromJsonString(jsonString, options); - } - - static equals(a: SearchTxsResult | PlainMessage | undefined, b: SearchTxsResult | PlainMessage | undefined): boolean { - return proto3.util.equals(SearchTxsResult, a, b); - } -} - -/** - * SearchBlocksResult defines a structure for querying blocks pageable - * - * @generated from message cosmos.base.abci.v1beta1.SearchBlocksResult - */ -export class SearchBlocksResult extends Message { - /** - * Count of all blocks - * - * @generated from field: int64 total_count = 1; - */ - totalCount = protoInt64.zero; - - /** - * Count of blocks in current page - * - * @generated from field: int64 count = 2; - */ - count = protoInt64.zero; - - /** - * Index of current page, start from 1 - * - * @generated from field: int64 page_number = 3; - */ - pageNumber = protoInt64.zero; - - /** - * Count of total pages - * - * @generated from field: int64 page_total = 4; - */ - pageTotal = protoInt64.zero; - - /** - * Max count blocks per page - * - * @generated from field: int64 limit = 5; - */ - limit = protoInt64.zero; - - /** - * List of blocks in current page - * - * @generated from field: repeated tendermint.types.Block blocks = 6; - */ - blocks: Block[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.abci.v1beta1.SearchBlocksResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "page_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "page_total", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "limit", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "blocks", kind: "message", T: Block, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SearchBlocksResult { - return new SearchBlocksResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SearchBlocksResult { - return new SearchBlocksResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SearchBlocksResult { - return new SearchBlocksResult().fromJsonString(jsonString, options); - } - - static equals(a: SearchBlocksResult | PlainMessage | undefined, b: SearchBlocksResult | PlainMessage | undefined): boolean { - return proto3.util.equals(SearchBlocksResult, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts deleted file mode 100644 index 7f3c0ce..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,37 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/base/node/v1beta1/query.proto (package cosmos.base.node.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - ConfigRequest, - ConfigResponse, - StatusRequest, - StatusResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "cosmos.base.node.v1beta1.Service"; - -/** - * Config queries for the operator configuration. - * - * @generated from rpc cosmos.base.node.v1beta1.Service.Config - */ -export const ServiceConfigService = { - typeName: TYPE_NAME, - method: "Config", - Request: ConfigRequest, - Response: ConfigResponse, -} as const; - -/** - * Status queries for the node status. - * - * @generated from rpc cosmos.base.node.v1beta1.Service.Status - */ -export const ServiceStatusService = { - typeName: TYPE_NAME, - method: "Status", - Request: StatusRequest, - Response: StatusResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts deleted file mode 100644 index fb7ce52..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/node/v1beta1/query_pb.ts +++ /dev/null @@ -1,204 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/node/v1beta1/query.proto (package cosmos.base.node.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * ConfigRequest defines the request structure for the Config gRPC query. - * - * @generated from message cosmos.base.node.v1beta1.ConfigRequest - */ -export class ConfigRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.node.v1beta1.ConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConfigRequest { - return new ConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConfigRequest { - return new ConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConfigRequest { - return new ConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: ConfigRequest | PlainMessage | undefined, b: ConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ConfigRequest, a, b); - } -} - -/** - * ConfigResponse defines the response structure for the Config gRPC query. - * - * @generated from message cosmos.base.node.v1beta1.ConfigResponse - */ -export class ConfigResponse extends Message { - /** - * @generated from field: string minimum_gas_price = 1; - */ - minimumGasPrice = ""; - - /** - * @generated from field: string pruning_keep_recent = 2; - */ - pruningKeepRecent = ""; - - /** - * @generated from field: string pruning_interval = 3; - */ - pruningInterval = ""; - - /** - * @generated from field: uint64 halt_height = 4; - */ - haltHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.node.v1beta1.ConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "minimum_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pruning_keep_recent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pruning_interval", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "halt_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConfigResponse { - return new ConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConfigResponse { - return new ConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConfigResponse { - return new ConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: ConfigResponse | PlainMessage | undefined, b: ConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ConfigResponse, a, b); - } -} - -/** - * StateRequest defines the request structure for the status of a node. - * - * @generated from message cosmos.base.node.v1beta1.StatusRequest - */ -export class StatusRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.node.v1beta1.StatusRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StatusRequest { - return new StatusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StatusRequest { - return new StatusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StatusRequest { - return new StatusRequest().fromJsonString(jsonString, options); - } - - static equals(a: StatusRequest | PlainMessage | undefined, b: StatusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(StatusRequest, a, b); - } -} - -/** - * StateResponse defines the response structure for the status of a node. - * - * @generated from message cosmos.base.node.v1beta1.StatusResponse - */ -export class StatusResponse extends Message { - /** - * earliest block height available in the store - * - * @generated from field: uint64 earliest_store_height = 1; - */ - earliestStoreHeight = protoInt64.zero; - - /** - * current block height - * - * @generated from field: uint64 height = 2; - */ - height = protoInt64.zero; - - /** - * block height timestamp - * - * @generated from field: google.protobuf.Timestamp timestamp = 3; - */ - timestamp?: Timestamp; - - /** - * app hash of the current block - * - * @generated from field: bytes app_hash = 4; - */ - appHash = new Uint8Array(0); - - /** - * validator hash provided by the consensus header - * - * @generated from field: bytes validator_hash = 5; - */ - validatorHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.node.v1beta1.StatusResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "earliest_store_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "timestamp", kind: "message", T: Timestamp }, - { no: 4, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "validator_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StatusResponse { - return new StatusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StatusResponse { - return new StatusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StatusResponse { - return new StatusResponse().fromJsonString(jsonString, options); - } - - static equals(a: StatusResponse | PlainMessage | undefined, b: StatusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(StatusResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/query/v1beta1/pagination_pb.ts b/libs/es-client/src/protobufs/cosmos/base/query/v1beta1/pagination_pb.ts deleted file mode 100644 index db1f8f5..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/query/v1beta1/pagination_pb.ts +++ /dev/null @@ -1,155 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/query/v1beta1/pagination.proto (package cosmos.base.query.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * PageRequest is to be embedded in gRPC request messages for efficient - * pagination. Ex: - * - * message SomeRequest { - * Foo some_parameter = 1; - * PageRequest pagination = 2; - * } - * - * @generated from message cosmos.base.query.v1beta1.PageRequest - */ -export class PageRequest extends Message { - /** - * key is a value returned in PageResponse.next_key to begin - * querying the next page most efficiently. Only one of offset or key - * should be set. - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * offset is a numeric offset that can be used when key is unavailable. - * It is less efficient than using key. Only one of offset or key should - * be set. - * - * @generated from field: uint64 offset = 2; - */ - offset = protoInt64.zero; - - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * - * @generated from field: uint64 limit = 3; - */ - limit = protoInt64.zero; - - /** - * count_total is set to true to indicate that the result set should include - * a count of the total number of items available for pagination in UIs. - * count_total is only respected when offset is used. It is ignored when key - * is set. - * - * @generated from field: bool count_total = 4; - */ - countTotal = false; - - /** - * reverse is set to true if results are to be returned in the descending order. - * - * Since: cosmos-sdk 0.43 - * - * @generated from field: bool reverse = 5; - */ - reverse = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.query.v1beta1.PageRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "count_total", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "reverse", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PageRequest { - return new PageRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PageRequest { - return new PageRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PageRequest { - return new PageRequest().fromJsonString(jsonString, options); - } - - static equals(a: PageRequest | PlainMessage | undefined, b: PageRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PageRequest, a, b); - } -} - -/** - * PageResponse is to be embedded in gRPC response messages where the - * corresponding request message has used PageRequest. - * - * message SomeResponse { - * repeated Bar results = 1; - * PageResponse page = 2; - * } - * - * @generated from message cosmos.base.query.v1beta1.PageResponse - */ -export class PageResponse extends Message { - /** - * next_key is the key to be passed to PageRequest.key to - * query the next page most efficiently. It will be empty if - * there are no more results. - * - * @generated from field: bytes next_key = 1; - */ - nextKey = new Uint8Array(0); - - /** - * total is total number of results available if PageRequest.count_total - * was set, its value is undefined otherwise - * - * @generated from field: uint64 total = 2; - */ - total = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.query.v1beta1.PageResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "next_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PageResponse { - return new PageResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PageResponse { - return new PageResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PageResponse { - return new PageResponse().fromJsonString(jsonString, options); - } - - static equals(a: PageResponse | PlainMessage | undefined, b: PageResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PageResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_cosmes.ts b/libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_cosmes.ts deleted file mode 100644 index 5852bee..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_cosmes.ts +++ /dev/null @@ -1,39 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/base/reflection/v1beta1/reflection.proto (package cosmos.base.reflection.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - ListAllInterfacesRequest, - ListAllInterfacesResponse, - ListImplementationsRequest, - ListImplementationsResponse, -} from "./reflection_pb.js"; - -const TYPE_NAME = "cosmos.base.reflection.v1beta1.ReflectionService"; - -/** - * ListAllInterfaces lists all the interfaces registered in the interface - * registry. - * - * @generated from rpc cosmos.base.reflection.v1beta1.ReflectionService.ListAllInterfaces - */ -export const ReflectionServiceListAllInterfacesService = { - typeName: TYPE_NAME, - method: "ListAllInterfaces", - Request: ListAllInterfacesRequest, - Response: ListAllInterfacesResponse, -} as const; - -/** - * ListImplementations list all the concrete types that implement a given - * interface. - * - * @generated from rpc cosmos.base.reflection.v1beta1.ReflectionService.ListImplementations - */ -export const ReflectionServiceListImplementationsService = { - typeName: TYPE_NAME, - method: "ListImplementations", - Request: ListImplementationsRequest, - Response: ListImplementationsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_pb.ts b/libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_pb.ts deleted file mode 100644 index c39080b..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/reflection/v1beta1/reflection_pb.ts +++ /dev/null @@ -1,164 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/reflection/v1beta1/reflection.proto (package cosmos.base.reflection.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. - * - * @generated from message cosmos.base.reflection.v1beta1.ListAllInterfacesRequest - */ -export class ListAllInterfacesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v1beta1.ListAllInterfacesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAllInterfacesRequest { - return new ListAllInterfacesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAllInterfacesRequest { - return new ListAllInterfacesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAllInterfacesRequest { - return new ListAllInterfacesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListAllInterfacesRequest | PlainMessage | undefined, b: ListAllInterfacesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAllInterfacesRequest, a, b); - } -} - -/** - * ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. - * - * @generated from message cosmos.base.reflection.v1beta1.ListAllInterfacesResponse - */ -export class ListAllInterfacesResponse extends Message { - /** - * interface_names is an array of all the registered interfaces. - * - * @generated from field: repeated string interface_names = 1; - */ - interfaceNames: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v1beta1.ListAllInterfacesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "interface_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAllInterfacesResponse { - return new ListAllInterfacesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAllInterfacesResponse { - return new ListAllInterfacesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAllInterfacesResponse { - return new ListAllInterfacesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListAllInterfacesResponse | PlainMessage | undefined, b: ListAllInterfacesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAllInterfacesResponse, a, b); - } -} - -/** - * ListImplementationsRequest is the request type of the ListImplementations - * RPC. - * - * @generated from message cosmos.base.reflection.v1beta1.ListImplementationsRequest - */ -export class ListImplementationsRequest extends Message { - /** - * interface_name defines the interface to query the implementations for. - * - * @generated from field: string interface_name = 1; - */ - interfaceName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v1beta1.ListImplementationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "interface_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListImplementationsRequest { - return new ListImplementationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListImplementationsRequest { - return new ListImplementationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListImplementationsRequest { - return new ListImplementationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListImplementationsRequest | PlainMessage | undefined, b: ListImplementationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListImplementationsRequest, a, b); - } -} - -/** - * ListImplementationsResponse is the response type of the ListImplementations - * RPC. - * - * @generated from message cosmos.base.reflection.v1beta1.ListImplementationsResponse - */ -export class ListImplementationsResponse extends Message { - /** - * @generated from field: repeated string implementation_message_names = 1; - */ - implementationMessageNames: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v1beta1.ListImplementationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "implementation_message_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListImplementationsResponse { - return new ListImplementationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListImplementationsResponse { - return new ListImplementationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListImplementationsResponse { - return new ListImplementationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListImplementationsResponse | PlainMessage | undefined, b: ListImplementationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListImplementationsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_cosmes.ts b/libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_cosmes.ts deleted file mode 100644 index c2e7a6a..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_cosmes.ts +++ /dev/null @@ -1,85 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/base/reflection/v2alpha1/reflection.proto (package cosmos.base.reflection.v2alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { GetAuthnDescriptorRequest, GetAuthnDescriptorResponse, GetChainDescriptorRequest, GetChainDescriptorResponse, GetCodecDescriptorRequest, GetCodecDescriptorResponse, GetConfigurationDescriptorRequest, GetConfigurationDescriptorResponse, GetQueryServicesDescriptorRequest, GetQueryServicesDescriptorResponse, GetTxDescriptorRequest, GetTxDescriptorResponse } from "./reflection_pb.js"; - -const TYPE_NAME = "cosmos.base.reflection.v2alpha1.ReflectionService"; - -/** - * GetAuthnDescriptor returns information on how to authenticate transactions in the application - * NOTE: this RPC is still experimental and might be subject to breaking changes or removal in - * future releases of the cosmos-sdk. - * - * @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetAuthnDescriptor - */ -export const ReflectionServiceGetAuthnDescriptorService = { - typeName: TYPE_NAME, - method: "GetAuthnDescriptor", - Request: GetAuthnDescriptorRequest, - Response: GetAuthnDescriptorResponse, -} as const; - -/** - * GetChainDescriptor returns the description of the chain - * - * @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetChainDescriptor - */ -export const ReflectionServiceGetChainDescriptorService = { - typeName: TYPE_NAME, - method: "GetChainDescriptor", - Request: GetChainDescriptorRequest, - Response: GetChainDescriptorResponse, -} as const; - -/** - * GetCodecDescriptor returns the descriptor of the codec of the application - * - * @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetCodecDescriptor - */ -export const ReflectionServiceGetCodecDescriptorService = { - typeName: TYPE_NAME, - method: "GetCodecDescriptor", - Request: GetCodecDescriptorRequest, - Response: GetCodecDescriptorResponse, -} as const; - -/** - * GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application - * - * @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetConfigurationDescriptor - */ -export const ReflectionServiceGetConfigurationDescriptorService = { - typeName: TYPE_NAME, - method: "GetConfigurationDescriptor", - Request: GetConfigurationDescriptorRequest, - Response: GetConfigurationDescriptorResponse, -} as const; - -/** - * GetQueryServicesDescriptor returns the available gRPC queryable services of the application - * - * @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetQueryServicesDescriptor - */ -export const ReflectionServiceGetQueryServicesDescriptorService = { - typeName: TYPE_NAME, - method: "GetQueryServicesDescriptor", - Request: GetQueryServicesDescriptorRequest, - Response: GetQueryServicesDescriptorResponse, -} as const; - -/** - * GetTxDescriptor returns information on the used transaction object and available msgs that can be used - * - * @generated from rpc cosmos.base.reflection.v2alpha1.ReflectionService.GetTxDescriptor - */ -export const ReflectionServiceGetTxDescriptorService = { - typeName: TYPE_NAME, - method: "GetTxDescriptor", - Request: GetTxDescriptorRequest, - Response: GetTxDescriptorResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_pb.ts b/libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_pb.ts deleted file mode 100644 index bdf5a67..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/reflection/v2alpha1/reflection_pb.ts +++ /dev/null @@ -1,1167 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/reflection/v2alpha1/reflection.proto (package cosmos.base.reflection.v2alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * AppDescriptor describes a cosmos-sdk based application - * - * @generated from message cosmos.base.reflection.v2alpha1.AppDescriptor - */ -export class AppDescriptor extends Message { - /** - * AuthnDescriptor provides information on how to authenticate transactions on the application - * NOTE: experimental and subject to change in future releases. - * - * @generated from field: cosmos.base.reflection.v2alpha1.AuthnDescriptor authn = 1; - */ - authn?: AuthnDescriptor; - - /** - * chain provides the chain descriptor - * - * @generated from field: cosmos.base.reflection.v2alpha1.ChainDescriptor chain = 2; - */ - chain?: ChainDescriptor; - - /** - * codec provides metadata information regarding codec related types - * - * @generated from field: cosmos.base.reflection.v2alpha1.CodecDescriptor codec = 3; - */ - codec?: CodecDescriptor; - - /** - * configuration provides metadata information regarding the sdk.Config type - * - * @generated from field: cosmos.base.reflection.v2alpha1.ConfigurationDescriptor configuration = 4; - */ - configuration?: ConfigurationDescriptor; - - /** - * query_services provides metadata information regarding the available queriable endpoints - * - * @generated from field: cosmos.base.reflection.v2alpha1.QueryServicesDescriptor query_services = 5; - */ - queryServices?: QueryServicesDescriptor; - - /** - * tx provides metadata information regarding how to send transactions to the given application - * - * @generated from field: cosmos.base.reflection.v2alpha1.TxDescriptor tx = 6; - */ - tx?: TxDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.AppDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authn", kind: "message", T: AuthnDescriptor }, - { no: 2, name: "chain", kind: "message", T: ChainDescriptor }, - { no: 3, name: "codec", kind: "message", T: CodecDescriptor }, - { no: 4, name: "configuration", kind: "message", T: ConfigurationDescriptor }, - { no: 5, name: "query_services", kind: "message", T: QueryServicesDescriptor }, - { no: 6, name: "tx", kind: "message", T: TxDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AppDescriptor { - return new AppDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AppDescriptor { - return new AppDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AppDescriptor { - return new AppDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: AppDescriptor | PlainMessage | undefined, b: AppDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(AppDescriptor, a, b); - } -} - -/** - * TxDescriptor describes the accepted transaction type - * - * @generated from message cosmos.base.reflection.v2alpha1.TxDescriptor - */ -export class TxDescriptor extends Message { - /** - * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) - * it is not meant to support polymorphism of transaction types, it is supposed to be used by - * reflection clients to understand if they can handle a specific transaction type in an application. - * - * @generated from field: string fullname = 1; - */ - fullname = ""; - - /** - * msgs lists the accepted application messages (sdk.Msg) - * - * @generated from field: repeated cosmos.base.reflection.v2alpha1.MsgDescriptor msgs = 2; - */ - msgs: MsgDescriptor[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.TxDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fullname", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "msgs", kind: "message", T: MsgDescriptor, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxDescriptor { - return new TxDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxDescriptor { - return new TxDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxDescriptor { - return new TxDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: TxDescriptor | PlainMessage | undefined, b: TxDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(TxDescriptor, a, b); - } -} - -/** - * AuthnDescriptor provides information on how to sign transactions without relying - * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures - * - * @generated from message cosmos.base.reflection.v2alpha1.AuthnDescriptor - */ -export class AuthnDescriptor extends Message { - /** - * sign_modes defines the supported signature algorithm - * - * @generated from field: repeated cosmos.base.reflection.v2alpha1.SigningModeDescriptor sign_modes = 1; - */ - signModes: SigningModeDescriptor[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.AuthnDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sign_modes", kind: "message", T: SigningModeDescriptor, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AuthnDescriptor { - return new AuthnDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AuthnDescriptor { - return new AuthnDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AuthnDescriptor { - return new AuthnDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: AuthnDescriptor | PlainMessage | undefined, b: AuthnDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(AuthnDescriptor, a, b); - } -} - -/** - * SigningModeDescriptor provides information on a signing flow of the application - * NOTE(fdymylja): here we could go as far as providing an entire flow on how - * to sign a message given a SigningModeDescriptor, but it's better to think about - * this another time - * - * @generated from message cosmos.base.reflection.v2alpha1.SigningModeDescriptor - */ -export class SigningModeDescriptor extends Message { - /** - * name defines the unique name of the signing mode - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * number is the unique int32 identifier for the sign_mode enum - * - * @generated from field: int32 number = 2; - */ - number = 0; - - /** - * authn_info_provider_method_fullname defines the fullname of the method to call to get - * the metadata required to authenticate using the provided sign_modes - * - * @generated from field: string authn_info_provider_method_fullname = 3; - */ - authnInfoProviderMethodFullname = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.SigningModeDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "authn_info_provider_method_fullname", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SigningModeDescriptor { - return new SigningModeDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SigningModeDescriptor { - return new SigningModeDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SigningModeDescriptor { - return new SigningModeDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: SigningModeDescriptor | PlainMessage | undefined, b: SigningModeDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(SigningModeDescriptor, a, b); - } -} - -/** - * ChainDescriptor describes chain information of the application - * - * @generated from message cosmos.base.reflection.v2alpha1.ChainDescriptor - */ -export class ChainDescriptor extends Message { - /** - * id is the chain id - * - * @generated from field: string id = 1; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.ChainDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChainDescriptor { - return new ChainDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChainDescriptor { - return new ChainDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChainDescriptor { - return new ChainDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: ChainDescriptor | PlainMessage | undefined, b: ChainDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(ChainDescriptor, a, b); - } -} - -/** - * CodecDescriptor describes the registered interfaces and provides metadata information on the types - * - * @generated from message cosmos.base.reflection.v2alpha1.CodecDescriptor - */ -export class CodecDescriptor extends Message { - /** - * interfaces is a list of the registerted interfaces descriptors - * - * @generated from field: repeated cosmos.base.reflection.v2alpha1.InterfaceDescriptor interfaces = 1; - */ - interfaces: InterfaceDescriptor[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.CodecDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "interfaces", kind: "message", T: InterfaceDescriptor, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CodecDescriptor { - return new CodecDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CodecDescriptor { - return new CodecDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CodecDescriptor { - return new CodecDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: CodecDescriptor | PlainMessage | undefined, b: CodecDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(CodecDescriptor, a, b); - } -} - -/** - * InterfaceDescriptor describes the implementation of an interface - * - * @generated from message cosmos.base.reflection.v2alpha1.InterfaceDescriptor - */ -export class InterfaceDescriptor extends Message { - /** - * fullname is the name of the interface - * - * @generated from field: string fullname = 1; - */ - fullname = ""; - - /** - * interface_accepting_messages contains information regarding the proto messages which contain the interface as - * google.protobuf.Any field - * - * @generated from field: repeated cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor interface_accepting_messages = 2; - */ - interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[] = []; - - /** - * interface_implementers is a list of the descriptors of the interface implementers - * - * @generated from field: repeated cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor interface_implementers = 3; - */ - interfaceImplementers: InterfaceImplementerDescriptor[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.InterfaceDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fullname", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "interface_accepting_messages", kind: "message", T: InterfaceAcceptingMessageDescriptor, repeated: true }, - { no: 3, name: "interface_implementers", kind: "message", T: InterfaceImplementerDescriptor, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceDescriptor { - return new InterfaceDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceDescriptor { - return new InterfaceDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterfaceDescriptor { - return new InterfaceDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: InterfaceDescriptor | PlainMessage | undefined, b: InterfaceDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(InterfaceDescriptor, a, b); - } -} - -/** - * InterfaceImplementerDescriptor describes an interface implementer - * - * @generated from message cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor - */ -export class InterfaceImplementerDescriptor extends Message { - /** - * fullname is the protobuf queryable name of the interface implementer - * - * @generated from field: string fullname = 1; - */ - fullname = ""; - - /** - * type_url defines the type URL used when marshalling the type as any - * this is required so we can provide type safe google.protobuf.Any marshalling and - * unmarshalling, making sure that we don't accept just 'any' type - * in our interface fields - * - * @generated from field: string type_url = 2; - */ - typeUrl = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.InterfaceImplementerDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fullname", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceImplementerDescriptor { - return new InterfaceImplementerDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceImplementerDescriptor { - return new InterfaceImplementerDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterfaceImplementerDescriptor { - return new InterfaceImplementerDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: InterfaceImplementerDescriptor | PlainMessage | undefined, b: InterfaceImplementerDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(InterfaceImplementerDescriptor, a, b); - } -} - -/** - * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains - * an interface represented as a google.protobuf.Any - * - * @generated from message cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor - */ -export class InterfaceAcceptingMessageDescriptor extends Message { - /** - * fullname is the protobuf fullname of the type containing the interface - * - * @generated from field: string fullname = 1; - */ - fullname = ""; - - /** - * field_descriptor_names is a list of the protobuf name (not fullname) of the field - * which contains the interface as google.protobuf.Any (the interface is the same, but - * it can be in multiple fields of the same proto message) - * - * @generated from field: repeated string field_descriptor_names = 2; - */ - fieldDescriptorNames: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.InterfaceAcceptingMessageDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fullname", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "field_descriptor_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterfaceAcceptingMessageDescriptor { - return new InterfaceAcceptingMessageDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterfaceAcceptingMessageDescriptor { - return new InterfaceAcceptingMessageDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterfaceAcceptingMessageDescriptor { - return new InterfaceAcceptingMessageDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: InterfaceAcceptingMessageDescriptor | PlainMessage | undefined, b: InterfaceAcceptingMessageDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(InterfaceAcceptingMessageDescriptor, a, b); - } -} - -/** - * ConfigurationDescriptor contains metadata information on the sdk.Config - * - * @generated from message cosmos.base.reflection.v2alpha1.ConfigurationDescriptor - */ -export class ConfigurationDescriptor extends Message { - /** - * bech32_account_address_prefix is the account address prefix - * - * @generated from field: string bech32_account_address_prefix = 1; - */ - bech32AccountAddressPrefix = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.ConfigurationDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bech32_account_address_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConfigurationDescriptor { - return new ConfigurationDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConfigurationDescriptor { - return new ConfigurationDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConfigurationDescriptor { - return new ConfigurationDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: ConfigurationDescriptor | PlainMessage | undefined, b: ConfigurationDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(ConfigurationDescriptor, a, b); - } -} - -/** - * MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction - * - * @generated from message cosmos.base.reflection.v2alpha1.MsgDescriptor - */ -export class MsgDescriptor extends Message { - /** - * msg_type_url contains the TypeURL of a sdk.Msg. - * - * @generated from field: string msg_type_url = 1; - */ - msgTypeUrl = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.MsgDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDescriptor { - return new MsgDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDescriptor { - return new MsgDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDescriptor { - return new MsgDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: MsgDescriptor | PlainMessage | undefined, b: MsgDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDescriptor, a, b); - } -} - -/** - * GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest - */ -export class GetAuthnDescriptorRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetAuthnDescriptorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthnDescriptorRequest { - return new GetAuthnDescriptorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthnDescriptorRequest { - return new GetAuthnDescriptorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAuthnDescriptorRequest { - return new GetAuthnDescriptorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAuthnDescriptorRequest | PlainMessage | undefined, b: GetAuthnDescriptorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthnDescriptorRequest, a, b); - } -} - -/** - * GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse - */ -export class GetAuthnDescriptorResponse extends Message { - /** - * authn describes how to authenticate to the application when sending transactions - * - * @generated from field: cosmos.base.reflection.v2alpha1.AuthnDescriptor authn = 1; - */ - authn?: AuthnDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetAuthnDescriptorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authn", kind: "message", T: AuthnDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthnDescriptorResponse { - return new GetAuthnDescriptorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthnDescriptorResponse { - return new GetAuthnDescriptorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAuthnDescriptorResponse { - return new GetAuthnDescriptorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAuthnDescriptorResponse | PlainMessage | undefined, b: GetAuthnDescriptorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthnDescriptorResponse, a, b); - } -} - -/** - * GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest - */ -export class GetChainDescriptorRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetChainDescriptorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChainDescriptorRequest { - return new GetChainDescriptorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChainDescriptorRequest { - return new GetChainDescriptorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChainDescriptorRequest { - return new GetChainDescriptorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetChainDescriptorRequest | PlainMessage | undefined, b: GetChainDescriptorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChainDescriptorRequest, a, b); - } -} - -/** - * GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse - */ -export class GetChainDescriptorResponse extends Message { - /** - * chain describes application chain information - * - * @generated from field: cosmos.base.reflection.v2alpha1.ChainDescriptor chain = 1; - */ - chain?: ChainDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetChainDescriptorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain", kind: "message", T: ChainDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChainDescriptorResponse { - return new GetChainDescriptorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChainDescriptorResponse { - return new GetChainDescriptorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetChainDescriptorResponse { - return new GetChainDescriptorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetChainDescriptorResponse | PlainMessage | undefined, b: GetChainDescriptorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetChainDescriptorResponse, a, b); - } -} - -/** - * GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest - */ -export class GetCodecDescriptorRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetCodecDescriptorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetCodecDescriptorRequest { - return new GetCodecDescriptorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetCodecDescriptorRequest { - return new GetCodecDescriptorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetCodecDescriptorRequest { - return new GetCodecDescriptorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetCodecDescriptorRequest | PlainMessage | undefined, b: GetCodecDescriptorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetCodecDescriptorRequest, a, b); - } -} - -/** - * GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse - */ -export class GetCodecDescriptorResponse extends Message { - /** - * codec describes the application codec such as registered interfaces and implementations - * - * @generated from field: cosmos.base.reflection.v2alpha1.CodecDescriptor codec = 1; - */ - codec?: CodecDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetCodecDescriptorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "codec", kind: "message", T: CodecDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetCodecDescriptorResponse { - return new GetCodecDescriptorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetCodecDescriptorResponse { - return new GetCodecDescriptorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetCodecDescriptorResponse { - return new GetCodecDescriptorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetCodecDescriptorResponse | PlainMessage | undefined, b: GetCodecDescriptorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetCodecDescriptorResponse, a, b); - } -} - -/** - * GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest - */ -export class GetConfigurationDescriptorRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetConfigurationDescriptorRequest { - return new GetConfigurationDescriptorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetConfigurationDescriptorRequest { - return new GetConfigurationDescriptorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetConfigurationDescriptorRequest { - return new GetConfigurationDescriptorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetConfigurationDescriptorRequest | PlainMessage | undefined, b: GetConfigurationDescriptorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetConfigurationDescriptorRequest, a, b); - } -} - -/** - * GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse - */ -export class GetConfigurationDescriptorResponse extends Message { - /** - * config describes the application's sdk.Config - * - * @generated from field: cosmos.base.reflection.v2alpha1.ConfigurationDescriptor config = 1; - */ - config?: ConfigurationDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetConfigurationDescriptorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "message", T: ConfigurationDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetConfigurationDescriptorResponse { - return new GetConfigurationDescriptorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetConfigurationDescriptorResponse { - return new GetConfigurationDescriptorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetConfigurationDescriptorResponse { - return new GetConfigurationDescriptorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetConfigurationDescriptorResponse | PlainMessage | undefined, b: GetConfigurationDescriptorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetConfigurationDescriptorResponse, a, b); - } -} - -/** - * GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest - */ -export class GetQueryServicesDescriptorRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetQueryServicesDescriptorRequest { - return new GetQueryServicesDescriptorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetQueryServicesDescriptorRequest { - return new GetQueryServicesDescriptorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetQueryServicesDescriptorRequest { - return new GetQueryServicesDescriptorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetQueryServicesDescriptorRequest | PlainMessage | undefined, b: GetQueryServicesDescriptorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetQueryServicesDescriptorRequest, a, b); - } -} - -/** - * GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse - */ -export class GetQueryServicesDescriptorResponse extends Message { - /** - * queries provides information on the available queryable services - * - * @generated from field: cosmos.base.reflection.v2alpha1.QueryServicesDescriptor queries = 1; - */ - queries?: QueryServicesDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "queries", kind: "message", T: QueryServicesDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetQueryServicesDescriptorResponse { - return new GetQueryServicesDescriptorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetQueryServicesDescriptorResponse { - return new GetQueryServicesDescriptorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetQueryServicesDescriptorResponse { - return new GetQueryServicesDescriptorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetQueryServicesDescriptorResponse | PlainMessage | undefined, b: GetQueryServicesDescriptorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetQueryServicesDescriptorResponse, a, b); - } -} - -/** - * GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest - */ -export class GetTxDescriptorRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetTxDescriptorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTxDescriptorRequest { - return new GetTxDescriptorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTxDescriptorRequest { - return new GetTxDescriptorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTxDescriptorRequest { - return new GetTxDescriptorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTxDescriptorRequest | PlainMessage | undefined, b: GetTxDescriptorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTxDescriptorRequest, a, b); - } -} - -/** - * GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC - * - * @generated from message cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse - */ -export class GetTxDescriptorResponse extends Message { - /** - * tx provides information on msgs that can be forwarded to the application - * alongside the accepted transaction protobuf type - * - * @generated from field: cosmos.base.reflection.v2alpha1.TxDescriptor tx = 1; - */ - tx?: TxDescriptor; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.GetTxDescriptorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "message", T: TxDescriptor }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTxDescriptorResponse { - return new GetTxDescriptorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTxDescriptorResponse { - return new GetTxDescriptorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTxDescriptorResponse { - return new GetTxDescriptorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTxDescriptorResponse | PlainMessage | undefined, b: GetTxDescriptorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTxDescriptorResponse, a, b); - } -} - -/** - * QueryServicesDescriptor contains the list of cosmos-sdk queriable services - * - * @generated from message cosmos.base.reflection.v2alpha1.QueryServicesDescriptor - */ -export class QueryServicesDescriptor extends Message { - /** - * query_services is a list of cosmos-sdk QueryServiceDescriptor - * - * @generated from field: repeated cosmos.base.reflection.v2alpha1.QueryServiceDescriptor query_services = 1; - */ - queryServices: QueryServiceDescriptor[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.QueryServicesDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "query_services", kind: "message", T: QueryServiceDescriptor, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryServicesDescriptor { - return new QueryServicesDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryServicesDescriptor { - return new QueryServicesDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryServicesDescriptor { - return new QueryServicesDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: QueryServicesDescriptor | PlainMessage | undefined, b: QueryServicesDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryServicesDescriptor, a, b); - } -} - -/** - * QueryServiceDescriptor describes a cosmos-sdk queryable service - * - * @generated from message cosmos.base.reflection.v2alpha1.QueryServiceDescriptor - */ -export class QueryServiceDescriptor extends Message { - /** - * fullname is the protobuf fullname of the service descriptor - * - * @generated from field: string fullname = 1; - */ - fullname = ""; - - /** - * is_module describes if this service is actually exposed by an application's module - * - * @generated from field: bool is_module = 2; - */ - isModule = false; - - /** - * methods provides a list of query service methods - * - * @generated from field: repeated cosmos.base.reflection.v2alpha1.QueryMethodDescriptor methods = 3; - */ - methods: QueryMethodDescriptor[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.QueryServiceDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fullname", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "is_module", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "methods", kind: "message", T: QueryMethodDescriptor, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryServiceDescriptor { - return new QueryServiceDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryServiceDescriptor { - return new QueryServiceDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryServiceDescriptor { - return new QueryServiceDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: QueryServiceDescriptor | PlainMessage | undefined, b: QueryServiceDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryServiceDescriptor, a, b); - } -} - -/** - * QueryMethodDescriptor describes a queryable method of a query service - * no other info is provided beside method name and tendermint queryable path - * because it would be redundant with the grpc reflection service - * - * @generated from message cosmos.base.reflection.v2alpha1.QueryMethodDescriptor - */ -export class QueryMethodDescriptor extends Message { - /** - * name is the protobuf name (not fullname) of the method - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * full_query_path is the path that can be used to query - * this method via tendermint abci.Query - * - * @generated from field: string full_query_path = 2; - */ - fullQueryPath = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.reflection.v2alpha1.QueryMethodDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "full_query_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryMethodDescriptor { - return new QueryMethodDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryMethodDescriptor { - return new QueryMethodDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryMethodDescriptor { - return new QueryMethodDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: QueryMethodDescriptor | PlainMessage | undefined, b: QueryMethodDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryMethodDescriptor, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_cosmes.ts deleted file mode 100644 index 819e369..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,97 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/base/tendermint/v1beta1/query.proto (package cosmos.base.tendermint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ABCIQueryRequest, ABCIQueryResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.base.tendermint.v1beta1.Service"; - -/** - * GetNodeInfo queries the current node info. - * - * @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetNodeInfo - */ -export const ServiceGetNodeInfoService = { - typeName: TYPE_NAME, - method: "GetNodeInfo", - Request: GetNodeInfoRequest, - Response: GetNodeInfoResponse, -} as const; - -/** - * GetSyncing queries node syncing. - * - * @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetSyncing - */ -export const ServiceGetSyncingService = { - typeName: TYPE_NAME, - method: "GetSyncing", - Request: GetSyncingRequest, - Response: GetSyncingResponse, -} as const; - -/** - * GetLatestBlock returns the latest block. - * - * @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetLatestBlock - */ -export const ServiceGetLatestBlockService = { - typeName: TYPE_NAME, - method: "GetLatestBlock", - Request: GetLatestBlockRequest, - Response: GetLatestBlockResponse, -} as const; - -/** - * GetBlockByHeight queries block for given height. - * - * @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetBlockByHeight - */ -export const ServiceGetBlockByHeightService = { - typeName: TYPE_NAME, - method: "GetBlockByHeight", - Request: GetBlockByHeightRequest, - Response: GetBlockByHeightResponse, -} as const; - -/** - * GetLatestValidatorSet queries latest validator-set. - * - * @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetLatestValidatorSet - */ -export const ServiceGetLatestValidatorSetService = { - typeName: TYPE_NAME, - method: "GetLatestValidatorSet", - Request: GetLatestValidatorSetRequest, - Response: GetLatestValidatorSetResponse, -} as const; - -/** - * GetValidatorSetByHeight queries validator-set at a given height. - * - * @generated from rpc cosmos.base.tendermint.v1beta1.Service.GetValidatorSetByHeight - */ -export const ServiceGetValidatorSetByHeightService = { - typeName: TYPE_NAME, - method: "GetValidatorSetByHeight", - Request: GetValidatorSetByHeightRequest, - Response: GetValidatorSetByHeightResponse, -} as const; - -/** - * ABCIQuery defines a query handler that supports ABCI queries directly to the - * application, bypassing Tendermint completely. The ABCI query must contain - * a valid and supported path, including app, custom, p2p, and store. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.base.tendermint.v1beta1.Service.ABCIQuery - */ -export const ServiceABCIQueryService = { - typeName: TYPE_NAME, - method: "ABCIQuery", - Request: ABCIQueryRequest, - Response: ABCIQueryResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_pb.ts deleted file mode 100644 index 2efdb62..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/query_pb.ts +++ /dev/null @@ -1,983 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/tendermint/v1beta1/query.proto (package cosmos.base.tendermint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../query/v1beta1/pagination_pb.js"; -import { BlockID } from "../../../../tendermint/types/types_pb.js"; -import { Block } from "../../../../tendermint/types/block_pb.js"; -import { Block as Block$1 } from "./types_pb.js"; -import { DefaultNodeInfo } from "../../../../tendermint/p2p/types_pb.js"; - -/** - * GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest - */ -export class GetValidatorSetByHeightRequest extends Message { - /** - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * pagination defines an pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetValidatorSetByHeightRequest { - return new GetValidatorSetByHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetValidatorSetByHeightRequest { - return new GetValidatorSetByHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetValidatorSetByHeightRequest { - return new GetValidatorSetByHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetValidatorSetByHeightRequest | PlainMessage | undefined, b: GetValidatorSetByHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetValidatorSetByHeightRequest, a, b); - } -} - -/** - * GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse - */ -export class GetValidatorSetByHeightResponse extends Message { - /** - * @generated from field: int64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - validators: Validator[] = []; - - /** - * pagination defines an pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "validators", kind: "message", T: Validator, repeated: true }, - { no: 3, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetValidatorSetByHeightResponse { - return new GetValidatorSetByHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetValidatorSetByHeightResponse { - return new GetValidatorSetByHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetValidatorSetByHeightResponse { - return new GetValidatorSetByHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetValidatorSetByHeightResponse | PlainMessage | undefined, b: GetValidatorSetByHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetValidatorSetByHeightResponse, a, b); - } -} - -/** - * GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest - */ -export class GetLatestValidatorSetRequest extends Message { - /** - * pagination defines an pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestValidatorSetRequest { - return new GetLatestValidatorSetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestValidatorSetRequest { - return new GetLatestValidatorSetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLatestValidatorSetRequest { - return new GetLatestValidatorSetRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetLatestValidatorSetRequest | PlainMessage | undefined, b: GetLatestValidatorSetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLatestValidatorSetRequest, a, b); - } -} - -/** - * GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse - */ -export class GetLatestValidatorSetResponse extends Message { - /** - * @generated from field: int64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.base.tendermint.v1beta1.Validator validators = 2; - */ - validators: Validator[] = []; - - /** - * pagination defines an pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "validators", kind: "message", T: Validator, repeated: true }, - { no: 3, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestValidatorSetResponse { - return new GetLatestValidatorSetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestValidatorSetResponse { - return new GetLatestValidatorSetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLatestValidatorSetResponse { - return new GetLatestValidatorSetResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetLatestValidatorSetResponse | PlainMessage | undefined, b: GetLatestValidatorSetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLatestValidatorSetResponse, a, b); - } -} - -/** - * Validator is the type for the validator-set. - * - * @generated from message cosmos.base.tendermint.v1beta1.Validator - */ -export class Validator extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: google.protobuf.Any pub_key = 2; - */ - pubKey?: Any; - - /** - * @generated from field: int64 voting_power = 3; - */ - votingPower = protoInt64.zero; - - /** - * @generated from field: int64 proposer_priority = 4; - */ - proposerPriority = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.Validator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pub_key", kind: "message", T: Any }, - { no: 3, name: "voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "proposer_priority", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Validator { - return new Validator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Validator { - return new Validator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Validator { - return new Validator().fromJsonString(jsonString, options); - } - - static equals(a: Validator | PlainMessage | undefined, b: Validator | PlainMessage | undefined): boolean { - return proto3.util.equals(Validator, a, b); - } -} - -/** - * GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest - */ -export class GetBlockByHeightRequest extends Message { - /** - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlockByHeightRequest { - return new GetBlockByHeightRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlockByHeightRequest { - return new GetBlockByHeightRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlockByHeightRequest { - return new GetBlockByHeightRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetBlockByHeightRequest | PlainMessage | undefined, b: GetBlockByHeightRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlockByHeightRequest, a, b); - } -} - -/** - * GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse - */ -export class GetBlockByHeightResponse extends Message { - /** - * @generated from field: tendermint.types.BlockID block_id = 1; - */ - blockId?: BlockID; - - /** - * Deprecated: please use `sdk_block` instead - * - * @generated from field: tendermint.types.Block block = 2; - */ - block?: Block; - - /** - * Since: cosmos-sdk 0.47 - * - * @generated from field: cosmos.base.tendermint.v1beta1.Block sdk_block = 3; - */ - sdkBlock?: Block$1; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_id", kind: "message", T: BlockID }, - { no: 2, name: "block", kind: "message", T: Block }, - { no: 3, name: "sdk_block", kind: "message", T: Block$1 }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlockByHeightResponse { - return new GetBlockByHeightResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlockByHeightResponse { - return new GetBlockByHeightResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlockByHeightResponse { - return new GetBlockByHeightResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBlockByHeightResponse | PlainMessage | undefined, b: GetBlockByHeightResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlockByHeightResponse, a, b); - } -} - -/** - * GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetLatestBlockRequest - */ -export class GetLatestBlockRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetLatestBlockRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestBlockRequest { - return new GetLatestBlockRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestBlockRequest { - return new GetLatestBlockRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLatestBlockRequest { - return new GetLatestBlockRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetLatestBlockRequest | PlainMessage | undefined, b: GetLatestBlockRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLatestBlockRequest, a, b); - } -} - -/** - * GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetLatestBlockResponse - */ -export class GetLatestBlockResponse extends Message { - /** - * @generated from field: tendermint.types.BlockID block_id = 1; - */ - blockId?: BlockID; - - /** - * Deprecated: please use `sdk_block` instead - * - * @generated from field: tendermint.types.Block block = 2; - */ - block?: Block; - - /** - * Since: cosmos-sdk 0.47 - * - * @generated from field: cosmos.base.tendermint.v1beta1.Block sdk_block = 3; - */ - sdkBlock?: Block$1; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetLatestBlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_id", kind: "message", T: BlockID }, - { no: 2, name: "block", kind: "message", T: Block }, - { no: 3, name: "sdk_block", kind: "message", T: Block$1 }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestBlockResponse { - return new GetLatestBlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestBlockResponse { - return new GetLatestBlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLatestBlockResponse { - return new GetLatestBlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetLatestBlockResponse | PlainMessage | undefined, b: GetLatestBlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLatestBlockResponse, a, b); - } -} - -/** - * GetSyncingRequest is the request type for the Query/GetSyncing RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetSyncingRequest - */ -export class GetSyncingRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetSyncingRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSyncingRequest { - return new GetSyncingRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSyncingRequest { - return new GetSyncingRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSyncingRequest { - return new GetSyncingRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetSyncingRequest | PlainMessage | undefined, b: GetSyncingRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSyncingRequest, a, b); - } -} - -/** - * GetSyncingResponse is the response type for the Query/GetSyncing RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetSyncingResponse - */ -export class GetSyncingResponse extends Message { - /** - * @generated from field: bool syncing = 1; - */ - syncing = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetSyncingResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "syncing", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSyncingResponse { - return new GetSyncingResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSyncingResponse { - return new GetSyncingResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSyncingResponse { - return new GetSyncingResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetSyncingResponse | PlainMessage | undefined, b: GetSyncingResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSyncingResponse, a, b); - } -} - -/** - * GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetNodeInfoRequest - */ -export class GetNodeInfoRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetNodeInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetNodeInfoRequest { - return new GetNodeInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetNodeInfoRequest { - return new GetNodeInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetNodeInfoRequest { - return new GetNodeInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetNodeInfoRequest | PlainMessage | undefined, b: GetNodeInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetNodeInfoRequest, a, b); - } -} - -/** - * GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. - * - * @generated from message cosmos.base.tendermint.v1beta1.GetNodeInfoResponse - */ -export class GetNodeInfoResponse extends Message { - /** - * @generated from field: tendermint.p2p.DefaultNodeInfo default_node_info = 1; - */ - defaultNodeInfo?: DefaultNodeInfo; - - /** - * @generated from field: cosmos.base.tendermint.v1beta1.VersionInfo application_version = 2; - */ - applicationVersion?: VersionInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.GetNodeInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "default_node_info", kind: "message", T: DefaultNodeInfo }, - { no: 2, name: "application_version", kind: "message", T: VersionInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetNodeInfoResponse { - return new GetNodeInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetNodeInfoResponse { - return new GetNodeInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetNodeInfoResponse { - return new GetNodeInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetNodeInfoResponse | PlainMessage | undefined, b: GetNodeInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetNodeInfoResponse, a, b); - } -} - -/** - * VersionInfo is the type for the GetNodeInfoResponse message. - * - * @generated from message cosmos.base.tendermint.v1beta1.VersionInfo - */ -export class VersionInfo extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: string app_name = 2; - */ - appName = ""; - - /** - * @generated from field: string version = 3; - */ - version = ""; - - /** - * @generated from field: string git_commit = 4; - */ - gitCommit = ""; - - /** - * @generated from field: string build_tags = 5; - */ - buildTags = ""; - - /** - * @generated from field: string go_version = 6; - */ - goVersion = ""; - - /** - * @generated from field: repeated cosmos.base.tendermint.v1beta1.Module build_deps = 7; - */ - buildDeps: Module[] = []; - - /** - * Since: cosmos-sdk 0.43 - * - * @generated from field: string cosmos_sdk_version = 8; - */ - cosmosSdkVersion = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.VersionInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "app_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "git_commit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "build_tags", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "go_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "build_deps", kind: "message", T: Module, repeated: true }, - { no: 8, name: "cosmos_sdk_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VersionInfo { - return new VersionInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VersionInfo { - return new VersionInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VersionInfo { - return new VersionInfo().fromJsonString(jsonString, options); - } - - static equals(a: VersionInfo | PlainMessage | undefined, b: VersionInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(VersionInfo, a, b); - } -} - -/** - * Module is the type for VersionInfo - * - * @generated from message cosmos.base.tendermint.v1beta1.Module - */ -export class Module extends Message { - /** - * module path - * - * @generated from field: string path = 1; - */ - path = ""; - - /** - * module version - * - * @generated from field: string version = 2; - */ - version = ""; - - /** - * checksum - * - * @generated from field: string sum = 3; - */ - sum = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - -/** - * ABCIQueryRequest defines the request structure for the ABCIQuery gRPC query. - * - * @generated from message cosmos.base.tendermint.v1beta1.ABCIQueryRequest - */ -export class ABCIQueryRequest extends Message { - /** - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - /** - * @generated from field: string path = 2; - */ - path = ""; - - /** - * @generated from field: int64 height = 3; - */ - height = protoInt64.zero; - - /** - * @generated from field: bool prove = 4; - */ - prove = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.ABCIQueryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "prove", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ABCIQueryRequest { - return new ABCIQueryRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ABCIQueryRequest { - return new ABCIQueryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ABCIQueryRequest { - return new ABCIQueryRequest().fromJsonString(jsonString, options); - } - - static equals(a: ABCIQueryRequest | PlainMessage | undefined, b: ABCIQueryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ABCIQueryRequest, a, b); - } -} - -/** - * ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query. - * - * Note: This type is a duplicate of the ResponseQuery proto type defined in - * Tendermint. - * - * @generated from message cosmos.base.tendermint.v1beta1.ABCIQueryResponse - */ -export class ABCIQueryResponse extends Message { - /** - * @generated from field: uint32 code = 1; - */ - code = 0; - - /** - * nondeterministic - * - * @generated from field: string log = 3; - */ - log = ""; - - /** - * nondeterministic - * - * @generated from field: string info = 4; - */ - info = ""; - - /** - * @generated from field: int64 index = 5; - */ - index = protoInt64.zero; - - /** - * @generated from field: bytes key = 6; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 7; - */ - value = new Uint8Array(0); - - /** - * @generated from field: cosmos.base.tendermint.v1beta1.ProofOps proof_ops = 8; - */ - proofOps?: ProofOps; - - /** - * @generated from field: int64 height = 9; - */ - height = protoInt64.zero; - - /** - * @generated from field: string codespace = 10; - */ - codespace = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.ABCIQueryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proof_ops", kind: "message", T: ProofOps }, - { no: 9, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 10, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ABCIQueryResponse { - return new ABCIQueryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ABCIQueryResponse { - return new ABCIQueryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ABCIQueryResponse { - return new ABCIQueryResponse().fromJsonString(jsonString, options); - } - - static equals(a: ABCIQueryResponse | PlainMessage | undefined, b: ABCIQueryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ABCIQueryResponse, a, b); - } -} - -/** - * ProofOp defines an operation used for calculating Merkle root. The data could - * be arbitrary format, providing necessary data for example neighbouring node - * hash. - * - * Note: This type is a duplicate of the ProofOp proto type defined in Tendermint. - * - * @generated from message cosmos.base.tendermint.v1beta1.ProofOp - */ -export class ProofOp extends Message { - /** - * @generated from field: string type = 1; - */ - type = ""; - - /** - * @generated from field: bytes key = 2; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes data = 3; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.ProofOp"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofOp { - return new ProofOp().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofOp { - return new ProofOp().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofOp { - return new ProofOp().fromJsonString(jsonString, options); - } - - static equals(a: ProofOp | PlainMessage | undefined, b: ProofOp | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofOp, a, b); - } -} - -/** - * ProofOps is Merkle proof defined by the list of ProofOps. - * - * Note: This type is a duplicate of the ProofOps proto type defined in Tendermint. - * - * @generated from message cosmos.base.tendermint.v1beta1.ProofOps - */ -export class ProofOps extends Message { - /** - * @generated from field: repeated cosmos.base.tendermint.v1beta1.ProofOp ops = 1; - */ - ops: ProofOp[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.ProofOps"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ops", kind: "message", T: ProofOp, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofOps { - return new ProofOps().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofOps { - return new ProofOps().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofOps { - return new ProofOps().fromJsonString(jsonString, options); - } - - static equals(a: ProofOps | PlainMessage | undefined, b: ProofOps | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofOps, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/types_pb.ts b/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/types_pb.ts deleted file mode 100644 index dff21c4..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/tendermint/v1beta1/types_pb.ts +++ /dev/null @@ -1,218 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/tendermint/v1beta1/types.proto (package cosmos.base.tendermint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { BlockID, Commit, Data } from "../../../../tendermint/types/types_pb.js"; -import { EvidenceList } from "../../../../tendermint/types/evidence_pb.js"; -import { Consensus } from "../../../../tendermint/version/types_pb.js"; - -/** - * Block is tendermint type Block, with the Header proposer address - * field converted to bech32 string. - * - * @generated from message cosmos.base.tendermint.v1beta1.Block - */ -export class Block extends Message { - /** - * @generated from field: cosmos.base.tendermint.v1beta1.Header header = 1; - */ - header?: Header; - - /** - * @generated from field: tendermint.types.Data data = 2; - */ - data?: Data; - - /** - * @generated from field: tendermint.types.EvidenceList evidence = 3; - */ - evidence?: EvidenceList; - - /** - * @generated from field: tendermint.types.Commit last_commit = 4; - */ - lastCommit?: Commit; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.Block"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: Header }, - { no: 2, name: "data", kind: "message", T: Data }, - { no: 3, name: "evidence", kind: "message", T: EvidenceList }, - { no: 4, name: "last_commit", kind: "message", T: Commit }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Block { - return new Block().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Block { - return new Block().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Block { - return new Block().fromJsonString(jsonString, options); - } - - static equals(a: Block | PlainMessage | undefined, b: Block | PlainMessage | undefined): boolean { - return proto3.util.equals(Block, a, b); - } -} - -/** - * Header defines the structure of a Tendermint block header. - * - * @generated from message cosmos.base.tendermint.v1beta1.Header - */ -export class Header extends Message
{ - /** - * basic block info - * - * @generated from field: tendermint.version.Consensus version = 1; - */ - version?: Consensus; - - /** - * @generated from field: string chain_id = 2; - */ - chainId = ""; - - /** - * @generated from field: int64 height = 3; - */ - height = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp time = 4; - */ - time?: Timestamp; - - /** - * prev block info - * - * @generated from field: tendermint.types.BlockID last_block_id = 5; - */ - lastBlockId?: BlockID; - - /** - * hashes of block data - * - * commit from validators from the last block - * - * @generated from field: bytes last_commit_hash = 6; - */ - lastCommitHash = new Uint8Array(0); - - /** - * transactions - * - * @generated from field: bytes data_hash = 7; - */ - dataHash = new Uint8Array(0); - - /** - * hashes from the app output from the prev block - * - * validators for the current block - * - * @generated from field: bytes validators_hash = 8; - */ - validatorsHash = new Uint8Array(0); - - /** - * validators for the next block - * - * @generated from field: bytes next_validators_hash = 9; - */ - nextValidatorsHash = new Uint8Array(0); - - /** - * consensus params for current block - * - * @generated from field: bytes consensus_hash = 10; - */ - consensusHash = new Uint8Array(0); - - /** - * state after txs from the previous block - * - * @generated from field: bytes app_hash = 11; - */ - appHash = new Uint8Array(0); - - /** - * root hash of all results from the txs from the previous block - * - * @generated from field: bytes last_results_hash = 12; - */ - lastResultsHash = new Uint8Array(0); - - /** - * consensus info - * - * evidence included in the block - * - * @generated from field: bytes evidence_hash = 13; - */ - evidenceHash = new Uint8Array(0); - - /** - * proposer_address is the original block proposer address, formatted as a Bech32 string. - * In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string - * for better UX. - * - * original proposer of the block - * - * @generated from field: string proposer_address = 14; - */ - proposerAddress = ""; - - constructor(data?: PartialMessage
) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.tendermint.v1beta1.Header"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "message", T: Consensus }, - { no: 2, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "time", kind: "message", T: Timestamp }, - { no: 5, name: "last_block_id", kind: "message", T: BlockID }, - { no: 6, name: "last_commit_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "data_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "consensus_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 12, name: "last_results_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 13, name: "evidence_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 14, name: "proposer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Header { - return new Header().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Header { - return new Header().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Header { - return new Header().fromJsonString(jsonString, options); - } - - static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { - return proto3.util.equals(Header, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/base/v1beta1/coin_pb.ts b/libs/es-client/src/protobufs/cosmos/base/v1beta1/coin_pb.ts deleted file mode 100644 index b0e2dd6..0000000 --- a/libs/es-client/src/protobufs/cosmos/base/v1beta1/coin_pb.ts +++ /dev/null @@ -1,184 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/base/v1beta1/coin.proto (package cosmos.base.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Coin defines a token with a denomination and an amount. - * - * NOTE: The amount field is an Int which implements the custom method - * signatures required by gogoproto. - * - * @generated from message cosmos.base.v1beta1.Coin - */ -export class Coin extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: string amount = 2; - */ - amount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.v1beta1.Coin"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Coin { - return new Coin().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Coin { - return new Coin().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Coin { - return new Coin().fromJsonString(jsonString, options); - } - - static equals(a: Coin | PlainMessage | undefined, b: Coin | PlainMessage | undefined): boolean { - return proto3.util.equals(Coin, a, b); - } -} - -/** - * DecCoin defines a token with a denomination and a decimal amount. - * - * NOTE: The amount field is an Dec which implements the custom method - * signatures required by gogoproto. - * - * @generated from message cosmos.base.v1beta1.DecCoin - */ -export class DecCoin extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: string amount = 2; - */ - amount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.v1beta1.DecCoin"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DecCoin { - return new DecCoin().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DecCoin { - return new DecCoin().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DecCoin { - return new DecCoin().fromJsonString(jsonString, options); - } - - static equals(a: DecCoin | PlainMessage | undefined, b: DecCoin | PlainMessage | undefined): boolean { - return proto3.util.equals(DecCoin, a, b); - } -} - -/** - * IntProto defines a Protobuf wrapper around an Int object. - * Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal. - * - * @generated from message cosmos.base.v1beta1.IntProto - */ -export class IntProto extends Message { - /** - * @generated from field: string int = 1; - */ - int = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.v1beta1.IntProto"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "int", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IntProto { - return new IntProto().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IntProto { - return new IntProto().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IntProto { - return new IntProto().fromJsonString(jsonString, options); - } - - static equals(a: IntProto | PlainMessage | undefined, b: IntProto | PlainMessage | undefined): boolean { - return proto3.util.equals(IntProto, a, b); - } -} - -/** - * DecProto defines a Protobuf wrapper around a Dec object. - * Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal. - * - * @generated from message cosmos.base.v1beta1.DecProto - */ -export class DecProto extends Message { - /** - * @generated from field: string dec = 1; - */ - dec = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.base.v1beta1.DecProto"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dec", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DecProto { - return new DecProto().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DecProto { - return new DecProto().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DecProto { - return new DecProto().fromJsonString(jsonString, options); - } - - static equals(a: DecProto | PlainMessage | undefined, b: DecProto | PlainMessage | undefined): boolean { - return proto3.util.equals(DecProto, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/circuit/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/circuit/module/v1/module_pb.ts deleted file mode 100644 index 52c2666..0000000 --- a/libs/es-client/src/protobufs/cosmos/circuit/module/v1/module_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/circuit/module/v1/module.proto (package cosmos.circuit.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the circuit module. - * - * @generated from message cosmos.circuit.module.v1.Module - */ -export class Module extends Message { - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/circuit/v1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/circuit/v1/query_cosmes.ts deleted file mode 100644 index 212c3c4..0000000 --- a/libs/es-client/src/protobufs/cosmos/circuit/v1/query_cosmes.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/circuit/v1/query.proto (package cosmos.circuit.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { AccountResponse, AccountsResponse, DisabledListResponse, QueryAccountRequest, QueryAccountsRequest, QueryDisabledListRequest } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.circuit.v1.Query"; - -/** - * Account returns account permissions. - * - * @generated from rpc cosmos.circuit.v1.Query.Account - */ -export const QueryAccountService = { - typeName: TYPE_NAME, - method: "Account", - Request: QueryAccountRequest, - Response: AccountResponse, -} as const; - -/** - * Account returns account permissions. - * - * @generated from rpc cosmos.circuit.v1.Query.Accounts - */ -export const QueryAccountsService = { - typeName: TYPE_NAME, - method: "Accounts", - Request: QueryAccountsRequest, - Response: AccountsResponse, -} as const; - -/** - * DisabledList returns a list of disabled message urls - * - * @generated from rpc cosmos.circuit.v1.Query.DisabledList - */ -export const QueryDisabledListService = { - typeName: TYPE_NAME, - method: "DisabledList", - Request: QueryDisabledListRequest, - Response: DisabledListResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/circuit/v1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/circuit/v1/query_pb.ts deleted file mode 100644 index 79bf342..0000000 --- a/libs/es-client/src/protobufs/cosmos/circuit/v1/query_pb.ts +++ /dev/null @@ -1,248 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/circuit/v1/query.proto (package cosmos.circuit.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { GenesisAccountPermissions, Permissions } from "./types_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryAccountRequest is the request type for the Query/Account RPC method. - * - * @generated from message cosmos.circuit.v1.QueryAccountRequest - */ -export class QueryAccountRequest extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.QueryAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountRequest, a, b); - } -} - -/** - * AccountResponse is the response type for the Query/Account RPC method. - * - * @generated from message cosmos.circuit.v1.AccountResponse - */ -export class AccountResponse extends Message { - /** - * @generated from field: cosmos.circuit.v1.Permissions permission = 1; - */ - permission?: Permissions; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.AccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "permission", kind: "message", T: Permissions }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountResponse { - return new AccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountResponse { - return new AccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountResponse { - return new AccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountResponse | PlainMessage | undefined, b: AccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountResponse, a, b); - } -} - -/** - * QueryAccountsRequest is the request type for the Query/Accounts RPC method. - * - * @generated from message cosmos.circuit.v1.QueryAccountsRequest - */ -export class QueryAccountsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.QueryAccountsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountsRequest { - return new QueryAccountsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountsRequest { - return new QueryAccountsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountsRequest { - return new QueryAccountsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountsRequest | PlainMessage | undefined, b: QueryAccountsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountsRequest, a, b); - } -} - -/** - * AccountsResponse is the response type for the Query/Accounts RPC method. - * - * @generated from message cosmos.circuit.v1.AccountsResponse - */ -export class AccountsResponse extends Message { - /** - * @generated from field: repeated cosmos.circuit.v1.GenesisAccountPermissions accounts = 1; - */ - accounts: GenesisAccountPermissions[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.AccountsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accounts", kind: "message", T: GenesisAccountPermissions, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountsResponse { - return new AccountsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountsResponse { - return new AccountsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountsResponse { - return new AccountsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountsResponse | PlainMessage | undefined, b: AccountsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountsResponse, a, b); - } -} - -/** - * QueryDisableListRequest is the request type for the Query/DisabledList RPC method. - * - * @generated from message cosmos.circuit.v1.QueryDisabledListRequest - */ -export class QueryDisabledListRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.QueryDisabledListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDisabledListRequest { - return new QueryDisabledListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDisabledListRequest { - return new QueryDisabledListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDisabledListRequest { - return new QueryDisabledListRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDisabledListRequest | PlainMessage | undefined, b: QueryDisabledListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDisabledListRequest, a, b); - } -} - -/** - * DisabledListResponse is the response type for the Query/DisabledList RPC method. - * - * @generated from message cosmos.circuit.v1.DisabledListResponse - */ -export class DisabledListResponse extends Message { - /** - * @generated from field: repeated string disabled_list = 1; - */ - disabledList: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.DisabledListResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "disabled_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DisabledListResponse { - return new DisabledListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DisabledListResponse { - return new DisabledListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DisabledListResponse { - return new DisabledListResponse().fromJsonString(jsonString, options); - } - - static equals(a: DisabledListResponse | PlainMessage | undefined, b: DisabledListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DisabledListResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts deleted file mode 100644 index e05a82a..0000000 --- a/libs/es-client/src/protobufs/cosmos/circuit/v1/tx_cosmes.ts +++ /dev/null @@ -1,47 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/circuit/v1/tx.proto (package cosmos.circuit.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAuthorizeCircuitBreaker, MsgAuthorizeCircuitBreakerResponse, MsgResetCircuitBreaker, MsgResetCircuitBreakerResponse, MsgTripCircuitBreaker, MsgTripCircuitBreakerResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.circuit.v1.Msg"; - -/** - * AuthorizeCircuitBreaker allows a super-admin to grant (or revoke) another - * account's circuit breaker permissions. - * - * @generated from rpc cosmos.circuit.v1.Msg.AuthorizeCircuitBreaker - */ -export const MsgAuthorizeCircuitBreakerService = { - typeName: TYPE_NAME, - method: "AuthorizeCircuitBreaker", - Request: MsgAuthorizeCircuitBreaker, - Response: MsgAuthorizeCircuitBreakerResponse, -} as const; - -/** - * TripCircuitBreaker pauses processing of Msg's in the state machine. - * - * @generated from rpc cosmos.circuit.v1.Msg.TripCircuitBreaker - */ -export const MsgTripCircuitBreakerService = { - typeName: TYPE_NAME, - method: "TripCircuitBreaker", - Request: MsgTripCircuitBreaker, - Response: MsgTripCircuitBreakerResponse, -} as const; - -/** - * ResetCircuitBreaker resumes processing of Msg's in the state machine that - * have been been paused using TripCircuitBreaker. - * - * @generated from rpc cosmos.circuit.v1.Msg.ResetCircuitBreaker - */ -export const MsgResetCircuitBreakerService = { - typeName: TYPE_NAME, - method: "ResetCircuitBreaker", - Request: MsgResetCircuitBreaker, - Response: MsgResetCircuitBreakerResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/circuit/v1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/circuit/v1/tx_pb.ts deleted file mode 100644 index a0f6fb0..0000000 --- a/libs/es-client/src/protobufs/cosmos/circuit/v1/tx_pb.ts +++ /dev/null @@ -1,290 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/circuit/v1/tx.proto (package cosmos.circuit.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Permissions } from "./types_pb.js"; - -/** - * MsgAuthorizeCircuitBreaker defines the Msg/AuthorizeCircuitBreaker request type. - * - * @generated from message cosmos.circuit.v1.MsgAuthorizeCircuitBreaker - */ -export class MsgAuthorizeCircuitBreaker extends Message { - /** - * granter is the granter of the circuit breaker permissions and must have - * LEVEL_SUPER_ADMIN. - * - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * grantee is the account authorized with the provided permissions. - * - * @generated from field: string grantee = 2; - */ - grantee = ""; - - /** - * permissions are the circuit breaker permissions that the grantee receives. - * These will overwrite any existing permissions. LEVEL_NONE_UNSPECIFIED can - * be specified to revoke all permissions. - * - * @generated from field: cosmos.circuit.v1.Permissions permissions = 3; - */ - permissions?: Permissions; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.MsgAuthorizeCircuitBreaker"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "permissions", kind: "message", T: Permissions }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeCircuitBreaker { - return new MsgAuthorizeCircuitBreaker().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeCircuitBreaker { - return new MsgAuthorizeCircuitBreaker().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeCircuitBreaker { - return new MsgAuthorizeCircuitBreaker().fromJsonString(jsonString, options); - } - - static equals(a: MsgAuthorizeCircuitBreaker | PlainMessage | undefined, b: MsgAuthorizeCircuitBreaker | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAuthorizeCircuitBreaker, a, b); - } -} - -/** - * MsgAuthorizeCircuitBreakerResponse defines the Msg/AuthorizeCircuitBreaker response type. - * - * @generated from message cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse - */ -export class MsgAuthorizeCircuitBreakerResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAuthorizeCircuitBreakerResponse { - return new MsgAuthorizeCircuitBreakerResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAuthorizeCircuitBreakerResponse { - return new MsgAuthorizeCircuitBreakerResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAuthorizeCircuitBreakerResponse { - return new MsgAuthorizeCircuitBreakerResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAuthorizeCircuitBreakerResponse | PlainMessage | undefined, b: MsgAuthorizeCircuitBreakerResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAuthorizeCircuitBreakerResponse, a, b); - } -} - -/** - * MsgTripCircuitBreaker defines the Msg/TripCircuitBreaker request type. - * - * @generated from message cosmos.circuit.v1.MsgTripCircuitBreaker - */ -export class MsgTripCircuitBreaker extends Message { - /** - * authority is the account authorized to trip the circuit breaker. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * msg_type_urls specifies a list of type URLs to immediately stop processing. - * IF IT IS LEFT EMPTY, ALL MSG PROCESSING WILL STOP IMMEDIATELY. - * This value is validated against the authority's permissions and if the - * authority does not have permissions to trip the specified msg type URLs - * (or all URLs), the operation will fail. - * - * @generated from field: repeated string msg_type_urls = 2; - */ - msgTypeUrls: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.MsgTripCircuitBreaker"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "msg_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTripCircuitBreaker { - return new MsgTripCircuitBreaker().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTripCircuitBreaker { - return new MsgTripCircuitBreaker().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTripCircuitBreaker { - return new MsgTripCircuitBreaker().fromJsonString(jsonString, options); - } - - static equals(a: MsgTripCircuitBreaker | PlainMessage | undefined, b: MsgTripCircuitBreaker | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTripCircuitBreaker, a, b); - } -} - -/** - * MsgTripCircuitBreakerResponse defines the Msg/TripCircuitBreaker response type. - * - * @generated from message cosmos.circuit.v1.MsgTripCircuitBreakerResponse - */ -export class MsgTripCircuitBreakerResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.MsgTripCircuitBreakerResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTripCircuitBreakerResponse { - return new MsgTripCircuitBreakerResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTripCircuitBreakerResponse { - return new MsgTripCircuitBreakerResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTripCircuitBreakerResponse { - return new MsgTripCircuitBreakerResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgTripCircuitBreakerResponse | PlainMessage | undefined, b: MsgTripCircuitBreakerResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTripCircuitBreakerResponse, a, b); - } -} - -/** - * MsgResetCircuitBreaker defines the Msg/ResetCircuitBreaker request type. - * - * @generated from message cosmos.circuit.v1.MsgResetCircuitBreaker - */ -export class MsgResetCircuitBreaker extends Message { - /** - * authority is the account authorized to trip or reset the circuit breaker. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * msg_type_urls specifies a list of Msg type URLs to resume processing. If - * it is left empty all Msg processing for type URLs that the account is - * authorized to trip will resume. - * - * @generated from field: repeated string msg_type_urls = 3; - */ - msgTypeUrls: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.MsgResetCircuitBreaker"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "msg_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgResetCircuitBreaker { - return new MsgResetCircuitBreaker().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgResetCircuitBreaker { - return new MsgResetCircuitBreaker().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgResetCircuitBreaker { - return new MsgResetCircuitBreaker().fromJsonString(jsonString, options); - } - - static equals(a: MsgResetCircuitBreaker | PlainMessage | undefined, b: MsgResetCircuitBreaker | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgResetCircuitBreaker, a, b); - } -} - -/** - * MsgResetCircuitBreakerResponse defines the Msg/ResetCircuitBreaker response type. - * - * @generated from message cosmos.circuit.v1.MsgResetCircuitBreakerResponse - */ -export class MsgResetCircuitBreakerResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.MsgResetCircuitBreakerResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgResetCircuitBreakerResponse { - return new MsgResetCircuitBreakerResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgResetCircuitBreakerResponse { - return new MsgResetCircuitBreakerResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgResetCircuitBreakerResponse { - return new MsgResetCircuitBreakerResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgResetCircuitBreakerResponse | PlainMessage | undefined, b: MsgResetCircuitBreakerResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgResetCircuitBreakerResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/circuit/v1/types_pb.ts b/libs/es-client/src/protobufs/cosmos/circuit/v1/types_pb.ts deleted file mode 100644 index e35b5d0..0000000 --- a/libs/es-client/src/protobufs/cosmos/circuit/v1/types_pb.ts +++ /dev/null @@ -1,198 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/circuit/v1/types.proto (package cosmos.circuit.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Permissions are the permissions that an account has to trip - * or reset the circuit breaker. - * - * @generated from message cosmos.circuit.v1.Permissions - */ -export class Permissions extends Message { - /** - * level is the level of permissions granted to this account. - * - * @generated from field: cosmos.circuit.v1.Permissions.Level level = 1; - */ - level = Permissions_Level.NONE_UNSPECIFIED; - - /** - * limit_type_urls is used with LEVEL_SOME_MSGS to limit the lists of Msg type - * URLs that the account can trip. It is an error to use limit_type_urls with - * a level other than LEVEL_SOME_MSGS. - * - * @generated from field: repeated string limit_type_urls = 2; - */ - limitTypeUrls: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.Permissions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "level", kind: "enum", T: proto3.getEnumType(Permissions_Level) }, - { no: 2, name: "limit_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Permissions { - return new Permissions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Permissions { - return new Permissions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Permissions { - return new Permissions().fromJsonString(jsonString, options); - } - - static equals(a: Permissions | PlainMessage | undefined, b: Permissions | PlainMessage | undefined): boolean { - return proto3.util.equals(Permissions, a, b); - } -} - -/** - * Level is the permission level. - * - * @generated from enum cosmos.circuit.v1.Permissions.Level - */ -export enum Permissions_Level { - /** - * LEVEL_NONE_UNSPECIFIED indicates that the account will have no circuit - * breaker permissions. - * - * @generated from enum value: LEVEL_NONE_UNSPECIFIED = 0; - */ - NONE_UNSPECIFIED = 0, - - /** - * LEVEL_SOME_MSGS indicates that the account will have permission to - * trip or reset the circuit breaker for some Msg type URLs. If this level - * is chosen, a non-empty list of Msg type URLs must be provided in - * limit_type_urls. - * - * @generated from enum value: LEVEL_SOME_MSGS = 1; - */ - SOME_MSGS = 1, - - /** - * LEVEL_ALL_MSGS indicates that the account can trip or reset the circuit - * breaker for Msg's of all type URLs. - * - * @generated from enum value: LEVEL_ALL_MSGS = 2; - */ - ALL_MSGS = 2, - - /** - * LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker - * actions and can grant permissions to other accounts. - * - * @generated from enum value: LEVEL_SUPER_ADMIN = 3; - */ - SUPER_ADMIN = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(Permissions_Level) -proto3.util.setEnumType(Permissions_Level, "cosmos.circuit.v1.Permissions.Level", [ - { no: 0, name: "LEVEL_NONE_UNSPECIFIED" }, - { no: 1, name: "LEVEL_SOME_MSGS" }, - { no: 2, name: "LEVEL_ALL_MSGS" }, - { no: 3, name: "LEVEL_SUPER_ADMIN" }, -]); - -/** - * GenesisAccountPermissions is the account permissions for the circuit breaker in genesis - * - * @generated from message cosmos.circuit.v1.GenesisAccountPermissions - */ -export class GenesisAccountPermissions extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: cosmos.circuit.v1.Permissions permissions = 2; - */ - permissions?: Permissions; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.GenesisAccountPermissions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "permissions", kind: "message", T: Permissions }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccountPermissions { - return new GenesisAccountPermissions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccountPermissions { - return new GenesisAccountPermissions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisAccountPermissions { - return new GenesisAccountPermissions().fromJsonString(jsonString, options); - } - - static equals(a: GenesisAccountPermissions | PlainMessage | undefined, b: GenesisAccountPermissions | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisAccountPermissions, a, b); - } -} - -/** - * GenesisState is the state that must be provided at genesis. - * - * @generated from message cosmos.circuit.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated cosmos.circuit.v1.GenesisAccountPermissions account_permissions = 1; - */ - accountPermissions: GenesisAccountPermissions[] = []; - - /** - * @generated from field: repeated string disabled_type_urls = 2; - */ - disabledTypeUrls: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.circuit.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account_permissions", kind: "message", T: GenesisAccountPermissions, repeated: true }, - { no: 2, name: "disabled_type_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/consensus/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/consensus/module/v1/module_pb.ts deleted file mode 100644 index 0b9e6ec..0000000 --- a/libs/es-client/src/protobufs/cosmos/consensus/module/v1/module_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/consensus/module/v1/module.proto (package cosmos.consensus.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the consensus module. - * - * @generated from message cosmos.consensus.module.v1.Module - */ -export class Module extends Message { - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.consensus.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/consensus/v1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/consensus/v1/query_cosmes.ts deleted file mode 100644 index 0c4958e..0000000 --- a/libs/es-client/src/protobufs/cosmos/consensus/v1/query_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Since: cosmos-sdk 0.47 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/consensus/v1/query.proto (package cosmos.consensus.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.consensus.v1.Query"; - -/** - * Params queries the parameters of x/consensus module. - * - * @generated from rpc cosmos.consensus.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/consensus/v1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/consensus/v1/query_pb.ts deleted file mode 100644 index 1e48221..0000000 --- a/libs/es-client/src/protobufs/cosmos/consensus/v1/query_pb.ts +++ /dev/null @@ -1,87 +0,0 @@ -// Since: cosmos-sdk 0.47 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/consensus/v1/query.proto (package cosmos.consensus.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { ConsensusParams } from "../../../tendermint/types/params_pb.js"; - -/** - * QueryParamsRequest defines the request type for querying x/consensus parameters. - * - * @generated from message cosmos.consensus.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.consensus.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse defines the response type for querying x/consensus parameters. - * - * @generated from message cosmos.consensus.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params are the tendermint consensus params stored in the consensus module. - * Please note that `params.version` is not populated in this response, it is - * tracked separately in the x/upgrade module. - * - * @generated from field: tendermint.types.ConsensusParams params = 1; - */ - params?: ConsensusParams; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.consensus.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: ConsensusParams }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts deleted file mode 100644 index d21c9bf..0000000 --- a/libs/es-client/src/protobufs/cosmos/consensus/v1/tx_cosmes.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Since: cosmos-sdk 0.47 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/consensus/v1/tx.proto (package cosmos.consensus.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.consensus.v1.Msg"; - -/** - * UpdateParams defines a governance operation for updating the x/consensus module parameters. - * The authority is defined in the keeper. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.consensus.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/consensus/v1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/consensus/v1/tx_pb.ts deleted file mode 100644 index 0352281..0000000 --- a/libs/es-client/src/protobufs/cosmos/consensus/v1/tx_pb.ts +++ /dev/null @@ -1,118 +0,0 @@ -// Since: cosmos-sdk 0.47 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/consensus/v1/tx.proto (package cosmos.consensus.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { ABCIParams, BlockParams, EvidenceParams, ValidatorParams } from "../../../tendermint/types/params_pb.js"; - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * @generated from message cosmos.consensus.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/consensus parameters to update. - * VersionsParams is not included in this Msg because it is tracked - * separarately in x/upgrade. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: tendermint.types.BlockParams block = 2; - */ - block?: BlockParams; - - /** - * @generated from field: tendermint.types.EvidenceParams evidence = 3; - */ - evidence?: EvidenceParams; - - /** - * @generated from field: tendermint.types.ValidatorParams validator = 4; - */ - validator?: ValidatorParams; - - /** - * Since: cosmos-sdk 0.50 - * - * @generated from field: tendermint.types.ABCIParams abci = 5; - */ - abci?: ABCIParams; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.consensus.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "block", kind: "message", T: BlockParams }, - { no: 3, name: "evidence", kind: "message", T: EvidenceParams }, - { no: 4, name: "validator", kind: "message", T: ValidatorParams }, - { no: 5, name: "abci", kind: "message", T: ABCIParams }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * @generated from message cosmos.consensus.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.consensus.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crisis/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/crisis/module/v1/module_pb.ts deleted file mode 100644 index 8d6db17..0000000 --- a/libs/es-client/src/protobufs/cosmos/crisis/module/v1/module_pb.ts +++ /dev/null @@ -1,57 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crisis/module/v1/module.proto (package cosmos.crisis.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the crisis module. - * - * @generated from message cosmos.crisis.module.v1.Module - */ -export class Module extends Message { - /** - * fee_collector_name is the name of the FeeCollector ModuleAccount. - * - * @generated from field: string fee_collector_name = 1; - */ - feeCollectorName = ""; - - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 2; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crisis.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_collector_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/genesis_pb.ts deleted file mode 100644 index a2762bc..0000000 --- a/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,51 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crisis/v1beta1/genesis.proto (package cosmos.crisis.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * GenesisState defines the crisis module's genesis state. - * - * @generated from message cosmos.crisis.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * constant_fee is the fee used to verify the invariant in the crisis - * module. - * - * @generated from field: cosmos.base.v1beta1.Coin constant_fee = 3; - */ - constantFee?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crisis.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "constant_fee", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_cosmes.ts deleted file mode 100644 index dec6747..0000000 --- a/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,36 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/crisis/v1beta1/tx.proto (package cosmos.crisis.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUpdateParams, MsgUpdateParamsResponse, MsgVerifyInvariant, MsgVerifyInvariantResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.crisis.v1beta1.Msg"; - -/** - * VerifyInvariant defines a method to verify a particular invariant. - * - * @generated from rpc cosmos.crisis.v1beta1.Msg.VerifyInvariant - */ -export const MsgVerifyInvariantService = { - typeName: TYPE_NAME, - method: "VerifyInvariant", - Request: MsgVerifyInvariant, - Response: MsgVerifyInvariantResponse, -} as const; - -/** - * UpdateParams defines a governance operation for updating the x/crisis module - * parameters. The authority is defined in the keeper. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.crisis.v1beta1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_pb.ts deleted file mode 100644 index d568447..0000000 --- a/libs/es-client/src/protobufs/cosmos/crisis/v1beta1/tx_pb.ts +++ /dev/null @@ -1,186 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crisis/v1beta1/tx.proto (package cosmos.crisis.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * MsgVerifyInvariant represents a message to verify a particular invariance. - * - * @generated from message cosmos.crisis.v1beta1.MsgVerifyInvariant - */ -export class MsgVerifyInvariant extends Message { - /** - * sender is the account address of private key to send coins to fee collector account. - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * name of the invariant module. - * - * @generated from field: string invariant_module_name = 2; - */ - invariantModuleName = ""; - - /** - * invariant_route is the msg's invariant route. - * - * @generated from field: string invariant_route = 3; - */ - invariantRoute = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crisis.v1beta1.MsgVerifyInvariant"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "invariant_module_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "invariant_route", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVerifyInvariant { - return new MsgVerifyInvariant().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVerifyInvariant { - return new MsgVerifyInvariant().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVerifyInvariant { - return new MsgVerifyInvariant().fromJsonString(jsonString, options); - } - - static equals(a: MsgVerifyInvariant | PlainMessage | undefined, b: MsgVerifyInvariant | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVerifyInvariant, a, b); - } -} - -/** - * MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. - * - * @generated from message cosmos.crisis.v1beta1.MsgVerifyInvariantResponse - */ -export class MsgVerifyInvariantResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crisis.v1beta1.MsgVerifyInvariantResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVerifyInvariantResponse { - return new MsgVerifyInvariantResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVerifyInvariantResponse { - return new MsgVerifyInvariantResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVerifyInvariantResponse { - return new MsgVerifyInvariantResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgVerifyInvariantResponse | PlainMessage | undefined, b: MsgVerifyInvariantResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVerifyInvariantResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.crisis.v1beta1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * constant_fee defines the x/crisis parameter. - * - * @generated from field: cosmos.base.v1beta1.Coin constant_fee = 2; - */ - constantFee?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crisis.v1beta1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "constant_fee", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.crisis.v1beta1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crisis.v1beta1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts b/libs/es-client/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts deleted file mode 100644 index a2213a0..0000000 --- a/libs/es-client/src/protobufs/cosmos/crypto/ed25519/keys_pb.ts +++ /dev/null @@ -1,91 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crypto/ed25519/keys.proto (package cosmos.crypto.ed25519, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * PubKey is an ed25519 public key for handling Tendermint keys in SDK. - * It's needed for Any serialization and SDK compatibility. - * It must not be used in a non Tendermint key context because it doesn't implement - * ADR-28. Nevertheless, you will like to use ed25519 in app user level - * then you must create a new proto message and follow ADR-28 for Address construction. - * - * @generated from message cosmos.crypto.ed25519.PubKey - */ -export class PubKey extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.ed25519.PubKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PubKey { - return new PubKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PubKey { - return new PubKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PubKey { - return new PubKey().fromJsonString(jsonString, options); - } - - static equals(a: PubKey | PlainMessage | undefined, b: PubKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PubKey, a, b); - } -} - -/** - * PrivKey defines a ed25519 private key. - * NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. - * - * @generated from message cosmos.crypto.ed25519.PrivKey - */ -export class PrivKey extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.ed25519.PrivKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PrivKey { - return new PrivKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PrivKey { - return new PrivKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PrivKey { - return new PrivKey().fromJsonString(jsonString, options); - } - - static equals(a: PrivKey | PlainMessage | undefined, b: PrivKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PrivKey, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crypto/hd/v1/hd_pb.ts b/libs/es-client/src/protobufs/cosmos/crypto/hd/v1/hd_pb.ts deleted file mode 100644 index f008792..0000000 --- a/libs/es-client/src/protobufs/cosmos/crypto/hd/v1/hd_pb.ts +++ /dev/null @@ -1,84 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crypto/hd/v1/hd.proto (package cosmos.crypto.hd.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * BIP44Params is used as path field in ledger item in Record. - * - * @generated from message cosmos.crypto.hd.v1.BIP44Params - */ -export class BIP44Params extends Message { - /** - * purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation - * - * @generated from field: uint32 purpose = 1; - */ - purpose = 0; - - /** - * coin_type is a constant that improves privacy - * - * @generated from field: uint32 coin_type = 2; - */ - coinType = 0; - - /** - * account splits the key space into independent user identities - * - * @generated from field: uint32 account = 3; - */ - account = 0; - - /** - * change is a constant used for public derivation. Constant 0 is used for external chain and constant 1 for internal - * chain. - * - * @generated from field: bool change = 4; - */ - change = false; - - /** - * address_index is used as child index in BIP32 derivation - * - * @generated from field: uint32 address_index = 5; - */ - addressIndex = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.hd.v1.BIP44Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "purpose", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "coin_type", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "account", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "change", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "address_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BIP44Params { - return new BIP44Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BIP44Params { - return new BIP44Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BIP44Params { - return new BIP44Params().fromJsonString(jsonString, options); - } - - static equals(a: BIP44Params | PlainMessage | undefined, b: BIP44Params | PlainMessage | undefined): boolean { - return proto3.util.equals(BIP44Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crypto/keyring/v1/record_pb.ts b/libs/es-client/src/protobufs/cosmos/crypto/keyring/v1/record_pb.ts deleted file mode 100644 index 4e4374c..0000000 --- a/libs/es-client/src/protobufs/cosmos/crypto/keyring/v1/record_pb.ts +++ /dev/null @@ -1,248 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crypto/keyring/v1/record.proto (package cosmos.crypto.keyring.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; -import { BIP44Params } from "../../hd/v1/hd_pb.js"; - -/** - * Record is used for representing a key in the keyring. - * - * @generated from message cosmos.crypto.keyring.v1.Record - */ -export class Record extends Message { - /** - * name represents a name of Record - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * pub_key represents a public key in any format - * - * @generated from field: google.protobuf.Any pub_key = 2; - */ - pubKey?: Any; - - /** - * Record contains one of the following items - * - * @generated from oneof cosmos.crypto.keyring.v1.Record.item - */ - item: { - /** - * local stores the private key locally. - * - * @generated from field: cosmos.crypto.keyring.v1.Record.Local local = 3; - */ - value: Record_Local; - case: "local"; - } | { - /** - * ledger stores the information about a Ledger key. - * - * @generated from field: cosmos.crypto.keyring.v1.Record.Ledger ledger = 4; - */ - value: Record_Ledger; - case: "ledger"; - } | { - /** - * Multi does not store any other information. - * - * @generated from field: cosmos.crypto.keyring.v1.Record.Multi multi = 5; - */ - value: Record_Multi; - case: "multi"; - } | { - /** - * Offline does not store any other information. - * - * @generated from field: cosmos.crypto.keyring.v1.Record.Offline offline = 6; - */ - value: Record_Offline; - case: "offline"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.keyring.v1.Record"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pub_key", kind: "message", T: Any }, - { no: 3, name: "local", kind: "message", T: Record_Local, oneof: "item" }, - { no: 4, name: "ledger", kind: "message", T: Record_Ledger, oneof: "item" }, - { no: 5, name: "multi", kind: "message", T: Record_Multi, oneof: "item" }, - { no: 6, name: "offline", kind: "message", T: Record_Offline, oneof: "item" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Record { - return new Record().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Record { - return new Record().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Record { - return new Record().fromJsonString(jsonString, options); - } - - static equals(a: Record | PlainMessage | undefined, b: Record | PlainMessage | undefined): boolean { - return proto3.util.equals(Record, a, b); - } -} - -/** - * Item is a keyring item stored in a keyring backend. - * Local item - * - * @generated from message cosmos.crypto.keyring.v1.Record.Local - */ -export class Record_Local extends Message { - /** - * @generated from field: google.protobuf.Any priv_key = 1; - */ - privKey?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.keyring.v1.Record.Local"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "priv_key", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Record_Local { - return new Record_Local().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Record_Local { - return new Record_Local().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Record_Local { - return new Record_Local().fromJsonString(jsonString, options); - } - - static equals(a: Record_Local | PlainMessage | undefined, b: Record_Local | PlainMessage | undefined): boolean { - return proto3.util.equals(Record_Local, a, b); - } -} - -/** - * Ledger item - * - * @generated from message cosmos.crypto.keyring.v1.Record.Ledger - */ -export class Record_Ledger extends Message { - /** - * @generated from field: cosmos.crypto.hd.v1.BIP44Params path = 1; - */ - path?: BIP44Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.keyring.v1.Record.Ledger"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "message", T: BIP44Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Record_Ledger { - return new Record_Ledger().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Record_Ledger { - return new Record_Ledger().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Record_Ledger { - return new Record_Ledger().fromJsonString(jsonString, options); - } - - static equals(a: Record_Ledger | PlainMessage | undefined, b: Record_Ledger | PlainMessage | undefined): boolean { - return proto3.util.equals(Record_Ledger, a, b); - } -} - -/** - * Multi item - * - * @generated from message cosmos.crypto.keyring.v1.Record.Multi - */ -export class Record_Multi extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.keyring.v1.Record.Multi"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Record_Multi { - return new Record_Multi().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Record_Multi { - return new Record_Multi().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Record_Multi { - return new Record_Multi().fromJsonString(jsonString, options); - } - - static equals(a: Record_Multi | PlainMessage | undefined, b: Record_Multi | PlainMessage | undefined): boolean { - return proto3.util.equals(Record_Multi, a, b); - } -} - -/** - * Offline item - * - * @generated from message cosmos.crypto.keyring.v1.Record.Offline - */ -export class Record_Offline extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.keyring.v1.Record.Offline"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Record_Offline { - return new Record_Offline().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Record_Offline { - return new Record_Offline().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Record_Offline { - return new Record_Offline().fromJsonString(jsonString, options); - } - - static equals(a: Record_Offline | PlainMessage | undefined, b: Record_Offline | PlainMessage | undefined): boolean { - return proto3.util.equals(Record_Offline, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crypto/multisig/keys_pb.ts b/libs/es-client/src/protobufs/cosmos/crypto/multisig/keys_pb.ts deleted file mode 100644 index 3b344a8..0000000 --- a/libs/es-client/src/protobufs/cosmos/crypto/multisig/keys_pb.ts +++ /dev/null @@ -1,55 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crypto/multisig/keys.proto (package cosmos.crypto.multisig, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * LegacyAminoPubKey specifies a public key type - * which nests multiple public keys and a threshold, - * it uses legacy amino address rules. - * - * @generated from message cosmos.crypto.multisig.LegacyAminoPubKey - */ -export class LegacyAminoPubKey extends Message { - /** - * @generated from field: uint32 threshold = 1; - */ - threshold = 0; - - /** - * @generated from field: repeated google.protobuf.Any public_keys = 2; - */ - publicKeys: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.multisig.LegacyAminoPubKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "threshold", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "public_keys", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LegacyAminoPubKey { - return new LegacyAminoPubKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LegacyAminoPubKey { - return new LegacyAminoPubKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LegacyAminoPubKey { - return new LegacyAminoPubKey().fromJsonString(jsonString, options); - } - - static equals(a: LegacyAminoPubKey | PlainMessage | undefined, b: LegacyAminoPubKey | PlainMessage | undefined): boolean { - return proto3.util.equals(LegacyAminoPubKey, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crypto/multisig/v1beta1/multisig_pb.ts b/libs/es-client/src/protobufs/cosmos/crypto/multisig/v1beta1/multisig_pb.ts deleted file mode 100644 index 631dc4a..0000000 --- a/libs/es-client/src/protobufs/cosmos/crypto/multisig/v1beta1/multisig_pb.ts +++ /dev/null @@ -1,97 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crypto/multisig/v1beta1/multisig.proto (package cosmos.crypto.multisig.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. - * See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers - * signed and with which modes. - * - * @generated from message cosmos.crypto.multisig.v1beta1.MultiSignature - */ -export class MultiSignature extends Message { - /** - * @generated from field: repeated bytes signatures = 1; - */ - signatures: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.multisig.v1beta1.MultiSignature"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signatures", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MultiSignature { - return new MultiSignature().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MultiSignature { - return new MultiSignature().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MultiSignature { - return new MultiSignature().fromJsonString(jsonString, options); - } - - static equals(a: MultiSignature | PlainMessage | undefined, b: MultiSignature | PlainMessage | undefined): boolean { - return proto3.util.equals(MultiSignature, a, b); - } -} - -/** - * CompactBitArray is an implementation of a space efficient bit array. - * This is used to ensure that the encoded data takes up a minimal amount of - * space after proto encoding. - * This is not thread safe, and is not intended for concurrent usage. - * - * @generated from message cosmos.crypto.multisig.v1beta1.CompactBitArray - */ -export class CompactBitArray extends Message { - /** - * @generated from field: uint32 extra_bits_stored = 1; - */ - extraBitsStored = 0; - - /** - * @generated from field: bytes elems = 2; - */ - elems = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.multisig.v1beta1.CompactBitArray"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "extra_bits_stored", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "elems", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompactBitArray { - return new CompactBitArray().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompactBitArray { - return new CompactBitArray().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompactBitArray { - return new CompactBitArray().fromJsonString(jsonString, options); - } - - static equals(a: CompactBitArray | PlainMessage | undefined, b: CompactBitArray | PlainMessage | undefined): boolean { - return proto3.util.equals(CompactBitArray, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crypto/secp256k1/keys_pb.ts b/libs/es-client/src/protobufs/cosmos/crypto/secp256k1/keys_pb.ts deleted file mode 100644 index afe8173..0000000 --- a/libs/es-client/src/protobufs/cosmos/crypto/secp256k1/keys_pb.ts +++ /dev/null @@ -1,90 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crypto/secp256k1/keys.proto (package cosmos.crypto.secp256k1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * PubKey defines a secp256k1 public key - * Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte - * if the y-coordinate is the lexicographically largest of the two associated with - * the x-coordinate. Otherwise the first byte is a 0x03. - * This prefix is followed with the x-coordinate. - * - * @generated from message cosmos.crypto.secp256k1.PubKey - */ -export class PubKey extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.secp256k1.PubKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PubKey { - return new PubKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PubKey { - return new PubKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PubKey { - return new PubKey().fromJsonString(jsonString, options); - } - - static equals(a: PubKey | PlainMessage | undefined, b: PubKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PubKey, a, b); - } -} - -/** - * PrivKey defines a secp256k1 private key. - * - * @generated from message cosmos.crypto.secp256k1.PrivKey - */ -export class PrivKey extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.secp256k1.PrivKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PrivKey { - return new PrivKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PrivKey { - return new PrivKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PrivKey { - return new PrivKey().fromJsonString(jsonString, options); - } - - static equals(a: PrivKey | PlainMessage | undefined, b: PrivKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PrivKey, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/crypto/secp256r1/keys_pb.ts b/libs/es-client/src/protobufs/cosmos/crypto/secp256r1/keys_pb.ts deleted file mode 100644 index ee37c99..0000000 --- a/libs/es-client/src/protobufs/cosmos/crypto/secp256r1/keys_pb.ts +++ /dev/null @@ -1,93 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/crypto/secp256r1/keys.proto (package cosmos.crypto.secp256r1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * PubKey defines a secp256r1 ECDSA public key. - * - * @generated from message cosmos.crypto.secp256r1.PubKey - */ -export class PubKey extends Message { - /** - * Point on secp256r1 curve in a compressed representation as specified in section - * 4.3.6 of ANSI X9.62: https://webstore.ansi.org/standards/ascx9/ansix9621998 - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.secp256r1.PubKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PubKey { - return new PubKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PubKey { - return new PubKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PubKey { - return new PubKey().fromJsonString(jsonString, options); - } - - static equals(a: PubKey | PlainMessage | undefined, b: PubKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PubKey, a, b); - } -} - -/** - * PrivKey defines a secp256r1 ECDSA private key. - * - * @generated from message cosmos.crypto.secp256r1.PrivKey - */ -export class PrivKey extends Message { - /** - * secret number serialized using big-endian encoding - * - * @generated from field: bytes secret = 1; - */ - secret = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.crypto.secp256r1.PrivKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "secret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PrivKey { - return new PrivKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PrivKey { - return new PrivKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PrivKey { - return new PrivKey().fromJsonString(jsonString, options); - } - - static equals(a: PrivKey | PlainMessage | undefined, b: PrivKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PrivKey, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/distribution/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/distribution/module/v1/module_pb.ts deleted file mode 100644 index 53e87e2..0000000 --- a/libs/es-client/src/protobufs/cosmos/distribution/module/v1/module_pb.ts +++ /dev/null @@ -1,55 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/distribution/module/v1/module.proto (package cosmos.distribution.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the distribution module. - * - * @generated from message cosmos.distribution.module.v1.Module - */ -export class Module extends Message { - /** - * @generated from field: string fee_collector_name = 1; - */ - feeCollectorName = ""; - - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 2; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_collector_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/distribution_pb.ts b/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/distribution_pb.ts deleted file mode 100644 index e490f8e..0000000 --- a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/distribution_pb.ts +++ /dev/null @@ -1,614 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/distribution/v1beta1/distribution.proto (package cosmos.distribution.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin, DecCoin } from "../../base/v1beta1/coin_pb.js"; - -/** - * Params defines the set of params for the distribution module. - * - * @generated from message cosmos.distribution.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: string community_tax = 1; - */ - communityTax = ""; - - /** - * Deprecated: The base_proposer_reward field is deprecated and is no longer used - * in the x/distribution module's reward mechanism. - * - * @generated from field: string base_proposer_reward = 2 [deprecated = true]; - * @deprecated - */ - baseProposerReward = ""; - - /** - * Deprecated: The bonus_proposer_reward field is deprecated and is no longer used - * in the x/distribution module's reward mechanism. - * - * @generated from field: string bonus_proposer_reward = 3 [deprecated = true]; - * @deprecated - */ - bonusProposerReward = ""; - - /** - * @generated from field: bool withdraw_addr_enabled = 4; - */ - withdrawAddrEnabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "community_tax", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "base_proposer_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "bonus_proposer_reward", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "withdraw_addr_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * ValidatorHistoricalRewards represents historical rewards for a validator. - * Height is implicit within the store key. - * Cumulative reward ratio is the sum from the zeroeth period - * until this period of rewards / tokens, per the spec. - * The reference count indicates the number of objects - * which might need to reference this historical entry at any point. - * ReferenceCount = - * number of outstanding delegations which ended the associated period (and - * might need to read that record) - * + number of slashes which ended the associated period (and might need to - * read that record) - * + one per validator for the zeroeth period, set on initialization - * - * @generated from message cosmos.distribution.v1beta1.ValidatorHistoricalRewards - */ -export class ValidatorHistoricalRewards extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1; - */ - cumulativeRewardRatio: DecCoin[] = []; - - /** - * @generated from field: uint32 reference_count = 2; - */ - referenceCount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorHistoricalRewards"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cumulative_reward_ratio", kind: "message", T: DecCoin, repeated: true }, - { no: 2, name: "reference_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorHistoricalRewards { - return new ValidatorHistoricalRewards().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorHistoricalRewards { - return new ValidatorHistoricalRewards().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorHistoricalRewards { - return new ValidatorHistoricalRewards().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorHistoricalRewards | PlainMessage | undefined, b: ValidatorHistoricalRewards | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorHistoricalRewards, a, b); - } -} - -/** - * ValidatorCurrentRewards represents current rewards and current - * period for a validator kept as a running counter and incremented - * each block as long as the validator's tokens remain constant. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorCurrentRewards - */ -export class ValidatorCurrentRewards extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin rewards = 1; - */ - rewards: DecCoin[] = []; - - /** - * @generated from field: uint64 period = 2; - */ - period = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorCurrentRewards"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rewards", kind: "message", T: DecCoin, repeated: true }, - { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorCurrentRewards { - return new ValidatorCurrentRewards().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorCurrentRewards { - return new ValidatorCurrentRewards().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorCurrentRewards { - return new ValidatorCurrentRewards().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorCurrentRewards | PlainMessage | undefined, b: ValidatorCurrentRewards | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorCurrentRewards, a, b); - } -} - -/** - * ValidatorAccumulatedCommission represents accumulated commission - * for a validator kept as a running counter, can be withdrawn at any time. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorAccumulatedCommission - */ -export class ValidatorAccumulatedCommission extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin commission = 1; - */ - commission: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorAccumulatedCommission"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "commission", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorAccumulatedCommission { - return new ValidatorAccumulatedCommission().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorAccumulatedCommission { - return new ValidatorAccumulatedCommission().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorAccumulatedCommission { - return new ValidatorAccumulatedCommission().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorAccumulatedCommission | PlainMessage | undefined, b: ValidatorAccumulatedCommission | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorAccumulatedCommission, a, b); - } -} - -/** - * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - * for a validator inexpensive to track, allows simple sanity checks. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorOutstandingRewards - */ -export class ValidatorOutstandingRewards extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin rewards = 1; - */ - rewards: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorOutstandingRewards"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rewards", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorOutstandingRewards { - return new ValidatorOutstandingRewards().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorOutstandingRewards { - return new ValidatorOutstandingRewards().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorOutstandingRewards { - return new ValidatorOutstandingRewards().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorOutstandingRewards | PlainMessage | undefined, b: ValidatorOutstandingRewards | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorOutstandingRewards, a, b); - } -} - -/** - * ValidatorSlashEvent represents a validator slash event. - * Height is implicit within the store key. - * This is needed to calculate appropriate amount of staking tokens - * for delegations which are withdrawn after a slash has occurred. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorSlashEvent - */ -export class ValidatorSlashEvent extends Message { - /** - * @generated from field: uint64 validator_period = 1; - */ - validatorPeriod = protoInt64.zero; - - /** - * @generated from field: string fraction = 2; - */ - fraction = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorSlashEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "fraction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorSlashEvent { - return new ValidatorSlashEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorSlashEvent { - return new ValidatorSlashEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorSlashEvent { - return new ValidatorSlashEvent().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorSlashEvent | PlainMessage | undefined, b: ValidatorSlashEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorSlashEvent, a, b); - } -} - -/** - * ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorSlashEvents - */ -export class ValidatorSlashEvents extends Message { - /** - * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_events = 1; - */ - validatorSlashEvents: ValidatorSlashEvent[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorSlashEvents"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_slash_events", kind: "message", T: ValidatorSlashEvent, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorSlashEvents { - return new ValidatorSlashEvents().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorSlashEvents { - return new ValidatorSlashEvents().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorSlashEvents { - return new ValidatorSlashEvents().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorSlashEvents | PlainMessage | undefined, b: ValidatorSlashEvents | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorSlashEvents, a, b); - } -} - -/** - * FeePool is the global fee pool for distribution. - * - * @generated from message cosmos.distribution.v1beta1.FeePool - */ -export class FeePool extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin community_pool = 1; - */ - communityPool: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.FeePool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "community_pool", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FeePool { - return new FeePool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FeePool { - return new FeePool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FeePool { - return new FeePool().fromJsonString(jsonString, options); - } - - static equals(a: FeePool | PlainMessage | undefined, b: FeePool | PlainMessage | undefined): boolean { - return proto3.util.equals(FeePool, a, b); - } -} - -/** - * CommunityPoolSpendProposal details a proposal for use of community funds, - * together with how many coins are proposed to be spent, and to which - * recipient account. - * - * Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no - * longer a need for an explicit CommunityPoolSpendProposal. To spend community - * pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov - * module via a v1 governance proposal. - * - * @generated from message cosmos.distribution.v1beta1.CommunityPoolSpendProposal - * @deprecated - */ -export class CommunityPoolSpendProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: string recipient = 3; - */ - recipient = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 4; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.CommunityPoolSpendProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolSpendProposal { - return new CommunityPoolSpendProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolSpendProposal { - return new CommunityPoolSpendProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommunityPoolSpendProposal { - return new CommunityPoolSpendProposal().fromJsonString(jsonString, options); - } - - static equals(a: CommunityPoolSpendProposal | PlainMessage | undefined, b: CommunityPoolSpendProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(CommunityPoolSpendProposal, a, b); - } -} - -/** - * DelegatorStartingInfo represents the starting info for a delegator reward - * period. It tracks the previous validator period, the delegation's amount of - * staking token, and the creation height (to check later on if any slashes have - * occurred). NOTE: Even though validators are slashed to whole staking tokens, - * the delegators within the validator may be left with less than a full token, - * thus sdk.Dec is used. - * - * @generated from message cosmos.distribution.v1beta1.DelegatorStartingInfo - */ -export class DelegatorStartingInfo extends Message { - /** - * @generated from field: uint64 previous_period = 1; - */ - previousPeriod = protoInt64.zero; - - /** - * @generated from field: string stake = 2; - */ - stake = ""; - - /** - * @generated from field: uint64 height = 3; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.DelegatorStartingInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "previous_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "stake", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelegatorStartingInfo { - return new DelegatorStartingInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelegatorStartingInfo { - return new DelegatorStartingInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelegatorStartingInfo { - return new DelegatorStartingInfo().fromJsonString(jsonString, options); - } - - static equals(a: DelegatorStartingInfo | PlainMessage | undefined, b: DelegatorStartingInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(DelegatorStartingInfo, a, b); - } -} - -/** - * DelegationDelegatorReward represents the properties - * of a delegator's delegation reward. - * - * @generated from message cosmos.distribution.v1beta1.DelegationDelegatorReward - */ -export class DelegationDelegatorReward extends Message { - /** - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin reward = 2; - */ - reward: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.DelegationDelegatorReward"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "reward", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelegationDelegatorReward { - return new DelegationDelegatorReward().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelegationDelegatorReward { - return new DelegationDelegatorReward().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelegationDelegatorReward { - return new DelegationDelegatorReward().fromJsonString(jsonString, options); - } - - static equals(a: DelegationDelegatorReward | PlainMessage | undefined, b: DelegationDelegatorReward | PlainMessage | undefined): boolean { - return proto3.util.equals(DelegationDelegatorReward, a, b); - } -} - -/** - * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal - * with a deposit - * - * @generated from message cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit - */ -export class CommunityPoolSpendProposalWithDeposit extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: string recipient = 3; - */ - recipient = ""; - - /** - * @generated from field: string amount = 4; - */ - amount = ""; - - /** - * @generated from field: string deposit = 5; - */ - deposit = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "deposit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommunityPoolSpendProposalWithDeposit { - return new CommunityPoolSpendProposalWithDeposit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommunityPoolSpendProposalWithDeposit { - return new CommunityPoolSpendProposalWithDeposit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommunityPoolSpendProposalWithDeposit { - return new CommunityPoolSpendProposalWithDeposit().fromJsonString(jsonString, options); - } - - static equals(a: CommunityPoolSpendProposalWithDeposit | PlainMessage | undefined, b: CommunityPoolSpendProposalWithDeposit | PlainMessage | undefined): boolean { - return proto3.util.equals(CommunityPoolSpendProposalWithDeposit, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/genesis_pb.ts deleted file mode 100644 index 88de8af..0000000 --- a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,502 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/distribution/v1beta1/genesis.proto (package cosmos.distribution.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { DecCoin } from "../../base/v1beta1/coin_pb.js"; -import { DelegatorStartingInfo, FeePool, Params, ValidatorAccumulatedCommission, ValidatorCurrentRewards, ValidatorHistoricalRewards, ValidatorSlashEvent } from "./distribution_pb.js"; - -/** - * DelegatorWithdrawInfo is the address for where distributions rewards are - * withdrawn to by default this struct is only used at genesis to feed in - * default withdraw addresses. - * - * @generated from message cosmos.distribution.v1beta1.DelegatorWithdrawInfo - */ -export class DelegatorWithdrawInfo extends Message { - /** - * delegator_address is the address of the delegator. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * withdraw_address is the address to withdraw the delegation rewards to. - * - * @generated from field: string withdraw_address = 2; - */ - withdrawAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.DelegatorWithdrawInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "withdraw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelegatorWithdrawInfo { - return new DelegatorWithdrawInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelegatorWithdrawInfo { - return new DelegatorWithdrawInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelegatorWithdrawInfo { - return new DelegatorWithdrawInfo().fromJsonString(jsonString, options); - } - - static equals(a: DelegatorWithdrawInfo | PlainMessage | undefined, b: DelegatorWithdrawInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(DelegatorWithdrawInfo, a, b); - } -} - -/** - * ValidatorOutstandingRewardsRecord is used for import/export via genesis json. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord - */ -export class ValidatorOutstandingRewardsRecord extends Message { - /** - * validator_address is the address of the validator. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * outstanding_rewards represents the outstanding rewards of a validator. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2; - */ - outstandingRewards: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "outstanding_rewards", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorOutstandingRewardsRecord { - return new ValidatorOutstandingRewardsRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorOutstandingRewardsRecord { - return new ValidatorOutstandingRewardsRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorOutstandingRewardsRecord { - return new ValidatorOutstandingRewardsRecord().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorOutstandingRewardsRecord | PlainMessage | undefined, b: ValidatorOutstandingRewardsRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorOutstandingRewardsRecord, a, b); - } -} - -/** - * ValidatorAccumulatedCommissionRecord is used for import / export via genesis - * json. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord - */ -export class ValidatorAccumulatedCommissionRecord extends Message { - /** - * validator_address is the address of the validator. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * accumulated is the accumulated commission of a validator. - * - * @generated from field: cosmos.distribution.v1beta1.ValidatorAccumulatedCommission accumulated = 2; - */ - accumulated?: ValidatorAccumulatedCommission; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "accumulated", kind: "message", T: ValidatorAccumulatedCommission }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorAccumulatedCommissionRecord { - return new ValidatorAccumulatedCommissionRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorAccumulatedCommissionRecord { - return new ValidatorAccumulatedCommissionRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorAccumulatedCommissionRecord { - return new ValidatorAccumulatedCommissionRecord().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorAccumulatedCommissionRecord | PlainMessage | undefined, b: ValidatorAccumulatedCommissionRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorAccumulatedCommissionRecord, a, b); - } -} - -/** - * ValidatorHistoricalRewardsRecord is used for import / export via genesis - * json. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord - */ -export class ValidatorHistoricalRewardsRecord extends Message { - /** - * validator_address is the address of the validator. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * period defines the period the historical rewards apply to. - * - * @generated from field: uint64 period = 2; - */ - period = protoInt64.zero; - - /** - * rewards defines the historical rewards of a validator. - * - * @generated from field: cosmos.distribution.v1beta1.ValidatorHistoricalRewards rewards = 3; - */ - rewards?: ValidatorHistoricalRewards; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "rewards", kind: "message", T: ValidatorHistoricalRewards }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorHistoricalRewardsRecord { - return new ValidatorHistoricalRewardsRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorHistoricalRewardsRecord { - return new ValidatorHistoricalRewardsRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorHistoricalRewardsRecord { - return new ValidatorHistoricalRewardsRecord().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorHistoricalRewardsRecord | PlainMessage | undefined, b: ValidatorHistoricalRewardsRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorHistoricalRewardsRecord, a, b); - } -} - -/** - * ValidatorCurrentRewardsRecord is used for import / export via genesis json. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord - */ -export class ValidatorCurrentRewardsRecord extends Message { - /** - * validator_address is the address of the validator. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * rewards defines the current rewards of a validator. - * - * @generated from field: cosmos.distribution.v1beta1.ValidatorCurrentRewards rewards = 2; - */ - rewards?: ValidatorCurrentRewards; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "rewards", kind: "message", T: ValidatorCurrentRewards }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorCurrentRewardsRecord { - return new ValidatorCurrentRewardsRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorCurrentRewardsRecord { - return new ValidatorCurrentRewardsRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorCurrentRewardsRecord { - return new ValidatorCurrentRewardsRecord().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorCurrentRewardsRecord | PlainMessage | undefined, b: ValidatorCurrentRewardsRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorCurrentRewardsRecord, a, b); - } -} - -/** - * DelegatorStartingInfoRecord used for import / export via genesis json. - * - * @generated from message cosmos.distribution.v1beta1.DelegatorStartingInfoRecord - */ -export class DelegatorStartingInfoRecord extends Message { - /** - * delegator_address is the address of the delegator. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * validator_address is the address of the validator. - * - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * starting_info defines the starting info of a delegator. - * - * @generated from field: cosmos.distribution.v1beta1.DelegatorStartingInfo starting_info = 3; - */ - startingInfo?: DelegatorStartingInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.DelegatorStartingInfoRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "starting_info", kind: "message", T: DelegatorStartingInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelegatorStartingInfoRecord { - return new DelegatorStartingInfoRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelegatorStartingInfoRecord { - return new DelegatorStartingInfoRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelegatorStartingInfoRecord { - return new DelegatorStartingInfoRecord().fromJsonString(jsonString, options); - } - - static equals(a: DelegatorStartingInfoRecord | PlainMessage | undefined, b: DelegatorStartingInfoRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(DelegatorStartingInfoRecord, a, b); - } -} - -/** - * ValidatorSlashEventRecord is used for import / export via genesis json. - * - * @generated from message cosmos.distribution.v1beta1.ValidatorSlashEventRecord - */ -export class ValidatorSlashEventRecord extends Message { - /** - * validator_address is the address of the validator. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * height defines the block height at which the slash event occurred. - * - * @generated from field: uint64 height = 2; - */ - height = protoInt64.zero; - - /** - * period is the period of the slash event. - * - * @generated from field: uint64 period = 3; - */ - period = protoInt64.zero; - - /** - * validator_slash_event describes the slash event. - * - * @generated from field: cosmos.distribution.v1beta1.ValidatorSlashEvent validator_slash_event = 4; - */ - validatorSlashEvent?: ValidatorSlashEvent; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.ValidatorSlashEventRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "validator_slash_event", kind: "message", T: ValidatorSlashEvent }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorSlashEventRecord { - return new ValidatorSlashEventRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorSlashEventRecord { - return new ValidatorSlashEventRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorSlashEventRecord { - return new ValidatorSlashEventRecord().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorSlashEventRecord | PlainMessage | undefined, b: ValidatorSlashEventRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorSlashEventRecord, a, b); - } -} - -/** - * GenesisState defines the distribution module's genesis state. - * - * @generated from message cosmos.distribution.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines all the parameters of the module. - * - * @generated from field: cosmos.distribution.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * fee_pool defines the fee pool at genesis. - * - * @generated from field: cosmos.distribution.v1beta1.FeePool fee_pool = 2; - */ - feePool?: FeePool; - - /** - * fee_pool defines the delegator withdraw infos at genesis. - * - * @generated from field: repeated cosmos.distribution.v1beta1.DelegatorWithdrawInfo delegator_withdraw_infos = 3; - */ - delegatorWithdrawInfos: DelegatorWithdrawInfo[] = []; - - /** - * fee_pool defines the previous proposer at genesis. - * - * @generated from field: string previous_proposer = 4; - */ - previousProposer = ""; - - /** - * fee_pool defines the outstanding rewards of all validators at genesis. - * - * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord outstanding_rewards = 5; - */ - outstandingRewards: ValidatorOutstandingRewardsRecord[] = []; - - /** - * fee_pool defines the accumulated commissions of all validators at genesis. - * - * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6; - */ - validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[] = []; - - /** - * fee_pool defines the historical rewards of all validators at genesis. - * - * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord validator_historical_rewards = 7; - */ - validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[] = []; - - /** - * fee_pool defines the current rewards of all validators at genesis. - * - * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord validator_current_rewards = 8; - */ - validatorCurrentRewards: ValidatorCurrentRewardsRecord[] = []; - - /** - * fee_pool defines the delegator starting infos at genesis. - * - * @generated from field: repeated cosmos.distribution.v1beta1.DelegatorStartingInfoRecord delegator_starting_infos = 9; - */ - delegatorStartingInfos: DelegatorStartingInfoRecord[] = []; - - /** - * fee_pool defines the validator slash events at genesis. - * - * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorSlashEventRecord validator_slash_events = 10; - */ - validatorSlashEvents: ValidatorSlashEventRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "fee_pool", kind: "message", T: FeePool }, - { no: 3, name: "delegator_withdraw_infos", kind: "message", T: DelegatorWithdrawInfo, repeated: true }, - { no: 4, name: "previous_proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "outstanding_rewards", kind: "message", T: ValidatorOutstandingRewardsRecord, repeated: true }, - { no: 6, name: "validator_accumulated_commissions", kind: "message", T: ValidatorAccumulatedCommissionRecord, repeated: true }, - { no: 7, name: "validator_historical_rewards", kind: "message", T: ValidatorHistoricalRewardsRecord, repeated: true }, - { no: 8, name: "validator_current_rewards", kind: "message", T: ValidatorCurrentRewardsRecord, repeated: true }, - { no: 9, name: "delegator_starting_infos", kind: "message", T: DelegatorStartingInfoRecord, repeated: true }, - { no: 10, name: "validator_slash_events", kind: "message", T: ValidatorSlashEventRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts deleted file mode 100644 index 45d5b09..0000000 --- a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,130 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/distribution/v1beta1/query.proto (package cosmos.distribution.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryCommunityPoolRequest, QueryCommunityPoolResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryParamsRequest, QueryParamsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorDistributionInfoRequest, QueryValidatorDistributionInfoResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.distribution.v1beta1.Query"; - -/** - * Params queries params of the distribution module. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator - * - * @generated from rpc cosmos.distribution.v1beta1.Query.ValidatorDistributionInfo - */ -export const QueryValidatorDistributionInfoService = { - typeName: TYPE_NAME, - method: "ValidatorDistributionInfo", - Request: QueryValidatorDistributionInfoRequest, - Response: QueryValidatorDistributionInfoResponse, -} as const; - -/** - * ValidatorOutstandingRewards queries rewards of a validator address. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.ValidatorOutstandingRewards - */ -export const QueryValidatorOutstandingRewardsService = { - typeName: TYPE_NAME, - method: "ValidatorOutstandingRewards", - Request: QueryValidatorOutstandingRewardsRequest, - Response: QueryValidatorOutstandingRewardsResponse, -} as const; - -/** - * ValidatorCommission queries accumulated commission for a validator. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.ValidatorCommission - */ -export const QueryValidatorCommissionService = { - typeName: TYPE_NAME, - method: "ValidatorCommission", - Request: QueryValidatorCommissionRequest, - Response: QueryValidatorCommissionResponse, -} as const; - -/** - * ValidatorSlashes queries slash events of a validator. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.ValidatorSlashes - */ -export const QueryValidatorSlashesService = { - typeName: TYPE_NAME, - method: "ValidatorSlashes", - Request: QueryValidatorSlashesRequest, - Response: QueryValidatorSlashesResponse, -} as const; - -/** - * DelegationRewards queries the total rewards accrued by a delegation. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.DelegationRewards - */ -export const QueryDelegationRewardsService = { - typeName: TYPE_NAME, - method: "DelegationRewards", - Request: QueryDelegationRewardsRequest, - Response: QueryDelegationRewardsResponse, -} as const; - -/** - * DelegationTotalRewards queries the total rewards accrued by each - * validator. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.DelegationTotalRewards - */ -export const QueryDelegationTotalRewardsService = { - typeName: TYPE_NAME, - method: "DelegationTotalRewards", - Request: QueryDelegationTotalRewardsRequest, - Response: QueryDelegationTotalRewardsResponse, -} as const; - -/** - * DelegatorValidators queries the validators of a delegator. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.DelegatorValidators - */ -export const QueryDelegatorValidatorsService = { - typeName: TYPE_NAME, - method: "DelegatorValidators", - Request: QueryDelegatorValidatorsRequest, - Response: QueryDelegatorValidatorsResponse, -} as const; - -/** - * DelegatorWithdrawAddress queries withdraw address of a delegator. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.DelegatorWithdrawAddress - */ -export const QueryDelegatorWithdrawAddressService = { - typeName: TYPE_NAME, - method: "DelegatorWithdrawAddress", - Request: QueryDelegatorWithdrawAddressRequest, - Response: QueryDelegatorWithdrawAddressResponse, -} as const; - -/** - * CommunityPool queries the community pool coins. - * - * @generated from rpc cosmos.distribution.v1beta1.Query.CommunityPool - */ -export const QueryCommunityPoolService = { - typeName: TYPE_NAME, - method: "CommunityPool", - Request: QueryCommunityPoolRequest, - Response: QueryCommunityPoolResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_pb.ts deleted file mode 100644 index 9626da9..0000000 --- a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/query_pb.ts +++ /dev/null @@ -1,893 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/distribution/v1beta1/query.proto (package cosmos.distribution.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { DelegationDelegatorReward, Params, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent } from "./distribution_pb.js"; -import { DecCoin } from "../../base/v1beta1/coin_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: cosmos.distribution.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest - */ -export class QueryValidatorDistributionInfoRequest extends Message { - /** - * validator_address defines the validator address to query for. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDistributionInfoRequest { - return new QueryValidatorDistributionInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDistributionInfoRequest { - return new QueryValidatorDistributionInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDistributionInfoRequest { - return new QueryValidatorDistributionInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorDistributionInfoRequest | PlainMessage | undefined, b: QueryValidatorDistributionInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorDistributionInfoRequest, a, b); - } -} - -/** - * QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse - */ -export class QueryValidatorDistributionInfoResponse extends Message { - /** - * operator_address defines the validator operator address. - * - * @generated from field: string operator_address = 1; - */ - operatorAddress = ""; - - /** - * self_bond_rewards defines the self delegations rewards. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin self_bond_rewards = 2; - */ - selfBondRewards: DecCoin[] = []; - - /** - * commission defines the commission the validator received. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin commission = 3; - */ - commission: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "operator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "self_bond_rewards", kind: "message", T: DecCoin, repeated: true }, - { no: 3, name: "commission", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDistributionInfoResponse { - return new QueryValidatorDistributionInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDistributionInfoResponse { - return new QueryValidatorDistributionInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDistributionInfoResponse { - return new QueryValidatorDistributionInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorDistributionInfoResponse | PlainMessage | undefined, b: QueryValidatorDistributionInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorDistributionInfoResponse, a, b); - } -} - -/** - * QueryValidatorOutstandingRewardsRequest is the request type for the - * Query/ValidatorOutstandingRewards RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest - */ -export class QueryValidatorOutstandingRewardsRequest extends Message { - /** - * validator_address defines the validator address to query for. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorOutstandingRewardsRequest { - return new QueryValidatorOutstandingRewardsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorOutstandingRewardsRequest { - return new QueryValidatorOutstandingRewardsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorOutstandingRewardsRequest { - return new QueryValidatorOutstandingRewardsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorOutstandingRewardsRequest | PlainMessage | undefined, b: QueryValidatorOutstandingRewardsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorOutstandingRewardsRequest, a, b); - } -} - -/** - * QueryValidatorOutstandingRewardsResponse is the response type for the - * Query/ValidatorOutstandingRewards RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse - */ -export class QueryValidatorOutstandingRewardsResponse extends Message { - /** - * @generated from field: cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1; - */ - rewards?: ValidatorOutstandingRewards; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rewards", kind: "message", T: ValidatorOutstandingRewards }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorOutstandingRewardsResponse { - return new QueryValidatorOutstandingRewardsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorOutstandingRewardsResponse { - return new QueryValidatorOutstandingRewardsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorOutstandingRewardsResponse { - return new QueryValidatorOutstandingRewardsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorOutstandingRewardsResponse | PlainMessage | undefined, b: QueryValidatorOutstandingRewardsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorOutstandingRewardsResponse, a, b); - } -} - -/** - * QueryValidatorCommissionRequest is the request type for the - * Query/ValidatorCommission RPC method - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorCommissionRequest - */ -export class QueryValidatorCommissionRequest extends Message { - /** - * validator_address defines the validator address to query for. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorCommissionRequest { - return new QueryValidatorCommissionRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorCommissionRequest { - return new QueryValidatorCommissionRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorCommissionRequest { - return new QueryValidatorCommissionRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorCommissionRequest | PlainMessage | undefined, b: QueryValidatorCommissionRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorCommissionRequest, a, b); - } -} - -/** - * QueryValidatorCommissionResponse is the response type for the - * Query/ValidatorCommission RPC method - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorCommissionResponse - */ -export class QueryValidatorCommissionResponse extends Message { - /** - * commission defines the commission the validator received. - * - * @generated from field: cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1; - */ - commission?: ValidatorAccumulatedCommission; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "commission", kind: "message", T: ValidatorAccumulatedCommission }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorCommissionResponse { - return new QueryValidatorCommissionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorCommissionResponse { - return new QueryValidatorCommissionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorCommissionResponse { - return new QueryValidatorCommissionResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorCommissionResponse | PlainMessage | undefined, b: QueryValidatorCommissionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorCommissionResponse, a, b); - } -} - -/** - * QueryValidatorSlashesRequest is the request type for the - * Query/ValidatorSlashes RPC method - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorSlashesRequest - */ -export class QueryValidatorSlashesRequest extends Message { - /** - * validator_address defines the validator address to query for. - * - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * starting_height defines the optional starting height to query the slashes. - * - * @generated from field: uint64 starting_height = 2; - */ - startingHeight = protoInt64.zero; - - /** - * starting_height defines the optional ending height to query the slashes. - * - * @generated from field: uint64 ending_height = 3; - */ - endingHeight = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorSlashesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "starting_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "ending_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorSlashesRequest { - return new QueryValidatorSlashesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorSlashesRequest { - return new QueryValidatorSlashesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorSlashesRequest { - return new QueryValidatorSlashesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorSlashesRequest | PlainMessage | undefined, b: QueryValidatorSlashesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorSlashesRequest, a, b); - } -} - -/** - * QueryValidatorSlashesResponse is the response type for the - * Query/ValidatorSlashes RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryValidatorSlashesResponse - */ -export class QueryValidatorSlashesResponse extends Message { - /** - * slashes defines the slashes the validator received. - * - * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1; - */ - slashes: ValidatorSlashEvent[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorSlashesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "slashes", kind: "message", T: ValidatorSlashEvent, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorSlashesResponse { - return new QueryValidatorSlashesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorSlashesResponse { - return new QueryValidatorSlashesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorSlashesResponse { - return new QueryValidatorSlashesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorSlashesResponse | PlainMessage | undefined, b: QueryValidatorSlashesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorSlashesResponse, a, b); - } -} - -/** - * QueryDelegationRewardsRequest is the request type for the - * Query/DelegationRewards RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegationRewardsRequest - */ -export class QueryDelegationRewardsRequest extends Message { - /** - * delegator_address defines the delegator address to query for. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * validator_address defines the validator address to query for. - * - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationRewardsRequest { - return new QueryDelegationRewardsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationRewardsRequest { - return new QueryDelegationRewardsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationRewardsRequest { - return new QueryDelegationRewardsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationRewardsRequest | PlainMessage | undefined, b: QueryDelegationRewardsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationRewardsRequest, a, b); - } -} - -/** - * QueryDelegationRewardsResponse is the response type for the - * Query/DelegationRewards RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegationRewardsResponse - */ -export class QueryDelegationRewardsResponse extends Message { - /** - * rewards defines the rewards accrued by a delegation. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin rewards = 1; - */ - rewards: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rewards", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationRewardsResponse { - return new QueryDelegationRewardsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationRewardsResponse { - return new QueryDelegationRewardsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationRewardsResponse { - return new QueryDelegationRewardsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationRewardsResponse | PlainMessage | undefined, b: QueryDelegationRewardsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationRewardsResponse, a, b); - } -} - -/** - * QueryDelegationTotalRewardsRequest is the request type for the - * Query/DelegationTotalRewards RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest - */ -export class QueryDelegationTotalRewardsRequest extends Message { - /** - * delegator_address defines the delegator address to query for. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationTotalRewardsRequest { - return new QueryDelegationTotalRewardsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationTotalRewardsRequest { - return new QueryDelegationTotalRewardsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationTotalRewardsRequest { - return new QueryDelegationTotalRewardsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationTotalRewardsRequest | PlainMessage | undefined, b: QueryDelegationTotalRewardsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationTotalRewardsRequest, a, b); - } -} - -/** - * QueryDelegationTotalRewardsResponse is the response type for the - * Query/DelegationTotalRewards RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse - */ -export class QueryDelegationTotalRewardsResponse extends Message { - /** - * rewards defines all the rewards accrued by a delegator. - * - * @generated from field: repeated cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1; - */ - rewards: DelegationDelegatorReward[] = []; - - /** - * total defines the sum of all the rewards. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin total = 2; - */ - total: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rewards", kind: "message", T: DelegationDelegatorReward, repeated: true }, - { no: 2, name: "total", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationTotalRewardsResponse { - return new QueryDelegationTotalRewardsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationTotalRewardsResponse { - return new QueryDelegationTotalRewardsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationTotalRewardsResponse { - return new QueryDelegationTotalRewardsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationTotalRewardsResponse | PlainMessage | undefined, b: QueryDelegationTotalRewardsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationTotalRewardsResponse, a, b); - } -} - -/** - * QueryDelegatorValidatorsRequest is the request type for the - * Query/DelegatorValidators RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest - */ -export class QueryDelegatorValidatorsRequest extends Message { - /** - * delegator_address defines the delegator address to query for. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorsRequest { - return new QueryDelegatorValidatorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorsRequest { - return new QueryDelegatorValidatorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorsRequest { - return new QueryDelegatorValidatorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorValidatorsRequest | PlainMessage | undefined, b: QueryDelegatorValidatorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorValidatorsRequest, a, b); - } -} - -/** - * QueryDelegatorValidatorsResponse is the response type for the - * Query/DelegatorValidators RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse - */ -export class QueryDelegatorValidatorsResponse extends Message { - /** - * validators defines the validators a delegator is delegating for. - * - * @generated from field: repeated string validators = 1; - */ - validators: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validators", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorsResponse { - return new QueryDelegatorValidatorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorsResponse { - return new QueryDelegatorValidatorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorsResponse { - return new QueryDelegatorValidatorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorValidatorsResponse | PlainMessage | undefined, b: QueryDelegatorValidatorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorValidatorsResponse, a, b); - } -} - -/** - * QueryDelegatorWithdrawAddressRequest is the request type for the - * Query/DelegatorWithdrawAddress RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest - */ -export class QueryDelegatorWithdrawAddressRequest extends Message { - /** - * delegator_address defines the delegator address to query for. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorWithdrawAddressRequest { - return new QueryDelegatorWithdrawAddressRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorWithdrawAddressRequest { - return new QueryDelegatorWithdrawAddressRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorWithdrawAddressRequest { - return new QueryDelegatorWithdrawAddressRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorWithdrawAddressRequest | PlainMessage | undefined, b: QueryDelegatorWithdrawAddressRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorWithdrawAddressRequest, a, b); - } -} - -/** - * QueryDelegatorWithdrawAddressResponse is the response type for the - * Query/DelegatorWithdrawAddress RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse - */ -export class QueryDelegatorWithdrawAddressResponse extends Message { - /** - * withdraw_address defines the delegator address to query for. - * - * @generated from field: string withdraw_address = 1; - */ - withdrawAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "withdraw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorWithdrawAddressResponse { - return new QueryDelegatorWithdrawAddressResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorWithdrawAddressResponse { - return new QueryDelegatorWithdrawAddressResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorWithdrawAddressResponse { - return new QueryDelegatorWithdrawAddressResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorWithdrawAddressResponse | PlainMessage | undefined, b: QueryDelegatorWithdrawAddressResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorWithdrawAddressResponse, a, b); - } -} - -/** - * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC - * method. - * - * @generated from message cosmos.distribution.v1beta1.QueryCommunityPoolRequest - */ -export class QueryCommunityPoolRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommunityPoolRequest { - return new QueryCommunityPoolRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommunityPoolRequest { - return new QueryCommunityPoolRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCommunityPoolRequest { - return new QueryCommunityPoolRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCommunityPoolRequest | PlainMessage | undefined, b: QueryCommunityPoolRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCommunityPoolRequest, a, b); - } -} - -/** - * QueryCommunityPoolResponse is the response type for the Query/CommunityPool - * RPC method. - * - * @generated from message cosmos.distribution.v1beta1.QueryCommunityPoolResponse - */ -export class QueryCommunityPoolResponse extends Message { - /** - * pool defines community pool's coins. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin pool = 1; - */ - pool: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommunityPoolResponse { - return new QueryCommunityPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommunityPoolResponse { - return new QueryCommunityPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCommunityPoolResponse { - return new QueryCommunityPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCommunityPoolResponse | PlainMessage | undefined, b: QueryCommunityPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCommunityPoolResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts deleted file mode 100644 index 46108f7..0000000 --- a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,108 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/distribution/v1beta1/tx.proto (package cosmos.distribution.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse, MsgDepositValidatorRewardsPool, MsgDepositValidatorRewardsPoolResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse, MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.distribution.v1beta1.Msg"; - -/** - * SetWithdrawAddress defines a method to change the withdraw address - * for a delegator (or validator self-delegation). - * - * @generated from rpc cosmos.distribution.v1beta1.Msg.SetWithdrawAddress - */ -export const MsgSetWithdrawAddressService = { - typeName: TYPE_NAME, - method: "SetWithdrawAddress", - Request: MsgSetWithdrawAddress, - Response: MsgSetWithdrawAddressResponse, -} as const; - -/** - * WithdrawDelegatorReward defines a method to withdraw rewards of delegator - * from a single validator. - * - * @generated from rpc cosmos.distribution.v1beta1.Msg.WithdrawDelegatorReward - */ -export const MsgWithdrawDelegatorRewardService = { - typeName: TYPE_NAME, - method: "WithdrawDelegatorReward", - Request: MsgWithdrawDelegatorReward, - Response: MsgWithdrawDelegatorRewardResponse, -} as const; - -/** - * WithdrawValidatorCommission defines a method to withdraw the - * full commission to the validator address. - * - * @generated from rpc cosmos.distribution.v1beta1.Msg.WithdrawValidatorCommission - */ -export const MsgWithdrawValidatorCommissionService = { - typeName: TYPE_NAME, - method: "WithdrawValidatorCommission", - Request: MsgWithdrawValidatorCommission, - Response: MsgWithdrawValidatorCommissionResponse, -} as const; - -/** - * FundCommunityPool defines a method to allow an account to directly - * fund the community pool. - * - * @generated from rpc cosmos.distribution.v1beta1.Msg.FundCommunityPool - */ -export const MsgFundCommunityPoolService = { - typeName: TYPE_NAME, - method: "FundCommunityPool", - Request: MsgFundCommunityPool, - Response: MsgFundCommunityPoolResponse, -} as const; - -/** - * UpdateParams defines a governance operation for updating the x/distribution - * module parameters. The authority is defined in the keeper. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.distribution.v1beta1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * CommunityPoolSpend defines a governance operation for sending tokens from - * the community pool in the x/distribution module to another account, which - * could be the governance module itself. The authority is defined in the - * keeper. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.distribution.v1beta1.Msg.CommunityPoolSpend - */ -export const MsgCommunityPoolSpendService = { - typeName: TYPE_NAME, - method: "CommunityPoolSpend", - Request: MsgCommunityPoolSpend, - Response: MsgCommunityPoolSpendResponse, -} as const; - -/** - * DepositValidatorRewardsPool defines a method to provide additional rewards - * to delegators to a specific validator. - * - * Since: cosmos-sdk 0.50 - * - * @generated from rpc cosmos.distribution.v1beta1.Msg.DepositValidatorRewardsPool - */ -export const MsgDepositValidatorRewardsPoolService = { - typeName: TYPE_NAME, - method: "DepositValidatorRewardsPool", - Request: MsgDepositValidatorRewardsPool, - Response: MsgDepositValidatorRewardsPoolResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts deleted file mode 100644 index 611f079..0000000 --- a/libs/es-client/src/protobufs/cosmos/distribution/v1beta1/tx_pb.ts +++ /dev/null @@ -1,611 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/distribution/v1beta1/tx.proto (package cosmos.distribution.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; -import { Params } from "./distribution_pb.js"; - -/** - * MsgSetWithdrawAddress sets the withdraw address for - * a delegator (or validator self-delegation). - * - * @generated from message cosmos.distribution.v1beta1.MsgSetWithdrawAddress - */ -export class MsgSetWithdrawAddress extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string withdraw_address = 2; - */ - withdrawAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgSetWithdrawAddress"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "withdraw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetWithdrawAddress { - return new MsgSetWithdrawAddress().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetWithdrawAddress { - return new MsgSetWithdrawAddress().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetWithdrawAddress { - return new MsgSetWithdrawAddress().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetWithdrawAddress | PlainMessage | undefined, b: MsgSetWithdrawAddress | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetWithdrawAddress, a, b); - } -} - -/** - * MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response - * type. - * - * @generated from message cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse - */ -export class MsgSetWithdrawAddressResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetWithdrawAddressResponse { - return new MsgSetWithdrawAddressResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetWithdrawAddressResponse { - return new MsgSetWithdrawAddressResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetWithdrawAddressResponse { - return new MsgSetWithdrawAddressResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetWithdrawAddressResponse | PlainMessage | undefined, b: MsgSetWithdrawAddressResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetWithdrawAddressResponse, a, b); - } -} - -/** - * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator - * from a single validator. - * - * @generated from message cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward - */ -export class MsgWithdrawDelegatorReward extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawDelegatorReward { - return new MsgWithdrawDelegatorReward().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawDelegatorReward { - return new MsgWithdrawDelegatorReward().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawDelegatorReward { - return new MsgWithdrawDelegatorReward().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawDelegatorReward | PlainMessage | undefined, b: MsgWithdrawDelegatorReward | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawDelegatorReward, a, b); - } -} - -/** - * MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward - * response type. - * - * @generated from message cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse - */ -export class MsgWithdrawDelegatorRewardResponse extends Message { - /** - * Since: cosmos-sdk 0.46 - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawDelegatorRewardResponse { - return new MsgWithdrawDelegatorRewardResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawDelegatorRewardResponse { - return new MsgWithdrawDelegatorRewardResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawDelegatorRewardResponse { - return new MsgWithdrawDelegatorRewardResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawDelegatorRewardResponse | PlainMessage | undefined, b: MsgWithdrawDelegatorRewardResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawDelegatorRewardResponse, a, b); - } -} - -/** - * MsgWithdrawValidatorCommission withdraws the full commission to the validator - * address. - * - * @generated from message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission - */ -export class MsgWithdrawValidatorCommission extends Message { - /** - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawValidatorCommission { - return new MsgWithdrawValidatorCommission().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawValidatorCommission { - return new MsgWithdrawValidatorCommission().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawValidatorCommission { - return new MsgWithdrawValidatorCommission().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawValidatorCommission | PlainMessage | undefined, b: MsgWithdrawValidatorCommission | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawValidatorCommission, a, b); - } -} - -/** - * MsgWithdrawValidatorCommissionResponse defines the - * Msg/WithdrawValidatorCommission response type. - * - * @generated from message cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse - */ -export class MsgWithdrawValidatorCommissionResponse extends Message { - /** - * Since: cosmos-sdk 0.46 - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawValidatorCommissionResponse { - return new MsgWithdrawValidatorCommissionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawValidatorCommissionResponse { - return new MsgWithdrawValidatorCommissionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawValidatorCommissionResponse { - return new MsgWithdrawValidatorCommissionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawValidatorCommissionResponse | PlainMessage | undefined, b: MsgWithdrawValidatorCommissionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawValidatorCommissionResponse, a, b); - } -} - -/** - * MsgFundCommunityPool allows an account to directly - * fund the community pool. - * - * @generated from message cosmos.distribution.v1beta1.MsgFundCommunityPool - */ -export class MsgFundCommunityPool extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; - */ - amount: Coin[] = []; - - /** - * @generated from field: string depositor = 2; - */ - depositor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgFundCommunityPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundCommunityPool { - return new MsgFundCommunityPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundCommunityPool { - return new MsgFundCommunityPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgFundCommunityPool { - return new MsgFundCommunityPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgFundCommunityPool | PlainMessage | undefined, b: MsgFundCommunityPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgFundCommunityPool, a, b); - } -} - -/** - * MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. - * - * @generated from message cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse - */ -export class MsgFundCommunityPoolResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgFundCommunityPoolResponse { - return new MsgFundCommunityPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgFundCommunityPoolResponse { - return new MsgFundCommunityPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgFundCommunityPoolResponse { - return new MsgFundCommunityPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgFundCommunityPoolResponse | PlainMessage | undefined, b: MsgFundCommunityPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgFundCommunityPoolResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.distribution.v1beta1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/distribution parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmos.distribution.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.distribution.v1beta1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgCommunityPoolSpend defines a message for sending tokens from the community - * pool to another account. This message is typically executed via a governance - * proposal with the governance module being the executing authority. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.distribution.v1beta1.MsgCommunityPoolSpend - */ -export class MsgCommunityPoolSpend extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * @generated from field: string recipient = 2; - */ - recipient = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgCommunityPoolSpend"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCommunityPoolSpend { - return new MsgCommunityPoolSpend().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCommunityPoolSpend { - return new MsgCommunityPoolSpend().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCommunityPoolSpend { - return new MsgCommunityPoolSpend().fromJsonString(jsonString, options); - } - - static equals(a: MsgCommunityPoolSpend | PlainMessage | undefined, b: MsgCommunityPoolSpend | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCommunityPoolSpend, a, b); - } -} - -/** - * MsgCommunityPoolSpendResponse defines the response to executing a - * MsgCommunityPoolSpend message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse - */ -export class MsgCommunityPoolSpendResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCommunityPoolSpendResponse { - return new MsgCommunityPoolSpendResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCommunityPoolSpendResponse { - return new MsgCommunityPoolSpendResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCommunityPoolSpendResponse { - return new MsgCommunityPoolSpendResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCommunityPoolSpendResponse | PlainMessage | undefined, b: MsgCommunityPoolSpendResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCommunityPoolSpendResponse, a, b); - } -} - -/** - * DepositValidatorRewardsPool defines the request structure to provide - * additional rewards to delegators from a specific validator. - * - * Since: cosmos-sdk 0.50 - * - * @generated from message cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool - */ -export class MsgDepositValidatorRewardsPool extends Message { - /** - * @generated from field: string depositor = 1; - */ - depositor = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositValidatorRewardsPool { - return new MsgDepositValidatorRewardsPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositValidatorRewardsPool { - return new MsgDepositValidatorRewardsPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDepositValidatorRewardsPool { - return new MsgDepositValidatorRewardsPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgDepositValidatorRewardsPool | PlainMessage | undefined, b: MsgDepositValidatorRewardsPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDepositValidatorRewardsPool, a, b); - } -} - -/** - * MsgDepositValidatorRewardsPoolResponse defines the response to executing a - * MsgDepositValidatorRewardsPool message. - * - * Since: cosmos-sdk 0.50 - * - * @generated from message cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse - */ -export class MsgDepositValidatorRewardsPoolResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositValidatorRewardsPoolResponse { - return new MsgDepositValidatorRewardsPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositValidatorRewardsPoolResponse { - return new MsgDepositValidatorRewardsPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDepositValidatorRewardsPoolResponse { - return new MsgDepositValidatorRewardsPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgDepositValidatorRewardsPoolResponse | PlainMessage | undefined, b: MsgDepositValidatorRewardsPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDepositValidatorRewardsPoolResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/evidence/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/evidence/module/v1/module_pb.ts deleted file mode 100644 index 6c25bc7..0000000 --- a/libs/es-client/src/protobufs/cosmos/evidence/module/v1/module_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/evidence/module/v1/module.proto (package cosmos.evidence.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the evidence module. - * - * @generated from message cosmos.evidence.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/evidence_pb.ts b/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/evidence_pb.ts deleted file mode 100644 index 7b3a67f..0000000 --- a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/evidence_pb.ts +++ /dev/null @@ -1,74 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/evidence/v1beta1/evidence.proto (package cosmos.evidence.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * Equivocation implements the Evidence interface and defines evidence of double - * signing misbehavior. - * - * @generated from message cosmos.evidence.v1beta1.Equivocation - */ -export class Equivocation extends Message { - /** - * height is the equivocation height. - * - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * time is the equivocation time. - * - * @generated from field: google.protobuf.Timestamp time = 2; - */ - time?: Timestamp; - - /** - * power is the equivocation validator power. - * - * @generated from field: int64 power = 3; - */ - power = protoInt64.zero; - - /** - * consensus_address is the equivocation validator consensus address. - * - * @generated from field: string consensus_address = 4; - */ - consensusAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.Equivocation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "time", kind: "message", T: Timestamp }, - { no: 3, name: "power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "consensus_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Equivocation { - return new Equivocation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Equivocation { - return new Equivocation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Equivocation { - return new Equivocation().fromJsonString(jsonString, options); - } - - static equals(a: Equivocation | PlainMessage | undefined, b: Equivocation | PlainMessage | undefined): boolean { - return proto3.util.equals(Equivocation, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/genesis_pb.ts deleted file mode 100644 index 38d4e0f..0000000 --- a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/evidence/v1beta1/genesis.proto (package cosmos.evidence.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * GenesisState defines the evidence module's genesis state. - * - * @generated from message cosmos.evidence.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * evidence defines all the evidence at genesis. - * - * @generated from field: repeated google.protobuf.Any evidence = 1; - */ - evidence: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_cosmes.ts deleted file mode 100644 index 6363fd5..0000000 --- a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/evidence/v1beta1/query.proto (package cosmos.evidence.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAllEvidenceRequest, QueryAllEvidenceResponse, QueryEvidenceRequest, QueryEvidenceResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.evidence.v1beta1.Query"; - -/** - * Evidence queries evidence based on evidence hash. - * - * @generated from rpc cosmos.evidence.v1beta1.Query.Evidence - */ -export const QueryEvidenceService = { - typeName: TYPE_NAME, - method: "Evidence", - Request: QueryEvidenceRequest, - Response: QueryEvidenceResponse, -} as const; - -/** - * AllEvidence queries all evidence. - * - * @generated from rpc cosmos.evidence.v1beta1.Query.AllEvidence - */ -export const QueryAllEvidenceService = { - typeName: TYPE_NAME, - method: "AllEvidence", - Request: QueryAllEvidenceRequest, - Response: QueryAllEvidenceResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_pb.ts deleted file mode 100644 index 2697129..0000000 --- a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/query_pb.ts +++ /dev/null @@ -1,195 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/evidence/v1beta1/query.proto (package cosmos.evidence.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryEvidenceRequest is the request type for the Query/Evidence RPC method. - * - * @generated from message cosmos.evidence.v1beta1.QueryEvidenceRequest - */ -export class QueryEvidenceRequest extends Message { - /** - * evidence_hash defines the hash of the requested evidence. - * Deprecated: Use hash, a HEX encoded string, instead. - * - * @generated from field: bytes evidence_hash = 1 [deprecated = true]; - * @deprecated - */ - evidenceHash = new Uint8Array(0); - - /** - * hash defines the evidence hash of the requested evidence. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string hash = 2; - */ - hash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.QueryEvidenceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEvidenceRequest { - return new QueryEvidenceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEvidenceRequest { - return new QueryEvidenceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEvidenceRequest { - return new QueryEvidenceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEvidenceRequest | PlainMessage | undefined, b: QueryEvidenceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEvidenceRequest, a, b); - } -} - -/** - * QueryEvidenceResponse is the response type for the Query/Evidence RPC method. - * - * @generated from message cosmos.evidence.v1beta1.QueryEvidenceResponse - */ -export class QueryEvidenceResponse extends Message { - /** - * evidence returns the requested evidence. - * - * @generated from field: google.protobuf.Any evidence = 1; - */ - evidence?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.QueryEvidenceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEvidenceResponse { - return new QueryEvidenceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEvidenceResponse { - return new QueryEvidenceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEvidenceResponse { - return new QueryEvidenceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEvidenceResponse | PlainMessage | undefined, b: QueryEvidenceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEvidenceResponse, a, b); - } -} - -/** - * QueryEvidenceRequest is the request type for the Query/AllEvidence RPC - * method. - * - * @generated from message cosmos.evidence.v1beta1.QueryAllEvidenceRequest - */ -export class QueryAllEvidenceRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.QueryAllEvidenceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllEvidenceRequest { - return new QueryAllEvidenceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllEvidenceRequest { - return new QueryAllEvidenceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllEvidenceRequest { - return new QueryAllEvidenceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllEvidenceRequest | PlainMessage | undefined, b: QueryAllEvidenceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllEvidenceRequest, a, b); - } -} - -/** - * QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC - * method. - * - * @generated from message cosmos.evidence.v1beta1.QueryAllEvidenceResponse - */ -export class QueryAllEvidenceResponse extends Message { - /** - * evidence returns all evidences. - * - * @generated from field: repeated google.protobuf.Any evidence = 1; - */ - evidence: Any[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.QueryAllEvidenceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence", kind: "message", T: Any, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllEvidenceResponse { - return new QueryAllEvidenceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllEvidenceResponse { - return new QueryAllEvidenceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllEvidenceResponse { - return new QueryAllEvidenceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllEvidenceResponse | PlainMessage | undefined, b: QueryAllEvidenceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllEvidenceResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_cosmes.ts deleted file mode 100644 index 1c8125f..0000000 --- a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/evidence/v1beta1/tx.proto (package cosmos.evidence.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgSubmitEvidence, MsgSubmitEvidenceResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.evidence.v1beta1.Msg"; - -/** - * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or - * counterfactual signing. - * - * @generated from rpc cosmos.evidence.v1beta1.Msg.SubmitEvidence - */ -export const MsgSubmitEvidenceService = { - typeName: TYPE_NAME, - method: "SubmitEvidence", - Request: MsgSubmitEvidence, - Response: MsgSubmitEvidenceResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_pb.ts deleted file mode 100644 index c4f2422..0000000 --- a/libs/es-client/src/protobufs/cosmos/evidence/v1beta1/tx_pb.ts +++ /dev/null @@ -1,99 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/evidence/v1beta1/tx.proto (package cosmos.evidence.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * MsgSubmitEvidence represents a message that supports submitting arbitrary - * Evidence of misbehavior such as equivocation or counterfactual signing. - * - * @generated from message cosmos.evidence.v1beta1.MsgSubmitEvidence - */ -export class MsgSubmitEvidence extends Message { - /** - * submitter is the signer account address of evidence. - * - * @generated from field: string submitter = 1; - */ - submitter = ""; - - /** - * evidence defines the evidence of misbehavior. - * - * @generated from field: google.protobuf.Any evidence = 2; - */ - evidence?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.MsgSubmitEvidence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "submitter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "evidence", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitEvidence { - return new MsgSubmitEvidence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitEvidence { - return new MsgSubmitEvidence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitEvidence { - return new MsgSubmitEvidence().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitEvidence | PlainMessage | undefined, b: MsgSubmitEvidence | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitEvidence, a, b); - } -} - -/** - * MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. - * - * @generated from message cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse - */ -export class MsgSubmitEvidenceResponse extends Message { - /** - * hash defines the hash of the evidence. - * - * @generated from field: bytes hash = 4; - */ - hash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitEvidenceResponse { - return new MsgSubmitEvidenceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitEvidenceResponse { - return new MsgSubmitEvidenceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitEvidenceResponse { - return new MsgSubmitEvidenceResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitEvidenceResponse | PlainMessage | undefined, b: MsgSubmitEvidenceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitEvidenceResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/feegrant/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/feegrant/module/v1/module_pb.ts deleted file mode 100644 index f16d51e..0000000 --- a/libs/es-client/src/protobufs/cosmos/feegrant/module/v1/module_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/feegrant/module/v1/module.proto (package cosmos.feegrant.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the feegrant module. - * - * @generated from message cosmos.feegrant.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/feegrant_pb.ts b/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/feegrant_pb.ts deleted file mode 100644 index 241d0ba..0000000 --- a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/feegrant_pb.ts +++ /dev/null @@ -1,247 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/feegrant/v1beta1/feegrant.proto (package cosmos.feegrant.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * BasicAllowance implements Allowance with a one-time grant of coins - * that optionally expires. The grantee can use up to SpendLimit to cover fees. - * - * @generated from message cosmos.feegrant.v1beta1.BasicAllowance - */ -export class BasicAllowance extends Message { - /** - * spend_limit specifies the maximum amount of coins that can be spent - * by this allowance and will be updated as coins are spent. If it is - * empty, there is no spend limit and any amount of coins can be spent. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin spend_limit = 1; - */ - spendLimit: Coin[] = []; - - /** - * expiration specifies an optional time when this allowance expires - * - * @generated from field: google.protobuf.Timestamp expiration = 2; - */ - expiration?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.BasicAllowance"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spend_limit", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "expiration", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BasicAllowance { - return new BasicAllowance().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BasicAllowance { - return new BasicAllowance().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BasicAllowance { - return new BasicAllowance().fromJsonString(jsonString, options); - } - - static equals(a: BasicAllowance | PlainMessage | undefined, b: BasicAllowance | PlainMessage | undefined): boolean { - return proto3.util.equals(BasicAllowance, a, b); - } -} - -/** - * PeriodicAllowance extends Allowance to allow for both a maximum cap, - * as well as a limit per time period. - * - * @generated from message cosmos.feegrant.v1beta1.PeriodicAllowance - */ -export class PeriodicAllowance extends Message { - /** - * basic specifies a struct of `BasicAllowance` - * - * @generated from field: cosmos.feegrant.v1beta1.BasicAllowance basic = 1; - */ - basic?: BasicAllowance; - - /** - * period specifies the time duration in which period_spend_limit coins can - * be spent before that allowance is reset - * - * @generated from field: google.protobuf.Duration period = 2; - */ - period?: Duration; - - /** - * period_spend_limit specifies the maximum number of coins that can be spent - * in the period - * - * @generated from field: repeated cosmos.base.v1beta1.Coin period_spend_limit = 3; - */ - periodSpendLimit: Coin[] = []; - - /** - * period_can_spend is the number of coins left to be spent before the period_reset time - * - * @generated from field: repeated cosmos.base.v1beta1.Coin period_can_spend = 4; - */ - periodCanSpend: Coin[] = []; - - /** - * period_reset is the time at which this period resets and a new one begins, - * it is calculated from the start time of the first transaction after the - * last period ended - * - * @generated from field: google.protobuf.Timestamp period_reset = 5; - */ - periodReset?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.PeriodicAllowance"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "basic", kind: "message", T: BasicAllowance }, - { no: 2, name: "period", kind: "message", T: Duration }, - { no: 3, name: "period_spend_limit", kind: "message", T: Coin, repeated: true }, - { no: 4, name: "period_can_spend", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "period_reset", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PeriodicAllowance { - return new PeriodicAllowance().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PeriodicAllowance { - return new PeriodicAllowance().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PeriodicAllowance { - return new PeriodicAllowance().fromJsonString(jsonString, options); - } - - static equals(a: PeriodicAllowance | PlainMessage | undefined, b: PeriodicAllowance | PlainMessage | undefined): boolean { - return proto3.util.equals(PeriodicAllowance, a, b); - } -} - -/** - * AllowedMsgAllowance creates allowance only for specified message types. - * - * @generated from message cosmos.feegrant.v1beta1.AllowedMsgAllowance - */ -export class AllowedMsgAllowance extends Message { - /** - * allowance can be any of basic and periodic fee allowance. - * - * @generated from field: google.protobuf.Any allowance = 1; - */ - allowance?: Any; - - /** - * allowed_messages are the messages for which the grantee has the access. - * - * @generated from field: repeated string allowed_messages = 2; - */ - allowedMessages: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.AllowedMsgAllowance"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowance", kind: "message", T: Any }, - { no: 2, name: "allowed_messages", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllowedMsgAllowance { - return new AllowedMsgAllowance().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllowedMsgAllowance { - return new AllowedMsgAllowance().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllowedMsgAllowance { - return new AllowedMsgAllowance().fromJsonString(jsonString, options); - } - - static equals(a: AllowedMsgAllowance | PlainMessage | undefined, b: AllowedMsgAllowance | PlainMessage | undefined): boolean { - return proto3.util.equals(AllowedMsgAllowance, a, b); - } -} - -/** - * Grant is stored in the KVStore to record a grant with full context - * - * @generated from message cosmos.feegrant.v1beta1.Grant - */ -export class Grant extends Message { - /** - * granter is the address of the user granting an allowance of their funds. - * - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * grantee is the address of the user being granted an allowance of another user's funds. - * - * @generated from field: string grantee = 2; - */ - grantee = ""; - - /** - * allowance can be any of basic, periodic, allowed fee allowance. - * - * @generated from field: google.protobuf.Any allowance = 3; - */ - allowance?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.Grant"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "allowance", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Grant { - return new Grant().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Grant { - return new Grant().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Grant { - return new Grant().fromJsonString(jsonString, options); - } - - static equals(a: Grant | PlainMessage | undefined, b: Grant | PlainMessage | undefined): boolean { - return proto3.util.equals(Grant, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/genesis_pb.ts deleted file mode 100644 index 284f63c..0000000 --- a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/feegrant/v1beta1/genesis.proto (package cosmos.feegrant.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Grant } from "./feegrant_pb.js"; - -/** - * GenesisState contains a set of fee allowances, persisted from the store - * - * @generated from message cosmos.feegrant.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated cosmos.feegrant.v1beta1.Grant allowances = 1; - */ - allowances: Grant[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowances", kind: "message", T: Grant, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts deleted file mode 100644 index dbd320f..0000000 --- a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,49 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/feegrant/v1beta1/query.proto (package cosmos.feegrant.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAllowanceRequest, QueryAllowanceResponse, QueryAllowancesByGranterRequest, QueryAllowancesByGranterResponse, QueryAllowancesRequest, QueryAllowancesResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.feegrant.v1beta1.Query"; - -/** - * Allowance returns granted allwance to the grantee by the granter. - * - * @generated from rpc cosmos.feegrant.v1beta1.Query.Allowance - */ -export const QueryAllowanceService = { - typeName: TYPE_NAME, - method: "Allowance", - Request: QueryAllowanceRequest, - Response: QueryAllowanceResponse, -} as const; - -/** - * Allowances returns all the grants for the given grantee address. - * - * @generated from rpc cosmos.feegrant.v1beta1.Query.Allowances - */ -export const QueryAllowancesService = { - typeName: TYPE_NAME, - method: "Allowances", - Request: QueryAllowancesRequest, - Response: QueryAllowancesResponse, -} as const; - -/** - * AllowancesByGranter returns all the grants given by an address - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.feegrant.v1beta1.Query.AllowancesByGranter - */ -export const QueryAllowancesByGranterService = { - typeName: TYPE_NAME, - method: "AllowancesByGranter", - Request: QueryAllowancesByGranterRequest, - Response: QueryAllowancesByGranterResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_pb.ts deleted file mode 100644 index a4ccb56..0000000 --- a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/query_pb.ts +++ /dev/null @@ -1,298 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/feegrant/v1beta1/query.proto (package cosmos.feegrant.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Grant } from "./feegrant_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryAllowanceRequest is the request type for the Query/Allowance RPC method. - * - * @generated from message cosmos.feegrant.v1beta1.QueryAllowanceRequest - */ -export class QueryAllowanceRequest extends Message { - /** - * granter is the address of the user granting an allowance of their funds. - * - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * grantee is the address of the user being granted an allowance of another user's funds. - * - * @generated from field: string grantee = 2; - */ - grantee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.QueryAllowanceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllowanceRequest { - return new QueryAllowanceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllowanceRequest { - return new QueryAllowanceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllowanceRequest { - return new QueryAllowanceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllowanceRequest | PlainMessage | undefined, b: QueryAllowanceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllowanceRequest, a, b); - } -} - -/** - * QueryAllowanceResponse is the response type for the Query/Allowance RPC method. - * - * @generated from message cosmos.feegrant.v1beta1.QueryAllowanceResponse - */ -export class QueryAllowanceResponse extends Message { - /** - * allowance is a allowance granted for grantee by granter. - * - * @generated from field: cosmos.feegrant.v1beta1.Grant allowance = 1; - */ - allowance?: Grant; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.QueryAllowanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowance", kind: "message", T: Grant }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllowanceResponse { - return new QueryAllowanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllowanceResponse { - return new QueryAllowanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllowanceResponse { - return new QueryAllowanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllowanceResponse | PlainMessage | undefined, b: QueryAllowanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllowanceResponse, a, b); - } -} - -/** - * QueryAllowancesRequest is the request type for the Query/Allowances RPC method. - * - * @generated from message cosmos.feegrant.v1beta1.QueryAllowancesRequest - */ -export class QueryAllowancesRequest extends Message { - /** - * @generated from field: string grantee = 1; - */ - grantee = ""; - - /** - * pagination defines an pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.QueryAllowancesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllowancesRequest { - return new QueryAllowancesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllowancesRequest { - return new QueryAllowancesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllowancesRequest { - return new QueryAllowancesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllowancesRequest | PlainMessage | undefined, b: QueryAllowancesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllowancesRequest, a, b); - } -} - -/** - * QueryAllowancesResponse is the response type for the Query/Allowances RPC method. - * - * @generated from message cosmos.feegrant.v1beta1.QueryAllowancesResponse - */ -export class QueryAllowancesResponse extends Message { - /** - * allowances are allowance's granted for grantee by granter. - * - * @generated from field: repeated cosmos.feegrant.v1beta1.Grant allowances = 1; - */ - allowances: Grant[] = []; - - /** - * pagination defines an pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.QueryAllowancesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowances", kind: "message", T: Grant, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllowancesResponse { - return new QueryAllowancesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllowancesResponse { - return new QueryAllowancesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllowancesResponse { - return new QueryAllowancesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllowancesResponse | PlainMessage | undefined, b: QueryAllowancesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllowancesResponse, a, b); - } -} - -/** - * QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest - */ -export class QueryAllowancesByGranterRequest extends Message { - /** - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * pagination defines an pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllowancesByGranterRequest { - return new QueryAllowancesByGranterRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllowancesByGranterRequest { - return new QueryAllowancesByGranterRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllowancesByGranterRequest { - return new QueryAllowancesByGranterRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllowancesByGranterRequest | PlainMessage | undefined, b: QueryAllowancesByGranterRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllowancesByGranterRequest, a, b); - } -} - -/** - * QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse - */ -export class QueryAllowancesByGranterResponse extends Message { - /** - * allowances that have been issued by the granter. - * - * @generated from field: repeated cosmos.feegrant.v1beta1.Grant allowances = 1; - */ - allowances: Grant[] = []; - - /** - * pagination defines an pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowances", kind: "message", T: Grant, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllowancesByGranterResponse { - return new QueryAllowancesByGranterResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllowancesByGranterResponse { - return new QueryAllowancesByGranterResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllowancesByGranterResponse { - return new QueryAllowancesByGranterResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllowancesByGranterResponse | PlainMessage | undefined, b: QueryAllowancesByGranterResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllowancesByGranterResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts deleted file mode 100644 index 45a0f02..0000000 --- a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/feegrant/v1beta1/tx.proto (package cosmos.feegrant.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgGrantAllowance, MsgGrantAllowanceResponse, MsgPruneAllowances, MsgPruneAllowancesResponse, MsgRevokeAllowance, MsgRevokeAllowanceResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.feegrant.v1beta1.Msg"; - -/** - * GrantAllowance grants fee allowance to the grantee on the granter's - * account with the provided expiration time. - * - * @generated from rpc cosmos.feegrant.v1beta1.Msg.GrantAllowance - */ -export const MsgGrantAllowanceService = { - typeName: TYPE_NAME, - method: "GrantAllowance", - Request: MsgGrantAllowance, - Response: MsgGrantAllowanceResponse, -} as const; - -/** - * RevokeAllowance revokes any fee allowance of granter's account that - * has been granted to the grantee. - * - * @generated from rpc cosmos.feegrant.v1beta1.Msg.RevokeAllowance - */ -export const MsgRevokeAllowanceService = { - typeName: TYPE_NAME, - method: "RevokeAllowance", - Request: MsgRevokeAllowance, - Response: MsgRevokeAllowanceResponse, -} as const; - -/** - * PruneAllowances prunes expired fee allowances, currently up to 75 at a time. - * - * Since cosmos-sdk 0.50 - * - * @generated from rpc cosmos.feegrant.v1beta1.Msg.PruneAllowances - */ -export const MsgPruneAllowancesService = { - typeName: TYPE_NAME, - method: "PruneAllowances", - Request: MsgPruneAllowances, - Response: MsgPruneAllowancesResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts deleted file mode 100644 index 924fdba..0000000 --- a/libs/es-client/src/protobufs/cosmos/feegrant/v1beta1/tx_pb.ts +++ /dev/null @@ -1,261 +0,0 @@ -// Since: cosmos-sdk 0.43 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/feegrant/v1beta1/tx.proto (package cosmos.feegrant.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * MsgGrantAllowance adds permission for Grantee to spend up to Allowance - * of fees from the account of Granter. - * - * @generated from message cosmos.feegrant.v1beta1.MsgGrantAllowance - */ -export class MsgGrantAllowance extends Message { - /** - * granter is the address of the user granting an allowance of their funds. - * - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * grantee is the address of the user being granted an allowance of another user's funds. - * - * @generated from field: string grantee = 2; - */ - grantee = ""; - - /** - * allowance can be any of basic, periodic, allowed fee allowance. - * - * @generated from field: google.protobuf.Any allowance = 3; - */ - allowance?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.MsgGrantAllowance"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "allowance", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrantAllowance { - return new MsgGrantAllowance().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrantAllowance { - return new MsgGrantAllowance().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgGrantAllowance { - return new MsgGrantAllowance().fromJsonString(jsonString, options); - } - - static equals(a: MsgGrantAllowance | PlainMessage | undefined, b: MsgGrantAllowance | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgGrantAllowance, a, b); - } -} - -/** - * MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. - * - * @generated from message cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse - */ -export class MsgGrantAllowanceResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgGrantAllowanceResponse { - return new MsgGrantAllowanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgGrantAllowanceResponse { - return new MsgGrantAllowanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgGrantAllowanceResponse { - return new MsgGrantAllowanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgGrantAllowanceResponse | PlainMessage | undefined, b: MsgGrantAllowanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgGrantAllowanceResponse, a, b); - } -} - -/** - * MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. - * - * @generated from message cosmos.feegrant.v1beta1.MsgRevokeAllowance - */ -export class MsgRevokeAllowance extends Message { - /** - * granter is the address of the user granting an allowance of their funds. - * - * @generated from field: string granter = 1; - */ - granter = ""; - - /** - * grantee is the address of the user being granted an allowance of another user's funds. - * - * @generated from field: string grantee = 2; - */ - grantee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.MsgRevokeAllowance"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "grantee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeAllowance { - return new MsgRevokeAllowance().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeAllowance { - return new MsgRevokeAllowance().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRevokeAllowance { - return new MsgRevokeAllowance().fromJsonString(jsonString, options); - } - - static equals(a: MsgRevokeAllowance | PlainMessage | undefined, b: MsgRevokeAllowance | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRevokeAllowance, a, b); - } -} - -/** - * MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. - * - * @generated from message cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse - */ -export class MsgRevokeAllowanceResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRevokeAllowanceResponse { - return new MsgRevokeAllowanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRevokeAllowanceResponse { - return new MsgRevokeAllowanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRevokeAllowanceResponse { - return new MsgRevokeAllowanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRevokeAllowanceResponse | PlainMessage | undefined, b: MsgRevokeAllowanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRevokeAllowanceResponse, a, b); - } -} - -/** - * MsgPruneAllowances prunes expired fee allowances. - * - * Since cosmos-sdk 0.50 - * - * @generated from message cosmos.feegrant.v1beta1.MsgPruneAllowances - */ -export class MsgPruneAllowances extends Message { - /** - * pruner is the address of the user pruning expired allowances. - * - * @generated from field: string pruner = 1; - */ - pruner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.MsgPruneAllowances"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pruner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAllowances { - return new MsgPruneAllowances().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAllowances { - return new MsgPruneAllowances().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPruneAllowances { - return new MsgPruneAllowances().fromJsonString(jsonString, options); - } - - static equals(a: MsgPruneAllowances | PlainMessage | undefined, b: MsgPruneAllowances | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPruneAllowances, a, b); - } -} - -/** - * MsgPruneAllowancesResponse defines the Msg/PruneAllowancesResponse response type. - * - * Since cosmos-sdk 0.50 - * - * @generated from message cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse - */ -export class MsgPruneAllowancesResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAllowancesResponse { - return new MsgPruneAllowancesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAllowancesResponse { - return new MsgPruneAllowancesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPruneAllowancesResponse { - return new MsgPruneAllowancesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgPruneAllowancesResponse | PlainMessage | undefined, b: MsgPruneAllowancesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPruneAllowancesResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/genutil/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/genutil/module/v1/module_pb.ts deleted file mode 100644 index 8b17ffb..0000000 --- a/libs/es-client/src/protobufs/cosmos/genutil/module/v1/module_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/genutil/module/v1/module.proto (package cosmos.genutil.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object for the genutil module. - * - * @generated from message cosmos.genutil.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.genutil.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/genutil/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/genutil/v1beta1/genesis_pb.ts deleted file mode 100644 index 96f531e..0000000 --- a/libs/es-client/src/protobufs/cosmos/genutil/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/genutil/v1beta1/genesis.proto (package cosmos.genutil.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * GenesisState defines the raw genesis transaction in JSON. - * - * @generated from message cosmos.genutil.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * gen_txs defines the genesis transactions. - * - * @generated from field: repeated bytes gen_txs = 1; - */ - genTxs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.genutil.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gen_txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/module/v1/module_pb.ts deleted file mode 100644 index 5235ea3..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/module/v1/module_pb.ts +++ /dev/null @@ -1,58 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/module/v1/module.proto (package cosmos.gov.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the gov module. - * - * @generated from message cosmos.gov.module.v1.Module - */ -export class Module extends Message { - /** - * max_metadata_len defines the maximum proposal metadata length. - * Defaults to 255 if not explicitly set. - * - * @generated from field: uint64 max_metadata_len = 1; - */ - maxMetadataLen = protoInt64.zero; - - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 2; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_metadata_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1/genesis_pb.ts deleted file mode 100644 index 985b562..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1/genesis_pb.ts +++ /dev/null @@ -1,129 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1/genesis.proto (package cosmos.gov.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Deposit, DepositParams, Params, Proposal, TallyParams, Vote, VotingParams } from "./gov_pb.js"; - -/** - * GenesisState defines the gov module's genesis state. - * - * @generated from message cosmos.gov.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * starting_proposal_id is the ID of the starting proposal. - * - * @generated from field: uint64 starting_proposal_id = 1; - */ - startingProposalId = protoInt64.zero; - - /** - * deposits defines all the deposits present at genesis. - * - * @generated from field: repeated cosmos.gov.v1.Deposit deposits = 2; - */ - deposits: Deposit[] = []; - - /** - * votes defines all the votes present at genesis. - * - * @generated from field: repeated cosmos.gov.v1.Vote votes = 3; - */ - votes: Vote[] = []; - - /** - * proposals defines all the proposals present at genesis. - * - * @generated from field: repeated cosmos.gov.v1.Proposal proposals = 4; - */ - proposals: Proposal[] = []; - - /** - * Deprecated: Prefer to use `params` instead. - * deposit_params defines all the paramaters of related to deposit. - * - * @generated from field: cosmos.gov.v1.DepositParams deposit_params = 5 [deprecated = true]; - * @deprecated - */ - depositParams?: DepositParams; - - /** - * Deprecated: Prefer to use `params` instead. - * voting_params defines all the paramaters of related to voting. - * - * @generated from field: cosmos.gov.v1.VotingParams voting_params = 6 [deprecated = true]; - * @deprecated - */ - votingParams?: VotingParams; - - /** - * Deprecated: Prefer to use `params` instead. - * tally_params defines all the paramaters of related to tally. - * - * @generated from field: cosmos.gov.v1.TallyParams tally_params = 7 [deprecated = true]; - * @deprecated - */ - tallyParams?: TallyParams; - - /** - * params defines all the paramaters of x/gov module. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: cosmos.gov.v1.Params params = 8; - */ - params?: Params; - - /** - * The constitution allows builders to lay a foundation and define purpose. - * This is an immutable string set in genesis. - * There are no amendments, to go outside of scope, just fork. - * constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: string constitution = 9; - */ - constitution = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "starting_proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "deposits", kind: "message", T: Deposit, repeated: true }, - { no: 3, name: "votes", kind: "message", T: Vote, repeated: true }, - { no: 4, name: "proposals", kind: "message", T: Proposal, repeated: true }, - { no: 5, name: "deposit_params", kind: "message", T: DepositParams }, - { no: 6, name: "voting_params", kind: "message", T: VotingParams }, - { no: 7, name: "tally_params", kind: "message", T: TallyParams }, - { no: 8, name: "params", kind: "message", T: Params }, - { no: 9, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1/gov_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1/gov_pb.ts deleted file mode 100644 index 0799f1d..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1/gov_pb.ts +++ /dev/null @@ -1,862 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1/gov.proto (package cosmos.gov.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * @generated from enum cosmos.gov.v1.VoteOption - */ -export enum VoteOption { - /** - * VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - * @generated from enum value: VOTE_OPTION_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * VOTE_OPTION_YES defines a yes vote option. - * - * @generated from enum value: VOTE_OPTION_YES = 1; - */ - YES = 1, - - /** - * VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - * @generated from enum value: VOTE_OPTION_ABSTAIN = 2; - */ - ABSTAIN = 2, - - /** - * VOTE_OPTION_NO defines a no vote option. - * - * @generated from enum value: VOTE_OPTION_NO = 3; - */ - NO = 3, - - /** - * VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * - * @generated from enum value: VOTE_OPTION_NO_WITH_VETO = 4; - */ - NO_WITH_VETO = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(VoteOption) -proto3.util.setEnumType(VoteOption, "cosmos.gov.v1.VoteOption", [ - { no: 0, name: "VOTE_OPTION_UNSPECIFIED" }, - { no: 1, name: "VOTE_OPTION_YES" }, - { no: 2, name: "VOTE_OPTION_ABSTAIN" }, - { no: 3, name: "VOTE_OPTION_NO" }, - { no: 4, name: "VOTE_OPTION_NO_WITH_VETO" }, -]); - -/** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * @generated from enum cosmos.gov.v1.ProposalStatus - */ -export enum ProposalStatus { - /** - * PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. - * - * @generated from enum value: PROPOSAL_STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - * @generated from enum value: PROPOSAL_STATUS_DEPOSIT_PERIOD = 1; - */ - DEPOSIT_PERIOD = 1, - - /** - * PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - * @generated from enum value: PROPOSAL_STATUS_VOTING_PERIOD = 2; - */ - VOTING_PERIOD = 2, - - /** - * PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - * @generated from enum value: PROPOSAL_STATUS_PASSED = 3; - */ - PASSED = 3, - - /** - * PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - * @generated from enum value: PROPOSAL_STATUS_REJECTED = 4; - */ - REJECTED = 4, - - /** - * PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * - * @generated from enum value: PROPOSAL_STATUS_FAILED = 5; - */ - FAILED = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ProposalStatus) -proto3.util.setEnumType(ProposalStatus, "cosmos.gov.v1.ProposalStatus", [ - { no: 0, name: "PROPOSAL_STATUS_UNSPECIFIED" }, - { no: 1, name: "PROPOSAL_STATUS_DEPOSIT_PERIOD" }, - { no: 2, name: "PROPOSAL_STATUS_VOTING_PERIOD" }, - { no: 3, name: "PROPOSAL_STATUS_PASSED" }, - { no: 4, name: "PROPOSAL_STATUS_REJECTED" }, - { no: 5, name: "PROPOSAL_STATUS_FAILED" }, -]); - -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * @generated from message cosmos.gov.v1.WeightedVoteOption - */ -export class WeightedVoteOption extends Message { - /** - * option defines the valid vote options, it must not contain duplicate vote options. - * - * @generated from field: cosmos.gov.v1.VoteOption option = 1; - */ - option = VoteOption.UNSPECIFIED; - - /** - * weight is the vote weight associated with the vote option. - * - * @generated from field: string weight = 2; - */ - weight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.WeightedVoteOption"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WeightedVoteOption { - return new WeightedVoteOption().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WeightedVoteOption { - return new WeightedVoteOption().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WeightedVoteOption { - return new WeightedVoteOption().fromJsonString(jsonString, options); - } - - static equals(a: WeightedVoteOption | PlainMessage | undefined, b: WeightedVoteOption | PlainMessage | undefined): boolean { - return proto3.util.equals(WeightedVoteOption, a, b); - } -} - -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - * - * @generated from message cosmos.gov.v1.Deposit - */ -export class Deposit extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 2; - */ - depositor = ""; - - /** - * amount to be deposited by depositor. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.Deposit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { - return new Deposit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { - return new Deposit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Deposit { - return new Deposit().fromJsonString(jsonString, options); - } - - static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { - return proto3.util.equals(Deposit, a, b); - } -} - -/** - * Proposal defines the core field members of a governance proposal. - * - * @generated from message cosmos.gov.v1.Proposal - */ -export class Proposal extends Message { - /** - * id defines the unique id of the proposal. - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * messages are the arbitrary messages to be executed if the proposal passes. - * - * @generated from field: repeated google.protobuf.Any messages = 2; - */ - messages: Any[] = []; - - /** - * status defines the proposal status. - * - * @generated from field: cosmos.gov.v1.ProposalStatus status = 3; - */ - status = ProposalStatus.UNSPECIFIED; - - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - * - * @generated from field: cosmos.gov.v1.TallyResult final_tally_result = 4; - */ - finalTallyResult?: TallyResult; - - /** - * submit_time is the time of proposal submission. - * - * @generated from field: google.protobuf.Timestamp submit_time = 5; - */ - submitTime?: Timestamp; - - /** - * deposit_end_time is the end time for deposition. - * - * @generated from field: google.protobuf.Timestamp deposit_end_time = 6; - */ - depositEndTime?: Timestamp; - - /** - * total_deposit is the total deposit on the proposal. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin total_deposit = 7; - */ - totalDeposit: Coin[] = []; - - /** - * voting_start_time is the starting time to vote on a proposal. - * - * @generated from field: google.protobuf.Timestamp voting_start_time = 8; - */ - votingStartTime?: Timestamp; - - /** - * voting_end_time is the end time of voting on a proposal. - * - * @generated from field: google.protobuf.Timestamp voting_end_time = 9; - */ - votingEndTime?: Timestamp; - - /** - * metadata is any arbitrary metadata attached to the proposal. - * the recommended format of the metadata is to be found here: - * https://docs.cosmos.network/v0.47/modules/gov#proposal-3 - * - * @generated from field: string metadata = 10; - */ - metadata = ""; - - /** - * title is the title of the proposal - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string title = 11; - */ - title = ""; - - /** - * summary is a short summary of the proposal - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string summary = 12; - */ - summary = ""; - - /** - * proposer is the address of the proposal sumbitter - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string proposer = 13; - */ - proposer = ""; - - /** - * expedited defines if the proposal is expedited - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: bool expedited = 14; - */ - expedited = false; - - /** - * failed_reason defines the reason why the proposal failed - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: string failed_reason = 15; - */ - failedReason = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.Proposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "messages", kind: "message", T: Any, repeated: true }, - { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, - { no: 4, name: "final_tally_result", kind: "message", T: TallyResult }, - { no: 5, name: "submit_time", kind: "message", T: Timestamp }, - { no: 6, name: "deposit_end_time", kind: "message", T: Timestamp }, - { no: 7, name: "total_deposit", kind: "message", T: Coin, repeated: true }, - { no: 8, name: "voting_start_time", kind: "message", T: Timestamp }, - { no: 9, name: "voting_end_time", kind: "message", T: Timestamp }, - { no: 10, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "expedited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 15, name: "failed_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { - return new Proposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { - return new Proposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Proposal { - return new Proposal().fromJsonString(jsonString, options); - } - - static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { - return proto3.util.equals(Proposal, a, b); - } -} - -/** - * TallyResult defines a standard tally for a governance proposal. - * - * @generated from message cosmos.gov.v1.TallyResult - */ -export class TallyResult extends Message { - /** - * yes_count is the number of yes votes on a proposal. - * - * @generated from field: string yes_count = 1; - */ - yesCount = ""; - - /** - * abstain_count is the number of abstain votes on a proposal. - * - * @generated from field: string abstain_count = 2; - */ - abstainCount = ""; - - /** - * no_count is the number of no votes on a proposal. - * - * @generated from field: string no_count = 3; - */ - noCount = ""; - - /** - * no_with_veto_count is the number of no with veto votes on a proposal. - * - * @generated from field: string no_with_veto_count = 4; - */ - noWithVetoCount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.TallyResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "yes_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "abstain_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "no_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "no_with_veto_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TallyResult { - return new TallyResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TallyResult { - return new TallyResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TallyResult { - return new TallyResult().fromJsonString(jsonString, options); - } - - static equals(a: TallyResult | PlainMessage | undefined, b: TallyResult | PlainMessage | undefined): boolean { - return proto3.util.equals(TallyResult, a, b); - } -} - -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - * - * @generated from message cosmos.gov.v1.Vote - */ -export class Vote extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the voter address of the proposal. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * options is the weighted vote options. - * - * @generated from field: repeated cosmos.gov.v1.WeightedVoteOption options = 4; - */ - options: WeightedVoteOption[] = []; - - /** - * metadata is any arbitrary metadata attached to the vote. - * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 - * - * @generated from field: string metadata = 5; - */ - metadata = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.Vote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, - { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Vote { - return new Vote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Vote { - return new Vote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Vote { - return new Vote().fromJsonString(jsonString, options); - } - - static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { - return proto3.util.equals(Vote, a, b); - } -} - -/** - * DepositParams defines the params for deposits on governance proposals. - * - * @generated from message cosmos.gov.v1.DepositParams - * @deprecated - */ -export class DepositParams extends Message { - /** - * Minimum deposit for a proposal to enter voting period. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin min_deposit = 1; - */ - minDeposit: Coin[] = []; - - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - * - * @generated from field: google.protobuf.Duration max_deposit_period = 2; - */ - maxDepositPeriod?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.DepositParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "min_deposit", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "max_deposit_period", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DepositParams { - return new DepositParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DepositParams { - return new DepositParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DepositParams { - return new DepositParams().fromJsonString(jsonString, options); - } - - static equals(a: DepositParams | PlainMessage | undefined, b: DepositParams | PlainMessage | undefined): boolean { - return proto3.util.equals(DepositParams, a, b); - } -} - -/** - * VotingParams defines the params for voting on governance proposals. - * - * @generated from message cosmos.gov.v1.VotingParams - * @deprecated - */ -export class VotingParams extends Message { - /** - * Duration of the voting period. - * - * @generated from field: google.protobuf.Duration voting_period = 1; - */ - votingPeriod?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.VotingParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "voting_period", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VotingParams { - return new VotingParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VotingParams { - return new VotingParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VotingParams { - return new VotingParams().fromJsonString(jsonString, options); - } - - static equals(a: VotingParams | PlainMessage | undefined, b: VotingParams | PlainMessage | undefined): boolean { - return proto3.util.equals(VotingParams, a, b); - } -} - -/** - * TallyParams defines the params for tallying votes on governance proposals. - * - * @generated from message cosmos.gov.v1.TallyParams - * @deprecated - */ -export class TallyParams extends Message { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - * - * @generated from field: string quorum = 1; - */ - quorum = ""; - - /** - * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. - * - * @generated from field: string threshold = 2; - */ - threshold = ""; - - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - * - * @generated from field: string veto_threshold = 3; - */ - vetoThreshold = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.TallyParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "veto_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TallyParams { - return new TallyParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TallyParams { - return new TallyParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TallyParams { - return new TallyParams().fromJsonString(jsonString, options); - } - - static equals(a: TallyParams | PlainMessage | undefined, b: TallyParams | PlainMessage | undefined): boolean { - return proto3.util.equals(TallyParams, a, b); - } -} - -/** - * Params defines the parameters for the x/gov module. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.gov.v1.Params - */ -export class Params extends Message { - /** - * Minimum deposit for a proposal to enter voting period. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin min_deposit = 1; - */ - minDeposit: Coin[] = []; - - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - * - * @generated from field: google.protobuf.Duration max_deposit_period = 2; - */ - maxDepositPeriod?: Duration; - - /** - * Duration of the voting period. - * - * @generated from field: google.protobuf.Duration voting_period = 3; - */ - votingPeriod?: Duration; - - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - * - * @generated from field: string quorum = 4; - */ - quorum = ""; - - /** - * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. - * - * @generated from field: string threshold = 5; - */ - threshold = ""; - - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - * - * @generated from field: string veto_threshold = 6; - */ - vetoThreshold = ""; - - /** - * The ratio representing the proportion of the deposit value that must be paid at proposal submission. - * - * @generated from field: string min_initial_deposit_ratio = 7; - */ - minInitialDepositRatio = ""; - - /** - * The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: string proposal_cancel_ratio = 8; - */ - proposalCancelRatio = ""; - - /** - * The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. - * If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: string proposal_cancel_dest = 9; - */ - proposalCancelDest = ""; - - /** - * Duration of the voting period of an expedited proposal. - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: google.protobuf.Duration expedited_voting_period = 10; - */ - expeditedVotingPeriod?: Duration; - - /** - * Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: string expedited_threshold = 11; - */ - expeditedThreshold = ""; - - /** - * Minimum expedited deposit for a proposal to enter voting period. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin expedited_min_deposit = 12; - */ - expeditedMinDeposit: Coin[] = []; - - /** - * burn deposits if a proposal does not meet quorum - * - * @generated from field: bool burn_vote_quorum = 13; - */ - burnVoteQuorum = false; - - /** - * burn deposits if the proposal does not enter voting period - * - * @generated from field: bool burn_proposal_deposit_prevote = 14; - */ - burnProposalDepositPrevote = false; - - /** - * burn deposits if quorum with vote type no_veto is met - * - * @generated from field: bool burn_vote_veto = 15; - */ - burnVoteVeto = false; - - /** - * The ratio representing the proportion of the deposit value minimum that must be met when making a deposit. - * Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be - * required. - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: string min_deposit_ratio = 16; - */ - minDepositRatio = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "min_deposit", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "max_deposit_period", kind: "message", T: Duration }, - { no: 3, name: "voting_period", kind: "message", T: Duration }, - { no: 4, name: "quorum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "veto_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "min_initial_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "proposal_cancel_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "proposal_cancel_dest", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "expedited_voting_period", kind: "message", T: Duration }, - { no: 11, name: "expedited_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "expedited_min_deposit", kind: "message", T: Coin, repeated: true }, - { no: 13, name: "burn_vote_quorum", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 14, name: "burn_proposal_deposit_prevote", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 15, name: "burn_vote_veto", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 16, name: "min_deposit_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/gov/v1/query_cosmes.ts deleted file mode 100644 index 65b93ee..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1/query_cosmes.ts +++ /dev/null @@ -1,119 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/gov/v1/query.proto (package cosmos.gov.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryConstitutionRequest, QueryConstitutionResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.gov.v1.Query"; - -/** - * Constitution queries the chain's constitution. - * - * @generated from rpc cosmos.gov.v1.Query.Constitution - */ -export const QueryConstitutionService = { - typeName: TYPE_NAME, - method: "Constitution", - Request: QueryConstitutionRequest, - Response: QueryConstitutionResponse, -} as const; - -/** - * Proposal queries proposal details based on ProposalID. - * - * @generated from rpc cosmos.gov.v1.Query.Proposal - */ -export const QueryProposalService = { - typeName: TYPE_NAME, - method: "Proposal", - Request: QueryProposalRequest, - Response: QueryProposalResponse, -} as const; - -/** - * Proposals queries all proposals based on given status. - * - * @generated from rpc cosmos.gov.v1.Query.Proposals - */ -export const QueryProposalsService = { - typeName: TYPE_NAME, - method: "Proposals", - Request: QueryProposalsRequest, - Response: QueryProposalsResponse, -} as const; - -/** - * Vote queries voted information based on proposalID, voterAddr. - * - * @generated from rpc cosmos.gov.v1.Query.Vote - */ -export const QueryVoteService = { - typeName: TYPE_NAME, - method: "Vote", - Request: QueryVoteRequest, - Response: QueryVoteResponse, -} as const; - -/** - * Votes queries votes of a given proposal. - * - * @generated from rpc cosmos.gov.v1.Query.Votes - */ -export const QueryVotesService = { - typeName: TYPE_NAME, - method: "Votes", - Request: QueryVotesRequest, - Response: QueryVotesResponse, -} as const; - -/** - * Params queries all parameters of the gov module. - * - * @generated from rpc cosmos.gov.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Deposit queries single deposit information based on proposalID, depositAddr. - * - * @generated from rpc cosmos.gov.v1.Query.Deposit - */ -export const QueryDepositService = { - typeName: TYPE_NAME, - method: "Deposit", - Request: QueryDepositRequest, - Response: QueryDepositResponse, -} as const; - -/** - * Deposits queries all deposits of a single proposal. - * - * @generated from rpc cosmos.gov.v1.Query.Deposits - */ -export const QueryDepositsService = { - typeName: TYPE_NAME, - method: "Deposits", - Request: QueryDepositsRequest, - Response: QueryDepositsResponse, -} as const; - -/** - * TallyResult queries the tally of a proposal vote. - * - * @generated from rpc cosmos.gov.v1.Query.TallyResult - */ -export const QueryTallyResultService = { - typeName: TYPE_NAME, - method: "TallyResult", - Request: QueryTallyResultRequest, - Response: QueryTallyResultResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1/query_pb.ts deleted file mode 100644 index f9d9f87..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1/query_pb.ts +++ /dev/null @@ -1,854 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1/query.proto (package cosmos.gov.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Deposit, DepositParams, Params, Proposal, ProposalStatus, TallyParams, TallyResult, Vote, VotingParams } from "./gov_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryConstitutionRequest is the request type for the Query/Constitution RPC method - * - * @generated from message cosmos.gov.v1.QueryConstitutionRequest - */ -export class QueryConstitutionRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryConstitutionRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionRequest { - return new QueryConstitutionRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionRequest { - return new QueryConstitutionRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionRequest { - return new QueryConstitutionRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConstitutionRequest | PlainMessage | undefined, b: QueryConstitutionRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConstitutionRequest, a, b); - } -} - -/** - * QueryConstitutionResponse is the response type for the Query/Constitution RPC method - * - * @generated from message cosmos.gov.v1.QueryConstitutionResponse - */ -export class QueryConstitutionResponse extends Message { - /** - * @generated from field: string constitution = 1; - */ - constitution = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryConstitutionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "constitution", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConstitutionResponse { - return new QueryConstitutionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConstitutionResponse { - return new QueryConstitutionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConstitutionResponse { - return new QueryConstitutionResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConstitutionResponse | PlainMessage | undefined, b: QueryConstitutionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConstitutionResponse, a, b); - } -} - -/** - * QueryProposalRequest is the request type for the Query/Proposal RPC method. - * - * @generated from message cosmos.gov.v1.QueryProposalRequest - */ -export class QueryProposalRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryProposalRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalRequest | PlainMessage | undefined, b: QueryProposalRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalRequest, a, b); - } -} - -/** - * QueryProposalResponse is the response type for the Query/Proposal RPC method. - * - * @generated from message cosmos.gov.v1.QueryProposalResponse - */ -export class QueryProposalResponse extends Message { - /** - * proposal is the requested governance proposal. - * - * @generated from field: cosmos.gov.v1.Proposal proposal = 1; - */ - proposal?: Proposal; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal", kind: "message", T: Proposal }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalResponse | PlainMessage | undefined, b: QueryProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalResponse, a, b); - } -} - -/** - * QueryProposalsRequest is the request type for the Query/Proposals RPC method. - * - * @generated from message cosmos.gov.v1.QueryProposalsRequest - */ -export class QueryProposalsRequest extends Message { - /** - * proposal_status defines the status of the proposals. - * - * @generated from field: cosmos.gov.v1.ProposalStatus proposal_status = 1; - */ - proposalStatus = ProposalStatus.UNSPECIFIED; - - /** - * voter defines the voter address for the proposals. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 3; - */ - depositor = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryProposalsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsRequest { - return new QueryProposalsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsRequest { - return new QueryProposalsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalsRequest { - return new QueryProposalsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalsRequest | PlainMessage | undefined, b: QueryProposalsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalsRequest, a, b); - } -} - -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - * - * @generated from message cosmos.gov.v1.QueryProposalsResponse - */ -export class QueryProposalsResponse extends Message { - /** - * proposals defines all the requested governance proposals. - * - * @generated from field: repeated cosmos.gov.v1.Proposal proposals = 1; - */ - proposals: Proposal[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryProposalsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposals", kind: "message", T: Proposal, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsResponse { - return new QueryProposalsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsResponse { - return new QueryProposalsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalsResponse { - return new QueryProposalsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalsResponse | PlainMessage | undefined, b: QueryProposalsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalsResponse, a, b); - } -} - -/** - * QueryVoteRequest is the request type for the Query/Vote RPC method. - * - * @generated from message cosmos.gov.v1.QueryVoteRequest - */ -export class QueryVoteRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter defines the voter address for the proposals. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryVoteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteRequest { - return new QueryVoteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteRequest { - return new QueryVoteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVoteRequest { - return new QueryVoteRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVoteRequest | PlainMessage | undefined, b: QueryVoteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVoteRequest, a, b); - } -} - -/** - * QueryVoteResponse is the response type for the Query/Vote RPC method. - * - * @generated from message cosmos.gov.v1.QueryVoteResponse - */ -export class QueryVoteResponse extends Message { - /** - * vote defines the queried vote. - * - * @generated from field: cosmos.gov.v1.Vote vote = 1; - */ - vote?: Vote; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryVoteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vote", kind: "message", T: Vote }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteResponse { - return new QueryVoteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteResponse { - return new QueryVoteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVoteResponse { - return new QueryVoteResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVoteResponse | PlainMessage | undefined, b: QueryVoteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVoteResponse, a, b); - } -} - -/** - * QueryVotesRequest is the request type for the Query/Votes RPC method. - * - * @generated from message cosmos.gov.v1.QueryVotesRequest - */ -export class QueryVotesRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryVotesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesRequest { - return new QueryVotesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesRequest { - return new QueryVotesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesRequest { - return new QueryVotesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesRequest | PlainMessage | undefined, b: QueryVotesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesRequest, a, b); - } -} - -/** - * QueryVotesResponse is the response type for the Query/Votes RPC method. - * - * @generated from message cosmos.gov.v1.QueryVotesResponse - */ -export class QueryVotesResponse extends Message { - /** - * votes defines the queried votes. - * - * @generated from field: repeated cosmos.gov.v1.Vote votes = 1; - */ - votes: Vote[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryVotesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "votes", kind: "message", T: Vote, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesResponse { - return new QueryVotesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesResponse { - return new QueryVotesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesResponse { - return new QueryVotesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesResponse | PlainMessage | undefined, b: QueryVotesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesResponse, a, b); - } -} - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message cosmos.gov.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - * - * @generated from field: string params_type = 1; - */ - paramsType = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message cosmos.gov.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * Deprecated: Prefer to use `params` instead. - * voting_params defines the parameters related to voting. - * - * @generated from field: cosmos.gov.v1.VotingParams voting_params = 1 [deprecated = true]; - * @deprecated - */ - votingParams?: VotingParams; - - /** - * Deprecated: Prefer to use `params` instead. - * deposit_params defines the parameters related to deposit. - * - * @generated from field: cosmos.gov.v1.DepositParams deposit_params = 2 [deprecated = true]; - * @deprecated - */ - depositParams?: DepositParams; - - /** - * Deprecated: Prefer to use `params` instead. - * tally_params defines the parameters related to tally. - * - * @generated from field: cosmos.gov.v1.TallyParams tally_params = 3 [deprecated = true]; - * @deprecated - */ - tallyParams?: TallyParams; - - /** - * params defines all the paramaters of x/gov module. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: cosmos.gov.v1.Params params = 4; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "voting_params", kind: "message", T: VotingParams }, - { no: 2, name: "deposit_params", kind: "message", T: DepositParams }, - { no: 3, name: "tally_params", kind: "message", T: TallyParams }, - { no: 4, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryDepositRequest is the request type for the Query/Deposit RPC method. - * - * @generated from message cosmos.gov.v1.QueryDepositRequest - */ -export class QueryDepositRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 2; - */ - depositor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryDepositRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositRequest { - return new QueryDepositRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositRequest { - return new QueryDepositRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositRequest { - return new QueryDepositRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositRequest | PlainMessage | undefined, b: QueryDepositRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositRequest, a, b); - } -} - -/** - * QueryDepositResponse is the response type for the Query/Deposit RPC method. - * - * @generated from message cosmos.gov.v1.QueryDepositResponse - */ -export class QueryDepositResponse extends Message { - /** - * deposit defines the requested deposit. - * - * @generated from field: cosmos.gov.v1.Deposit deposit = 1; - */ - deposit?: Deposit; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryDepositResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deposit", kind: "message", T: Deposit }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositResponse { - return new QueryDepositResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositResponse { - return new QueryDepositResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositResponse { - return new QueryDepositResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositResponse | PlainMessage | undefined, b: QueryDepositResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositResponse, a, b); - } -} - -/** - * QueryDepositsRequest is the request type for the Query/Deposits RPC method. - * - * @generated from message cosmos.gov.v1.QueryDepositsRequest - */ -export class QueryDepositsRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryDepositsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { - return new QueryDepositsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { - return new QueryDepositsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { - return new QueryDepositsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositsRequest, a, b); - } -} - -/** - * QueryDepositsResponse is the response type for the Query/Deposits RPC method. - * - * @generated from message cosmos.gov.v1.QueryDepositsResponse - */ -export class QueryDepositsResponse extends Message { - /** - * deposits defines the requested deposits. - * - * @generated from field: repeated cosmos.gov.v1.Deposit deposits = 1; - */ - deposits: Deposit[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryDepositsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deposits", kind: "message", T: Deposit, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { - return new QueryDepositsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { - return new QueryDepositsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { - return new QueryDepositsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositsResponse, a, b); - } -} - -/** - * QueryTallyResultRequest is the request type for the Query/Tally RPC method. - * - * @generated from message cosmos.gov.v1.QueryTallyResultRequest - */ -export class QueryTallyResultRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryTallyResultRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTallyResultRequest, a, b); - } -} - -/** - * QueryTallyResultResponse is the response type for the Query/Tally RPC method. - * - * @generated from message cosmos.gov.v1.QueryTallyResultResponse - */ -export class QueryTallyResultResponse extends Message { - /** - * tally defines the requested tally. - * - * @generated from field: cosmos.gov.v1.TallyResult tally = 1; - */ - tally?: TallyResult; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.QueryTallyResultResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tally", kind: "message", T: TallyResult }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTallyResultResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/gov/v1/tx_cosmes.ts deleted file mode 100644 index b2756ad..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1/tx_cosmes.ts +++ /dev/null @@ -1,115 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/gov/v1/tx.proto (package cosmos.gov.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - MsgCancelProposal, - MsgCancelProposalResponse, - MsgDeposit, - MsgDepositResponse, - MsgExecLegacyContent, - MsgExecLegacyContentResponse, - MsgSubmitProposal, - MsgSubmitProposalResponse, - MsgUpdateParams, - MsgUpdateParamsResponse, - MsgVote, - MsgVoteResponse, - MsgVoteWeighted, - MsgVoteWeightedResponse, -} from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.gov.v1.Msg"; - -/** - * SubmitProposal defines a method to create new proposal given the messages. - * - * @generated from rpc cosmos.gov.v1.Msg.SubmitProposal - */ -export const MsgSubmitProposalService = { - typeName: TYPE_NAME, - method: "SubmitProposal", - Request: MsgSubmitProposal, - Response: MsgSubmitProposalResponse, -} as const; - -/** - * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal - * to execute a legacy content-based proposal. - * - * @generated from rpc cosmos.gov.v1.Msg.ExecLegacyContent - */ -export const MsgExecLegacyContentService = { - typeName: TYPE_NAME, - method: "ExecLegacyContent", - Request: MsgExecLegacyContent, - Response: MsgExecLegacyContentResponse, -} as const; - -/** - * Vote defines a method to add a vote on a specific proposal. - * - * @generated from rpc cosmos.gov.v1.Msg.Vote - */ -export const MsgVoteService = { - typeName: TYPE_NAME, - method: "Vote", - Request: MsgVote, - Response: MsgVoteResponse, -} as const; - -/** - * VoteWeighted defines a method to add a weighted vote on a specific proposal. - * - * @generated from rpc cosmos.gov.v1.Msg.VoteWeighted - */ -export const MsgVoteWeightedService = { - typeName: TYPE_NAME, - method: "VoteWeighted", - Request: MsgVoteWeighted, - Response: MsgVoteWeightedResponse, -} as const; - -/** - * Deposit defines a method to add deposit on a specific proposal. - * - * @generated from rpc cosmos.gov.v1.Msg.Deposit - */ -export const MsgDepositService = { - typeName: TYPE_NAME, - method: "Deposit", - Request: MsgDeposit, - Response: MsgDepositResponse, -} as const; - -/** - * UpdateParams defines a governance operation for updating the x/gov module - * parameters. The authority is defined in the keeper. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.gov.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * CancelProposal defines a method to cancel governance proposal - * - * Since: cosmos-sdk 0.50 - * - * @generated from rpc cosmos.gov.v1.Msg.CancelProposal - */ -export const MsgCancelProposalService = { - typeName: TYPE_NAME, - method: "CancelProposal", - Request: MsgCancelProposal, - Response: MsgCancelProposalResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1/tx_pb.ts deleted file mode 100644 index 1d0497c..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1/tx_pb.ts +++ /dev/null @@ -1,718 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1/tx.proto (package cosmos.gov.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; -import { Params, VoteOption, WeightedVoteOption } from "./gov_pb.js"; - -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - * - * @generated from message cosmos.gov.v1.MsgSubmitProposal - */ -export class MsgSubmitProposal extends Message { - /** - * messages are the arbitrary messages to be executed if proposal passes. - * - * @generated from field: repeated google.protobuf.Any messages = 1; - */ - messages: Any[] = []; - - /** - * initial_deposit is the deposit value that must be paid at proposal submission. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin initial_deposit = 2; - */ - initialDeposit: Coin[] = []; - - /** - * proposer is the account address of the proposer. - * - * @generated from field: string proposer = 3; - */ - proposer = ""; - - /** - * metadata is any arbitrary metadata attached to the proposal. - * - * @generated from field: string metadata = 4; - */ - metadata = ""; - - /** - * title is the title of the proposal. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string title = 5; - */ - title = ""; - - /** - * summary is the summary of the proposal - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string summary = 6; - */ - summary = ""; - - /** - * expedited defines if the proposal is expedited or not - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: bool expedited = 7; - */ - expedited = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgSubmitProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "messages", kind: "message", T: Any, repeated: true }, - { no: 2, name: "initial_deposit", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "expedited", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitProposal, a, b); - } -} - -/** - * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. - * - * @generated from message cosmos.gov.v1.MsgSubmitProposalResponse - */ -export class MsgSubmitProposalResponse extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgSubmitProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitProposalResponse, a, b); - } -} - -/** - * MsgExecLegacyContent is used to wrap the legacy content field into a message. - * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. - * - * @generated from message cosmos.gov.v1.MsgExecLegacyContent - */ -export class MsgExecLegacyContent extends Message { - /** - * content is the proposal's content. - * - * @generated from field: google.protobuf.Any content = 1; - */ - content?: Any; - - /** - * authority must be the gov module address. - * - * @generated from field: string authority = 2; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgExecLegacyContent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "content", kind: "message", T: Any }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecLegacyContent { - return new MsgExecLegacyContent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecLegacyContent { - return new MsgExecLegacyContent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecLegacyContent { - return new MsgExecLegacyContent().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecLegacyContent | PlainMessage | undefined, b: MsgExecLegacyContent | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecLegacyContent, a, b); - } -} - -/** - * MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. - * - * @generated from message cosmos.gov.v1.MsgExecLegacyContentResponse - */ -export class MsgExecLegacyContentResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgExecLegacyContentResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecLegacyContentResponse { - return new MsgExecLegacyContentResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecLegacyContentResponse { - return new MsgExecLegacyContentResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecLegacyContentResponse { - return new MsgExecLegacyContentResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecLegacyContentResponse | PlainMessage | undefined, b: MsgExecLegacyContentResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecLegacyContentResponse, a, b); - } -} - -/** - * MsgVote defines a message to cast a vote. - * - * @generated from message cosmos.gov.v1.MsgVote - */ -export class MsgVote extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the voter address for the proposal. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * option defines the vote option. - * - * @generated from field: cosmos.gov.v1.VoteOption option = 3; - */ - option = VoteOption.UNSPECIFIED; - - /** - * metadata is any arbitrary metadata attached to the Vote. - * - * @generated from field: string metadata = 4; - */ - metadata = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgVote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVote { - return new MsgVote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVote { - return new MsgVote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVote { - return new MsgVote().fromJsonString(jsonString, options); - } - - static equals(a: MsgVote | PlainMessage | undefined, b: MsgVote | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVote, a, b); - } -} - -/** - * MsgVoteResponse defines the Msg/Vote response type. - * - * @generated from message cosmos.gov.v1.MsgVoteResponse - */ -export class MsgVoteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgVoteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgVoteResponse | PlainMessage | undefined, b: MsgVoteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVoteResponse, a, b); - } -} - -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * @generated from message cosmos.gov.v1.MsgVoteWeighted - */ -export class MsgVoteWeighted extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the voter address for the proposal. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * options defines the weighted vote options. - * - * @generated from field: repeated cosmos.gov.v1.WeightedVoteOption options = 3; - */ - options: WeightedVoteOption[] = []; - - /** - * metadata is any arbitrary metadata attached to the VoteWeighted. - * - * @generated from field: string metadata = 4; - */ - metadata = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgVoteWeighted"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeighted { - return new MsgVoteWeighted().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeighted { - return new MsgVoteWeighted().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeighted { - return new MsgVoteWeighted().fromJsonString(jsonString, options); - } - - static equals(a: MsgVoteWeighted | PlainMessage | undefined, b: MsgVoteWeighted | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVoteWeighted, a, b); - } -} - -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * @generated from message cosmos.gov.v1.MsgVoteWeightedResponse - */ -export class MsgVoteWeightedResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgVoteWeightedResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeightedResponse { - return new MsgVoteWeightedResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeightedResponse { - return new MsgVoteWeightedResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeightedResponse { - return new MsgVoteWeightedResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgVoteWeightedResponse | PlainMessage | undefined, b: MsgVoteWeightedResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVoteWeightedResponse, a, b); - } -} - -/** - * MsgDeposit defines a message to submit a deposit to an existing proposal. - * - * @generated from message cosmos.gov.v1.MsgDeposit - */ -export class MsgDeposit extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 2; - */ - depositor = ""; - - /** - * amount to be deposited by depositor. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgDeposit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { - return new MsgDeposit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { - return new MsgDeposit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { - return new MsgDeposit().fromJsonString(jsonString, options); - } - - static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDeposit, a, b); - } -} - -/** - * MsgDepositResponse defines the Msg/Deposit response type. - * - * @generated from message cosmos.gov.v1.MsgDepositResponse - */ -export class MsgDepositResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgDepositResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { - return new MsgDepositResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { - return new MsgDepositResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { - return new MsgDepositResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDepositResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.gov.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/gov parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmos.gov.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.gov.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgCancelProposal is the Msg/CancelProposal request type. - * - * Since: cosmos-sdk 0.50 - * - * @generated from message cosmos.gov.v1.MsgCancelProposal - */ -export class MsgCancelProposal extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * proposer is the account address of the proposer. - * - * @generated from field: string proposer = 2; - */ - proposer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgCancelProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelProposal { - return new MsgCancelProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelProposal { - return new MsgCancelProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCancelProposal { - return new MsgCancelProposal().fromJsonString(jsonString, options); - } - - static equals(a: MsgCancelProposal | PlainMessage | undefined, b: MsgCancelProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCancelProposal, a, b); - } -} - -/** - * MsgCancelProposalResponse defines the response structure for executing a - * MsgCancelProposal message. - * - * Since: cosmos-sdk 0.50 - * - * @generated from message cosmos.gov.v1.MsgCancelProposalResponse - */ -export class MsgCancelProposalResponse extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * canceled_time is the time when proposal is canceled. - * - * @generated from field: google.protobuf.Timestamp canceled_time = 2; - */ - canceledTime?: Timestamp; - - /** - * canceled_height defines the block height at which the proposal is canceled. - * - * @generated from field: uint64 canceled_height = 3; - */ - canceledHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1.MsgCancelProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "canceled_time", kind: "message", T: Timestamp }, - { no: 3, name: "canceled_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelProposalResponse { - return new MsgCancelProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelProposalResponse { - return new MsgCancelProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCancelProposalResponse { - return new MsgCancelProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCancelProposalResponse | PlainMessage | undefined, b: MsgCancelProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCancelProposalResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts deleted file mode 100644 index 553f2fc..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,98 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1beta1/genesis.proto (package cosmos.gov.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Deposit, DepositParams, Proposal, TallyParams, Vote, VotingParams } from "./gov_pb.js"; - -/** - * GenesisState defines the gov module's genesis state. - * - * @generated from message cosmos.gov.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * starting_proposal_id is the ID of the starting proposal. - * - * @generated from field: uint64 starting_proposal_id = 1; - */ - startingProposalId = protoInt64.zero; - - /** - * deposits defines all the deposits present at genesis. - * - * @generated from field: repeated cosmos.gov.v1beta1.Deposit deposits = 2; - */ - deposits: Deposit[] = []; - - /** - * votes defines all the votes present at genesis. - * - * @generated from field: repeated cosmos.gov.v1beta1.Vote votes = 3; - */ - votes: Vote[] = []; - - /** - * proposals defines all the proposals present at genesis. - * - * @generated from field: repeated cosmos.gov.v1beta1.Proposal proposals = 4; - */ - proposals: Proposal[] = []; - - /** - * deposit_params defines all the parameters related to deposit. - * - * @generated from field: cosmos.gov.v1beta1.DepositParams deposit_params = 5; - */ - depositParams?: DepositParams; - - /** - * voting_params defines all the parameters related to voting. - * - * @generated from field: cosmos.gov.v1beta1.VotingParams voting_params = 6; - */ - votingParams?: VotingParams; - - /** - * tally_params defines all the parameters related to tally. - * - * @generated from field: cosmos.gov.v1beta1.TallyParams tally_params = 7; - */ - tallyParams?: TallyParams; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "starting_proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "deposits", kind: "message", T: Deposit, repeated: true }, - { no: 3, name: "votes", kind: "message", T: Vote, repeated: true }, - { no: 4, name: "proposals", kind: "message", T: Proposal, repeated: true }, - { no: 5, name: "deposit_params", kind: "message", T: DepositParams }, - { no: 6, name: "voting_params", kind: "message", T: VotingParams }, - { no: 7, name: "tally_params", kind: "message", T: TallyParams }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts deleted file mode 100644 index 4aa3db3..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/gov_pb.ts +++ /dev/null @@ -1,674 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1beta1/gov.proto (package cosmos.gov.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * VoteOption enumerates the valid vote options for a given governance proposal. - * - * @generated from enum cosmos.gov.v1beta1.VoteOption - */ -export enum VoteOption { - /** - * VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - * - * @generated from enum value: VOTE_OPTION_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * VOTE_OPTION_YES defines a yes vote option. - * - * @generated from enum value: VOTE_OPTION_YES = 1; - */ - YES = 1, - - /** - * VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - * @generated from enum value: VOTE_OPTION_ABSTAIN = 2; - */ - ABSTAIN = 2, - - /** - * VOTE_OPTION_NO defines a no vote option. - * - * @generated from enum value: VOTE_OPTION_NO = 3; - */ - NO = 3, - - /** - * VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * - * @generated from enum value: VOTE_OPTION_NO_WITH_VETO = 4; - */ - NO_WITH_VETO = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(VoteOption) -proto3.util.setEnumType(VoteOption, "cosmos.gov.v1beta1.VoteOption", [ - { no: 0, name: "VOTE_OPTION_UNSPECIFIED" }, - { no: 1, name: "VOTE_OPTION_YES" }, - { no: 2, name: "VOTE_OPTION_ABSTAIN" }, - { no: 3, name: "VOTE_OPTION_NO" }, - { no: 4, name: "VOTE_OPTION_NO_WITH_VETO" }, -]); - -/** - * ProposalStatus enumerates the valid statuses of a proposal. - * - * @generated from enum cosmos.gov.v1beta1.ProposalStatus - */ -export enum ProposalStatus { - /** - * PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. - * - * @generated from enum value: PROPOSAL_STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - * period. - * - * @generated from enum value: PROPOSAL_STATUS_DEPOSIT_PERIOD = 1; - */ - DEPOSIT_PERIOD = 1, - - /** - * PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - * period. - * - * @generated from enum value: PROPOSAL_STATUS_VOTING_PERIOD = 2; - */ - VOTING_PERIOD = 2, - - /** - * PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - * passed. - * - * @generated from enum value: PROPOSAL_STATUS_PASSED = 3; - */ - PASSED = 3, - - /** - * PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - * been rejected. - * - * @generated from enum value: PROPOSAL_STATUS_REJECTED = 4; - */ - REJECTED = 4, - - /** - * PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - * failed. - * - * @generated from enum value: PROPOSAL_STATUS_FAILED = 5; - */ - FAILED = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ProposalStatus) -proto3.util.setEnumType(ProposalStatus, "cosmos.gov.v1beta1.ProposalStatus", [ - { no: 0, name: "PROPOSAL_STATUS_UNSPECIFIED" }, - { no: 1, name: "PROPOSAL_STATUS_DEPOSIT_PERIOD" }, - { no: 2, name: "PROPOSAL_STATUS_VOTING_PERIOD" }, - { no: 3, name: "PROPOSAL_STATUS_PASSED" }, - { no: 4, name: "PROPOSAL_STATUS_REJECTED" }, - { no: 5, name: "PROPOSAL_STATUS_FAILED" }, -]); - -/** - * WeightedVoteOption defines a unit of vote for vote split. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.gov.v1beta1.WeightedVoteOption - */ -export class WeightedVoteOption extends Message { - /** - * option defines the valid vote options, it must not contain duplicate vote options. - * - * @generated from field: cosmos.gov.v1beta1.VoteOption option = 1; - */ - option = VoteOption.UNSPECIFIED; - - /** - * weight is the vote weight associated with the vote option. - * - * @generated from field: string weight = 2; - */ - weight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.WeightedVoteOption"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WeightedVoteOption { - return new WeightedVoteOption().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WeightedVoteOption { - return new WeightedVoteOption().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WeightedVoteOption { - return new WeightedVoteOption().fromJsonString(jsonString, options); - } - - static equals(a: WeightedVoteOption | PlainMessage | undefined, b: WeightedVoteOption | PlainMessage | undefined): boolean { - return proto3.util.equals(WeightedVoteOption, a, b); - } -} - -/** - * TextProposal defines a standard text proposal whose changes need to be - * manually updated in case of approval. - * - * @generated from message cosmos.gov.v1beta1.TextProposal - */ -export class TextProposal extends Message { - /** - * title of the proposal. - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * description associated with the proposal. - * - * @generated from field: string description = 2; - */ - description = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.TextProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TextProposal { - return new TextProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TextProposal { - return new TextProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TextProposal { - return new TextProposal().fromJsonString(jsonString, options); - } - - static equals(a: TextProposal | PlainMessage | undefined, b: TextProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(TextProposal, a, b); - } -} - -/** - * Deposit defines an amount deposited by an account address to an active - * proposal. - * - * @generated from message cosmos.gov.v1beta1.Deposit - */ -export class Deposit extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 2; - */ - depositor = ""; - - /** - * amount to be deposited by depositor. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.Deposit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Deposit { - return new Deposit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Deposit { - return new Deposit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Deposit { - return new Deposit().fromJsonString(jsonString, options); - } - - static equals(a: Deposit | PlainMessage | undefined, b: Deposit | PlainMessage | undefined): boolean { - return proto3.util.equals(Deposit, a, b); - } -} - -/** - * Proposal defines the core field members of a governance proposal. - * - * @generated from message cosmos.gov.v1beta1.Proposal - */ -export class Proposal extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * content is the proposal's content. - * - * @generated from field: google.protobuf.Any content = 2; - */ - content?: Any; - - /** - * status defines the proposal status. - * - * @generated from field: cosmos.gov.v1beta1.ProposalStatus status = 3; - */ - status = ProposalStatus.UNSPECIFIED; - - /** - * final_tally_result is the final tally result of the proposal. When - * querying a proposal via gRPC, this field is not populated until the - * proposal's voting period has ended. - * - * @generated from field: cosmos.gov.v1beta1.TallyResult final_tally_result = 4; - */ - finalTallyResult?: TallyResult; - - /** - * submit_time is the time of proposal submission. - * - * @generated from field: google.protobuf.Timestamp submit_time = 5; - */ - submitTime?: Timestamp; - - /** - * deposit_end_time is the end time for deposition. - * - * @generated from field: google.protobuf.Timestamp deposit_end_time = 6; - */ - depositEndTime?: Timestamp; - - /** - * total_deposit is the total deposit on the proposal. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin total_deposit = 7; - */ - totalDeposit: Coin[] = []; - - /** - * voting_start_time is the starting time to vote on a proposal. - * - * @generated from field: google.protobuf.Timestamp voting_start_time = 8; - */ - votingStartTime?: Timestamp; - - /** - * voting_end_time is the end time of voting on a proposal. - * - * @generated from field: google.protobuf.Timestamp voting_end_time = 9; - */ - votingEndTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.Proposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "content", kind: "message", T: Any }, - { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, - { no: 4, name: "final_tally_result", kind: "message", T: TallyResult }, - { no: 5, name: "submit_time", kind: "message", T: Timestamp }, - { no: 6, name: "deposit_end_time", kind: "message", T: Timestamp }, - { no: 7, name: "total_deposit", kind: "message", T: Coin, repeated: true }, - { no: 8, name: "voting_start_time", kind: "message", T: Timestamp }, - { no: 9, name: "voting_end_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { - return new Proposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { - return new Proposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Proposal { - return new Proposal().fromJsonString(jsonString, options); - } - - static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { - return proto3.util.equals(Proposal, a, b); - } -} - -/** - * TallyResult defines a standard tally for a governance proposal. - * - * @generated from message cosmos.gov.v1beta1.TallyResult - */ -export class TallyResult extends Message { - /** - * yes is the number of yes votes on a proposal. - * - * @generated from field: string yes = 1; - */ - yes = ""; - - /** - * abstain is the number of abstain votes on a proposal. - * - * @generated from field: string abstain = 2; - */ - abstain = ""; - - /** - * no is the number of no votes on a proposal. - * - * @generated from field: string no = 3; - */ - no = ""; - - /** - * no_with_veto is the number of no with veto votes on a proposal. - * - * @generated from field: string no_with_veto = 4; - */ - noWithVeto = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.TallyResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "yes", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "abstain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "no", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "no_with_veto", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TallyResult { - return new TallyResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TallyResult { - return new TallyResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TallyResult { - return new TallyResult().fromJsonString(jsonString, options); - } - - static equals(a: TallyResult | PlainMessage | undefined, b: TallyResult | PlainMessage | undefined): boolean { - return proto3.util.equals(TallyResult, a, b); - } -} - -/** - * Vote defines a vote on a governance proposal. - * A Vote consists of a proposal ID, the voter, and the vote option. - * - * @generated from message cosmos.gov.v1beta1.Vote - */ -export class Vote extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the voter address of the proposal. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * Deprecated: Prefer to use `options` instead. This field is set in queries - * if and only if `len(options) == 1` and that option has weight 1. In all - * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - * - * @generated from field: cosmos.gov.v1beta1.VoteOption option = 3 [deprecated = true]; - * @deprecated - */ - option = VoteOption.UNSPECIFIED; - - /** - * options is the weighted vote options. - * - * Since: cosmos-sdk 0.43 - * - * @generated from field: repeated cosmos.gov.v1beta1.WeightedVoteOption options = 4; - */ - options: WeightedVoteOption[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.Vote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, - { no: 4, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Vote { - return new Vote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Vote { - return new Vote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Vote { - return new Vote().fromJsonString(jsonString, options); - } - - static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { - return proto3.util.equals(Vote, a, b); - } -} - -/** - * DepositParams defines the params for deposits on governance proposals. - * - * @generated from message cosmos.gov.v1beta1.DepositParams - */ -export class DepositParams extends Message { - /** - * Minimum deposit for a proposal to enter voting period. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin min_deposit = 1; - */ - minDeposit: Coin[] = []; - - /** - * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 - * months. - * - * @generated from field: google.protobuf.Duration max_deposit_period = 2; - */ - maxDepositPeriod?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.DepositParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "min_deposit", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "max_deposit_period", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DepositParams { - return new DepositParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DepositParams { - return new DepositParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DepositParams { - return new DepositParams().fromJsonString(jsonString, options); - } - - static equals(a: DepositParams | PlainMessage | undefined, b: DepositParams | PlainMessage | undefined): boolean { - return proto3.util.equals(DepositParams, a, b); - } -} - -/** - * VotingParams defines the params for voting on governance proposals. - * - * @generated from message cosmos.gov.v1beta1.VotingParams - */ -export class VotingParams extends Message { - /** - * Duration of the voting period. - * - * @generated from field: google.protobuf.Duration voting_period = 1; - */ - votingPeriod?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.VotingParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "voting_period", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VotingParams { - return new VotingParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VotingParams { - return new VotingParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VotingParams { - return new VotingParams().fromJsonString(jsonString, options); - } - - static equals(a: VotingParams | PlainMessage | undefined, b: VotingParams | PlainMessage | undefined): boolean { - return proto3.util.equals(VotingParams, a, b); - } -} - -/** - * TallyParams defines the params for tallying votes on governance proposals. - * - * @generated from message cosmos.gov.v1beta1.TallyParams - */ -export class TallyParams extends Message { - /** - * Minimum percentage of total stake needed to vote for a result to be - * considered valid. - * - * @generated from field: bytes quorum = 1; - */ - quorum = new Uint8Array(0); - - /** - * Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. - * - * @generated from field: bytes threshold = 2; - */ - threshold = new Uint8Array(0); - - /** - * Minimum value of Veto votes to Total votes ratio for proposal to be - * vetoed. Default value: 1/3. - * - * @generated from field: bytes veto_threshold = 3; - */ - vetoThreshold = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.TallyParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "quorum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "threshold", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "veto_threshold", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TallyParams { - return new TallyParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TallyParams { - return new TallyParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TallyParams { - return new TallyParams().fromJsonString(jsonString, options); - } - - static equals(a: TallyParams | PlainMessage | undefined, b: TallyParams | PlainMessage | undefined): boolean { - return proto3.util.equals(TallyParams, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts deleted file mode 100644 index e4db7df..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,105 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/gov/v1beta1/query.proto (package cosmos.gov.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryParamsRequest, QueryParamsResponse, QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryTallyResultRequest, QueryTallyResultResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.gov.v1beta1.Query"; - -/** - * Proposal queries proposal details based on ProposalID. - * - * @generated from rpc cosmos.gov.v1beta1.Query.Proposal - */ -export const QueryProposalService = { - typeName: TYPE_NAME, - method: "Proposal", - Request: QueryProposalRequest, - Response: QueryProposalResponse, -} as const; - -/** - * Proposals queries all proposals based on given status. - * - * @generated from rpc cosmos.gov.v1beta1.Query.Proposals - */ -export const QueryProposalsService = { - typeName: TYPE_NAME, - method: "Proposals", - Request: QueryProposalsRequest, - Response: QueryProposalsResponse, -} as const; - -/** - * Vote queries voted information based on proposalID, voterAddr. - * - * @generated from rpc cosmos.gov.v1beta1.Query.Vote - */ -export const QueryVoteService = { - typeName: TYPE_NAME, - method: "Vote", - Request: QueryVoteRequest, - Response: QueryVoteResponse, -} as const; - -/** - * Votes queries votes of a given proposal. - * - * @generated from rpc cosmos.gov.v1beta1.Query.Votes - */ -export const QueryVotesService = { - typeName: TYPE_NAME, - method: "Votes", - Request: QueryVotesRequest, - Response: QueryVotesResponse, -} as const; - -/** - * Params queries all parameters of the gov module. - * - * @generated from rpc cosmos.gov.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Deposit queries single deposit information based on proposalID, depositor address. - * - * @generated from rpc cosmos.gov.v1beta1.Query.Deposit - */ -export const QueryDepositService = { - typeName: TYPE_NAME, - method: "Deposit", - Request: QueryDepositRequest, - Response: QueryDepositResponse, -} as const; - -/** - * Deposits queries all deposits of a single proposal. - * - * @generated from rpc cosmos.gov.v1beta1.Query.Deposits - */ -export const QueryDepositsService = { - typeName: TYPE_NAME, - method: "Deposits", - Request: QueryDepositsRequest, - Response: QueryDepositsResponse, -} as const; - -/** - * TallyResult queries the tally of a proposal vote. - * - * @generated from rpc cosmos.gov.v1beta1.Query.TallyResult - */ -export const QueryTallyResultService = { - typeName: TYPE_NAME, - method: "TallyResult", - Request: QueryTallyResultRequest, - Response: QueryTallyResultResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_pb.ts deleted file mode 100644 index c36ee4b..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/query_pb.ts +++ /dev/null @@ -1,762 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1beta1/query.proto (package cosmos.gov.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Deposit, DepositParams, Proposal, ProposalStatus, TallyParams, TallyResult, Vote, VotingParams } from "./gov_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryProposalRequest is the request type for the Query/Proposal RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryProposalRequest - */ -export class QueryProposalRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryProposalRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalRequest | PlainMessage | undefined, b: QueryProposalRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalRequest, a, b); - } -} - -/** - * QueryProposalResponse is the response type for the Query/Proposal RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryProposalResponse - */ -export class QueryProposalResponse extends Message { - /** - * @generated from field: cosmos.gov.v1beta1.Proposal proposal = 1; - */ - proposal?: Proposal; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal", kind: "message", T: Proposal }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalResponse | PlainMessage | undefined, b: QueryProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalResponse, a, b); - } -} - -/** - * QueryProposalsRequest is the request type for the Query/Proposals RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryProposalsRequest - */ -export class QueryProposalsRequest extends Message { - /** - * proposal_status defines the status of the proposals. - * - * @generated from field: cosmos.gov.v1beta1.ProposalStatus proposal_status = 1; - */ - proposalStatus = ProposalStatus.UNSPECIFIED; - - /** - * voter defines the voter address for the proposals. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 3; - */ - depositor = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryProposalsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsRequest { - return new QueryProposalsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsRequest { - return new QueryProposalsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalsRequest { - return new QueryProposalsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalsRequest | PlainMessage | undefined, b: QueryProposalsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalsRequest, a, b); - } -} - -/** - * QueryProposalsResponse is the response type for the Query/Proposals RPC - * method. - * - * @generated from message cosmos.gov.v1beta1.QueryProposalsResponse - */ -export class QueryProposalsResponse extends Message { - /** - * proposals defines all the requested governance proposals. - * - * @generated from field: repeated cosmos.gov.v1beta1.Proposal proposals = 1; - */ - proposals: Proposal[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryProposalsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposals", kind: "message", T: Proposal, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsResponse { - return new QueryProposalsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsResponse { - return new QueryProposalsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalsResponse { - return new QueryProposalsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalsResponse | PlainMessage | undefined, b: QueryProposalsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalsResponse, a, b); - } -} - -/** - * QueryVoteRequest is the request type for the Query/Vote RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryVoteRequest - */ -export class QueryVoteRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter defines the voter address for the proposals. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryVoteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteRequest { - return new QueryVoteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteRequest { - return new QueryVoteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVoteRequest { - return new QueryVoteRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVoteRequest | PlainMessage | undefined, b: QueryVoteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVoteRequest, a, b); - } -} - -/** - * QueryVoteResponse is the response type for the Query/Vote RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryVoteResponse - */ -export class QueryVoteResponse extends Message { - /** - * vote defines the queried vote. - * - * @generated from field: cosmos.gov.v1beta1.Vote vote = 1; - */ - vote?: Vote; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryVoteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vote", kind: "message", T: Vote }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteResponse { - return new QueryVoteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteResponse { - return new QueryVoteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVoteResponse { - return new QueryVoteResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVoteResponse | PlainMessage | undefined, b: QueryVoteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVoteResponse, a, b); - } -} - -/** - * QueryVotesRequest is the request type for the Query/Votes RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryVotesRequest - */ -export class QueryVotesRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryVotesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesRequest { - return new QueryVotesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesRequest { - return new QueryVotesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesRequest { - return new QueryVotesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesRequest | PlainMessage | undefined, b: QueryVotesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesRequest, a, b); - } -} - -/** - * QueryVotesResponse is the response type for the Query/Votes RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryVotesResponse - */ -export class QueryVotesResponse extends Message { - /** - * votes defines the queried votes. - * - * @generated from field: repeated cosmos.gov.v1beta1.Vote votes = 1; - */ - votes: Vote[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryVotesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "votes", kind: "message", T: Vote, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesResponse { - return new QueryVotesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesResponse { - return new QueryVotesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesResponse { - return new QueryVotesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesResponse | PlainMessage | undefined, b: QueryVotesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesResponse, a, b); - } -} - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - /** - * params_type defines which parameters to query for, can be one of "voting", - * "tallying" or "deposit". - * - * @generated from field: string params_type = 1; - */ - paramsType = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * voting_params defines the parameters related to voting. - * - * @generated from field: cosmos.gov.v1beta1.VotingParams voting_params = 1; - */ - votingParams?: VotingParams; - - /** - * deposit_params defines the parameters related to deposit. - * - * @generated from field: cosmos.gov.v1beta1.DepositParams deposit_params = 2; - */ - depositParams?: DepositParams; - - /** - * tally_params defines the parameters related to tally. - * - * @generated from field: cosmos.gov.v1beta1.TallyParams tally_params = 3; - */ - tallyParams?: TallyParams; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "voting_params", kind: "message", T: VotingParams }, - { no: 2, name: "deposit_params", kind: "message", T: DepositParams }, - { no: 3, name: "tally_params", kind: "message", T: TallyParams }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryDepositRequest is the request type for the Query/Deposit RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryDepositRequest - */ -export class QueryDepositRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 2; - */ - depositor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryDepositRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositRequest { - return new QueryDepositRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositRequest { - return new QueryDepositRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositRequest { - return new QueryDepositRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositRequest | PlainMessage | undefined, b: QueryDepositRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositRequest, a, b); - } -} - -/** - * QueryDepositResponse is the response type for the Query/Deposit RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryDepositResponse - */ -export class QueryDepositResponse extends Message { - /** - * deposit defines the requested deposit. - * - * @generated from field: cosmos.gov.v1beta1.Deposit deposit = 1; - */ - deposit?: Deposit; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryDepositResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deposit", kind: "message", T: Deposit }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositResponse { - return new QueryDepositResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositResponse { - return new QueryDepositResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositResponse { - return new QueryDepositResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositResponse | PlainMessage | undefined, b: QueryDepositResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositResponse, a, b); - } -} - -/** - * QueryDepositsRequest is the request type for the Query/Deposits RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryDepositsRequest - */ -export class QueryDepositsRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryDepositsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest { - return new QueryDepositsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest { - return new QueryDepositsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest { - return new QueryDepositsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositsRequest, a, b); - } -} - -/** - * QueryDepositsResponse is the response type for the Query/Deposits RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryDepositsResponse - */ -export class QueryDepositsResponse extends Message { - /** - * deposits defines the requested deposits. - * - * @generated from field: repeated cosmos.gov.v1beta1.Deposit deposits = 1; - */ - deposits: Deposit[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryDepositsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deposits", kind: "message", T: Deposit, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse { - return new QueryDepositsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse { - return new QueryDepositsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse { - return new QueryDepositsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDepositsResponse, a, b); - } -} - -/** - * QueryTallyResultRequest is the request type for the Query/Tally RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryTallyResultRequest - */ -export class QueryTallyResultRequest extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryTallyResultRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTallyResultRequest, a, b); - } -} - -/** - * QueryTallyResultResponse is the response type for the Query/Tally RPC method. - * - * @generated from message cosmos.gov.v1beta1.QueryTallyResultResponse - */ -export class QueryTallyResultResponse extends Message { - /** - * tally defines the requested tally. - * - * @generated from field: cosmos.gov.v1beta1.TallyResult tally = 1; - */ - tally?: TallyResult; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.QueryTallyResultResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tally", kind: "message", T: TallyResult }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTallyResultResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_cosmes.ts deleted file mode 100644 index 69ba1bb..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/gov/v1beta1/tx.proto (package cosmos.gov.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgDeposit, MsgDepositResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.gov.v1beta1.Msg"; - -/** - * SubmitProposal defines a method to create new proposal given a content. - * - * @generated from rpc cosmos.gov.v1beta1.Msg.SubmitProposal - */ -export const MsgSubmitProposalService = { - typeName: TYPE_NAME, - method: "SubmitProposal", - Request: MsgSubmitProposal, - Response: MsgSubmitProposalResponse, -} as const; - -/** - * Vote defines a method to add a vote on a specific proposal. - * - * @generated from rpc cosmos.gov.v1beta1.Msg.Vote - */ -export const MsgVoteService = { - typeName: TYPE_NAME, - method: "Vote", - Request: MsgVote, - Response: MsgVoteResponse, -} as const; - -/** - * VoteWeighted defines a method to add a weighted vote on a specific proposal. - * - * Since: cosmos-sdk 0.43 - * - * @generated from rpc cosmos.gov.v1beta1.Msg.VoteWeighted - */ -export const MsgVoteWeightedService = { - typeName: TYPE_NAME, - method: "VoteWeighted", - Request: MsgVoteWeighted, - Response: MsgVoteWeightedResponse, -} as const; - -/** - * Deposit defines a method to add deposit on a specific proposal. - * - * @generated from rpc cosmos.gov.v1beta1.Msg.Deposit - */ -export const MsgDepositService = { - typeName: TYPE_NAME, - method: "Deposit", - Request: MsgDeposit, - Response: MsgDepositResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts deleted file mode 100644 index 512e7a0..0000000 --- a/libs/es-client/src/protobufs/cosmos/gov/v1beta1/tx_pb.ts +++ /dev/null @@ -1,383 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/gov/v1beta1/tx.proto (package cosmos.gov.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; -import { VoteOption, WeightedVoteOption } from "./gov_pb.js"; - -/** - * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary - * proposal Content. - * - * @generated from message cosmos.gov.v1beta1.MsgSubmitProposal - */ -export class MsgSubmitProposal extends Message { - /** - * content is the proposal's content. - * - * @generated from field: google.protobuf.Any content = 1; - */ - content?: Any; - - /** - * initial_deposit is the deposit value that must be paid at proposal submission. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin initial_deposit = 2; - */ - initialDeposit: Coin[] = []; - - /** - * proposer is the account address of the proposer. - * - * @generated from field: string proposer = 3; - */ - proposer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgSubmitProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "content", kind: "message", T: Any }, - { no: 2, name: "initial_deposit", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "proposer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitProposal, a, b); - } -} - -/** - * MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. - * - * @generated from message cosmos.gov.v1beta1.MsgSubmitProposalResponse - */ -export class MsgSubmitProposalResponse extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgSubmitProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitProposalResponse, a, b); - } -} - -/** - * MsgVote defines a message to cast a vote. - * - * @generated from message cosmos.gov.v1beta1.MsgVote - */ -export class MsgVote extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the voter address for the proposal. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * option defines the vote option. - * - * @generated from field: cosmos.gov.v1beta1.VoteOption option = 3; - */ - option = VoteOption.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgVote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVote { - return new MsgVote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVote { - return new MsgVote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVote { - return new MsgVote().fromJsonString(jsonString, options); - } - - static equals(a: MsgVote | PlainMessage | undefined, b: MsgVote | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVote, a, b); - } -} - -/** - * MsgVoteResponse defines the Msg/Vote response type. - * - * @generated from message cosmos.gov.v1beta1.MsgVoteResponse - */ -export class MsgVoteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgVoteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgVoteResponse | PlainMessage | undefined, b: MsgVoteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVoteResponse, a, b); - } -} - -/** - * MsgVoteWeighted defines a message to cast a vote. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.gov.v1beta1.MsgVoteWeighted - */ -export class MsgVoteWeighted extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the voter address for the proposal. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * options defines the weighted vote options. - * - * @generated from field: repeated cosmos.gov.v1beta1.WeightedVoteOption options = 3; - */ - options: WeightedVoteOption[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgVoteWeighted"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "options", kind: "message", T: WeightedVoteOption, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeighted { - return new MsgVoteWeighted().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeighted { - return new MsgVoteWeighted().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeighted { - return new MsgVoteWeighted().fromJsonString(jsonString, options); - } - - static equals(a: MsgVoteWeighted | PlainMessage | undefined, b: MsgVoteWeighted | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVoteWeighted, a, b); - } -} - -/** - * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.gov.v1beta1.MsgVoteWeightedResponse - */ -export class MsgVoteWeightedResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgVoteWeightedResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteWeightedResponse { - return new MsgVoteWeightedResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteWeightedResponse { - return new MsgVoteWeightedResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVoteWeightedResponse { - return new MsgVoteWeightedResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgVoteWeightedResponse | PlainMessage | undefined, b: MsgVoteWeightedResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVoteWeightedResponse, a, b); - } -} - -/** - * MsgDeposit defines a message to submit a deposit to an existing proposal. - * - * @generated from message cosmos.gov.v1beta1.MsgDeposit - */ -export class MsgDeposit extends Message { - /** - * proposal_id defines the unique id of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * depositor defines the deposit addresses from the proposals. - * - * @generated from field: string depositor = 2; - */ - depositor = ""; - - /** - * amount to be deposited by depositor. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgDeposit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "depositor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeposit { - return new MsgDeposit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeposit { - return new MsgDeposit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDeposit { - return new MsgDeposit().fromJsonString(jsonString, options); - } - - static equals(a: MsgDeposit | PlainMessage | undefined, b: MsgDeposit | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDeposit, a, b); - } -} - -/** - * MsgDepositResponse defines the Msg/Deposit response type. - * - * @generated from message cosmos.gov.v1beta1.MsgDepositResponse - */ -export class MsgDepositResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.gov.v1beta1.MsgDepositResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDepositResponse { - return new MsgDepositResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDepositResponse { - return new MsgDepositResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDepositResponse { - return new MsgDepositResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgDepositResponse | PlainMessage | undefined, b: MsgDepositResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDepositResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/group/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/group/module/v1/module_pb.ts deleted file mode 100644 index 1a441a7..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/module/v1/module_pb.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/group/module/v1/module.proto (package cosmos.group.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the group module. - * - * @generated from message cosmos.group.module.v1.Module - */ -export class Module extends Message { - /** - * max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec - * to execute the proposal. - * - * @generated from field: google.protobuf.Duration max_execution_period = 1; - */ - maxExecutionPeriod?: Duration; - - /** - * max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. - * Defaults to 255 if not explicitly set. - * - * @generated from field: uint64 max_metadata_len = 2; - */ - maxMetadataLen = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_execution_period", kind: "message", T: Duration }, - { no: 2, name: "max_metadata_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/group/v1/events_pb.ts b/libs/es-client/src/protobufs/cosmos/group/v1/events_pb.ts deleted file mode 100644 index 0e1c6e4..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/v1/events_pb.ts +++ /dev/null @@ -1,461 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/group/v1/events.proto (package cosmos.group.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ProposalExecutorResult, ProposalStatus, TallyResult } from "./types_pb.js"; - -/** - * EventCreateGroup is an event emitted when a group is created. - * - * @generated from message cosmos.group.v1.EventCreateGroup - */ -export class EventCreateGroup extends Message { - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventCreateGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateGroup { - return new EventCreateGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateGroup { - return new EventCreateGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCreateGroup { - return new EventCreateGroup().fromJsonString(jsonString, options); - } - - static equals(a: EventCreateGroup | PlainMessage | undefined, b: EventCreateGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCreateGroup, a, b); - } -} - -/** - * EventUpdateGroup is an event emitted when a group is updated. - * - * @generated from message cosmos.group.v1.EventUpdateGroup - */ -export class EventUpdateGroup extends Message { - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventUpdateGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventUpdateGroup { - return new EventUpdateGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventUpdateGroup { - return new EventUpdateGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventUpdateGroup { - return new EventUpdateGroup().fromJsonString(jsonString, options); - } - - static equals(a: EventUpdateGroup | PlainMessage | undefined, b: EventUpdateGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(EventUpdateGroup, a, b); - } -} - -/** - * EventCreateGroupPolicy is an event emitted when a group policy is created. - * - * @generated from message cosmos.group.v1.EventCreateGroupPolicy - */ -export class EventCreateGroupPolicy extends Message { - /** - * address is the account address of the group policy. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventCreateGroupPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventCreateGroupPolicy { - return new EventCreateGroupPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventCreateGroupPolicy { - return new EventCreateGroupPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventCreateGroupPolicy { - return new EventCreateGroupPolicy().fromJsonString(jsonString, options); - } - - static equals(a: EventCreateGroupPolicy | PlainMessage | undefined, b: EventCreateGroupPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(EventCreateGroupPolicy, a, b); - } -} - -/** - * EventUpdateGroupPolicy is an event emitted when a group policy is updated. - * - * @generated from message cosmos.group.v1.EventUpdateGroupPolicy - */ -export class EventUpdateGroupPolicy extends Message { - /** - * address is the account address of the group policy. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventUpdateGroupPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventUpdateGroupPolicy { - return new EventUpdateGroupPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventUpdateGroupPolicy { - return new EventUpdateGroupPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventUpdateGroupPolicy { - return new EventUpdateGroupPolicy().fromJsonString(jsonString, options); - } - - static equals(a: EventUpdateGroupPolicy | PlainMessage | undefined, b: EventUpdateGroupPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(EventUpdateGroupPolicy, a, b); - } -} - -/** - * EventSubmitProposal is an event emitted when a proposal is created. - * - * @generated from message cosmos.group.v1.EventSubmitProposal - */ -export class EventSubmitProposal extends Message { - /** - * proposal_id is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventSubmitProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventSubmitProposal { - return new EventSubmitProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventSubmitProposal { - return new EventSubmitProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventSubmitProposal { - return new EventSubmitProposal().fromJsonString(jsonString, options); - } - - static equals(a: EventSubmitProposal | PlainMessage | undefined, b: EventSubmitProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(EventSubmitProposal, a, b); - } -} - -/** - * EventWithdrawProposal is an event emitted when a proposal is withdrawn. - * - * @generated from message cosmos.group.v1.EventWithdrawProposal - */ -export class EventWithdrawProposal extends Message { - /** - * proposal_id is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventWithdrawProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventWithdrawProposal { - return new EventWithdrawProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventWithdrawProposal { - return new EventWithdrawProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventWithdrawProposal { - return new EventWithdrawProposal().fromJsonString(jsonString, options); - } - - static equals(a: EventWithdrawProposal | PlainMessage | undefined, b: EventWithdrawProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(EventWithdrawProposal, a, b); - } -} - -/** - * EventVote is an event emitted when a voter votes on a proposal. - * - * @generated from message cosmos.group.v1.EventVote - */ -export class EventVote extends Message { - /** - * proposal_id is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventVote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventVote { - return new EventVote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventVote { - return new EventVote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventVote { - return new EventVote().fromJsonString(jsonString, options); - } - - static equals(a: EventVote | PlainMessage | undefined, b: EventVote | PlainMessage | undefined): boolean { - return proto3.util.equals(EventVote, a, b); - } -} - -/** - * EventExec is an event emitted when a proposal is executed. - * - * @generated from message cosmos.group.v1.EventExec - */ -export class EventExec extends Message { - /** - * proposal_id is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * result is the proposal execution result. - * - * @generated from field: cosmos.group.v1.ProposalExecutorResult result = 2; - */ - result = ProposalExecutorResult.UNSPECIFIED; - - /** - * logs contains error logs in case the execution result is FAILURE. - * - * @generated from field: string logs = 3; - */ - logs = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventExec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "result", kind: "enum", T: proto3.getEnumType(ProposalExecutorResult) }, - { no: 3, name: "logs", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventExec { - return new EventExec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventExec { - return new EventExec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventExec { - return new EventExec().fromJsonString(jsonString, options); - } - - static equals(a: EventExec | PlainMessage | undefined, b: EventExec | PlainMessage | undefined): boolean { - return proto3.util.equals(EventExec, a, b); - } -} - -/** - * EventLeaveGroup is an event emitted when group member leaves the group. - * - * @generated from message cosmos.group.v1.EventLeaveGroup - */ -export class EventLeaveGroup extends Message { - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - /** - * address is the account address of the group member. - * - * @generated from field: string address = 2; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventLeaveGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventLeaveGroup { - return new EventLeaveGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventLeaveGroup { - return new EventLeaveGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventLeaveGroup { - return new EventLeaveGroup().fromJsonString(jsonString, options); - } - - static equals(a: EventLeaveGroup | PlainMessage | undefined, b: EventLeaveGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(EventLeaveGroup, a, b); - } -} - -/** - * EventProposalPruned is an event emitted when a proposal is pruned. - * - * @generated from message cosmos.group.v1.EventProposalPruned - */ -export class EventProposalPruned extends Message { - /** - * proposal_id is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * status is the proposal status (UNSPECIFIED, SUBMITTED, ACCEPTED, REJECTED, ABORTED, WITHDRAWN). - * - * @generated from field: cosmos.group.v1.ProposalStatus status = 2; - */ - status = ProposalStatus.UNSPECIFIED; - - /** - * tally_result is the proposal tally result (when applicable). - * - * @generated from field: cosmos.group.v1.TallyResult tally_result = 3; - */ - tallyResult?: TallyResult; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.EventProposalPruned"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, - { no: 3, name: "tally_result", kind: "message", T: TallyResult }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventProposalPruned { - return new EventProposalPruned().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventProposalPruned { - return new EventProposalPruned().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventProposalPruned { - return new EventProposalPruned().fromJsonString(jsonString, options); - } - - static equals(a: EventProposalPruned | PlainMessage | undefined, b: EventProposalPruned | PlainMessage | undefined): boolean { - return proto3.util.equals(EventProposalPruned, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/group/v1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/group/v1/genesis_pb.ts deleted file mode 100644 index b5dd08e..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/v1/genesis_pb.ts +++ /dev/null @@ -1,111 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/group/v1/genesis.proto (package cosmos.group.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, Vote } from "./types_pb.js"; - -/** - * GenesisState defines the group module's genesis state. - * - * @generated from message cosmos.group.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * group_seq is the group table orm.Sequence, - * it is used to get the next group ID. - * - * @generated from field: uint64 group_seq = 1; - */ - groupSeq = protoInt64.zero; - - /** - * groups is the list of groups info. - * - * @generated from field: repeated cosmos.group.v1.GroupInfo groups = 2; - */ - groups: GroupInfo[] = []; - - /** - * group_members is the list of groups members. - * - * @generated from field: repeated cosmos.group.v1.GroupMember group_members = 3; - */ - groupMembers: GroupMember[] = []; - - /** - * group_policy_seq is the group policy table orm.Sequence, - * it is used to generate the next group policy account address. - * - * @generated from field: uint64 group_policy_seq = 4; - */ - groupPolicySeq = protoInt64.zero; - - /** - * group_policies is the list of group policies info. - * - * @generated from field: repeated cosmos.group.v1.GroupPolicyInfo group_policies = 5; - */ - groupPolicies: GroupPolicyInfo[] = []; - - /** - * proposal_seq is the proposal table orm.Sequence, - * it is used to get the next proposal ID. - * - * @generated from field: uint64 proposal_seq = 6; - */ - proposalSeq = protoInt64.zero; - - /** - * proposals is the list of proposals. - * - * @generated from field: repeated cosmos.group.v1.Proposal proposals = 7; - */ - proposals: Proposal[] = []; - - /** - * votes is the list of votes. - * - * @generated from field: repeated cosmos.group.v1.Vote votes = 8; - */ - votes: Vote[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "groups", kind: "message", T: GroupInfo, repeated: true }, - { no: 3, name: "group_members", kind: "message", T: GroupMember, repeated: true }, - { no: 4, name: "group_policy_seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "group_policies", kind: "message", T: GroupPolicyInfo, repeated: true }, - { no: 6, name: "proposal_seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "proposals", kind: "message", T: Proposal, repeated: true }, - { no: 8, name: "votes", kind: "message", T: Vote, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/group/v1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/group/v1/query_cosmes.ts deleted file mode 100644 index 306f3c7..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/v1/query_cosmes.ts +++ /dev/null @@ -1,213 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/group/v1/query.proto (package cosmos.group.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - QueryGroupInfoRequest, - QueryGroupInfoResponse, - QueryGroupMembersRequest, - QueryGroupMembersResponse, - QueryGroupPoliciesByAdminRequest, - QueryGroupPoliciesByAdminResponse, - QueryGroupPoliciesByGroupRequest, - QueryGroupPoliciesByGroupResponse, - QueryGroupPolicyInfoRequest, - QueryGroupPolicyInfoResponse, - QueryGroupsByAdminRequest, - QueryGroupsByAdminResponse, - QueryGroupsByMemberRequest, - QueryGroupsByMemberResponse, - QueryGroupsRequest, - QueryGroupsResponse, - QueryProposalRequest, - QueryProposalResponse, - QueryProposalsByGroupPolicyRequest, - QueryProposalsByGroupPolicyResponse, - QueryTallyResultRequest, - QueryTallyResultResponse, - QueryVoteByProposalVoterRequest, - QueryVoteByProposalVoterResponse, - QueryVotesByProposalRequest, - QueryVotesByProposalResponse, - QueryVotesByVoterRequest, - QueryVotesByVoterResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "cosmos.group.v1.Query"; - -/** - * GroupInfo queries group info based on group id. - * - * @generated from rpc cosmos.group.v1.Query.GroupInfo - */ -export const QueryGroupInfoService = { - typeName: TYPE_NAME, - method: "GroupInfo", - Request: QueryGroupInfoRequest, - Response: QueryGroupInfoResponse, -} as const; - -/** - * GroupPolicyInfo queries group policy info based on account address of group policy. - * - * @generated from rpc cosmos.group.v1.Query.GroupPolicyInfo - */ -export const QueryGroupPolicyInfoService = { - typeName: TYPE_NAME, - method: "GroupPolicyInfo", - Request: QueryGroupPolicyInfoRequest, - Response: QueryGroupPolicyInfoResponse, -} as const; - -/** - * GroupMembers queries members of a group by group id. - * - * @generated from rpc cosmos.group.v1.Query.GroupMembers - */ -export const QueryGroupMembersService = { - typeName: TYPE_NAME, - method: "GroupMembers", - Request: QueryGroupMembersRequest, - Response: QueryGroupMembersResponse, -} as const; - -/** - * GroupsByAdmin queries groups by admin address. - * - * @generated from rpc cosmos.group.v1.Query.GroupsByAdmin - */ -export const QueryGroupsByAdminService = { - typeName: TYPE_NAME, - method: "GroupsByAdmin", - Request: QueryGroupsByAdminRequest, - Response: QueryGroupsByAdminResponse, -} as const; - -/** - * GroupPoliciesByGroup queries group policies by group id. - * - * @generated from rpc cosmos.group.v1.Query.GroupPoliciesByGroup - */ -export const QueryGroupPoliciesByGroupService = { - typeName: TYPE_NAME, - method: "GroupPoliciesByGroup", - Request: QueryGroupPoliciesByGroupRequest, - Response: QueryGroupPoliciesByGroupResponse, -} as const; - -/** - * GroupPoliciesByAdmin queries group policies by admin address. - * - * @generated from rpc cosmos.group.v1.Query.GroupPoliciesByAdmin - */ -export const QueryGroupPoliciesByAdminService = { - typeName: TYPE_NAME, - method: "GroupPoliciesByAdmin", - Request: QueryGroupPoliciesByAdminRequest, - Response: QueryGroupPoliciesByAdminResponse, -} as const; - -/** - * Proposal queries a proposal based on proposal id. - * - * @generated from rpc cosmos.group.v1.Query.Proposal - */ -export const QueryProposalService = { - typeName: TYPE_NAME, - method: "Proposal", - Request: QueryProposalRequest, - Response: QueryProposalResponse, -} as const; - -/** - * ProposalsByGroupPolicy queries proposals based on account address of group policy. - * - * @generated from rpc cosmos.group.v1.Query.ProposalsByGroupPolicy - */ -export const QueryProposalsByGroupPolicyService = { - typeName: TYPE_NAME, - method: "ProposalsByGroupPolicy", - Request: QueryProposalsByGroupPolicyRequest, - Response: QueryProposalsByGroupPolicyResponse, -} as const; - -/** - * VoteByProposalVoter queries a vote by proposal id and voter. - * - * @generated from rpc cosmos.group.v1.Query.VoteByProposalVoter - */ -export const QueryVoteByProposalVoterService = { - typeName: TYPE_NAME, - method: "VoteByProposalVoter", - Request: QueryVoteByProposalVoterRequest, - Response: QueryVoteByProposalVoterResponse, -} as const; - -/** - * VotesByProposal queries a vote by proposal id. - * - * @generated from rpc cosmos.group.v1.Query.VotesByProposal - */ -export const QueryVotesByProposalService = { - typeName: TYPE_NAME, - method: "VotesByProposal", - Request: QueryVotesByProposalRequest, - Response: QueryVotesByProposalResponse, -} as const; - -/** - * VotesByVoter queries a vote by voter. - * - * @generated from rpc cosmos.group.v1.Query.VotesByVoter - */ -export const QueryVotesByVoterService = { - typeName: TYPE_NAME, - method: "VotesByVoter", - Request: QueryVotesByVoterRequest, - Response: QueryVotesByVoterResponse, -} as const; - -/** - * GroupsByMember queries groups by member address. - * - * @generated from rpc cosmos.group.v1.Query.GroupsByMember - */ -export const QueryGroupsByMemberService = { - typeName: TYPE_NAME, - method: "GroupsByMember", - Request: QueryGroupsByMemberRequest, - Response: QueryGroupsByMemberResponse, -} as const; - -/** - * TallyResult returns the tally result of a proposal. If the proposal is - * still in voting period, then this query computes the current tally state, - * which might not be final. On the other hand, if the proposal is final, - * then it simply returns the `final_tally_result` state stored in the - * proposal itself. - * - * @generated from rpc cosmos.group.v1.Query.TallyResult - */ -export const QueryTallyResultService = { - typeName: TYPE_NAME, - method: "TallyResult", - Request: QueryTallyResultRequest, - Response: QueryTallyResultResponse, -} as const; - -/** - * Groups queries all groups in state. - * - * Since: cosmos-sdk 0.47.1 - * - * @generated from rpc cosmos.group.v1.Query.Groups - */ -export const QueryGroupsService = { - typeName: TYPE_NAME, - method: "Groups", - Request: QueryGroupsRequest, - Response: QueryGroupsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/group/v1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/group/v1/query_pb.ts deleted file mode 100644 index edd48a7..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/v1/query_pb.ts +++ /dev/null @@ -1,1308 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/group/v1/query.proto (package cosmos.group.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { GroupInfo, GroupMember, GroupPolicyInfo, Proposal, TallyResult, Vote } from "./types_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryGroupInfoRequest is the Query/GroupInfo request type. - * - * @generated from message cosmos.group.v1.QueryGroupInfoRequest - */ -export class QueryGroupInfoRequest extends Message { - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupInfoRequest { - return new QueryGroupInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupInfoRequest { - return new QueryGroupInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupInfoRequest { - return new QueryGroupInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupInfoRequest | PlainMessage | undefined, b: QueryGroupInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupInfoRequest, a, b); - } -} - -/** - * QueryGroupInfoResponse is the Query/GroupInfo response type. - * - * @generated from message cosmos.group.v1.QueryGroupInfoResponse - */ -export class QueryGroupInfoResponse extends Message { - /** - * info is the GroupInfo of the group. - * - * @generated from field: cosmos.group.v1.GroupInfo info = 1; - */ - info?: GroupInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "info", kind: "message", T: GroupInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupInfoResponse { - return new QueryGroupInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupInfoResponse { - return new QueryGroupInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupInfoResponse { - return new QueryGroupInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupInfoResponse | PlainMessage | undefined, b: QueryGroupInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupInfoResponse, a, b); - } -} - -/** - * QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type. - * - * @generated from message cosmos.group.v1.QueryGroupPolicyInfoRequest - */ -export class QueryGroupPolicyInfoRequest extends Message { - /** - * address is the account address of the group policy. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupPolicyInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupPolicyInfoRequest { - return new QueryGroupPolicyInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupPolicyInfoRequest { - return new QueryGroupPolicyInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupPolicyInfoRequest { - return new QueryGroupPolicyInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupPolicyInfoRequest | PlainMessage | undefined, b: QueryGroupPolicyInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupPolicyInfoRequest, a, b); - } -} - -/** - * QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. - * - * @generated from message cosmos.group.v1.QueryGroupPolicyInfoResponse - */ -export class QueryGroupPolicyInfoResponse extends Message { - /** - * info is the GroupPolicyInfo of the group policy. - * - * @generated from field: cosmos.group.v1.GroupPolicyInfo info = 1; - */ - info?: GroupPolicyInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupPolicyInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "info", kind: "message", T: GroupPolicyInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupPolicyInfoResponse { - return new QueryGroupPolicyInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupPolicyInfoResponse { - return new QueryGroupPolicyInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupPolicyInfoResponse { - return new QueryGroupPolicyInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupPolicyInfoResponse | PlainMessage | undefined, b: QueryGroupPolicyInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupPolicyInfoResponse, a, b); - } -} - -/** - * QueryGroupMembersRequest is the Query/GroupMembers request type. - * - * @generated from message cosmos.group.v1.QueryGroupMembersRequest - */ -export class QueryGroupMembersRequest extends Message { - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupMembersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupMembersRequest { - return new QueryGroupMembersRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupMembersRequest { - return new QueryGroupMembersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupMembersRequest { - return new QueryGroupMembersRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupMembersRequest | PlainMessage | undefined, b: QueryGroupMembersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupMembersRequest, a, b); - } -} - -/** - * QueryGroupMembersResponse is the Query/GroupMembersResponse response type. - * - * @generated from message cosmos.group.v1.QueryGroupMembersResponse - */ -export class QueryGroupMembersResponse extends Message { - /** - * members are the members of the group with given group_id. - * - * @generated from field: repeated cosmos.group.v1.GroupMember members = 1; - */ - members: GroupMember[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupMembersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "members", kind: "message", T: GroupMember, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupMembersResponse { - return new QueryGroupMembersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupMembersResponse { - return new QueryGroupMembersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupMembersResponse { - return new QueryGroupMembersResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupMembersResponse | PlainMessage | undefined, b: QueryGroupMembersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupMembersResponse, a, b); - } -} - -/** - * QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type. - * - * @generated from message cosmos.group.v1.QueryGroupsByAdminRequest - */ -export class QueryGroupsByAdminRequest extends Message { - /** - * admin is the account address of a group's admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupsByAdminRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupsByAdminRequest { - return new QueryGroupsByAdminRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupsByAdminRequest { - return new QueryGroupsByAdminRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupsByAdminRequest { - return new QueryGroupsByAdminRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupsByAdminRequest | PlainMessage | undefined, b: QueryGroupsByAdminRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupsByAdminRequest, a, b); - } -} - -/** - * QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type. - * - * @generated from message cosmos.group.v1.QueryGroupsByAdminResponse - */ -export class QueryGroupsByAdminResponse extends Message { - /** - * groups are the groups info with the provided admin. - * - * @generated from field: repeated cosmos.group.v1.GroupInfo groups = 1; - */ - groups: GroupInfo[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupsByAdminResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "groups", kind: "message", T: GroupInfo, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupsByAdminResponse { - return new QueryGroupsByAdminResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupsByAdminResponse { - return new QueryGroupsByAdminResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupsByAdminResponse { - return new QueryGroupsByAdminResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupsByAdminResponse | PlainMessage | undefined, b: QueryGroupsByAdminResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupsByAdminResponse, a, b); - } -} - -/** - * QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type. - * - * @generated from message cosmos.group.v1.QueryGroupPoliciesByGroupRequest - */ -export class QueryGroupPoliciesByGroupRequest extends Message { - /** - * group_id is the unique ID of the group policy's group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupPoliciesByGroupRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupPoliciesByGroupRequest { - return new QueryGroupPoliciesByGroupRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupPoliciesByGroupRequest { - return new QueryGroupPoliciesByGroupRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupPoliciesByGroupRequest { - return new QueryGroupPoliciesByGroupRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupPoliciesByGroupRequest | PlainMessage | undefined, b: QueryGroupPoliciesByGroupRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupPoliciesByGroupRequest, a, b); - } -} - -/** - * QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type. - * - * @generated from message cosmos.group.v1.QueryGroupPoliciesByGroupResponse - */ -export class QueryGroupPoliciesByGroupResponse extends Message { - /** - * group_policies are the group policies info associated with the provided group. - * - * @generated from field: repeated cosmos.group.v1.GroupPolicyInfo group_policies = 1; - */ - groupPolicies: GroupPolicyInfo[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupPoliciesByGroupResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_policies", kind: "message", T: GroupPolicyInfo, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupPoliciesByGroupResponse { - return new QueryGroupPoliciesByGroupResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupPoliciesByGroupResponse { - return new QueryGroupPoliciesByGroupResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupPoliciesByGroupResponse { - return new QueryGroupPoliciesByGroupResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupPoliciesByGroupResponse | PlainMessage | undefined, b: QueryGroupPoliciesByGroupResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupPoliciesByGroupResponse, a, b); - } -} - -/** - * QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type. - * - * @generated from message cosmos.group.v1.QueryGroupPoliciesByAdminRequest - */ -export class QueryGroupPoliciesByAdminRequest extends Message { - /** - * admin is the admin address of the group policy. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupPoliciesByAdminRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupPoliciesByAdminRequest { - return new QueryGroupPoliciesByAdminRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupPoliciesByAdminRequest { - return new QueryGroupPoliciesByAdminRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupPoliciesByAdminRequest { - return new QueryGroupPoliciesByAdminRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupPoliciesByAdminRequest | PlainMessage | undefined, b: QueryGroupPoliciesByAdminRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupPoliciesByAdminRequest, a, b); - } -} - -/** - * QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type. - * - * @generated from message cosmos.group.v1.QueryGroupPoliciesByAdminResponse - */ -export class QueryGroupPoliciesByAdminResponse extends Message { - /** - * group_policies are the group policies info with provided admin. - * - * @generated from field: repeated cosmos.group.v1.GroupPolicyInfo group_policies = 1; - */ - groupPolicies: GroupPolicyInfo[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupPoliciesByAdminResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_policies", kind: "message", T: GroupPolicyInfo, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupPoliciesByAdminResponse { - return new QueryGroupPoliciesByAdminResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupPoliciesByAdminResponse { - return new QueryGroupPoliciesByAdminResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupPoliciesByAdminResponse { - return new QueryGroupPoliciesByAdminResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupPoliciesByAdminResponse | PlainMessage | undefined, b: QueryGroupPoliciesByAdminResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupPoliciesByAdminResponse, a, b); - } -} - -/** - * QueryProposalRequest is the Query/Proposal request type. - * - * @generated from message cosmos.group.v1.QueryProposalRequest - */ -export class QueryProposalRequest extends Message { - /** - * proposal_id is the unique ID of a proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryProposalRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalRequest { - return new QueryProposalRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalRequest | PlainMessage | undefined, b: QueryProposalRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalRequest, a, b); - } -} - -/** - * QueryProposalResponse is the Query/Proposal response type. - * - * @generated from message cosmos.group.v1.QueryProposalResponse - */ -export class QueryProposalResponse extends Message { - /** - * proposal is the proposal info. - * - * @generated from field: cosmos.group.v1.Proposal proposal = 1; - */ - proposal?: Proposal; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal", kind: "message", T: Proposal }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalResponse { - return new QueryProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalResponse | PlainMessage | undefined, b: QueryProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalResponse, a, b); - } -} - -/** - * QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type. - * - * @generated from message cosmos.group.v1.QueryProposalsByGroupPolicyRequest - */ -export class QueryProposalsByGroupPolicyRequest extends Message { - /** - * address is the account address of the group policy related to proposals. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryProposalsByGroupPolicyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsByGroupPolicyRequest { - return new QueryProposalsByGroupPolicyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsByGroupPolicyRequest { - return new QueryProposalsByGroupPolicyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalsByGroupPolicyRequest { - return new QueryProposalsByGroupPolicyRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalsByGroupPolicyRequest | PlainMessage | undefined, b: QueryProposalsByGroupPolicyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalsByGroupPolicyRequest, a, b); - } -} - -/** - * QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type. - * - * @generated from message cosmos.group.v1.QueryProposalsByGroupPolicyResponse - */ -export class QueryProposalsByGroupPolicyResponse extends Message { - /** - * proposals are the proposals with given group policy. - * - * @generated from field: repeated cosmos.group.v1.Proposal proposals = 1; - */ - proposals: Proposal[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryProposalsByGroupPolicyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposals", kind: "message", T: Proposal, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsByGroupPolicyResponse { - return new QueryProposalsByGroupPolicyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsByGroupPolicyResponse { - return new QueryProposalsByGroupPolicyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryProposalsByGroupPolicyResponse { - return new QueryProposalsByGroupPolicyResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryProposalsByGroupPolicyResponse | PlainMessage | undefined, b: QueryProposalsByGroupPolicyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryProposalsByGroupPolicyResponse, a, b); - } -} - -/** - * QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type. - * - * @generated from message cosmos.group.v1.QueryVoteByProposalVoterRequest - */ -export class QueryVoteByProposalVoterRequest extends Message { - /** - * proposal_id is the unique ID of a proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is a proposal voter account address. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryVoteByProposalVoterRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteByProposalVoterRequest { - return new QueryVoteByProposalVoterRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteByProposalVoterRequest { - return new QueryVoteByProposalVoterRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVoteByProposalVoterRequest { - return new QueryVoteByProposalVoterRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVoteByProposalVoterRequest | PlainMessage | undefined, b: QueryVoteByProposalVoterRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVoteByProposalVoterRequest, a, b); - } -} - -/** - * QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. - * - * @generated from message cosmos.group.v1.QueryVoteByProposalVoterResponse - */ -export class QueryVoteByProposalVoterResponse extends Message { - /** - * vote is the vote with given proposal_id and voter. - * - * @generated from field: cosmos.group.v1.Vote vote = 1; - */ - vote?: Vote; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryVoteByProposalVoterResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vote", kind: "message", T: Vote }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteByProposalVoterResponse { - return new QueryVoteByProposalVoterResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteByProposalVoterResponse { - return new QueryVoteByProposalVoterResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVoteByProposalVoterResponse { - return new QueryVoteByProposalVoterResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVoteByProposalVoterResponse | PlainMessage | undefined, b: QueryVoteByProposalVoterResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVoteByProposalVoterResponse, a, b); - } -} - -/** - * QueryVotesByProposalRequest is the Query/VotesByProposal request type. - * - * @generated from message cosmos.group.v1.QueryVotesByProposalRequest - */ -export class QueryVotesByProposalRequest extends Message { - /** - * proposal_id is the unique ID of a proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryVotesByProposalRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesByProposalRequest { - return new QueryVotesByProposalRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesByProposalRequest { - return new QueryVotesByProposalRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesByProposalRequest { - return new QueryVotesByProposalRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesByProposalRequest | PlainMessage | undefined, b: QueryVotesByProposalRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesByProposalRequest, a, b); - } -} - -/** - * QueryVotesByProposalResponse is the Query/VotesByProposal response type. - * - * @generated from message cosmos.group.v1.QueryVotesByProposalResponse - */ -export class QueryVotesByProposalResponse extends Message { - /** - * votes are the list of votes for given proposal_id. - * - * @generated from field: repeated cosmos.group.v1.Vote votes = 1; - */ - votes: Vote[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryVotesByProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "votes", kind: "message", T: Vote, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesByProposalResponse { - return new QueryVotesByProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesByProposalResponse { - return new QueryVotesByProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesByProposalResponse { - return new QueryVotesByProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesByProposalResponse | PlainMessage | undefined, b: QueryVotesByProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesByProposalResponse, a, b); - } -} - -/** - * QueryVotesByVoterRequest is the Query/VotesByVoter request type. - * - * @generated from message cosmos.group.v1.QueryVotesByVoterRequest - */ -export class QueryVotesByVoterRequest extends Message { - /** - * voter is a proposal voter account address. - * - * @generated from field: string voter = 1; - */ - voter = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryVotesByVoterRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesByVoterRequest { - return new QueryVotesByVoterRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesByVoterRequest { - return new QueryVotesByVoterRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesByVoterRequest { - return new QueryVotesByVoterRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesByVoterRequest | PlainMessage | undefined, b: QueryVotesByVoterRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesByVoterRequest, a, b); - } -} - -/** - * QueryVotesByVoterResponse is the Query/VotesByVoter response type. - * - * @generated from message cosmos.group.v1.QueryVotesByVoterResponse - */ -export class QueryVotesByVoterResponse extends Message { - /** - * votes are the list of votes by given voter. - * - * @generated from field: repeated cosmos.group.v1.Vote votes = 1; - */ - votes: Vote[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryVotesByVoterResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "votes", kind: "message", T: Vote, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesByVoterResponse { - return new QueryVotesByVoterResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesByVoterResponse { - return new QueryVotesByVoterResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVotesByVoterResponse { - return new QueryVotesByVoterResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVotesByVoterResponse | PlainMessage | undefined, b: QueryVotesByVoterResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVotesByVoterResponse, a, b); - } -} - -/** - * QueryGroupsByMemberRequest is the Query/GroupsByMember request type. - * - * @generated from message cosmos.group.v1.QueryGroupsByMemberRequest - */ -export class QueryGroupsByMemberRequest extends Message { - /** - * address is the group member address. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupsByMemberRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupsByMemberRequest { - return new QueryGroupsByMemberRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupsByMemberRequest { - return new QueryGroupsByMemberRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupsByMemberRequest { - return new QueryGroupsByMemberRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupsByMemberRequest | PlainMessage | undefined, b: QueryGroupsByMemberRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupsByMemberRequest, a, b); - } -} - -/** - * QueryGroupsByMemberResponse is the Query/GroupsByMember response type. - * - * @generated from message cosmos.group.v1.QueryGroupsByMemberResponse - */ -export class QueryGroupsByMemberResponse extends Message { - /** - * groups are the groups info with the provided group member. - * - * @generated from field: repeated cosmos.group.v1.GroupInfo groups = 1; - */ - groups: GroupInfo[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupsByMemberResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "groups", kind: "message", T: GroupInfo, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupsByMemberResponse { - return new QueryGroupsByMemberResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupsByMemberResponse { - return new QueryGroupsByMemberResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupsByMemberResponse { - return new QueryGroupsByMemberResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupsByMemberResponse | PlainMessage | undefined, b: QueryGroupsByMemberResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupsByMemberResponse, a, b); - } -} - -/** - * QueryTallyResultRequest is the Query/TallyResult request type. - * - * @generated from message cosmos.group.v1.QueryTallyResultRequest - */ -export class QueryTallyResultRequest extends Message { - /** - * proposal_id is the unique id of a proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryTallyResultRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest { - return new QueryTallyResultRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTallyResultRequest, a, b); - } -} - -/** - * QueryTallyResultResponse is the Query/TallyResult response type. - * - * @generated from message cosmos.group.v1.QueryTallyResultResponse - */ -export class QueryTallyResultResponse extends Message { - /** - * tally defines the requested tally. - * - * @generated from field: cosmos.group.v1.TallyResult tally = 1; - */ - tally?: TallyResult; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryTallyResultResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tally", kind: "message", T: TallyResult }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse { - return new QueryTallyResultResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTallyResultResponse, a, b); - } -} - -/** - * QueryGroupsRequest is the Query/Groups request type. - * - * Since: cosmos-sdk 0.47.1 - * - * @generated from message cosmos.group.v1.QueryGroupsRequest - */ -export class QueryGroupsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupsRequest { - return new QueryGroupsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupsRequest { - return new QueryGroupsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupsRequest { - return new QueryGroupsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupsRequest | PlainMessage | undefined, b: QueryGroupsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupsRequest, a, b); - } -} - -/** - * QueryGroupsResponse is the Query/Groups response type. - * - * Since: cosmos-sdk 0.47.1 - * - * @generated from message cosmos.group.v1.QueryGroupsResponse - */ -export class QueryGroupsResponse extends Message { - /** - * `groups` is all the groups present in state. - * - * @generated from field: repeated cosmos.group.v1.GroupInfo groups = 1; - */ - groups: GroupInfo[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.QueryGroupsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "groups", kind: "message", T: GroupInfo, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupsResponse { - return new QueryGroupsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupsResponse { - return new QueryGroupsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupsResponse { - return new QueryGroupsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupsResponse | PlainMessage | undefined, b: QueryGroupsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/group/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/group/v1/tx_cosmes.ts deleted file mode 100644 index 8598aa1..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/v1/tx_cosmes.ts +++ /dev/null @@ -1,179 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/group/v1/tx.proto (package cosmos.group.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCreateGroup, MsgCreateGroupPolicy, MsgCreateGroupPolicyResponse, MsgCreateGroupResponse, MsgCreateGroupWithPolicy, MsgCreateGroupWithPolicyResponse, MsgExec, MsgExecResponse, MsgLeaveGroup, MsgLeaveGroupResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgUpdateGroupAdmin, MsgUpdateGroupAdminResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyAdminResponse, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupPolicyDecisionPolicyResponse, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, MsgVote, MsgVoteResponse, MsgWithdrawProposal, MsgWithdrawProposalResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.group.v1.Msg"; - -/** - * CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. - * - * @generated from rpc cosmos.group.v1.Msg.CreateGroup - */ -export const MsgCreateGroupService = { - typeName: TYPE_NAME, - method: "CreateGroup", - Request: MsgCreateGroup, - Response: MsgCreateGroupResponse, -} as const; - -/** - * UpdateGroupMembers updates the group members with given group id and admin address. - * - * @generated from rpc cosmos.group.v1.Msg.UpdateGroupMembers - */ -export const MsgUpdateGroupMembersService = { - typeName: TYPE_NAME, - method: "UpdateGroupMembers", - Request: MsgUpdateGroupMembers, - Response: MsgUpdateGroupMembersResponse, -} as const; - -/** - * UpdateGroupAdmin updates the group admin with given group id and previous admin address. - * - * @generated from rpc cosmos.group.v1.Msg.UpdateGroupAdmin - */ -export const MsgUpdateGroupAdminService = { - typeName: TYPE_NAME, - method: "UpdateGroupAdmin", - Request: MsgUpdateGroupAdmin, - Response: MsgUpdateGroupAdminResponse, -} as const; - -/** - * UpdateGroupMetadata updates the group metadata with given group id and admin address. - * - * @generated from rpc cosmos.group.v1.Msg.UpdateGroupMetadata - */ -export const MsgUpdateGroupMetadataService = { - typeName: TYPE_NAME, - method: "UpdateGroupMetadata", - Request: MsgUpdateGroupMetadata, - Response: MsgUpdateGroupMetadataResponse, -} as const; - -/** - * CreateGroupPolicy creates a new group policy using given DecisionPolicy. - * - * @generated from rpc cosmos.group.v1.Msg.CreateGroupPolicy - */ -export const MsgCreateGroupPolicyService = { - typeName: TYPE_NAME, - method: "CreateGroupPolicy", - Request: MsgCreateGroupPolicy, - Response: MsgCreateGroupPolicyResponse, -} as const; - -/** - * CreateGroupWithPolicy creates a new group with policy. - * - * @generated from rpc cosmos.group.v1.Msg.CreateGroupWithPolicy - */ -export const MsgCreateGroupWithPolicyService = { - typeName: TYPE_NAME, - method: "CreateGroupWithPolicy", - Request: MsgCreateGroupWithPolicy, - Response: MsgCreateGroupWithPolicyResponse, -} as const; - -/** - * UpdateGroupPolicyAdmin updates a group policy admin. - * - * @generated from rpc cosmos.group.v1.Msg.UpdateGroupPolicyAdmin - */ -export const MsgUpdateGroupPolicyAdminService = { - typeName: TYPE_NAME, - method: "UpdateGroupPolicyAdmin", - Request: MsgUpdateGroupPolicyAdmin, - Response: MsgUpdateGroupPolicyAdminResponse, -} as const; - -/** - * UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. - * - * @generated from rpc cosmos.group.v1.Msg.UpdateGroupPolicyDecisionPolicy - */ -export const MsgUpdateGroupPolicyDecisionPolicyService = { - typeName: TYPE_NAME, - method: "UpdateGroupPolicyDecisionPolicy", - Request: MsgUpdateGroupPolicyDecisionPolicy, - Response: MsgUpdateGroupPolicyDecisionPolicyResponse, -} as const; - -/** - * UpdateGroupPolicyMetadata updates a group policy metadata. - * - * @generated from rpc cosmos.group.v1.Msg.UpdateGroupPolicyMetadata - */ -export const MsgUpdateGroupPolicyMetadataService = { - typeName: TYPE_NAME, - method: "UpdateGroupPolicyMetadata", - Request: MsgUpdateGroupPolicyMetadata, - Response: MsgUpdateGroupPolicyMetadataResponse, -} as const; - -/** - * SubmitProposal submits a new proposal. - * - * @generated from rpc cosmos.group.v1.Msg.SubmitProposal - */ -export const MsgSubmitProposalService = { - typeName: TYPE_NAME, - method: "SubmitProposal", - Request: MsgSubmitProposal, - Response: MsgSubmitProposalResponse, -} as const; - -/** - * WithdrawProposal withdraws a proposal. - * - * @generated from rpc cosmos.group.v1.Msg.WithdrawProposal - */ -export const MsgWithdrawProposalService = { - typeName: TYPE_NAME, - method: "WithdrawProposal", - Request: MsgWithdrawProposal, - Response: MsgWithdrawProposalResponse, -} as const; - -/** - * Vote allows a voter to vote on a proposal. - * - * @generated from rpc cosmos.group.v1.Msg.Vote - */ -export const MsgVoteService = { - typeName: TYPE_NAME, - method: "Vote", - Request: MsgVote, - Response: MsgVoteResponse, -} as const; - -/** - * Exec executes a proposal. - * - * @generated from rpc cosmos.group.v1.Msg.Exec - */ -export const MsgExecService = { - typeName: TYPE_NAME, - method: "Exec", - Request: MsgExec, - Response: MsgExecResponse, -} as const; - -/** - * LeaveGroup allows a group member to leave the group. - * - * @generated from rpc cosmos.group.v1.Msg.LeaveGroup - */ -export const MsgLeaveGroupService = { - typeName: TYPE_NAME, - method: "LeaveGroup", - Request: MsgLeaveGroup, - Response: MsgLeaveGroupResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/group/v1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/group/v1/tx_pb.ts deleted file mode 100644 index c1a1065..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/v1/tx_pb.ts +++ /dev/null @@ -1,1415 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/group/v1/tx.proto (package cosmos.group.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { MemberRequest, ProposalExecutorResult, VoteOption } from "./types_pb.js"; - -/** - * Exec defines modes of execution of a proposal on creation or on new vote. - * - * @generated from enum cosmos.group.v1.Exec - */ -export enum Exec { - /** - * An empty value means that there should be a separate - * MsgExec request for the proposal to execute. - * - * @generated from enum value: EXEC_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * Try to execute the proposal immediately. - * If the proposal is not allowed per the DecisionPolicy, - * the proposal will still be open and could - * be executed at a later point. - * - * @generated from enum value: EXEC_TRY = 1; - */ - TRY = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(Exec) -proto3.util.setEnumType(Exec, "cosmos.group.v1.Exec", [ - { no: 0, name: "EXEC_UNSPECIFIED" }, - { no: 1, name: "EXEC_TRY" }, -]); - -/** - * MsgCreateGroup is the Msg/CreateGroup request type. - * - * @generated from message cosmos.group.v1.MsgCreateGroup - */ -export class MsgCreateGroup extends Message { - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * members defines the group members. - * - * @generated from field: repeated cosmos.group.v1.MemberRequest members = 2; - */ - members: MemberRequest[] = []; - - /** - * metadata is any arbitrary metadata to attached to the group. - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgCreateGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "members", kind: "message", T: MemberRequest, repeated: true }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroup { - return new MsgCreateGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroup { - return new MsgCreateGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroup { - return new MsgCreateGroup().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroup | PlainMessage | undefined, b: MsgCreateGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroup, a, b); - } -} - -/** - * MsgCreateGroupResponse is the Msg/CreateGroup response type. - * - * @generated from message cosmos.group.v1.MsgCreateGroupResponse - */ -export class MsgCreateGroupResponse extends Message { - /** - * group_id is the unique ID of the newly created group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgCreateGroupResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupResponse { - return new MsgCreateGroupResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupResponse { - return new MsgCreateGroupResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupResponse { - return new MsgCreateGroupResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroupResponse | PlainMessage | undefined, b: MsgCreateGroupResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroupResponse, a, b); - } -} - -/** - * MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupMembers - */ -export class MsgUpdateGroupMembers extends Message { - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 2; - */ - groupId = protoInt64.zero; - - /** - * member_updates is the list of members to update, - * set weight to 0 to remove a member. - * - * @generated from field: repeated cosmos.group.v1.MemberRequest member_updates = 3; - */ - memberUpdates: MemberRequest[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMembers"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "member_updates", kind: "message", T: MemberRequest, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMembers { - return new MsgUpdateGroupMembers().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMembers { - return new MsgUpdateGroupMembers().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMembers { - return new MsgUpdateGroupMembers().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupMembers | PlainMessage | undefined, b: MsgUpdateGroupMembers | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupMembers, a, b); - } -} - -/** - * MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupMembersResponse - */ -export class MsgUpdateGroupMembersResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMembersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMembersResponse { - return new MsgUpdateGroupMembersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMembersResponse { - return new MsgUpdateGroupMembersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMembersResponse { - return new MsgUpdateGroupMembersResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupMembersResponse | PlainMessage | undefined, b: MsgUpdateGroupMembersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupMembersResponse, a, b); - } -} - -/** - * MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupAdmin - */ -export class MsgUpdateGroupAdmin extends Message { - /** - * admin is the current account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 2; - */ - groupId = protoInt64.zero; - - /** - * new_admin is the group new admin account address. - * - * @generated from field: string new_admin = 3; - */ - newAdmin = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupAdmin"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupAdmin { - return new MsgUpdateGroupAdmin().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupAdmin { - return new MsgUpdateGroupAdmin().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupAdmin { - return new MsgUpdateGroupAdmin().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupAdmin | PlainMessage | undefined, b: MsgUpdateGroupAdmin | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupAdmin, a, b); - } -} - -/** - * MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupAdminResponse - */ -export class MsgUpdateGroupAdminResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupAdminResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupAdminResponse { - return new MsgUpdateGroupAdminResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupAdminResponse { - return new MsgUpdateGroupAdminResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupAdminResponse { - return new MsgUpdateGroupAdminResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupAdminResponse | PlainMessage | undefined, b: MsgUpdateGroupAdminResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupAdminResponse, a, b); - } -} - -/** - * MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupMetadata - */ -export class MsgUpdateGroupMetadata extends Message { - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 2; - */ - groupId = protoInt64.zero; - - /** - * metadata is the updated group's metadata. - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMetadata { - return new MsgUpdateGroupMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMetadata { - return new MsgUpdateGroupMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMetadata { - return new MsgUpdateGroupMetadata().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupMetadata | PlainMessage | undefined, b: MsgUpdateGroupMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupMetadata, a, b); - } -} - -/** - * MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupMetadataResponse - */ -export class MsgUpdateGroupMetadataResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupMetadataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupMetadataResponse { - return new MsgUpdateGroupMetadataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupMetadataResponse { - return new MsgUpdateGroupMetadataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupMetadataResponse { - return new MsgUpdateGroupMetadataResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupMetadataResponse | PlainMessage | undefined, b: MsgUpdateGroupMetadataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupMetadataResponse, a, b); - } -} - -/** - * MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. - * - * @generated from message cosmos.group.v1.MsgCreateGroupPolicy - */ -export class MsgCreateGroupPolicy extends Message { - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 2; - */ - groupId = protoInt64.zero; - - /** - * metadata is any arbitrary metadata attached to the group policy. - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - /** - * decision_policy specifies the group policy's decision policy. - * - * @generated from field: google.protobuf.Any decision_policy = 4; - */ - decisionPolicy?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgCreateGroupPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "decision_policy", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupPolicy { - return new MsgCreateGroupPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupPolicy { - return new MsgCreateGroupPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupPolicy { - return new MsgCreateGroupPolicy().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroupPolicy | PlainMessage | undefined, b: MsgCreateGroupPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroupPolicy, a, b); - } -} - -/** - * MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. - * - * @generated from message cosmos.group.v1.MsgCreateGroupPolicyResponse - */ -export class MsgCreateGroupPolicyResponse extends Message { - /** - * address is the account address of the newly created group policy. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgCreateGroupPolicyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupPolicyResponse { - return new MsgCreateGroupPolicyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupPolicyResponse { - return new MsgCreateGroupPolicyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupPolicyResponse { - return new MsgCreateGroupPolicyResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroupPolicyResponse | PlainMessage | undefined, b: MsgCreateGroupPolicyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroupPolicyResponse, a, b); - } -} - -/** - * MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyAdmin - */ -export class MsgUpdateGroupPolicyAdmin extends Message { - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * group_policy_address is the account address of the group policy. - * - * @generated from field: string group_policy_address = 2; - */ - groupPolicyAddress = ""; - - /** - * new_admin is the new group policy admin. - * - * @generated from field: string new_admin = 3; - */ - newAdmin = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyAdmin"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyAdmin { - return new MsgUpdateGroupPolicyAdmin().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyAdmin { - return new MsgUpdateGroupPolicyAdmin().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyAdmin { - return new MsgUpdateGroupPolicyAdmin().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupPolicyAdmin | PlainMessage | undefined, b: MsgUpdateGroupPolicyAdmin | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupPolicyAdmin, a, b); - } -} - -/** - * MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse - */ -export class MsgUpdateGroupPolicyAdminResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyAdminResponse { - return new MsgUpdateGroupPolicyAdminResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyAdminResponse { - return new MsgUpdateGroupPolicyAdminResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyAdminResponse { - return new MsgUpdateGroupPolicyAdminResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupPolicyAdminResponse | PlainMessage | undefined, b: MsgUpdateGroupPolicyAdminResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupPolicyAdminResponse, a, b); - } -} - -/** - * MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. - * - * @generated from message cosmos.group.v1.MsgCreateGroupWithPolicy - */ -export class MsgCreateGroupWithPolicy extends Message { - /** - * admin is the account address of the group and group policy admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * members defines the group members. - * - * @generated from field: repeated cosmos.group.v1.MemberRequest members = 2; - */ - members: MemberRequest[] = []; - - /** - * group_metadata is any arbitrary metadata attached to the group. - * - * @generated from field: string group_metadata = 3; - */ - groupMetadata = ""; - - /** - * group_policy_metadata is any arbitrary metadata attached to the group policy. - * - * @generated from field: string group_policy_metadata = 4; - */ - groupPolicyMetadata = ""; - - /** - * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group - * and group policy admin. - * - * @generated from field: bool group_policy_as_admin = 5; - */ - groupPolicyAsAdmin = false; - - /** - * decision_policy specifies the group policy's decision policy. - * - * @generated from field: google.protobuf.Any decision_policy = 6; - */ - decisionPolicy?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgCreateGroupWithPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "members", kind: "message", T: MemberRequest, repeated: true }, - { no: 3, name: "group_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "group_policy_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "group_policy_as_admin", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "decision_policy", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupWithPolicy { - return new MsgCreateGroupWithPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupWithPolicy { - return new MsgCreateGroupWithPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupWithPolicy { - return new MsgCreateGroupWithPolicy().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroupWithPolicy | PlainMessage | undefined, b: MsgCreateGroupWithPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroupWithPolicy, a, b); - } -} - -/** - * MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. - * - * @generated from message cosmos.group.v1.MsgCreateGroupWithPolicyResponse - */ -export class MsgCreateGroupWithPolicyResponse extends Message { - /** - * group_id is the unique ID of the newly created group with policy. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - /** - * group_policy_address is the account address of the newly created group policy. - * - * @generated from field: string group_policy_address = 2; - */ - groupPolicyAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgCreateGroupWithPolicyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupWithPolicyResponse { - return new MsgCreateGroupWithPolicyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupWithPolicyResponse { - return new MsgCreateGroupWithPolicyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupWithPolicyResponse { - return new MsgCreateGroupWithPolicyResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroupWithPolicyResponse | PlainMessage | undefined, b: MsgCreateGroupWithPolicyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroupWithPolicyResponse, a, b); - } -} - -/** - * MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy - */ -export class MsgUpdateGroupPolicyDecisionPolicy extends Message { - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * group_policy_address is the account address of group policy. - * - * @generated from field: string group_policy_address = 2; - */ - groupPolicyAddress = ""; - - /** - * decision_policy is the updated group policy's decision policy. - * - * @generated from field: google.protobuf.Any decision_policy = 3; - */ - decisionPolicy?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "decision_policy", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyDecisionPolicy { - return new MsgUpdateGroupPolicyDecisionPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyDecisionPolicy { - return new MsgUpdateGroupPolicyDecisionPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyDecisionPolicy { - return new MsgUpdateGroupPolicyDecisionPolicy().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupPolicyDecisionPolicy | PlainMessage | undefined, b: MsgUpdateGroupPolicyDecisionPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupPolicyDecisionPolicy, a, b); - } -} - -/** - * MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse - */ -export class MsgUpdateGroupPolicyDecisionPolicyResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { - return new MsgUpdateGroupPolicyDecisionPolicyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { - return new MsgUpdateGroupPolicyDecisionPolicyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyDecisionPolicyResponse { - return new MsgUpdateGroupPolicyDecisionPolicyResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupPolicyDecisionPolicyResponse | PlainMessage | undefined, b: MsgUpdateGroupPolicyDecisionPolicyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupPolicyDecisionPolicyResponse, a, b); - } -} - -/** - * MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyMetadata - */ -export class MsgUpdateGroupPolicyMetadata extends Message { - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * group_policy_address is the account address of group policy. - * - * @generated from field: string group_policy_address = 2; - */ - groupPolicyAddress = ""; - - /** - * metadata is the group policy metadata to be updated. - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyMetadata { - return new MsgUpdateGroupPolicyMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyMetadata { - return new MsgUpdateGroupPolicyMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyMetadata { - return new MsgUpdateGroupPolicyMetadata().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupPolicyMetadata | PlainMessage | undefined, b: MsgUpdateGroupPolicyMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupPolicyMetadata, a, b); - } -} - -/** - * MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. - * - * @generated from message cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse - */ -export class MsgUpdateGroupPolicyMetadataResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateGroupPolicyMetadataResponse { - return new MsgUpdateGroupPolicyMetadataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateGroupPolicyMetadataResponse { - return new MsgUpdateGroupPolicyMetadataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateGroupPolicyMetadataResponse { - return new MsgUpdateGroupPolicyMetadataResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateGroupPolicyMetadataResponse | PlainMessage | undefined, b: MsgUpdateGroupPolicyMetadataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateGroupPolicyMetadataResponse, a, b); - } -} - -/** - * MsgSubmitProposal is the Msg/SubmitProposal request type. - * - * @generated from message cosmos.group.v1.MsgSubmitProposal - */ -export class MsgSubmitProposal extends Message { - /** - * group_policy_address is the account address of group policy. - * - * @generated from field: string group_policy_address = 1; - */ - groupPolicyAddress = ""; - - /** - * proposers are the account addresses of the proposers. - * Proposers signatures will be counted as yes votes. - * - * @generated from field: repeated string proposers = 2; - */ - proposers: string[] = []; - - /** - * metadata is any arbitrary metadata attached to the proposal. - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - /** - * messages is a list of `sdk.Msg`s that will be executed if the proposal passes. - * - * @generated from field: repeated google.protobuf.Any messages = 4; - */ - messages: Any[] = []; - - /** - * exec defines the mode of execution of the proposal, - * whether it should be executed immediately on creation or not. - * If so, proposers signatures are considered as Yes votes. - * - * @generated from field: cosmos.group.v1.Exec exec = 5; - */ - exec = Exec.UNSPECIFIED; - - /** - * title is the title of the proposal. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string title = 6; - */ - title = ""; - - /** - * summary is the summary of the proposal. - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string summary = 7; - */ - summary = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgSubmitProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "proposers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "messages", kind: "message", T: Any, repeated: true }, - { no: 5, name: "exec", kind: "enum", T: proto3.getEnumType(Exec) }, - { no: 6, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposal { - return new MsgSubmitProposal().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitProposal | PlainMessage | undefined, b: MsgSubmitProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitProposal, a, b); - } -} - -/** - * MsgSubmitProposalResponse is the Msg/SubmitProposal response type. - * - * @generated from message cosmos.group.v1.MsgSubmitProposalResponse - */ -export class MsgSubmitProposalResponse extends Message { - /** - * proposal is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgSubmitProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitProposalResponse { - return new MsgSubmitProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitProposalResponse | PlainMessage | undefined, b: MsgSubmitProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitProposalResponse, a, b); - } -} - -/** - * MsgWithdrawProposal is the Msg/WithdrawProposal request type. - * - * @generated from message cosmos.group.v1.MsgWithdrawProposal - */ -export class MsgWithdrawProposal extends Message { - /** - * proposal is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * address is the admin of the group policy or one of the proposer of the proposal. - * - * @generated from field: string address = 2; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgWithdrawProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawProposal { - return new MsgWithdrawProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawProposal { - return new MsgWithdrawProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawProposal { - return new MsgWithdrawProposal().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawProposal | PlainMessage | undefined, b: MsgWithdrawProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawProposal, a, b); - } -} - -/** - * MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. - * - * @generated from message cosmos.group.v1.MsgWithdrawProposalResponse - */ -export class MsgWithdrawProposalResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgWithdrawProposalResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawProposalResponse { - return new MsgWithdrawProposalResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawProposalResponse { - return new MsgWithdrawProposalResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawProposalResponse { - return new MsgWithdrawProposalResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawProposalResponse | PlainMessage | undefined, b: MsgWithdrawProposalResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawProposalResponse, a, b); - } -} - -/** - * MsgVote is the Msg/Vote request type. - * - * @generated from message cosmos.group.v1.MsgVote - */ -export class MsgVote extends Message { - /** - * proposal is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the voter account address. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * option is the voter's choice on the proposal. - * - * @generated from field: cosmos.group.v1.VoteOption option = 3; - */ - option = VoteOption.UNSPECIFIED; - - /** - * metadata is any arbitrary metadata attached to the vote. - * - * @generated from field: string metadata = 4; - */ - metadata = ""; - - /** - * exec defines whether the proposal should be executed - * immediately after voting or not. - * - * @generated from field: cosmos.group.v1.Exec exec = 5; - */ - exec = Exec.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgVote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "exec", kind: "enum", T: proto3.getEnumType(Exec) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVote { - return new MsgVote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVote { - return new MsgVote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVote { - return new MsgVote().fromJsonString(jsonString, options); - } - - static equals(a: MsgVote | PlainMessage | undefined, b: MsgVote | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVote, a, b); - } -} - -/** - * MsgVoteResponse is the Msg/Vote response type. - * - * @generated from message cosmos.group.v1.MsgVoteResponse - */ -export class MsgVoteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgVoteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgVoteResponse { - return new MsgVoteResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgVoteResponse | PlainMessage | undefined, b: MsgVoteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgVoteResponse, a, b); - } -} - -/** - * MsgExec is the Msg/Exec request type. - * - * @generated from message cosmos.group.v1.MsgExec - */ -export class MsgExec extends Message { - /** - * proposal is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * executor is the account address used to execute the proposal. - * - * @generated from field: string executor = 2; - */ - executor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgExec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "executor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExec { - return new MsgExec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExec { - return new MsgExec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExec { - return new MsgExec().fromJsonString(jsonString, options); - } - - static equals(a: MsgExec | PlainMessage | undefined, b: MsgExec | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExec, a, b); - } -} - -/** - * MsgExecResponse is the Msg/Exec request type. - * - * @generated from message cosmos.group.v1.MsgExecResponse - */ -export class MsgExecResponse extends Message { - /** - * result is the final result of the proposal execution. - * - * @generated from field: cosmos.group.v1.ProposalExecutorResult result = 2; - */ - result = ProposalExecutorResult.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgExecResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "result", kind: "enum", T: proto3.getEnumType(ProposalExecutorResult) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecResponse { - return new MsgExecResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecResponse | PlainMessage | undefined, b: MsgExecResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecResponse, a, b); - } -} - -/** - * MsgLeaveGroup is the Msg/LeaveGroup request type. - * - * @generated from message cosmos.group.v1.MsgLeaveGroup - */ -export class MsgLeaveGroup extends Message { - /** - * address is the account address of the group member. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 2; - */ - groupId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgLeaveGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLeaveGroup { - return new MsgLeaveGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLeaveGroup { - return new MsgLeaveGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLeaveGroup { - return new MsgLeaveGroup().fromJsonString(jsonString, options); - } - - static equals(a: MsgLeaveGroup | PlainMessage | undefined, b: MsgLeaveGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLeaveGroup, a, b); - } -} - -/** - * MsgLeaveGroupResponse is the Msg/LeaveGroup response type. - * - * @generated from message cosmos.group.v1.MsgLeaveGroupResponse - */ -export class MsgLeaveGroupResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MsgLeaveGroupResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLeaveGroupResponse { - return new MsgLeaveGroupResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLeaveGroupResponse { - return new MsgLeaveGroupResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLeaveGroupResponse { - return new MsgLeaveGroupResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgLeaveGroupResponse | PlainMessage | undefined, b: MsgLeaveGroupResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLeaveGroupResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/group/v1/types_pb.ts b/libs/es-client/src/protobufs/cosmos/group/v1/types_pb.ts deleted file mode 100644 index f6b0605..0000000 --- a/libs/es-client/src/protobufs/cosmos/group/v1/types_pb.ts +++ /dev/null @@ -1,990 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/group/v1/types.proto (package cosmos.group.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * VoteOption enumerates the valid vote options for a given proposal. - * - * @generated from enum cosmos.group.v1.VoteOption - */ -export enum VoteOption { - /** - * VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will - * return an error. - * - * @generated from enum value: VOTE_OPTION_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * VOTE_OPTION_YES defines a yes vote option. - * - * @generated from enum value: VOTE_OPTION_YES = 1; - */ - YES = 1, - - /** - * VOTE_OPTION_ABSTAIN defines an abstain vote option. - * - * @generated from enum value: VOTE_OPTION_ABSTAIN = 2; - */ - ABSTAIN = 2, - - /** - * VOTE_OPTION_NO defines a no vote option. - * - * @generated from enum value: VOTE_OPTION_NO = 3; - */ - NO = 3, - - /** - * VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - * - * @generated from enum value: VOTE_OPTION_NO_WITH_VETO = 4; - */ - NO_WITH_VETO = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(VoteOption) -proto3.util.setEnumType(VoteOption, "cosmos.group.v1.VoteOption", [ - { no: 0, name: "VOTE_OPTION_UNSPECIFIED" }, - { no: 1, name: "VOTE_OPTION_YES" }, - { no: 2, name: "VOTE_OPTION_ABSTAIN" }, - { no: 3, name: "VOTE_OPTION_NO" }, - { no: 4, name: "VOTE_OPTION_NO_WITH_VETO" }, -]); - -/** - * ProposalStatus defines proposal statuses. - * - * @generated from enum cosmos.group.v1.ProposalStatus - */ -export enum ProposalStatus { - /** - * An empty value is invalid and not allowed. - * - * @generated from enum value: PROPOSAL_STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * Initial status of a proposal when submitted. - * - * @generated from enum value: PROPOSAL_STATUS_SUBMITTED = 1; - */ - SUBMITTED = 1, - - /** - * Final status of a proposal when the final tally is done and the outcome - * passes the group policy's decision policy. - * - * @generated from enum value: PROPOSAL_STATUS_ACCEPTED = 2; - */ - ACCEPTED = 2, - - /** - * Final status of a proposal when the final tally is done and the outcome - * is rejected by the group policy's decision policy. - * - * @generated from enum value: PROPOSAL_STATUS_REJECTED = 3; - */ - REJECTED = 3, - - /** - * Final status of a proposal when the group policy is modified before the - * final tally. - * - * @generated from enum value: PROPOSAL_STATUS_ABORTED = 4; - */ - ABORTED = 4, - - /** - * A proposal can be withdrawn before the voting start time by the owner. - * When this happens the final status is Withdrawn. - * - * @generated from enum value: PROPOSAL_STATUS_WITHDRAWN = 5; - */ - WITHDRAWN = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ProposalStatus) -proto3.util.setEnumType(ProposalStatus, "cosmos.group.v1.ProposalStatus", [ - { no: 0, name: "PROPOSAL_STATUS_UNSPECIFIED" }, - { no: 1, name: "PROPOSAL_STATUS_SUBMITTED" }, - { no: 2, name: "PROPOSAL_STATUS_ACCEPTED" }, - { no: 3, name: "PROPOSAL_STATUS_REJECTED" }, - { no: 4, name: "PROPOSAL_STATUS_ABORTED" }, - { no: 5, name: "PROPOSAL_STATUS_WITHDRAWN" }, -]); - -/** - * ProposalExecutorResult defines types of proposal executor results. - * - * @generated from enum cosmos.group.v1.ProposalExecutorResult - */ -export enum ProposalExecutorResult { - /** - * An empty value is not allowed. - * - * @generated from enum value: PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * We have not yet run the executor. - * - * @generated from enum value: PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1; - */ - NOT_RUN = 1, - - /** - * The executor was successful and proposed action updated state. - * - * @generated from enum value: PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2; - */ - SUCCESS = 2, - - /** - * The executor returned an error and proposed action didn't update state. - * - * @generated from enum value: PROPOSAL_EXECUTOR_RESULT_FAILURE = 3; - */ - FAILURE = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(ProposalExecutorResult) -proto3.util.setEnumType(ProposalExecutorResult, "cosmos.group.v1.ProposalExecutorResult", [ - { no: 0, name: "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED" }, - { no: 1, name: "PROPOSAL_EXECUTOR_RESULT_NOT_RUN" }, - { no: 2, name: "PROPOSAL_EXECUTOR_RESULT_SUCCESS" }, - { no: 3, name: "PROPOSAL_EXECUTOR_RESULT_FAILURE" }, -]); - -/** - * Member represents a group member with an account address, - * non-zero weight, metadata and added_at timestamp. - * - * @generated from message cosmos.group.v1.Member - */ -export class Member extends Message { - /** - * address is the member's account address. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * weight is the member's voting weight that should be greater than 0. - * - * @generated from field: string weight = 2; - */ - weight = ""; - - /** - * metadata is any arbitrary metadata attached to the member. - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - /** - * added_at is a timestamp specifying when a member was added. - * - * @generated from field: google.protobuf.Timestamp added_at = 4; - */ - addedAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.Member"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "added_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Member { - return new Member().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Member { - return new Member().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Member { - return new Member().fromJsonString(jsonString, options); - } - - static equals(a: Member | PlainMessage | undefined, b: Member | PlainMessage | undefined): boolean { - return proto3.util.equals(Member, a, b); - } -} - -/** - * MemberRequest represents a group member to be used in Msg server requests. - * Contrary to `Member`, it doesn't have any `added_at` field - * since this field cannot be set as part of requests. - * - * @generated from message cosmos.group.v1.MemberRequest - */ -export class MemberRequest extends Message { - /** - * address is the member's account address. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * weight is the member's voting weight that should be greater than 0. - * - * @generated from field: string weight = 2; - */ - weight = ""; - - /** - * metadata is any arbitrary metadata attached to the member. - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.MemberRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MemberRequest { - return new MemberRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MemberRequest { - return new MemberRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MemberRequest { - return new MemberRequest().fromJsonString(jsonString, options); - } - - static equals(a: MemberRequest | PlainMessage | undefined, b: MemberRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(MemberRequest, a, b); - } -} - -/** - * ThresholdDecisionPolicy is a decision policy where a proposal passes when it - * satisfies the two following conditions: - * 1. The sum of all `YES` voter's weights is greater or equal than the defined - * `threshold`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - * - * @generated from message cosmos.group.v1.ThresholdDecisionPolicy - */ -export class ThresholdDecisionPolicy extends Message { - /** - * threshold is the minimum weighted sum of `YES` votes that must be met or - * exceeded for a proposal to succeed. - * - * @generated from field: string threshold = 1; - */ - threshold = ""; - - /** - * windows defines the different windows for voting and execution. - * - * @generated from field: cosmos.group.v1.DecisionPolicyWindows windows = 2; - */ - windows?: DecisionPolicyWindows; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.ThresholdDecisionPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "windows", kind: "message", T: DecisionPolicyWindows }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ThresholdDecisionPolicy { - return new ThresholdDecisionPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ThresholdDecisionPolicy { - return new ThresholdDecisionPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ThresholdDecisionPolicy { - return new ThresholdDecisionPolicy().fromJsonString(jsonString, options); - } - - static equals(a: ThresholdDecisionPolicy | PlainMessage | undefined, b: ThresholdDecisionPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(ThresholdDecisionPolicy, a, b); - } -} - -/** - * PercentageDecisionPolicy is a decision policy where a proposal passes when - * it satisfies the two following conditions: - * 1. The percentage of all `YES` voters' weights out of the total group weight - * is greater or equal than the given `percentage`. - * 2. The voting and execution periods of the proposal respect the parameters - * given by `windows`. - * - * @generated from message cosmos.group.v1.PercentageDecisionPolicy - */ -export class PercentageDecisionPolicy extends Message { - /** - * percentage is the minimum percentage of the weighted sum of `YES` votes must - * meet for a proposal to succeed. - * - * @generated from field: string percentage = 1; - */ - percentage = ""; - - /** - * windows defines the different windows for voting and execution. - * - * @generated from field: cosmos.group.v1.DecisionPolicyWindows windows = 2; - */ - windows?: DecisionPolicyWindows; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.PercentageDecisionPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "windows", kind: "message", T: DecisionPolicyWindows }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PercentageDecisionPolicy { - return new PercentageDecisionPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PercentageDecisionPolicy { - return new PercentageDecisionPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PercentageDecisionPolicy { - return new PercentageDecisionPolicy().fromJsonString(jsonString, options); - } - - static equals(a: PercentageDecisionPolicy | PlainMessage | undefined, b: PercentageDecisionPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(PercentageDecisionPolicy, a, b); - } -} - -/** - * DecisionPolicyWindows defines the different windows for voting and execution. - * - * @generated from message cosmos.group.v1.DecisionPolicyWindows - */ -export class DecisionPolicyWindows extends Message { - /** - * voting_period is the duration from submission of a proposal to the end of voting period - * Within this times votes can be submitted with MsgVote. - * - * @generated from field: google.protobuf.Duration voting_period = 1; - */ - votingPeriod?: Duration; - - /** - * min_execution_period is the minimum duration after the proposal submission - * where members can start sending MsgExec. This means that the window for - * sending a MsgExec transaction is: - * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]` - * where max_execution_period is a app-specific config, defined in the keeper. - * If not set, min_execution_period will default to 0. - * - * Please make sure to set a `min_execution_period` that is smaller than - * `voting_period + max_execution_period`, or else the above execution window - * is empty, meaning that all proposals created with this decision policy - * won't be able to be executed. - * - * @generated from field: google.protobuf.Duration min_execution_period = 2; - */ - minExecutionPeriod?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.DecisionPolicyWindows"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "voting_period", kind: "message", T: Duration }, - { no: 2, name: "min_execution_period", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DecisionPolicyWindows { - return new DecisionPolicyWindows().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DecisionPolicyWindows { - return new DecisionPolicyWindows().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DecisionPolicyWindows { - return new DecisionPolicyWindows().fromJsonString(jsonString, options); - } - - static equals(a: DecisionPolicyWindows | PlainMessage | undefined, b: DecisionPolicyWindows | PlainMessage | undefined): boolean { - return proto3.util.equals(DecisionPolicyWindows, a, b); - } -} - -/** - * GroupInfo represents the high-level on-chain information for a group. - * - * @generated from message cosmos.group.v1.GroupInfo - */ -export class GroupInfo extends Message { - /** - * id is the unique ID of the group. - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * admin is the account address of the group's admin. - * - * @generated from field: string admin = 2; - */ - admin = ""; - - /** - * metadata is any arbitrary metadata to attached to the group. - * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1 - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - /** - * version is used to track changes to a group's membership structure that - * would break existing proposals. Whenever any members weight is changed, - * or any member is added or removed this version is incremented and will - * cause proposals based on older versions of this group to fail - * - * @generated from field: uint64 version = 4; - */ - version = protoInt64.zero; - - /** - * total_weight is the sum of the group members' weights. - * - * @generated from field: string total_weight = 5; - */ - totalWeight = ""; - - /** - * created_at is a timestamp specifying when a group was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 6; - */ - createdAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.GroupInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "total_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "created_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GroupInfo { - return new GroupInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GroupInfo { - return new GroupInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GroupInfo { - return new GroupInfo().fromJsonString(jsonString, options); - } - - static equals(a: GroupInfo | PlainMessage | undefined, b: GroupInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(GroupInfo, a, b); - } -} - -/** - * GroupMember represents the relationship between a group and a member. - * - * @generated from message cosmos.group.v1.GroupMember - */ -export class GroupMember extends Message { - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - /** - * member is the member data. - * - * @generated from field: cosmos.group.v1.Member member = 2; - */ - member?: Member; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.GroupMember"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "member", kind: "message", T: Member }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GroupMember { - return new GroupMember().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GroupMember { - return new GroupMember().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GroupMember { - return new GroupMember().fromJsonString(jsonString, options); - } - - static equals(a: GroupMember | PlainMessage | undefined, b: GroupMember | PlainMessage | undefined): boolean { - return proto3.util.equals(GroupMember, a, b); - } -} - -/** - * GroupPolicyInfo represents the high-level on-chain information for a group policy. - * - * @generated from message cosmos.group.v1.GroupPolicyInfo - */ -export class GroupPolicyInfo extends Message { - /** - * address is the account address of group policy. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * group_id is the unique ID of the group. - * - * @generated from field: uint64 group_id = 2; - */ - groupId = protoInt64.zero; - - /** - * admin is the account address of the group admin. - * - * @generated from field: string admin = 3; - */ - admin = ""; - - /** - * metadata is any arbitrary metadata attached to the group policy. - * the recommended format of the metadata is to be found here: - * https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 - * - * @generated from field: string metadata = 4; - */ - metadata = ""; - - /** - * version is used to track changes to a group's GroupPolicyInfo structure that - * would create a different result on a running proposal. - * - * @generated from field: uint64 version = 5; - */ - version = protoInt64.zero; - - /** - * decision_policy specifies the group policy's decision policy. - * - * @generated from field: google.protobuf.Any decision_policy = 6; - */ - decisionPolicy?: Any; - - /** - * created_at is a timestamp specifying when a group policy was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 7; - */ - createdAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.GroupPolicyInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "decision_policy", kind: "message", T: Any }, - { no: 7, name: "created_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GroupPolicyInfo { - return new GroupPolicyInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GroupPolicyInfo { - return new GroupPolicyInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GroupPolicyInfo { - return new GroupPolicyInfo().fromJsonString(jsonString, options); - } - - static equals(a: GroupPolicyInfo | PlainMessage | undefined, b: GroupPolicyInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(GroupPolicyInfo, a, b); - } -} - -/** - * Proposal defines a group proposal. Any member of a group can submit a proposal - * for a group policy to decide upon. - * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal - * passes as well as some optional metadata associated with the proposal. - * - * @generated from message cosmos.group.v1.Proposal - */ -export class Proposal extends Message { - /** - * id is the unique id of the proposal. - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * group_policy_address is the account address of group policy. - * - * @generated from field: string group_policy_address = 2; - */ - groupPolicyAddress = ""; - - /** - * metadata is any arbitrary metadata attached to the proposal. - * the recommended format of the metadata is to be found here: - * https://docs.cosmos.network/v0.47/modules/group#proposal-4 - * - * @generated from field: string metadata = 3; - */ - metadata = ""; - - /** - * proposers are the account addresses of the proposers. - * - * @generated from field: repeated string proposers = 4; - */ - proposers: string[] = []; - - /** - * submit_time is a timestamp specifying when a proposal was submitted. - * - * @generated from field: google.protobuf.Timestamp submit_time = 5; - */ - submitTime?: Timestamp; - - /** - * group_version tracks the version of the group at proposal submission. - * This field is here for informational purposes only. - * - * @generated from field: uint64 group_version = 6; - */ - groupVersion = protoInt64.zero; - - /** - * group_policy_version tracks the version of the group policy at proposal submission. - * When a decision policy is changed, existing proposals from previous policy - * versions will become invalid with the `ABORTED` status. - * This field is here for informational purposes only. - * - * @generated from field: uint64 group_policy_version = 7; - */ - groupPolicyVersion = protoInt64.zero; - - /** - * status represents the high level position in the life cycle of the proposal. Initial value is Submitted. - * - * @generated from field: cosmos.group.v1.ProposalStatus status = 8; - */ - status = ProposalStatus.UNSPECIFIED; - - /** - * final_tally_result contains the sums of all weighted votes for this - * proposal for each vote option. It is empty at submission, and only - * populated after tallying, at voting period end or at proposal execution, - * whichever happens first. - * - * @generated from field: cosmos.group.v1.TallyResult final_tally_result = 9; - */ - finalTallyResult?: TallyResult; - - /** - * voting_period_end is the timestamp before which voting must be done. - * Unless a successful MsgExec is called before (to execute a proposal whose - * tally is successful before the voting period ends), tallying will be done - * at this point, and the `final_tally_result`and `status` fields will be - * accordingly updated. - * - * @generated from field: google.protobuf.Timestamp voting_period_end = 10; - */ - votingPeriodEnd?: Timestamp; - - /** - * executor_result is the final result of the proposal execution. Initial value is NotRun. - * - * @generated from field: cosmos.group.v1.ProposalExecutorResult executor_result = 11; - */ - executorResult = ProposalExecutorResult.UNSPECIFIED; - - /** - * messages is a list of `sdk.Msg`s that will be executed if the proposal passes. - * - * @generated from field: repeated google.protobuf.Any messages = 12; - */ - messages: Any[] = []; - - /** - * title is the title of the proposal - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string title = 13; - */ - title = ""; - - /** - * summary is a short summary of the proposal - * - * Since: cosmos-sdk 0.47 - * - * @generated from field: string summary = 14; - */ - summary = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.Proposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "group_policy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "proposers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "submit_time", kind: "message", T: Timestamp }, - { no: 6, name: "group_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "group_policy_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "status", kind: "enum", T: proto3.getEnumType(ProposalStatus) }, - { no: 9, name: "final_tally_result", kind: "message", T: TallyResult }, - { no: 10, name: "voting_period_end", kind: "message", T: Timestamp }, - { no: 11, name: "executor_result", kind: "enum", T: proto3.getEnumType(ProposalExecutorResult) }, - { no: 12, name: "messages", kind: "message", T: Any, repeated: true }, - { no: 13, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "summary", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { - return new Proposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { - return new Proposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Proposal { - return new Proposal().fromJsonString(jsonString, options); - } - - static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { - return proto3.util.equals(Proposal, a, b); - } -} - -/** - * TallyResult represents the sum of weighted votes for each vote option. - * - * @generated from message cosmos.group.v1.TallyResult - */ -export class TallyResult extends Message { - /** - * yes_count is the weighted sum of yes votes. - * - * @generated from field: string yes_count = 1; - */ - yesCount = ""; - - /** - * abstain_count is the weighted sum of abstainers. - * - * @generated from field: string abstain_count = 2; - */ - abstainCount = ""; - - /** - * no_count is the weighted sum of no votes. - * - * @generated from field: string no_count = 3; - */ - noCount = ""; - - /** - * no_with_veto_count is the weighted sum of veto. - * - * @generated from field: string no_with_veto_count = 4; - */ - noWithVetoCount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.TallyResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "yes_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "abstain_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "no_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "no_with_veto_count", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TallyResult { - return new TallyResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TallyResult { - return new TallyResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TallyResult { - return new TallyResult().fromJsonString(jsonString, options); - } - - static equals(a: TallyResult | PlainMessage | undefined, b: TallyResult | PlainMessage | undefined): boolean { - return proto3.util.equals(TallyResult, a, b); - } -} - -/** - * Vote represents a vote for a proposal.string metadata - * - * @generated from message cosmos.group.v1.Vote - */ -export class Vote extends Message { - /** - * proposal is the unique ID of the proposal. - * - * @generated from field: uint64 proposal_id = 1; - */ - proposalId = protoInt64.zero; - - /** - * voter is the account address of the voter. - * - * @generated from field: string voter = 2; - */ - voter = ""; - - /** - * option is the voter's choice on the proposal. - * - * @generated from field: cosmos.group.v1.VoteOption option = 3; - */ - option = VoteOption.UNSPECIFIED; - - /** - * metadata is any arbitrary metadata attached to the vote. - * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2 - * - * @generated from field: string metadata = 4; - */ - metadata = ""; - - /** - * submit_time is the timestamp when the vote was submitted. - * - * @generated from field: google.protobuf.Timestamp submit_time = 5; - */ - submitTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.group.v1.Vote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proposal_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "voter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "option", kind: "enum", T: proto3.getEnumType(VoteOption) }, - { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "submit_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Vote { - return new Vote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Vote { - return new Vote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Vote { - return new Vote().fromJsonString(jsonString, options); - } - - static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { - return proto3.util.equals(Vote, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/ics23/v1/proofs_pb.ts b/libs/es-client/src/protobufs/cosmos/ics23/v1/proofs_pb.ts deleted file mode 100644 index 3abc472..0000000 --- a/libs/es-client/src/protobufs/cosmos/ics23/v1/proofs_pb.ts +++ /dev/null @@ -1,978 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/ics23/v1/proofs.proto (package cosmos.ics23.v1, 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 cosmos.ics23.v1.HashOp - */ -export enum HashOp { - /** - * NO_HASH is the default if no data passed. Note this is an illegal argument some places. - * - * @generated from enum value: NO_HASH = 0; - */ - NO_HASH = 0, - - /** - * @generated from enum value: SHA256 = 1; - */ - SHA256 = 1, - - /** - * @generated from enum value: SHA512 = 2; - */ - SHA512 = 2, - - /** - * @generated from enum value: KECCAK256 = 3; - */ - KECCAK256 = 3, - - /** - * @generated from enum value: RIPEMD160 = 4; - */ - RIPEMD160 = 4, - - /** - * ripemd160(sha256(x)) - * - * @generated from enum value: BITCOIN = 5; - */ - BITCOIN = 5, - - /** - * @generated from enum value: SHA512_256 = 6; - */ - SHA512_256 = 6, - - /** - * @generated from enum value: BLAKE2B_512 = 7; - */ - BLAKE2B_512 = 7, - - /** - * @generated from enum value: BLAKE2S_256 = 8; - */ - BLAKE2S_256 = 8, - - /** - * @generated from enum value: BLAKE3 = 9; - */ - BLAKE3 = 9, -} -// Retrieve enum metadata with: proto3.getEnumType(HashOp) -proto3.util.setEnumType(HashOp, "cosmos.ics23.v1.HashOp", [ - { no: 0, name: "NO_HASH" }, - { no: 1, name: "SHA256" }, - { no: 2, name: "SHA512" }, - { no: 3, name: "KECCAK256" }, - { no: 4, name: "RIPEMD160" }, - { no: 5, name: "BITCOIN" }, - { no: 6, name: "SHA512_256" }, - { no: 7, name: "BLAKE2B_512" }, - { no: 8, name: "BLAKE2S_256" }, - { no: 9, name: "BLAKE3" }, -]); - -/** - * * - * LengthOp defines how to process the key and value of the LeafOp - * to include length information. After encoding the length with the given - * algorithm, the length will be prepended to the key and value bytes. - * (Each one with it's own encoded length) - * - * @generated from enum cosmos.ics23.v1.LengthOp - */ -export enum LengthOp { - /** - * NO_PREFIX don't include any length info - * - * @generated from enum value: NO_PREFIX = 0; - */ - NO_PREFIX = 0, - - /** - * VAR_PROTO uses protobuf (and go-amino) varint encoding of the length - * - * @generated from enum value: VAR_PROTO = 1; - */ - VAR_PROTO = 1, - - /** - * VAR_RLP uses rlp int encoding of the length - * - * @generated from enum value: VAR_RLP = 2; - */ - VAR_RLP = 2, - - /** - * FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer - * - * @generated from enum value: FIXED32_BIG = 3; - */ - FIXED32_BIG = 3, - - /** - * FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer - * - * @generated from enum value: FIXED32_LITTLE = 4; - */ - FIXED32_LITTLE = 4, - - /** - * FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer - * - * @generated from enum value: FIXED64_BIG = 5; - */ - FIXED64_BIG = 5, - - /** - * FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer - * - * @generated from enum value: FIXED64_LITTLE = 6; - */ - FIXED64_LITTLE = 6, - - /** - * REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) - * - * @generated from enum value: REQUIRE_32_BYTES = 7; - */ - REQUIRE_32_BYTES = 7, - - /** - * REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) - * - * @generated from enum value: REQUIRE_64_BYTES = 8; - */ - REQUIRE_64_BYTES = 8, -} -// Retrieve enum metadata with: proto3.getEnumType(LengthOp) -proto3.util.setEnumType(LengthOp, "cosmos.ics23.v1.LengthOp", [ - { no: 0, name: "NO_PREFIX" }, - { no: 1, name: "VAR_PROTO" }, - { no: 2, name: "VAR_RLP" }, - { no: 3, name: "FIXED32_BIG" }, - { no: 4, name: "FIXED32_LITTLE" }, - { no: 5, name: "FIXED64_BIG" }, - { no: 6, name: "FIXED64_LITTLE" }, - { no: 7, name: "REQUIRE_32_BYTES" }, - { no: 8, name: "REQUIRE_64_BYTES" }, -]); - -/** - * * - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - * - * @generated from message cosmos.ics23.v1.ExistenceProof - */ -export class ExistenceProof extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - /** - * @generated from field: cosmos.ics23.v1.LeafOp leaf = 3; - */ - leaf?: LeafOp; - - /** - * @generated from field: repeated cosmos.ics23.v1.InnerOp path = 4; - */ - path: InnerOp[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.ExistenceProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "leaf", kind: "message", T: LeafOp }, - { no: 4, name: "path", kind: "message", T: InnerOp, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExistenceProof { - return new ExistenceProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExistenceProof { - return new ExistenceProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExistenceProof { - return new ExistenceProof().fromJsonString(jsonString, options); - } - - static equals(a: ExistenceProof | PlainMessage | undefined, b: ExistenceProof | PlainMessage | undefined): boolean { - return proto3.util.equals(ExistenceProof, a, b); - } -} - -/** - * - * NonExistenceProof takes a proof of two neighbors, one left of the desired key, - * one right of the desired key. If both proofs are valid AND they are neighbors, - * then there is no valid proof for the given key. - * - * @generated from message cosmos.ics23.v1.NonExistenceProof - */ -export class NonExistenceProof extends Message { - /** - * TODO: remove this as unnecessary??? we prove a range - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: cosmos.ics23.v1.ExistenceProof left = 2; - */ - left?: ExistenceProof; - - /** - * @generated from field: cosmos.ics23.v1.ExistenceProof right = 3; - */ - right?: ExistenceProof; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.NonExistenceProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "left", kind: "message", T: ExistenceProof }, - { no: 3, name: "right", kind: "message", T: ExistenceProof }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NonExistenceProof { - return new NonExistenceProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NonExistenceProof { - return new NonExistenceProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NonExistenceProof { - return new NonExistenceProof().fromJsonString(jsonString, options); - } - - static equals(a: NonExistenceProof | PlainMessage | undefined, b: NonExistenceProof | PlainMessage | undefined): boolean { - return proto3.util.equals(NonExistenceProof, a, b); - } -} - -/** - * - * CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages - * - * @generated from message cosmos.ics23.v1.CommitmentProof - */ -export class CommitmentProof extends Message { - /** - * @generated from oneof cosmos.ics23.v1.CommitmentProof.proof - */ - proof: { - /** - * @generated from field: cosmos.ics23.v1.ExistenceProof exist = 1; - */ - value: ExistenceProof; - case: "exist"; - } | { - /** - * @generated from field: cosmos.ics23.v1.NonExistenceProof nonexist = 2; - */ - value: NonExistenceProof; - case: "nonexist"; - } | { - /** - * @generated from field: cosmos.ics23.v1.BatchProof batch = 3; - */ - value: BatchProof; - case: "batch"; - } | { - /** - * @generated from field: cosmos.ics23.v1.CompressedBatchProof compressed = 4; - */ - value: CompressedBatchProof; - case: "compressed"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.CommitmentProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "exist", kind: "message", T: ExistenceProof, oneof: "proof" }, - { no: 2, name: "nonexist", kind: "message", T: NonExistenceProof, oneof: "proof" }, - { no: 3, name: "batch", kind: "message", T: BatchProof, oneof: "proof" }, - { no: 4, name: "compressed", kind: "message", T: CompressedBatchProof, oneof: "proof" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommitmentProof { - return new CommitmentProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommitmentProof { - return new CommitmentProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommitmentProof { - return new CommitmentProof().fromJsonString(jsonString, options); - } - - static equals(a: CommitmentProof | PlainMessage | undefined, b: CommitmentProof | PlainMessage | undefined): boolean { - return proto3.util.equals(CommitmentProof, a, b); - } -} - -/** - * * - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - * - * @generated from message cosmos.ics23.v1.LeafOp - */ -export class LeafOp extends Message { - /** - * @generated from field: cosmos.ics23.v1.HashOp hash = 1; - */ - hash = HashOp.NO_HASH; - - /** - * @generated from field: cosmos.ics23.v1.HashOp prehash_key = 2; - */ - prehashKey = HashOp.NO_HASH; - - /** - * @generated from field: cosmos.ics23.v1.HashOp prehash_value = 3; - */ - prehashValue = HashOp.NO_HASH; - - /** - * @generated from field: cosmos.ics23.v1.LengthOp length = 4; - */ - length = LengthOp.NO_PREFIX; - - /** - * prefix is a fixed bytes that may optionally be included at the beginning to differentiate - * a leaf node from an inner node. - * - * @generated from field: bytes prefix = 5; - */ - prefix = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.LeafOp"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "enum", T: proto3.getEnumType(HashOp) }, - { no: 2, name: "prehash_key", kind: "enum", T: proto3.getEnumType(HashOp) }, - { no: 3, name: "prehash_value", kind: "enum", T: proto3.getEnumType(HashOp) }, - { no: 4, name: "length", kind: "enum", T: proto3.getEnumType(LengthOp) }, - { no: 5, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LeafOp { - return new LeafOp().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LeafOp { - return new LeafOp().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LeafOp { - return new LeafOp().fromJsonString(jsonString, options); - } - - static equals(a: LeafOp | PlainMessage | undefined, b: LeafOp | PlainMessage | undefined): boolean { - return proto3.util.equals(LeafOp, a, b); - } -} - -/** - * * - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - * - * @generated from message cosmos.ics23.v1.InnerOp - */ -export class InnerOp extends Message { - /** - * @generated from field: cosmos.ics23.v1.HashOp hash = 1; - */ - hash = HashOp.NO_HASH; - - /** - * @generated from field: bytes prefix = 2; - */ - prefix = new Uint8Array(0); - - /** - * @generated from field: bytes suffix = 3; - */ - suffix = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.InnerOp"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "enum", T: proto3.getEnumType(HashOp) }, - { no: 2, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "suffix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InnerOp { - return new InnerOp().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InnerOp { - return new InnerOp().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InnerOp { - return new InnerOp().fromJsonString(jsonString, options); - } - - static equals(a: InnerOp | PlainMessage | undefined, b: InnerOp | PlainMessage | undefined): boolean { - return proto3.util.equals(InnerOp, a, b); - } -} - -/** - * * - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - * - * @generated from message cosmos.ics23.v1.ProofSpec - */ -export class ProofSpec extends Message { - /** - * any field in the ExistenceProof must be the same as in this spec. - * except Prefix, which is just the first bytes of prefix (spec can be longer) - * - * @generated from field: cosmos.ics23.v1.LeafOp leaf_spec = 1; - */ - leafSpec?: LeafOp; - - /** - * @generated from field: cosmos.ics23.v1.InnerSpec inner_spec = 2; - */ - innerSpec?: InnerSpec; - - /** - * max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) - * the max_depth is interpreted as 128 if set to 0 - * - * @generated from field: int32 max_depth = 3; - */ - maxDepth = 0; - - /** - * min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) - * - * @generated from field: int32 min_depth = 4; - */ - minDepth = 0; - - /** - * prehash_key_before_comparison is a flag that indicates whether to use the - * prehash_key specified by LeafOp to compare lexical ordering of keys for - * non-existence proofs. - * - * @generated from field: bool prehash_key_before_comparison = 5; - */ - prehashKeyBeforeComparison = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.ProofSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "leaf_spec", kind: "message", T: LeafOp }, - { no: 2, name: "inner_spec", kind: "message", T: InnerSpec }, - { no: 3, name: "max_depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "min_depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "prehash_key_before_comparison", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofSpec { - return new ProofSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofSpec { - return new ProofSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofSpec { - return new ProofSpec().fromJsonString(jsonString, options); - } - - static equals(a: ProofSpec | PlainMessage | undefined, b: ProofSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofSpec, a, b); - } -} - -/** - * - * InnerSpec contains all store-specific structure info to determine if two proofs from a - * given store are neighbors. - * - * This enables: - * - * isLeftMost(spec: InnerSpec, op: InnerOp) - * isRightMost(spec: InnerSpec, op: InnerOp) - * isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) - * - * @generated from message cosmos.ics23.v1.InnerSpec - */ -export class InnerSpec extends Message { - /** - * Child order is the ordering of the children node, must count from 0 - * iavl tree is [0, 1] (left then right) - * merk is [0, 2, 1] (left, right, here) - * - * @generated from field: repeated int32 child_order = 1; - */ - childOrder: number[] = []; - - /** - * @generated from field: int32 child_size = 2; - */ - childSize = 0; - - /** - * @generated from field: int32 min_prefix_length = 3; - */ - minPrefixLength = 0; - - /** - * the max prefix length must be less than the minimum prefix length + child size - * - * @generated from field: int32 max_prefix_length = 4; - */ - maxPrefixLength = 0; - - /** - * empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) - * - * @generated from field: bytes empty_child = 5; - */ - emptyChild = new Uint8Array(0); - - /** - * hash is the algorithm that must be used for each InnerOp - * - * @generated from field: cosmos.ics23.v1.HashOp hash = 6; - */ - hash = HashOp.NO_HASH; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.InnerSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "child_order", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, - { no: 2, name: "child_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "min_prefix_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "max_prefix_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "empty_child", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "hash", kind: "enum", T: proto3.getEnumType(HashOp) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InnerSpec { - return new InnerSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InnerSpec { - return new InnerSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InnerSpec { - return new InnerSpec().fromJsonString(jsonString, options); - } - - static equals(a: InnerSpec | PlainMessage | undefined, b: InnerSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(InnerSpec, a, b); - } -} - -/** - * - * BatchProof is a group of multiple proof types than can be compressed - * - * @generated from message cosmos.ics23.v1.BatchProof - */ -export class BatchProof extends Message { - /** - * @generated from field: repeated cosmos.ics23.v1.BatchEntry entries = 1; - */ - entries: BatchEntry[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.BatchProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "entries", kind: "message", T: BatchEntry, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BatchProof { - return new BatchProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BatchProof { - return new BatchProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BatchProof { - return new BatchProof().fromJsonString(jsonString, options); - } - - static equals(a: BatchProof | PlainMessage | undefined, b: BatchProof | PlainMessage | undefined): boolean { - return proto3.util.equals(BatchProof, a, b); - } -} - -/** - * Use BatchEntry not CommitmentProof, to avoid recursion - * - * @generated from message cosmos.ics23.v1.BatchEntry - */ -export class BatchEntry extends Message { - /** - * @generated from oneof cosmos.ics23.v1.BatchEntry.proof - */ - proof: { - /** - * @generated from field: cosmos.ics23.v1.ExistenceProof exist = 1; - */ - value: ExistenceProof; - case: "exist"; - } | { - /** - * @generated from field: cosmos.ics23.v1.NonExistenceProof nonexist = 2; - */ - value: NonExistenceProof; - case: "nonexist"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.BatchEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "exist", kind: "message", T: ExistenceProof, oneof: "proof" }, - { no: 2, name: "nonexist", kind: "message", T: NonExistenceProof, oneof: "proof" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BatchEntry { - return new BatchEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BatchEntry { - return new BatchEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BatchEntry { - return new BatchEntry().fromJsonString(jsonString, options); - } - - static equals(a: BatchEntry | PlainMessage | undefined, b: BatchEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(BatchEntry, a, b); - } -} - -/** - * @generated from message cosmos.ics23.v1.CompressedBatchProof - */ -export class CompressedBatchProof extends Message { - /** - * @generated from field: repeated cosmos.ics23.v1.CompressedBatchEntry entries = 1; - */ - entries: CompressedBatchEntry[] = []; - - /** - * @generated from field: repeated cosmos.ics23.v1.InnerOp lookup_inners = 2; - */ - lookupInners: InnerOp[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.CompressedBatchProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "entries", kind: "message", T: CompressedBatchEntry, repeated: true }, - { no: 2, name: "lookup_inners", kind: "message", T: InnerOp, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompressedBatchProof { - return new CompressedBatchProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompressedBatchProof { - return new CompressedBatchProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompressedBatchProof { - return new CompressedBatchProof().fromJsonString(jsonString, options); - } - - static equals(a: CompressedBatchProof | PlainMessage | undefined, b: CompressedBatchProof | PlainMessage | undefined): boolean { - return proto3.util.equals(CompressedBatchProof, a, b); - } -} - -/** - * Use BatchEntry not CommitmentProof, to avoid recursion - * - * @generated from message cosmos.ics23.v1.CompressedBatchEntry - */ -export class CompressedBatchEntry extends Message { - /** - * @generated from oneof cosmos.ics23.v1.CompressedBatchEntry.proof - */ - proof: { - /** - * @generated from field: cosmos.ics23.v1.CompressedExistenceProof exist = 1; - */ - value: CompressedExistenceProof; - case: "exist"; - } | { - /** - * @generated from field: cosmos.ics23.v1.CompressedNonExistenceProof nonexist = 2; - */ - value: CompressedNonExistenceProof; - case: "nonexist"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.CompressedBatchEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "exist", kind: "message", T: CompressedExistenceProof, oneof: "proof" }, - { no: 2, name: "nonexist", kind: "message", T: CompressedNonExistenceProof, oneof: "proof" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompressedBatchEntry { - return new CompressedBatchEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompressedBatchEntry { - return new CompressedBatchEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompressedBatchEntry { - return new CompressedBatchEntry().fromJsonString(jsonString, options); - } - - static equals(a: CompressedBatchEntry | PlainMessage | undefined, b: CompressedBatchEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(CompressedBatchEntry, a, b); - } -} - -/** - * @generated from message cosmos.ics23.v1.CompressedExistenceProof - */ -export class CompressedExistenceProof extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - /** - * @generated from field: cosmos.ics23.v1.LeafOp leaf = 3; - */ - leaf?: LeafOp; - - /** - * these are indexes into the lookup_inners table in CompressedBatchProof - * - * @generated from field: repeated int32 path = 4; - */ - path: number[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.CompressedExistenceProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "leaf", kind: "message", T: LeafOp }, - { no: 4, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompressedExistenceProof { - return new CompressedExistenceProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompressedExistenceProof { - return new CompressedExistenceProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompressedExistenceProof { - return new CompressedExistenceProof().fromJsonString(jsonString, options); - } - - static equals(a: CompressedExistenceProof | PlainMessage | undefined, b: CompressedExistenceProof | PlainMessage | undefined): boolean { - return proto3.util.equals(CompressedExistenceProof, a, b); - } -} - -/** - * @generated from message cosmos.ics23.v1.CompressedNonExistenceProof - */ -export class CompressedNonExistenceProof extends Message { - /** - * TODO: remove this as unnecessary??? we prove a range - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: cosmos.ics23.v1.CompressedExistenceProof left = 2; - */ - left?: CompressedExistenceProof; - - /** - * @generated from field: cosmos.ics23.v1.CompressedExistenceProof right = 3; - */ - right?: CompressedExistenceProof; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.ics23.v1.CompressedNonExistenceProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "left", kind: "message", T: CompressedExistenceProof }, - { no: 3, name: "right", kind: "message", T: CompressedExistenceProof }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompressedNonExistenceProof { - return new CompressedNonExistenceProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompressedNonExistenceProof { - return new CompressedNonExistenceProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompressedNonExistenceProof { - return new CompressedNonExistenceProof().fromJsonString(jsonString, options); - } - - static equals(a: CompressedNonExistenceProof | PlainMessage | undefined, b: CompressedNonExistenceProof | PlainMessage | undefined): boolean { - return proto3.util.equals(CompressedNonExistenceProof, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/mint/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/mint/module/v1/module_pb.ts deleted file mode 100644 index 337066d..0000000 --- a/libs/es-client/src/protobufs/cosmos/mint/module/v1/module_pb.ts +++ /dev/null @@ -1,55 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/mint/module/v1/module.proto (package cosmos.mint.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the mint module. - * - * @generated from message cosmos.mint.module.v1.Module - */ -export class Module extends Message { - /** - * @generated from field: string fee_collector_name = 1; - */ - feeCollectorName = ""; - - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 2; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_collector_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/mint/v1beta1/genesis_pb.ts deleted file mode 100644 index b4d7f05..0000000 --- a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,58 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/mint/v1beta1/genesis.proto (package cosmos.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Minter, Params } from "./mint_pb.js"; - -/** - * GenesisState defines the mint module's genesis state. - * - * @generated from message cosmos.mint.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * minter is a space for holding current inflation information. - * - * @generated from field: cosmos.mint.v1beta1.Minter minter = 1; - */ - minter?: Minter; - - /** - * params defines all the parameters of the module. - * - * @generated from field: cosmos.mint.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "minter", kind: "message", T: Minter }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/mint_pb.ts b/libs/es-client/src/protobufs/cosmos/mint/v1beta1/mint_pb.ts deleted file mode 100644 index 085d571..0000000 --- a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/mint_pb.ts +++ /dev/null @@ -1,138 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/mint/v1beta1/mint.proto (package cosmos.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Minter represents the minting state. - * - * @generated from message cosmos.mint.v1beta1.Minter - */ -export class Minter extends Message { - /** - * current annual inflation rate - * - * @generated from field: string inflation = 1; - */ - inflation = ""; - - /** - * current annual expected provisions - * - * @generated from field: string annual_provisions = 2; - */ - annualProvisions = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.Minter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inflation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "annual_provisions", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Minter { - return new Minter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Minter { - return new Minter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Minter { - return new Minter().fromJsonString(jsonString, options); - } - - static equals(a: Minter | PlainMessage | undefined, b: Minter | PlainMessage | undefined): boolean { - return proto3.util.equals(Minter, a, b); - } -} - -/** - * Params defines the parameters for the x/mint module. - * - * @generated from message cosmos.mint.v1beta1.Params - */ -export class Params extends Message { - /** - * type of coin to mint - * - * @generated from field: string mint_denom = 1; - */ - mintDenom = ""; - - /** - * maximum annual change in inflation rate - * - * @generated from field: string inflation_rate_change = 2; - */ - inflationRateChange = ""; - - /** - * maximum inflation rate - * - * @generated from field: string inflation_max = 3; - */ - inflationMax = ""; - - /** - * minimum inflation rate - * - * @generated from field: string inflation_min = 4; - */ - inflationMin = ""; - - /** - * goal of percent bonded atoms - * - * @generated from field: string goal_bonded = 5; - */ - goalBonded = ""; - - /** - * expected blocks per year - * - * @generated from field: uint64 blocks_per_year = 6; - */ - blocksPerYear = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "mint_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "inflation_rate_change", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "inflation_max", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "inflation_min", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "goal_bonded", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "blocks_per_year", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_cosmes.ts deleted file mode 100644 index 9c0c053..0000000 --- a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/mint/v1beta1/query.proto (package cosmos.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse, QueryInflationRequest, QueryInflationResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.mint.v1beta1.Query"; - -/** - * Params returns the total set of minting parameters. - * - * @generated from rpc cosmos.mint.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Inflation returns the current minting inflation value. - * - * @generated from rpc cosmos.mint.v1beta1.Query.Inflation - */ -export const QueryInflationService = { - typeName: TYPE_NAME, - method: "Inflation", - Request: QueryInflationRequest, - Response: QueryInflationResponse, -} as const; - -/** - * AnnualProvisions current minting annual provisions value. - * - * @generated from rpc cosmos.mint.v1beta1.Query.AnnualProvisions - */ -export const QueryAnnualProvisionsService = { - typeName: TYPE_NAME, - method: "AnnualProvisions", - Request: QueryAnnualProvisionsRequest, - Response: QueryAnnualProvisionsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_pb.ts deleted file mode 100644 index 75556ee..0000000 --- a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/query_pb.ts +++ /dev/null @@ -1,234 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/mint/v1beta1/query.proto (package cosmos.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./mint_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message cosmos.mint.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message cosmos.mint.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: cosmos.mint.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryInflationRequest is the request type for the Query/Inflation RPC method. - * - * @generated from message cosmos.mint.v1beta1.QueryInflationRequest - */ -export class QueryInflationRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.QueryInflationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationRequest { - return new QueryInflationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationRequest { - return new QueryInflationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryInflationRequest { - return new QueryInflationRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryInflationRequest | PlainMessage | undefined, b: QueryInflationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryInflationRequest, a, b); - } -} - -/** - * QueryInflationResponse is the response type for the Query/Inflation RPC - * method. - * - * @generated from message cosmos.mint.v1beta1.QueryInflationResponse - */ -export class QueryInflationResponse extends Message { - /** - * inflation is the current minting inflation value. - * - * @generated from field: bytes inflation = 1; - */ - inflation = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.QueryInflationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inflation", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryInflationResponse { - return new QueryInflationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryInflationResponse { - return new QueryInflationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryInflationResponse { - return new QueryInflationResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryInflationResponse | PlainMessage | undefined, b: QueryInflationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryInflationResponse, a, b); - } -} - -/** - * QueryAnnualProvisionsRequest is the request type for the - * Query/AnnualProvisions RPC method. - * - * @generated from message cosmos.mint.v1beta1.QueryAnnualProvisionsRequest - */ -export class QueryAnnualProvisionsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.QueryAnnualProvisionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAnnualProvisionsRequest { - return new QueryAnnualProvisionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAnnualProvisionsRequest { - return new QueryAnnualProvisionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAnnualProvisionsRequest { - return new QueryAnnualProvisionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAnnualProvisionsRequest | PlainMessage | undefined, b: QueryAnnualProvisionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAnnualProvisionsRequest, a, b); - } -} - -/** - * QueryAnnualProvisionsResponse is the response type for the - * Query/AnnualProvisions RPC method. - * - * @generated from message cosmos.mint.v1beta1.QueryAnnualProvisionsResponse - */ -export class QueryAnnualProvisionsResponse extends Message { - /** - * annual_provisions is the current minting annual provisions value. - * - * @generated from field: bytes annual_provisions = 1; - */ - annualProvisions = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.QueryAnnualProvisionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "annual_provisions", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAnnualProvisionsResponse { - return new QueryAnnualProvisionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAnnualProvisionsResponse { - return new QueryAnnualProvisionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAnnualProvisionsResponse { - return new QueryAnnualProvisionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAnnualProvisionsResponse | PlainMessage | undefined, b: QueryAnnualProvisionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAnnualProvisionsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_cosmes.ts deleted file mode 100644 index e7658ab..0000000 --- a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,23 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/mint/v1beta1/tx.proto (package cosmos.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.mint.v1beta1.Msg"; - -/** - * UpdateParams defines a governance operation for updating the x/mint module - * parameters. The authority is defaults to the x/gov module account. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.mint.v1beta1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_pb.ts deleted file mode 100644 index c727622..0000000 --- a/libs/es-client/src/protobufs/cosmos/mint/v1beta1/tx_pb.ts +++ /dev/null @@ -1,98 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/mint/v1beta1/tx.proto (package cosmos.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./mint_pb.js"; - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.mint.v1beta1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/mint parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmos.mint.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.mint.v1beta1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.mint.v1beta1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/nft/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/nft/module/v1/module_pb.ts deleted file mode 100644 index 7e5012c..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/module/v1/module_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/nft/module/v1/module.proto (package cosmos.nft.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the nft module. - * - * @generated from message cosmos.nft.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/event_pb.ts b/libs/es-client/src/protobufs/cosmos/nft/v1beta1/event_pb.ts deleted file mode 100644 index e9de183..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/event_pb.ts +++ /dev/null @@ -1,187 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/nft/v1beta1/event.proto (package cosmos.nft.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * EventSend is emitted on Msg/Send - * - * @generated from message cosmos.nft.v1beta1.EventSend - */ -export class EventSend extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * id is a unique identifier of the nft - * - * @generated from field: string id = 2; - */ - id = ""; - - /** - * sender is the address of the owner of nft - * - * @generated from field: string sender = 3; - */ - sender = ""; - - /** - * receiver is the receiver address of nft - * - * @generated from field: string receiver = 4; - */ - receiver = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.EventSend"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventSend { - return new EventSend().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventSend { - return new EventSend().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventSend { - return new EventSend().fromJsonString(jsonString, options); - } - - static equals(a: EventSend | PlainMessage | undefined, b: EventSend | PlainMessage | undefined): boolean { - return proto3.util.equals(EventSend, a, b); - } -} - -/** - * EventMint is emitted on Mint - * - * @generated from message cosmos.nft.v1beta1.EventMint - */ -export class EventMint extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * id is a unique identifier of the nft - * - * @generated from field: string id = 2; - */ - id = ""; - - /** - * owner is the owner address of the nft - * - * @generated from field: string owner = 3; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.EventMint"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventMint { - return new EventMint().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventMint { - return new EventMint().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventMint { - return new EventMint().fromJsonString(jsonString, options); - } - - static equals(a: EventMint | PlainMessage | undefined, b: EventMint | PlainMessage | undefined): boolean { - return proto3.util.equals(EventMint, a, b); - } -} - -/** - * EventBurn is emitted on Burn - * - * @generated from message cosmos.nft.v1beta1.EventBurn - */ -export class EventBurn extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * id is a unique identifier of the nft - * - * @generated from field: string id = 2; - */ - id = ""; - - /** - * owner is the owner address of the nft - * - * @generated from field: string owner = 3; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.EventBurn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBurn { - return new EventBurn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBurn { - return new EventBurn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBurn { - return new EventBurn().fromJsonString(jsonString, options); - } - - static equals(a: EventBurn | PlainMessage | undefined, b: EventBurn | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBurn, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/nft/v1beta1/genesis_pb.ts deleted file mode 100644 index 000a13b..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,107 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/nft/v1beta1/genesis.proto (package cosmos.nft.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Class, NFT } from "./nft_pb.js"; - -/** - * GenesisState defines the nft module's genesis state. - * - * @generated from message cosmos.nft.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * class defines the class of the nft type. - * - * @generated from field: repeated cosmos.nft.v1beta1.Class classes = 1; - */ - classes: Class[] = []; - - /** - * entry defines all nft owned by a person. - * - * @generated from field: repeated cosmos.nft.v1beta1.Entry entries = 2; - */ - entries: Entry[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "classes", kind: "message", T: Class, repeated: true }, - { no: 2, name: "entries", kind: "message", T: Entry, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * Entry Defines all nft owned by a person - * - * @generated from message cosmos.nft.v1beta1.Entry - */ -export class Entry extends Message { - /** - * owner is the owner address of the following nft - * - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * nfts is a group of nfts of the same owner - * - * @generated from field: repeated cosmos.nft.v1beta1.NFT nfts = 2; - */ - nfts: NFT[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.Entry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "nfts", kind: "message", T: NFT, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Entry { - return new Entry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Entry { - return new Entry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Entry { - return new Entry().fromJsonString(jsonString, options); - } - - static equals(a: Entry | PlainMessage | undefined, b: Entry | PlainMessage | undefined): boolean { - return proto3.util.equals(Entry, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/nft_pb.ts b/libs/es-client/src/protobufs/cosmos/nft/v1beta1/nft_pb.ts deleted file mode 100644 index 717fd70..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/nft_pb.ts +++ /dev/null @@ -1,170 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/nft/v1beta1/nft.proto (package cosmos.nft.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Class defines the class of the nft type. - * - * @generated from message cosmos.nft.v1beta1.Class - */ -export class Class extends Message { - /** - * id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 - * - * @generated from field: string id = 1; - */ - id = ""; - - /** - * name defines the human-readable name of the NFT classification. Optional - * - * @generated from field: string name = 2; - */ - name = ""; - - /** - * symbol is an abbreviated name for nft classification. Optional - * - * @generated from field: string symbol = 3; - */ - symbol = ""; - - /** - * description is a brief description of nft classification. Optional - * - * @generated from field: string description = 4; - */ - description = ""; - - /** - * uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional - * - * @generated from field: string uri = 5; - */ - uri = ""; - - /** - * uri_hash is a hash of the document pointed by uri. Optional - * - * @generated from field: string uri_hash = 6; - */ - uriHash = ""; - - /** - * data is the app specific metadata of the NFT class. Optional - * - * @generated from field: google.protobuf.Any data = 7; - */ - data?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.Class"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "data", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Class { - return new Class().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Class { - return new Class().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Class { - return new Class().fromJsonString(jsonString, options); - } - - static equals(a: Class | PlainMessage | undefined, b: Class | PlainMessage | undefined): boolean { - return proto3.util.equals(Class, a, b); - } -} - -/** - * NFT defines the NFT. - * - * @generated from message cosmos.nft.v1beta1.NFT - */ -export class NFT extends Message { - /** - * class_id associated with the NFT, similar to the contract address of ERC721 - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * id is a unique identifier of the NFT - * - * @generated from field: string id = 2; - */ - id = ""; - - /** - * uri for the NFT metadata stored off chain - * - * @generated from field: string uri = 3; - */ - uri = ""; - - /** - * uri_hash is a hash of the document pointed by uri - * - * @generated from field: string uri_hash = 4; - */ - uriHash = ""; - - /** - * data is an app specific data of the NFT. Optional - * - * @generated from field: google.protobuf.Any data = 10; - */ - data?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.NFT"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "uri_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "data", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NFT { - return new NFT().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NFT { - return new NFT().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NFT { - return new NFT().fromJsonString(jsonString, options); - } - - static equals(a: NFT | PlainMessage | undefined, b: NFT | PlainMessage | undefined): boolean { - return proto3.util.equals(NFT, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_cosmes.ts deleted file mode 100644 index b40aada..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,94 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/nft/v1beta1/query.proto (package cosmos.nft.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBalanceRequest, QueryBalanceResponse, QueryClassesRequest, QueryClassesResponse, QueryClassRequest, QueryClassResponse, QueryNFTRequest, QueryNFTResponse, QueryNFTsRequest, QueryNFTsResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.nft.v1beta1.Query"; - -/** - * Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 - * - * @generated from rpc cosmos.nft.v1beta1.Query.Balance - */ -export const QueryBalanceService = { - typeName: TYPE_NAME, - method: "Balance", - Request: QueryBalanceRequest, - Response: QueryBalanceResponse, -} as const; - -/** - * Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721 - * - * @generated from rpc cosmos.nft.v1beta1.Query.Owner - */ -export const QueryOwnerService = { - typeName: TYPE_NAME, - method: "Owner", - Request: QueryOwnerRequest, - Response: QueryOwnerResponse, -} as const; - -/** - * Supply queries the number of NFTs from the given class, same as totalSupply of ERC721. - * - * @generated from rpc cosmos.nft.v1beta1.Query.Supply - */ -export const QuerySupplyService = { - typeName: TYPE_NAME, - method: "Supply", - Request: QuerySupplyRequest, - Response: QuerySupplyResponse, -} as const; - -/** - * NFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in - * ERC721Enumerable - * - * @generated from rpc cosmos.nft.v1beta1.Query.NFTs - */ -export const QueryNFTsService = { - typeName: TYPE_NAME, - method: "NFTs", - Request: QueryNFTsRequest, - Response: QueryNFTsResponse, -} as const; - -/** - * NFT queries an NFT based on its class and id. - * - * @generated from rpc cosmos.nft.v1beta1.Query.NFT - */ -export const QueryNFTService = { - typeName: TYPE_NAME, - method: "NFT", - Request: QueryNFTRequest, - Response: QueryNFTResponse, -} as const; - -/** - * Class queries an NFT class based on its id - * - * @generated from rpc cosmos.nft.v1beta1.Query.Class - */ -export const QueryClassService = { - typeName: TYPE_NAME, - method: "Class", - Request: QueryClassRequest, - Response: QueryClassResponse, -} as const; - -/** - * Classes queries all NFT classes - * - * @generated from rpc cosmos.nft.v1beta1.Query.Classes - */ -export const QueryClassesService = { - typeName: TYPE_NAME, - method: "Classes", - Request: QueryClassesRequest, - Response: QueryClassesResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_pb.ts deleted file mode 100644 index 91bc75c..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/query_pb.ts +++ /dev/null @@ -1,640 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/nft/v1beta1/query.proto (package cosmos.nft.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; -import { Class, NFT } from "./nft_pb.js"; - -/** - * QueryBalanceRequest is the request type for the Query/Balance RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryBalanceRequest - */ -export class QueryBalanceRequest extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * owner is the owner address of the nft - * - * @generated from field: string owner = 2; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryBalanceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBalanceRequest, a, b); - } -} - -/** - * QueryBalanceResponse is the response type for the Query/Balance RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryBalanceResponse - */ -export class QueryBalanceResponse extends Message { - /** - * amount is the number of all NFTs of a given class owned by the owner - * - * @generated from field: uint64 amount = 1; - */ - amount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryBalanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBalanceResponse, a, b); - } -} - -/** - * QueryOwnerRequest is the request type for the Query/Owner RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryOwnerRequest - */ -export class QueryOwnerRequest extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * id is a unique identifier of the NFT - * - * @generated from field: string id = 2; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryOwnerRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryOwnerRequest { - return new QueryOwnerRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryOwnerRequest { - return new QueryOwnerRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryOwnerRequest { - return new QueryOwnerRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryOwnerRequest | PlainMessage | undefined, b: QueryOwnerRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryOwnerRequest, a, b); - } -} - -/** - * QueryOwnerResponse is the response type for the Query/Owner RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryOwnerResponse - */ -export class QueryOwnerResponse extends Message { - /** - * owner is the owner address of the nft - * - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryOwnerResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryOwnerResponse { - return new QueryOwnerResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryOwnerResponse { - return new QueryOwnerResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryOwnerResponse { - return new QueryOwnerResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryOwnerResponse | PlainMessage | undefined, b: QueryOwnerResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryOwnerResponse, a, b); - } -} - -/** - * QuerySupplyRequest is the request type for the Query/Supply RPC method - * - * @generated from message cosmos.nft.v1beta1.QuerySupplyRequest - */ -export class QuerySupplyRequest extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QuerySupplyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupplyRequest { - return new QuerySupplyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupplyRequest { - return new QuerySupplyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySupplyRequest { - return new QuerySupplyRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySupplyRequest | PlainMessage | undefined, b: QuerySupplyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySupplyRequest, a, b); - } -} - -/** - * QuerySupplyResponse is the response type for the Query/Supply RPC method - * - * @generated from message cosmos.nft.v1beta1.QuerySupplyResponse - */ -export class QuerySupplyResponse extends Message { - /** - * amount is the number of all NFTs from the given class - * - * @generated from field: uint64 amount = 1; - */ - amount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QuerySupplyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupplyResponse { - return new QuerySupplyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupplyResponse { - return new QuerySupplyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySupplyResponse { - return new QuerySupplyResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySupplyResponse | PlainMessage | undefined, b: QuerySupplyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySupplyResponse, a, b); - } -} - -/** - * QueryNFTstRequest is the request type for the Query/NFTs RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryNFTsRequest - */ -export class QueryNFTsRequest extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * owner is the owner address of the nft - * - * @generated from field: string owner = 2; - */ - owner = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryNFTsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTsRequest { - return new QueryNFTsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTsRequest { - return new QueryNFTsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNFTsRequest { - return new QueryNFTsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryNFTsRequest | PlainMessage | undefined, b: QueryNFTsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNFTsRequest, a, b); - } -} - -/** - * QueryNFTsResponse is the response type for the Query/NFTs RPC methods - * - * @generated from message cosmos.nft.v1beta1.QueryNFTsResponse - */ -export class QueryNFTsResponse extends Message { - /** - * NFT defines the NFT - * - * @generated from field: repeated cosmos.nft.v1beta1.NFT nfts = 1; - */ - nfts: NFT[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryNFTsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "nfts", kind: "message", T: NFT, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTsResponse { - return new QueryNFTsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTsResponse { - return new QueryNFTsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNFTsResponse { - return new QueryNFTsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryNFTsResponse | PlainMessage | undefined, b: QueryNFTsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNFTsResponse, a, b); - } -} - -/** - * QueryNFTRequest is the request type for the Query/NFT RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryNFTRequest - */ -export class QueryNFTRequest extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * id is a unique identifier of the NFT - * - * @generated from field: string id = 2; - */ - id = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryNFTRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTRequest { - return new QueryNFTRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTRequest { - return new QueryNFTRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNFTRequest { - return new QueryNFTRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryNFTRequest | PlainMessage | undefined, b: QueryNFTRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNFTRequest, a, b); - } -} - -/** - * QueryNFTResponse is the response type for the Query/NFT RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryNFTResponse - */ -export class QueryNFTResponse extends Message { - /** - * owner is the owner address of the nft - * - * @generated from field: cosmos.nft.v1beta1.NFT nft = 1; - */ - nft?: NFT; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryNFTResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "nft", kind: "message", T: NFT }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTResponse { - return new QueryNFTResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTResponse { - return new QueryNFTResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNFTResponse { - return new QueryNFTResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryNFTResponse | PlainMessage | undefined, b: QueryNFTResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNFTResponse, a, b); - } -} - -/** - * QueryClassRequest is the request type for the Query/Class RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryClassRequest - */ -export class QueryClassRequest extends Message { - /** - * class_id associated with the nft - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryClassRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassRequest { - return new QueryClassRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassRequest { - return new QueryClassRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClassRequest { - return new QueryClassRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryClassRequest | PlainMessage | undefined, b: QueryClassRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClassRequest, a, b); - } -} - -/** - * QueryClassResponse is the response type for the Query/Class RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryClassResponse - */ -export class QueryClassResponse extends Message { - /** - * class defines the class of the nft type. - * - * @generated from field: cosmos.nft.v1beta1.Class class = 1; - */ - class?: Class; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryClassResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class", kind: "message", T: Class }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassResponse { - return new QueryClassResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassResponse { - return new QueryClassResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClassResponse { - return new QueryClassResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryClassResponse | PlainMessage | undefined, b: QueryClassResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClassResponse, a, b); - } -} - -/** - * QueryClassesRequest is the request type for the Query/Classes RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryClassesRequest - */ -export class QueryClassesRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryClassesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassesRequest { - return new QueryClassesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassesRequest { - return new QueryClassesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClassesRequest { - return new QueryClassesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryClassesRequest | PlainMessage | undefined, b: QueryClassesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClassesRequest, a, b); - } -} - -/** - * QueryClassesResponse is the response type for the Query/Classes RPC method - * - * @generated from message cosmos.nft.v1beta1.QueryClassesResponse - */ -export class QueryClassesResponse extends Message { - /** - * class defines the class of the nft type. - * - * @generated from field: repeated cosmos.nft.v1beta1.Class classes = 1; - */ - classes: Class[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.QueryClassesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "classes", kind: "message", T: Class, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassesResponse { - return new QueryClassesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassesResponse { - return new QueryClassesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClassesResponse { - return new QueryClassesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryClassesResponse | PlainMessage | undefined, b: QueryClassesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClassesResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_cosmes.ts deleted file mode 100644 index 13ecbb8..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/nft/v1beta1/tx.proto (package cosmos.nft.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgSend, MsgSendResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.nft.v1beta1.Msg"; - -/** - * Send defines a method to send a nft from one account to another account. - * - * @generated from rpc cosmos.nft.v1beta1.Msg.Send - */ -export const MsgSendService = { - typeName: TYPE_NAME, - method: "Send", - Request: MsgSend, - Response: MsgSendResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_pb.ts deleted file mode 100644 index 402abeb..0000000 --- a/libs/es-client/src/protobufs/cosmos/nft/v1beta1/tx_pb.ts +++ /dev/null @@ -1,106 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/nft/v1beta1/tx.proto (package cosmos.nft.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * MsgSend represents a message to send a nft from one account to another account. - * - * @generated from message cosmos.nft.v1beta1.MsgSend - */ -export class MsgSend extends Message { - /** - * class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721 - * - * @generated from field: string class_id = 1; - */ - classId = ""; - - /** - * id defines the unique identification of nft - * - * @generated from field: string id = 2; - */ - id = ""; - - /** - * sender is the address of the owner of nft - * - * @generated from field: string sender = 3; - */ - sender = ""; - - /** - * receiver is the receiver address of nft - * - * @generated from field: string receiver = 4; - */ - receiver = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.MsgSend"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSend { - return new MsgSend().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSend { - return new MsgSend().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSend { - return new MsgSend().fromJsonString(jsonString, options); - } - - static equals(a: MsgSend | PlainMessage | undefined, b: MsgSend | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSend, a, b); - } -} - -/** - * MsgSendResponse defines the Msg/Send response type. - * - * @generated from message cosmos.nft.v1beta1.MsgSendResponse - */ -export class MsgSendResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.nft.v1beta1.MsgSendResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendResponse { - return new MsgSendResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendResponse { - return new MsgSendResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSendResponse { - return new MsgSendResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSendResponse | PlainMessage | undefined, b: MsgSendResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSendResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts deleted file mode 100644 index bd3dc26..0000000 --- a/libs/es-client/src/protobufs/cosmos/orm/module/v1alpha1/module_pb.ts +++ /dev/null @@ -1,43 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/orm/module/v1alpha1/module.proto (package cosmos.orm.module.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module defines the ORM module which adds providers to the app container for - * ORM ModuleDB's and in the future will automatically register query - * services for modules that use the ORM. - * - * @generated from message cosmos.orm.module.v1alpha1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.module.v1alpha1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_cosmes.ts deleted file mode 100644 index 6afe524..0000000 --- a/libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_cosmes.ts +++ /dev/null @@ -1,37 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/orm/query/v1alpha1/query.proto (package cosmos.orm.query.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - GetRequest, - GetResponse, - ListRequest, - ListResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "cosmos.orm.query.v1alpha1.Query"; - -/** - * Get queries an ORM table against an unique index. - * - * @generated from rpc cosmos.orm.query.v1alpha1.Query.Get - */ -export const QueryGetService = { - typeName: TYPE_NAME, - method: "Get", - Request: GetRequest, - Response: GetResponse, -} as const; - -/** - * List queries an ORM table against an index. - * - * @generated from rpc cosmos.orm.query.v1alpha1.Query.List - */ -export const QueryListService = { - typeName: TYPE_NAME, - method: "List", - Request: ListRequest, - Response: ListResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_pb.ts deleted file mode 100644 index 8c5adb6..0000000 --- a/libs/es-client/src/protobufs/cosmos/orm/query/v1alpha1/query_pb.ts +++ /dev/null @@ -1,456 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/orm/query/v1alpha1/query.proto (package cosmos.orm.query.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../../base/query/v1beta1/pagination_pb.js"; - -/** - * GetRequest is the Query/Get request type. - * - * @generated from message cosmos.orm.query.v1alpha1.GetRequest - */ -export class GetRequest extends Message { - /** - * message_name is the fully-qualified message name of the ORM table being queried. - * - * @generated from field: string message_name = 1; - */ - messageName = ""; - - /** - * index is the index fields expression used in orm definitions. If it - * is empty, the table's primary key is assumed. If it is non-empty, it must - * refer to an unique index. - * - * @generated from field: string index = 2; - */ - index = ""; - - /** - * values are the values of the fields corresponding to the requested index. - * There must be as many values provided as there are fields in the index and - * these values must correspond to the index field types. - * - * @generated from field: repeated cosmos.orm.query.v1alpha1.IndexValue values = 3; - */ - values: IndexValue[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.query.v1alpha1.GetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "message_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "values", kind: "message", T: IndexValue, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRequest { - return new GetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRequest { - return new GetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetRequest { - return new GetRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetRequest | PlainMessage | undefined, b: GetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetRequest, a, b); - } -} - -/** - * GetResponse is the Query/Get response type. - * - * @generated from message cosmos.orm.query.v1alpha1.GetResponse - */ -export class GetResponse extends Message { - /** - * result is the result of the get query. If no value is found, the gRPC - * status code NOT_FOUND will be returned. - * - * @generated from field: google.protobuf.Any result = 1; - */ - result?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.query.v1alpha1.GetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetResponse { - return new GetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetResponse { - return new GetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetResponse { - return new GetResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetResponse | PlainMessage | undefined, b: GetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetResponse, a, b); - } -} - -/** - * ListRequest is the Query/List request type. - * - * @generated from message cosmos.orm.query.v1alpha1.ListRequest - */ -export class ListRequest extends Message { - /** - * message_name is the fully-qualified message name of the ORM table being queried. - * - * @generated from field: string message_name = 1; - */ - messageName = ""; - - /** - * index is the index fields expression used in orm definitions. If it - * is empty, the table's primary key is assumed. - * - * @generated from field: string index = 2; - */ - index = ""; - - /** - * query is the query expression corresponding to the provided index. If - * neither prefix nor range is specified, the query will list all the fields - * in the index. - * - * @generated from oneof cosmos.orm.query.v1alpha1.ListRequest.query - */ - query: { - /** - * prefix defines a prefix query. - * - * @generated from field: cosmos.orm.query.v1alpha1.ListRequest.Prefix prefix = 3; - */ - value: ListRequest_Prefix; - case: "prefix"; - } | { - /** - * range defines a range query. - * - * @generated from field: cosmos.orm.query.v1alpha1.ListRequest.Range range = 4; - */ - value: ListRequest_Range; - case: "range"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * pagination is the pagination request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 5; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.query.v1alpha1.ListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "message_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "prefix", kind: "message", T: ListRequest_Prefix, oneof: "query" }, - { no: 4, name: "range", kind: "message", T: ListRequest_Range, oneof: "query" }, - { no: 5, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListRequest { - return new ListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListRequest { - return new ListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListRequest { - return new ListRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListRequest | PlainMessage | undefined, b: ListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListRequest, a, b); - } -} - -/** - * Prefix specifies the arguments to a prefix query. - * - * @generated from message cosmos.orm.query.v1alpha1.ListRequest.Prefix - */ -export class ListRequest_Prefix extends Message { - /** - * values specifies the index values for the prefix query. - * It is valid to special a partial prefix with fewer values than - * the number of fields in the index. - * - * @generated from field: repeated cosmos.orm.query.v1alpha1.IndexValue values = 1; - */ - values: IndexValue[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.query.v1alpha1.ListRequest.Prefix"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "values", kind: "message", T: IndexValue, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListRequest_Prefix { - return new ListRequest_Prefix().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListRequest_Prefix { - return new ListRequest_Prefix().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListRequest_Prefix { - return new ListRequest_Prefix().fromJsonString(jsonString, options); - } - - static equals(a: ListRequest_Prefix | PlainMessage | undefined, b: ListRequest_Prefix | PlainMessage | undefined): boolean { - return proto3.util.equals(ListRequest_Prefix, a, b); - } -} - -/** - * Range specifies the arguments to a range query. - * - * @generated from message cosmos.orm.query.v1alpha1.ListRequest.Range - */ -export class ListRequest_Range extends Message { - /** - * start specifies the starting index values for the range query. - * It is valid to provide fewer values than the number of fields in the - * index. - * - * @generated from field: repeated cosmos.orm.query.v1alpha1.IndexValue start = 1; - */ - start: IndexValue[] = []; - - /** - * end specifies the inclusive ending index values for the range query. - * It is valid to provide fewer values than the number of fields in the - * index. - * - * @generated from field: repeated cosmos.orm.query.v1alpha1.IndexValue end = 2; - */ - end: IndexValue[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.query.v1alpha1.ListRequest.Range"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "start", kind: "message", T: IndexValue, repeated: true }, - { no: 2, name: "end", kind: "message", T: IndexValue, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListRequest_Range { - return new ListRequest_Range().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListRequest_Range { - return new ListRequest_Range().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListRequest_Range { - return new ListRequest_Range().fromJsonString(jsonString, options); - } - - static equals(a: ListRequest_Range | PlainMessage | undefined, b: ListRequest_Range | PlainMessage | undefined): boolean { - return proto3.util.equals(ListRequest_Range, a, b); - } -} - -/** - * ListResponse is the Query/List response type. - * - * @generated from message cosmos.orm.query.v1alpha1.ListResponse - */ -export class ListResponse extends Message { - /** - * results are the results of the query. - * - * @generated from field: repeated google.protobuf.Any results = 1; - */ - results: Any[] = []; - - /** - * pagination is the pagination response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 5; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.query.v1alpha1.ListResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "results", kind: "message", T: Any, repeated: true }, - { no: 5, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListResponse { - return new ListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListResponse { - return new ListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListResponse { - return new ListResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListResponse | PlainMessage | undefined, b: ListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListResponse, a, b); - } -} - -/** - * IndexValue represents the value of a field in an ORM index expression. - * - * @generated from message cosmos.orm.query.v1alpha1.IndexValue - */ -export class IndexValue extends Message { - /** - * value specifies the index value - * - * @generated from oneof cosmos.orm.query.v1alpha1.IndexValue.value - */ - value: { - /** - * uint specifies a value for an uint32, fixed32, uint64, or fixed64 - * index field. - * - * @generated from field: uint64 uint = 1; - */ - value: bigint; - case: "uint"; - } | { - /** - * int64 specifies a value for an int32, sfixed32, int64, or sfixed64 - * index field. - * - * @generated from field: int64 int = 2; - */ - value: bigint; - case: "int"; - } | { - /** - * str specifies a value for a string index field. - * - * @generated from field: string str = 3; - */ - value: string; - case: "str"; - } | { - /** - * bytes specifies a value for a bytes index field. - * - * @generated from field: bytes bytes = 4; - */ - value: Uint8Array; - case: "bytes"; - } | { - /** - * enum specifies a value for an enum index field. - * - * @generated from field: string enum = 5; - */ - value: string; - case: "enum"; - } | { - /** - * bool specifies a value for a bool index field. - * - * @generated from field: bool bool = 6; - */ - value: boolean; - case: "bool"; - } | { - /** - * timestamp specifies a value for a timestamp index field. - * - * @generated from field: google.protobuf.Timestamp timestamp = 7; - */ - value: Timestamp; - case: "timestamp"; - } | { - /** - * duration specifies a value for a duration index field. - * - * @generated from field: google.protobuf.Duration duration = 8; - */ - value: Duration; - case: "duration"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.query.v1alpha1.IndexValue"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uint", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "value" }, - { no: 2, name: "int", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "value" }, - { no: 3, name: "str", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, - { no: 4, name: "bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "value" }, - { no: 5, name: "enum", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, - { no: 6, name: "bool", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" }, - { no: 7, name: "timestamp", kind: "message", T: Timestamp, oneof: "value" }, - { no: 8, name: "duration", kind: "message", T: Duration, oneof: "value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IndexValue { - return new IndexValue().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IndexValue { - return new IndexValue().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IndexValue { - return new IndexValue().fromJsonString(jsonString, options); - } - - static equals(a: IndexValue | PlainMessage | undefined, b: IndexValue | PlainMessage | undefined): boolean { - return proto3.util.equals(IndexValue, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/orm/v1/orm_pb.ts b/libs/es-client/src/protobufs/cosmos/orm/v1/orm_pb.ts deleted file mode 100644 index 7a6f2c4..0000000 --- a/libs/es-client/src/protobufs/cosmos/orm/v1/orm_pb.ts +++ /dev/null @@ -1,260 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/orm/v1/orm.proto (package cosmos.orm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * TableDescriptor describes an ORM table. - * - * @generated from message cosmos.orm.v1.TableDescriptor - */ -export class TableDescriptor extends Message { - /** - * primary_key defines the primary key for the table. - * - * @generated from field: cosmos.orm.v1.PrimaryKeyDescriptor primary_key = 1; - */ - primaryKey?: PrimaryKeyDescriptor; - - /** - * index defines one or more secondary indexes. - * - * @generated from field: repeated cosmos.orm.v1.SecondaryIndexDescriptor index = 2; - */ - index: SecondaryIndexDescriptor[] = []; - - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - * - * @generated from field: uint32 id = 3; - */ - id = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.v1.TableDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "primary_key", kind: "message", T: PrimaryKeyDescriptor }, - { no: 2, name: "index", kind: "message", T: SecondaryIndexDescriptor, repeated: true }, - { no: 3, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TableDescriptor { - return new TableDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TableDescriptor { - return new TableDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TableDescriptor { - return new TableDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: TableDescriptor | PlainMessage | undefined, b: TableDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(TableDescriptor, a, b); - } -} - -/** - * PrimaryKeyDescriptor describes a table primary key. - * - * @generated from message cosmos.orm.v1.PrimaryKeyDescriptor - */ -export class PrimaryKeyDescriptor extends Message { - /** - * fields is a comma-separated list of fields in the primary key. Spaces are - * not allowed. Supported field types, their encodings, and any applicable constraints - * are described below. - * - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers. - * - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that - * is suitable for sorted iteration (not varint encoding). This type is - * well-suited for small integers such as auto-incrementing sequences. - * - fixed32, fixed64 are encoded as big-endian fixed width bytes and support - * sorted iteration. These types are well-suited for encoding fixed with - * decimals as integers. - * - string's are encoded as raw bytes in terminal key segments and null-terminated - * in non-terminal segments. Null characters are thus forbidden in strings. - * string fields support sorted iteration. - * - bytes are encoded as raw bytes in terminal segments and length-prefixed - * with a 32-bit unsigned varint in non-terminal segments. - * - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with - * an encoding that enables sorted iteration. - * - google.protobuf.Timestamp is encoded such that values with only seconds occupy 6 bytes, - * values including nanos occupy 9 bytes, and nil values occupy 1 byte. When iterating, nil - * values will always be ordered last. Seconds and nanos values must conform to the officially - * specified ranges of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z and 0 to 999,999,999 respectively. - * - google.protobuf.Duration is encoded as 12 bytes using an encoding that enables sorted iteration. - * - enum fields are encoded using varint encoding and do not support sorted - * iteration. - * - bool fields are encoded as a single byte 0 or 1. - * - * All other fields types are unsupported in keys including repeated and - * oneof fields. - * - * Primary keys are prefixed by the varint encoded table id and the byte 0x0 - * plus any additional prefix specified by the schema. - * - * @generated from field: string fields = 1; - */ - fields = ""; - - /** - * auto_increment specifies that the primary key is generated by an - * auto-incrementing integer. If this is set to true fields must only - * contain one field of that is of type uint64. - * - * @generated from field: bool auto_increment = 2; - */ - autoIncrement = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.v1.PrimaryKeyDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fields", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "auto_increment", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PrimaryKeyDescriptor { - return new PrimaryKeyDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PrimaryKeyDescriptor { - return new PrimaryKeyDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PrimaryKeyDescriptor { - return new PrimaryKeyDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: PrimaryKeyDescriptor | PlainMessage | undefined, b: PrimaryKeyDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(PrimaryKeyDescriptor, a, b); - } -} - -/** - * PrimaryKeyDescriptor describes a table secondary index. - * - * @generated from message cosmos.orm.v1.SecondaryIndexDescriptor - */ -export class SecondaryIndexDescriptor extends Message { - /** - * fields is a comma-separated list of fields in the index. The supported - * field types are the same as those for PrimaryKeyDescriptor.fields. - * Index keys are prefixed by the varint encoded table id and the varint - * encoded index id plus any additional prefix specified by the schema. - * - * In addition the field segments, non-unique index keys are suffixed with - * any additional primary key fields not present in the index fields so that the - * primary key can be reconstructed. Unique indexes instead of being suffixed - * store the remaining primary key fields in the value.. - * - * @generated from field: string fields = 1; - */ - fields = ""; - - /** - * id is a non-zero integer ID that must be unique within the indexes for this - * table and less than 32768. It may be deprecated in the future when this can - * be auto-generated. - * - * @generated from field: uint32 id = 2; - */ - id = 0; - - /** - * unique specifies that this an unique index. - * - * @generated from field: bool unique = 3; - */ - unique = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.v1.SecondaryIndexDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fields", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "unique", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SecondaryIndexDescriptor { - return new SecondaryIndexDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SecondaryIndexDescriptor { - return new SecondaryIndexDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SecondaryIndexDescriptor { - return new SecondaryIndexDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: SecondaryIndexDescriptor | PlainMessage | undefined, b: SecondaryIndexDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(SecondaryIndexDescriptor, a, b); - } -} - -/** - * TableDescriptor describes an ORM singleton table which has at most one instance. - * - * @generated from message cosmos.orm.v1.SingletonDescriptor - */ -export class SingletonDescriptor extends Message { - /** - * id is a non-zero integer ID that must be unique within the - * tables and singletons in this file. It may be deprecated in the future when this - * can be auto-generated. - * - * @generated from field: uint32 id = 1; - */ - id = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.v1.SingletonDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SingletonDescriptor { - return new SingletonDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SingletonDescriptor { - return new SingletonDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SingletonDescriptor { - return new SingletonDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: SingletonDescriptor | PlainMessage | undefined, b: SingletonDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(SingletonDescriptor, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts b/libs/es-client/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts deleted file mode 100644 index 8a1fb8c..0000000 --- a/libs/es-client/src/protobufs/cosmos/orm/v1alpha1/schema_pb.ts +++ /dev/null @@ -1,159 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/orm/v1alpha1/schema.proto (package cosmos.orm.v1alpha1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * StorageType - * - * @generated from enum cosmos.orm.v1alpha1.StorageType - */ -export enum StorageType { - /** - * STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent storage where all - * data is stored in the regular Merkle-tree backed KV-store. - * - * @generated from enum value: STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0; - */ - DEFAULT_UNSPECIFIED = 0, - - /** - * STORAGE_TYPE_MEMORY indicates in-memory storage that will be - * reloaded every time an app restarts. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - * - * @generated from enum value: STORAGE_TYPE_MEMORY = 1; - */ - MEMORY = 1, - - /** - * STORAGE_TYPE_TRANSIENT indicates transient storage that is reset - * at the end of every block. Tables with this type of storage - * will by default be ignored when importing and exporting a module's - * state from JSON. - * - * @generated from enum value: STORAGE_TYPE_TRANSIENT = 2; - */ - TRANSIENT = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(StorageType) -proto3.util.setEnumType(StorageType, "cosmos.orm.v1alpha1.StorageType", [ - { no: 0, name: "STORAGE_TYPE_DEFAULT_UNSPECIFIED" }, - { no: 1, name: "STORAGE_TYPE_MEMORY" }, - { no: 2, name: "STORAGE_TYPE_TRANSIENT" }, -]); - -/** - * ModuleSchemaDescriptor describe's a module's ORM schema. - * - * @generated from message cosmos.orm.v1alpha1.ModuleSchemaDescriptor - */ -export class ModuleSchemaDescriptor extends Message { - /** - * @generated from field: repeated cosmos.orm.v1alpha1.ModuleSchemaDescriptor.FileEntry schema_file = 1; - */ - schemaFile: ModuleSchemaDescriptor_FileEntry[] = []; - - /** - * prefix is an optional prefix that precedes all keys in this module's - * store. - * - * @generated from field: bytes prefix = 2; - */ - prefix = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.v1alpha1.ModuleSchemaDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "schema_file", kind: "message", T: ModuleSchemaDescriptor_FileEntry, repeated: true }, - { no: 2, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleSchemaDescriptor { - return new ModuleSchemaDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleSchemaDescriptor { - return new ModuleSchemaDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleSchemaDescriptor { - return new ModuleSchemaDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: ModuleSchemaDescriptor | PlainMessage | undefined, b: ModuleSchemaDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleSchemaDescriptor, a, b); - } -} - -/** - * FileEntry describes an ORM file used in a module. - * - * @generated from message cosmos.orm.v1alpha1.ModuleSchemaDescriptor.FileEntry - */ -export class ModuleSchemaDescriptor_FileEntry extends Message { - /** - * id is a prefix that will be varint encoded and prepended to all the - * table keys specified in the file's tables. - * - * @generated from field: uint32 id = 1; - */ - id = 0; - - /** - * proto_file_name is the name of a file .proto in that contains - * table definitions. The .proto file must be in a package that the - * module has referenced using cosmos.app.v1.ModuleDescriptor.use_package. - * - * @generated from field: string proto_file_name = 2; - */ - protoFileName = ""; - - /** - * storage_type optionally indicates the type of storage this file's - * tables should used. If it is left unspecified, the default KV-storage - * of the app will be used. - * - * @generated from field: cosmos.orm.v1alpha1.StorageType storage_type = 3; - */ - storageType = StorageType.DEFAULT_UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.orm.v1alpha1.ModuleSchemaDescriptor.FileEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "proto_file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "storage_type", kind: "enum", T: proto3.getEnumType(StorageType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleSchemaDescriptor_FileEntry { - return new ModuleSchemaDescriptor_FileEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleSchemaDescriptor_FileEntry { - return new ModuleSchemaDescriptor_FileEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleSchemaDescriptor_FileEntry { - return new ModuleSchemaDescriptor_FileEntry().fromJsonString(jsonString, options); - } - - static equals(a: ModuleSchemaDescriptor_FileEntry | PlainMessage | undefined, b: ModuleSchemaDescriptor_FileEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleSchemaDescriptor_FileEntry, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/params/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/params/module/v1/module_pb.ts deleted file mode 100644 index f6e64c9..0000000 --- a/libs/es-client/src/protobufs/cosmos/params/module/v1/module_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/params/module/v1/module.proto (package cosmos.params.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the params module. - * - * @generated from message cosmos.params.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/params/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/cosmos/params/v1beta1/params_pb.ts deleted file mode 100644 index a9d3d42..0000000 --- a/libs/es-client/src/protobufs/cosmos/params/v1beta1/params_pb.ts +++ /dev/null @@ -1,111 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/params/v1beta1/params.proto (package cosmos.params.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ParameterChangeProposal defines a proposal to change one or more parameters. - * - * @generated from message cosmos.params.v1beta1.ParameterChangeProposal - */ -export class ParameterChangeProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated cosmos.params.v1beta1.ParamChange changes = 3; - */ - changes: ParamChange[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.v1beta1.ParameterChangeProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "changes", kind: "message", T: ParamChange, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParameterChangeProposal { - return new ParameterChangeProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParameterChangeProposal { - return new ParameterChangeProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParameterChangeProposal { - return new ParameterChangeProposal().fromJsonString(jsonString, options); - } - - static equals(a: ParameterChangeProposal | PlainMessage | undefined, b: ParameterChangeProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(ParameterChangeProposal, a, b); - } -} - -/** - * ParamChange defines an individual parameter change, for use in - * ParameterChangeProposal. - * - * @generated from message cosmos.params.v1beta1.ParamChange - */ -export class ParamChange extends Message { - /** - * @generated from field: string subspace = 1; - */ - subspace = ""; - - /** - * @generated from field: string key = 2; - */ - key = ""; - - /** - * @generated from field: string value = 3; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.v1beta1.ParamChange"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subspace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamChange { - return new ParamChange().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamChange { - return new ParamChange().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamChange { - return new ParamChange().fromJsonString(jsonString, options); - } - - static equals(a: ParamChange | PlainMessage | undefined, b: ParamChange | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamChange, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/params/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/params/v1beta1/query_cosmes.ts deleted file mode 100644 index 166c3d0..0000000 --- a/libs/es-client/src/protobufs/cosmos/params/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,36 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/params/v1beta1/query.proto (package cosmos.params.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryParamsRequest, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.params.v1beta1.Query"; - -/** - * Params queries a specific parameter of a module, given its subspace and - * key. - * - * @generated from rpc cosmos.params.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Subspaces queries for all registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.params.v1beta1.Query.Subspaces - */ -export const QuerySubspacesService = { - typeName: TYPE_NAME, - method: "Subspaces", - Request: QuerySubspacesRequest, - Response: QuerySubspacesResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/params/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/params/v1beta1/query_pb.ts deleted file mode 100644 index 6c10fad..0000000 --- a/libs/es-client/src/protobufs/cosmos/params/v1beta1/query_pb.ts +++ /dev/null @@ -1,225 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/params/v1beta1/query.proto (package cosmos.params.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { ParamChange } from "./params_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message cosmos.params.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - /** - * subspace defines the module to query the parameter for. - * - * @generated from field: string subspace = 1; - */ - subspace = ""; - - /** - * key defines the key of the parameter in the subspace. - * - * @generated from field: string key = 2; - */ - key = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subspace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message cosmos.params.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * param defines the queried parameter. - * - * @generated from field: cosmos.params.v1beta1.ParamChange param = 1; - */ - param?: ParamChange; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "param", kind: "message", T: ParamChange }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QuerySubspacesRequest defines a request type for querying for all registered - * subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.params.v1beta1.QuerySubspacesRequest - */ -export class QuerySubspacesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.v1beta1.QuerySubspacesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubspacesRequest { - return new QuerySubspacesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubspacesRequest { - return new QuerySubspacesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySubspacesRequest { - return new QuerySubspacesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySubspacesRequest | PlainMessage | undefined, b: QuerySubspacesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySubspacesRequest, a, b); - } -} - -/** - * QuerySubspacesResponse defines the response types for querying for all - * registered subspaces and all keys for a subspace. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.params.v1beta1.QuerySubspacesResponse - */ -export class QuerySubspacesResponse extends Message { - /** - * @generated from field: repeated cosmos.params.v1beta1.Subspace subspaces = 1; - */ - subspaces: Subspace[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.v1beta1.QuerySubspacesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subspaces", kind: "message", T: Subspace, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySubspacesResponse { - return new QuerySubspacesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySubspacesResponse { - return new QuerySubspacesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySubspacesResponse { - return new QuerySubspacesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySubspacesResponse | PlainMessage | undefined, b: QuerySubspacesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySubspacesResponse, a, b); - } -} - -/** - * Subspace defines a parameter subspace name and all the keys that exist for - * the subspace. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.params.v1beta1.Subspace - */ -export class Subspace extends Message { - /** - * @generated from field: string subspace = 1; - */ - subspace = ""; - - /** - * @generated from field: repeated string keys = 2; - */ - keys: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.params.v1beta1.Subspace"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subspace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Subspace { - return new Subspace().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Subspace { - return new Subspace().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Subspace { - return new Subspace().fromJsonString(jsonString, options); - } - - static equals(a: Subspace | PlainMessage | undefined, b: Subspace | PlainMessage | undefined): boolean { - return proto3.util.equals(Subspace, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_cosmes.ts b/libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_cosmes.ts deleted file mode 100644 index 607d86f..0000000 --- a/libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/reflection/v1/reflection.proto (package cosmos.reflection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { FileDescriptorsRequest, FileDescriptorsResponse } from "./reflection_pb.js"; - -const TYPE_NAME = "cosmos.reflection.v1.ReflectionService"; - -/** - * FileDescriptors queries all the file descriptors in the app in order - * to enable easier generation of dynamic clients. - * - * @generated from rpc cosmos.reflection.v1.ReflectionService.FileDescriptors - */ -export const ReflectionServiceFileDescriptorsService = { - typeName: TYPE_NAME, - method: "FileDescriptors", - Request: FileDescriptorsRequest, - Response: FileDescriptorsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_pb.ts b/libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_pb.ts deleted file mode 100644 index bc94e4b..0000000 --- a/libs/es-client/src/protobufs/cosmos/reflection/v1/reflection_pb.ts +++ /dev/null @@ -1,82 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/reflection/v1/reflection.proto (package cosmos.reflection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { FileDescriptorProto, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * FileDescriptorsRequest is the Query/FileDescriptors request type. - * - * @generated from message cosmos.reflection.v1.FileDescriptorsRequest - */ -export class FileDescriptorsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.reflection.v1.FileDescriptorsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FileDescriptorsRequest { - return new FileDescriptorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FileDescriptorsRequest { - return new FileDescriptorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FileDescriptorsRequest { - return new FileDescriptorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: FileDescriptorsRequest | PlainMessage | undefined, b: FileDescriptorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(FileDescriptorsRequest, a, b); - } -} - -/** - * FileDescriptorsResponse is the Query/FileDescriptors response type. - * - * @generated from message cosmos.reflection.v1.FileDescriptorsResponse - */ -export class FileDescriptorsResponse extends Message { - /** - * files is the file descriptors. - * - * @generated from field: repeated google.protobuf.FileDescriptorProto files = 1; - */ - files: FileDescriptorProto[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.reflection.v1.FileDescriptorsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "files", kind: "message", T: FileDescriptorProto, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FileDescriptorsResponse { - return new FileDescriptorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FileDescriptorsResponse { - return new FileDescriptorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FileDescriptorsResponse { - return new FileDescriptorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: FileDescriptorsResponse | PlainMessage | undefined, b: FileDescriptorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(FileDescriptorsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/slashing/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/slashing/module/v1/module_pb.ts deleted file mode 100644 index 1864ff5..0000000 --- a/libs/es-client/src/protobufs/cosmos/slashing/module/v1/module_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/slashing/module/v1/module.proto (package cosmos.slashing.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the slashing module. - * - * @generated from message cosmos.slashing.module.v1.Module - */ -export class Module extends Message { - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/genesis_pb.ts deleted file mode 100644 index 910bed1..0000000 --- a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,216 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/slashing/v1beta1/genesis.proto (package cosmos.slashing.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params, ValidatorSigningInfo } from "./slashing_pb.js"; - -/** - * GenesisState defines the slashing module's genesis state. - * - * @generated from message cosmos.slashing.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines all the parameters of the module. - * - * @generated from field: cosmos.slashing.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * signing_infos represents a map between validator addresses and their - * signing infos. - * - * @generated from field: repeated cosmos.slashing.v1beta1.SigningInfo signing_infos = 2; - */ - signingInfos: SigningInfo[] = []; - - /** - * missed_blocks represents a map between validator addresses and their - * missed blocks. - * - * @generated from field: repeated cosmos.slashing.v1beta1.ValidatorMissedBlocks missed_blocks = 3; - */ - missedBlocks: ValidatorMissedBlocks[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "signing_infos", kind: "message", T: SigningInfo, repeated: true }, - { no: 3, name: "missed_blocks", kind: "message", T: ValidatorMissedBlocks, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * SigningInfo stores validator signing info of corresponding address. - * - * @generated from message cosmos.slashing.v1beta1.SigningInfo - */ -export class SigningInfo extends Message { - /** - * address is the validator address. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * validator_signing_info represents the signing info of this validator. - * - * @generated from field: cosmos.slashing.v1beta1.ValidatorSigningInfo validator_signing_info = 2; - */ - validatorSigningInfo?: ValidatorSigningInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.SigningInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_signing_info", kind: "message", T: ValidatorSigningInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SigningInfo { - return new SigningInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SigningInfo { - return new SigningInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SigningInfo { - return new SigningInfo().fromJsonString(jsonString, options); - } - - static equals(a: SigningInfo | PlainMessage | undefined, b: SigningInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(SigningInfo, a, b); - } -} - -/** - * ValidatorMissedBlocks contains array of missed blocks of corresponding - * address. - * - * @generated from message cosmos.slashing.v1beta1.ValidatorMissedBlocks - */ -export class ValidatorMissedBlocks extends Message { - /** - * address is the validator address. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * missed_blocks is an array of missed blocks by the validator. - * - * @generated from field: repeated cosmos.slashing.v1beta1.MissedBlock missed_blocks = 2; - */ - missedBlocks: MissedBlock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.ValidatorMissedBlocks"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "missed_blocks", kind: "message", T: MissedBlock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorMissedBlocks { - return new ValidatorMissedBlocks().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorMissedBlocks { - return new ValidatorMissedBlocks().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorMissedBlocks { - return new ValidatorMissedBlocks().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorMissedBlocks | PlainMessage | undefined, b: ValidatorMissedBlocks | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorMissedBlocks, a, b); - } -} - -/** - * MissedBlock contains height and missed status as boolean. - * - * @generated from message cosmos.slashing.v1beta1.MissedBlock - */ -export class MissedBlock extends Message { - /** - * index is the height at which the block was missed. - * - * @generated from field: int64 index = 1; - */ - index = protoInt64.zero; - - /** - * missed is the missed status. - * - * @generated from field: bool missed = 2; - */ - missed = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.MissedBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "missed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MissedBlock { - return new MissedBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MissedBlock { - return new MissedBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MissedBlock { - return new MissedBlock().fromJsonString(jsonString, options); - } - - static equals(a: MissedBlock | PlainMessage | undefined, b: MissedBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(MissedBlock, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_cosmes.ts deleted file mode 100644 index 65715ec..0000000 --- a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/slashing/v1beta1/query.proto (package cosmos.slashing.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryParamsRequest, QueryParamsResponse, QuerySigningInfoRequest, QuerySigningInfoResponse, QuerySigningInfosRequest, QuerySigningInfosResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.slashing.v1beta1.Query"; - -/** - * Params queries the parameters of slashing module - * - * @generated from rpc cosmos.slashing.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * SigningInfo queries the signing info of given cons address - * - * @generated from rpc cosmos.slashing.v1beta1.Query.SigningInfo - */ -export const QuerySigningInfoService = { - typeName: TYPE_NAME, - method: "SigningInfo", - Request: QuerySigningInfoRequest, - Response: QuerySigningInfoResponse, -} as const; - -/** - * SigningInfos queries signing info of all validators - * - * @generated from rpc cosmos.slashing.v1beta1.Query.SigningInfos - */ -export const QuerySigningInfosService = { - typeName: TYPE_NAME, - method: "SigningInfos", - Request: QuerySigningInfosRequest, - Response: QuerySigningInfosResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_pb.ts deleted file mode 100644 index 21d495b..0000000 --- a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/query_pb.ts +++ /dev/null @@ -1,254 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/slashing/v1beta1/query.proto (package cosmos.slashing.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params, ValidatorSigningInfo } from "./slashing_pb.js"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method - * - * @generated from message cosmos.slashing.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method - * - * @generated from message cosmos.slashing.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * @generated from field: cosmos.slashing.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC - * method - * - * @generated from message cosmos.slashing.v1beta1.QuerySigningInfoRequest - */ -export class QuerySigningInfoRequest extends Message { - /** - * cons_address is the address to query signing info of - * - * @generated from field: string cons_address = 1; - */ - consAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.QuerySigningInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cons_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySigningInfoRequest { - return new QuerySigningInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySigningInfoRequest { - return new QuerySigningInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySigningInfoRequest { - return new QuerySigningInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySigningInfoRequest | PlainMessage | undefined, b: QuerySigningInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySigningInfoRequest, a, b); - } -} - -/** - * QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC - * method - * - * @generated from message cosmos.slashing.v1beta1.QuerySigningInfoResponse - */ -export class QuerySigningInfoResponse extends Message { - /** - * val_signing_info is the signing info of requested val cons address - * - * @generated from field: cosmos.slashing.v1beta1.ValidatorSigningInfo val_signing_info = 1; - */ - valSigningInfo?: ValidatorSigningInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.QuerySigningInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "val_signing_info", kind: "message", T: ValidatorSigningInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySigningInfoResponse { - return new QuerySigningInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySigningInfoResponse { - return new QuerySigningInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySigningInfoResponse { - return new QuerySigningInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySigningInfoResponse | PlainMessage | undefined, b: QuerySigningInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySigningInfoResponse, a, b); - } -} - -/** - * QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC - * method - * - * @generated from message cosmos.slashing.v1beta1.QuerySigningInfosRequest - */ -export class QuerySigningInfosRequest extends Message { - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.QuerySigningInfosRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySigningInfosRequest { - return new QuerySigningInfosRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySigningInfosRequest { - return new QuerySigningInfosRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySigningInfosRequest { - return new QuerySigningInfosRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySigningInfosRequest | PlainMessage | undefined, b: QuerySigningInfosRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySigningInfosRequest, a, b); - } -} - -/** - * QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC - * method - * - * @generated from message cosmos.slashing.v1beta1.QuerySigningInfosResponse - */ -export class QuerySigningInfosResponse extends Message { - /** - * info is the signing info of all validators - * - * @generated from field: repeated cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1; - */ - info: ValidatorSigningInfo[] = []; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.QuerySigningInfosResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "info", kind: "message", T: ValidatorSigningInfo, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySigningInfosResponse { - return new QuerySigningInfosResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySigningInfosResponse { - return new QuerySigningInfosResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySigningInfosResponse { - return new QuerySigningInfosResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySigningInfosResponse | PlainMessage | undefined, b: QuerySigningInfosResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySigningInfosResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts b/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts deleted file mode 100644 index a0a2d39..0000000 --- a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/slashing_pb.ts +++ /dev/null @@ -1,156 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/slashing/v1beta1/slashing.proto (package cosmos.slashing.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * ValidatorSigningInfo defines a validator's signing info for monitoring their - * liveness activity. - * - * @generated from message cosmos.slashing.v1beta1.ValidatorSigningInfo - */ -export class ValidatorSigningInfo extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * Height at which validator was first a candidate OR was un-jailed - * - * @generated from field: int64 start_height = 2; - */ - startHeight = protoInt64.zero; - - /** - * Index which is incremented every time a validator is bonded in a block and - * _may_ have signed a pre-commit or not. This in conjunction with the - * signed_blocks_window param determines the index in the missed block bitmap. - * - * @generated from field: int64 index_offset = 3; - */ - indexOffset = protoInt64.zero; - - /** - * Timestamp until which the validator is jailed due to liveness downtime. - * - * @generated from field: google.protobuf.Timestamp jailed_until = 4; - */ - jailedUntil?: Timestamp; - - /** - * Whether or not a validator has been tombstoned (killed out of validator - * set). It is set once the validator commits an equivocation or for any other - * configured misbehavior. - * - * @generated from field: bool tombstoned = 5; - */ - tombstoned = false; - - /** - * A counter of missed (unsigned) blocks. It is used to avoid unnecessary - * reads in the missed block bitmap. - * - * @generated from field: int64 missed_blocks_counter = 6; - */ - missedBlocksCounter = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.ValidatorSigningInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "start_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "index_offset", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "jailed_until", kind: "message", T: Timestamp }, - { no: 5, name: "tombstoned", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "missed_blocks_counter", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorSigningInfo { - return new ValidatorSigningInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorSigningInfo { - return new ValidatorSigningInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorSigningInfo { - return new ValidatorSigningInfo().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorSigningInfo | PlainMessage | undefined, b: ValidatorSigningInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorSigningInfo, a, b); - } -} - -/** - * Params represents the parameters used for by the slashing module. - * - * @generated from message cosmos.slashing.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: int64 signed_blocks_window = 1; - */ - signedBlocksWindow = protoInt64.zero; - - /** - * @generated from field: bytes min_signed_per_window = 2; - */ - minSignedPerWindow = new Uint8Array(0); - - /** - * @generated from field: google.protobuf.Duration downtime_jail_duration = 3; - */ - downtimeJailDuration?: Duration; - - /** - * @generated from field: bytes slash_fraction_double_sign = 4; - */ - slashFractionDoubleSign = new Uint8Array(0); - - /** - * @generated from field: bytes slash_fraction_downtime = 5; - */ - slashFractionDowntime = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signed_blocks_window", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "min_signed_per_window", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "downtime_jail_duration", kind: "message", T: Duration }, - { no: 4, name: "slash_fraction_double_sign", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "slash_fraction_downtime", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_cosmes.ts deleted file mode 100644 index a605a42..0000000 --- a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,38 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/slashing/v1beta1/tx.proto (package cosmos.slashing.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUnjail, MsgUnjailResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.slashing.v1beta1.Msg"; - -/** - * Unjail defines a method for unjailing a jailed validator, thus returning - * them into the bonded validator set, so they can begin receiving provisions - * and rewards again. - * - * @generated from rpc cosmos.slashing.v1beta1.Msg.Unjail - */ -export const MsgUnjailService = { - typeName: TYPE_NAME, - method: "Unjail", - Request: MsgUnjail, - Response: MsgUnjailResponse, -} as const; - -/** - * UpdateParams defines a governance operation for updating the x/slashing module - * parameters. The authority defaults to the x/gov module account. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.slashing.v1beta1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_pb.ts deleted file mode 100644 index ca78610..0000000 --- a/libs/es-client/src/protobufs/cosmos/slashing/v1beta1/tx_pb.ts +++ /dev/null @@ -1,170 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/slashing/v1beta1/tx.proto (package cosmos.slashing.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./slashing_pb.js"; - -/** - * MsgUnjail defines the Msg/Unjail request type - * - * @generated from message cosmos.slashing.v1beta1.MsgUnjail - */ -export class MsgUnjail extends Message { - /** - * @generated from field: string validator_addr = 1; - */ - validatorAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.MsgUnjail"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnjail { - return new MsgUnjail().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnjail { - return new MsgUnjail().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnjail { - return new MsgUnjail().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnjail | PlainMessage | undefined, b: MsgUnjail | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnjail, a, b); - } -} - -/** - * MsgUnjailResponse defines the Msg/Unjail response type - * - * @generated from message cosmos.slashing.v1beta1.MsgUnjailResponse - */ -export class MsgUnjailResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.MsgUnjailResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnjailResponse { - return new MsgUnjailResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnjailResponse { - return new MsgUnjailResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnjailResponse { - return new MsgUnjailResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnjailResponse | PlainMessage | undefined, b: MsgUnjailResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnjailResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.slashing.v1beta1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/slashing parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmos.slashing.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.slashing.v1beta1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.slashing.v1beta1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/staking/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/staking/module/v1/module_pb.ts deleted file mode 100644 index 4b90c71..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/module/v1/module_pb.ts +++ /dev/null @@ -1,75 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/staking/module/v1/module.proto (package cosmos.staking.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the staking module. - * - * @generated from message cosmos.staking.module.v1.Module - */ -export class Module extends Message { - /** - * hooks_order specifies the order of staking hooks and should be a list - * of module names which provide a staking hooks instance. If no order is - * provided, then hooks will be applied in alphabetical order of module names. - * - * @generated from field: repeated string hooks_order = 1; - */ - hooksOrder: string[] = []; - - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 2; - */ - authority = ""; - - /** - * bech32_prefix_validator is the bech32 validator prefix for the app. - * - * @generated from field: string bech32_prefix_validator = 3; - */ - bech32PrefixValidator = ""; - - /** - * bech32_prefix_consensus is the bech32 consensus node prefix for the app. - * - * @generated from field: string bech32_prefix_consensus = 4; - */ - bech32PrefixConsensus = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hooks_order", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "bech32_prefix_validator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "bech32_prefix_consensus", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts b/libs/es-client/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts deleted file mode 100644 index 1104aa2..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/authz_pb.ts +++ /dev/null @@ -1,178 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/staking/v1beta1/authz.proto (package cosmos.staking.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * AuthorizationType defines the type of staking module authorization type - * - * Since: cosmos-sdk 0.43 - * - * @generated from enum cosmos.staking.v1beta1.AuthorizationType - */ -export enum AuthorizationType { - /** - * AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type - * - * @generated from enum value: AUTHORIZATION_TYPE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate - * - * @generated from enum value: AUTHORIZATION_TYPE_DELEGATE = 1; - */ - DELEGATE = 1, - - /** - * AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate - * - * @generated from enum value: AUTHORIZATION_TYPE_UNDELEGATE = 2; - */ - UNDELEGATE = 2, - - /** - * AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate - * - * @generated from enum value: AUTHORIZATION_TYPE_REDELEGATE = 3; - */ - REDELEGATE = 3, - - /** - * AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION defines an authorization type for Msg/MsgCancelUnbondingDelegation - * - * @generated from enum value: AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION = 4; - */ - CANCEL_UNBONDING_DELEGATION = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(AuthorizationType) -proto3.util.setEnumType(AuthorizationType, "cosmos.staking.v1beta1.AuthorizationType", [ - { no: 0, name: "AUTHORIZATION_TYPE_UNSPECIFIED" }, - { no: 1, name: "AUTHORIZATION_TYPE_DELEGATE" }, - { no: 2, name: "AUTHORIZATION_TYPE_UNDELEGATE" }, - { no: 3, name: "AUTHORIZATION_TYPE_REDELEGATE" }, - { no: 4, name: "AUTHORIZATION_TYPE_CANCEL_UNBONDING_DELEGATION" }, -]); - -/** - * StakeAuthorization defines authorization for delegate/undelegate/redelegate. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.staking.v1beta1.StakeAuthorization - */ -export class StakeAuthorization extends Message { - /** - * max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is - * empty, there is no spend limit and any amount of coins can be delegated. - * - * @generated from field: cosmos.base.v1beta1.Coin max_tokens = 1; - */ - maxTokens?: Coin; - - /** - * validators is the oneof that represents either allow_list or deny_list - * - * @generated from oneof cosmos.staking.v1beta1.StakeAuthorization.validators - */ - validators: { - /** - * allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's - * account. - * - * @generated from field: cosmos.staking.v1beta1.StakeAuthorization.Validators allow_list = 2; - */ - value: StakeAuthorization_Validators; - case: "allowList"; - } | { - /** - * deny_list specifies list of validator addresses to whom grantee can not delegate tokens. - * - * @generated from field: cosmos.staking.v1beta1.StakeAuthorization.Validators deny_list = 3; - */ - value: StakeAuthorization_Validators; - case: "denyList"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * authorization_type defines one of AuthorizationType. - * - * @generated from field: cosmos.staking.v1beta1.AuthorizationType authorization_type = 4; - */ - authorizationType = AuthorizationType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.StakeAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_tokens", kind: "message", T: Coin }, - { no: 2, name: "allow_list", kind: "message", T: StakeAuthorization_Validators, oneof: "validators" }, - { no: 3, name: "deny_list", kind: "message", T: StakeAuthorization_Validators, oneof: "validators" }, - { no: 4, name: "authorization_type", kind: "enum", T: proto3.getEnumType(AuthorizationType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StakeAuthorization { - return new StakeAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StakeAuthorization { - return new StakeAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StakeAuthorization { - return new StakeAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: StakeAuthorization | PlainMessage | undefined, b: StakeAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(StakeAuthorization, a, b); - } -} - -/** - * Validators defines list of validator addresses. - * - * @generated from message cosmos.staking.v1beta1.StakeAuthorization.Validators - */ -export class StakeAuthorization_Validators extends Message { - /** - * @generated from field: repeated string address = 1; - */ - address: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.StakeAuthorization.Validators"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StakeAuthorization_Validators { - return new StakeAuthorization_Validators().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StakeAuthorization_Validators { - return new StakeAuthorization_Validators().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StakeAuthorization_Validators { - return new StakeAuthorization_Validators().fromJsonString(jsonString, options); - } - - static equals(a: StakeAuthorization_Validators | PlainMessage | undefined, b: StakeAuthorization_Validators | PlainMessage | undefined): boolean { - return proto3.util.equals(StakeAuthorization_Validators, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts deleted file mode 100644 index a2021b1..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,157 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/staking/v1beta1/genesis.proto (package cosmos.staking.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Delegation, Params, Redelegation, UnbondingDelegation, Validator } from "./staking_pb.js"; - -/** - * GenesisState defines the staking module's genesis state. - * - * @generated from message cosmos.staking.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines all the parameters of related to deposit. - * - * @generated from field: cosmos.staking.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * last_total_power tracks the total amounts of bonded tokens recorded during - * the previous end block. - * - * @generated from field: bytes last_total_power = 2; - */ - lastTotalPower = new Uint8Array(0); - - /** - * last_validator_powers is a special index that provides a historical list - * of the last-block's bonded validators. - * - * @generated from field: repeated cosmos.staking.v1beta1.LastValidatorPower last_validator_powers = 3; - */ - lastValidatorPowers: LastValidatorPower[] = []; - - /** - * validators defines the validator set at genesis. - * - * @generated from field: repeated cosmos.staking.v1beta1.Validator validators = 4; - */ - validators: Validator[] = []; - - /** - * delegations defines the delegations active at genesis. - * - * @generated from field: repeated cosmos.staking.v1beta1.Delegation delegations = 5; - */ - delegations: Delegation[] = []; - - /** - * unbonding_delegations defines the unbonding delegations active at genesis. - * - * @generated from field: repeated cosmos.staking.v1beta1.UnbondingDelegation unbonding_delegations = 6; - */ - unbondingDelegations: UnbondingDelegation[] = []; - - /** - * redelegations defines the redelegations active at genesis. - * - * @generated from field: repeated cosmos.staking.v1beta1.Redelegation redelegations = 7; - */ - redelegations: Redelegation[] = []; - - /** - * exported defines a bool to identify whether the chain dealing with exported or initialized genesis. - * - * @generated from field: bool exported = 8; - */ - exported = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "last_total_power", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "last_validator_powers", kind: "message", T: LastValidatorPower, repeated: true }, - { no: 4, name: "validators", kind: "message", T: Validator, repeated: true }, - { no: 5, name: "delegations", kind: "message", T: Delegation, repeated: true }, - { no: 6, name: "unbonding_delegations", kind: "message", T: UnbondingDelegation, repeated: true }, - { no: 7, name: "redelegations", kind: "message", T: Redelegation, repeated: true }, - { no: 8, name: "exported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * LastValidatorPower required for validator set update logic. - * - * @generated from message cosmos.staking.v1beta1.LastValidatorPower - */ -export class LastValidatorPower extends Message { - /** - * address is the address of the validator. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * power defines the power of the validator. - * - * @generated from field: int64 power = 2; - */ - power = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.LastValidatorPower"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LastValidatorPower { - return new LastValidatorPower().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LastValidatorPower { - return new LastValidatorPower().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LastValidatorPower { - return new LastValidatorPower().fromJsonString(jsonString, options); - } - - static equals(a: LastValidatorPower | PlainMessage | undefined, b: LastValidatorPower | PlainMessage | undefined): boolean { - return proto3.util.equals(LastValidatorPower, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_cosmes.ts deleted file mode 100644 index cebf727..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,230 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/staking/v1beta1/query.proto (package cosmos.staking.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - QueryDelegationRequest, - QueryDelegationResponse, - QueryDelegatorDelegationsRequest, - QueryDelegatorDelegationsResponse, - QueryDelegatorUnbondingDelegationsRequest, - QueryDelegatorUnbondingDelegationsResponse, - QueryDelegatorValidatorRequest, - QueryDelegatorValidatorResponse, - QueryDelegatorValidatorsRequest, - QueryDelegatorValidatorsResponse, - QueryHistoricalInfoRequest, - QueryHistoricalInfoResponse, - QueryParamsRequest, - QueryParamsResponse, - QueryPoolRequest, - QueryPoolResponse, - QueryRedelegationsRequest, - QueryRedelegationsResponse, - QueryUnbondingDelegationRequest, - QueryUnbondingDelegationResponse, - QueryValidatorDelegationsRequest, - QueryValidatorDelegationsResponse, - QueryValidatorRequest, - QueryValidatorResponse, - QueryValidatorsRequest, - QueryValidatorsResponse, - QueryValidatorUnbondingDelegationsRequest, - QueryValidatorUnbondingDelegationsResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "cosmos.staking.v1beta1.Query"; - -/** - * Validators queries all validators that match the given status. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.staking.v1beta1.Query.Validators - */ -export const QueryValidatorsService = { - typeName: TYPE_NAME, - method: "Validators", - Request: QueryValidatorsRequest, - Response: QueryValidatorsResponse, -} as const; - -/** - * Validator queries validator info for given validator address. - * - * @generated from rpc cosmos.staking.v1beta1.Query.Validator - */ -export const QueryValidatorService = { - typeName: TYPE_NAME, - method: "Validator", - Request: QueryValidatorRequest, - Response: QueryValidatorResponse, -} as const; - -/** - * ValidatorDelegations queries delegate info for given validator. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.staking.v1beta1.Query.ValidatorDelegations - */ -export const QueryValidatorDelegationsService = { - typeName: TYPE_NAME, - method: "ValidatorDelegations", - Request: QueryValidatorDelegationsRequest, - Response: QueryValidatorDelegationsResponse, -} as const; - -/** - * ValidatorUnbondingDelegations queries unbonding delegations of a validator. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.staking.v1beta1.Query.ValidatorUnbondingDelegations - */ -export const QueryValidatorUnbondingDelegationsService = { - typeName: TYPE_NAME, - method: "ValidatorUnbondingDelegations", - Request: QueryValidatorUnbondingDelegationsRequest, - Response: QueryValidatorUnbondingDelegationsResponse, -} as const; - -/** - * Delegation queries delegate info for given validator delegator pair. - * - * @generated from rpc cosmos.staking.v1beta1.Query.Delegation - */ -export const QueryDelegationService = { - typeName: TYPE_NAME, - method: "Delegation", - Request: QueryDelegationRequest, - Response: QueryDelegationResponse, -} as const; - -/** - * UnbondingDelegation queries unbonding info for given validator delegator - * pair. - * - * @generated from rpc cosmos.staking.v1beta1.Query.UnbondingDelegation - */ -export const QueryUnbondingDelegationService = { - typeName: TYPE_NAME, - method: "UnbondingDelegation", - Request: QueryUnbondingDelegationRequest, - Response: QueryUnbondingDelegationResponse, -} as const; - -/** - * DelegatorDelegations queries all delegations of a given delegator address. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.staking.v1beta1.Query.DelegatorDelegations - */ -export const QueryDelegatorDelegationsService = { - typeName: TYPE_NAME, - method: "DelegatorDelegations", - Request: QueryDelegatorDelegationsRequest, - Response: QueryDelegatorDelegationsResponse, -} as const; - -/** - * DelegatorUnbondingDelegations queries all unbonding delegations of a given - * delegator address. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.staking.v1beta1.Query.DelegatorUnbondingDelegations - */ -export const QueryDelegatorUnbondingDelegationsService = { - typeName: TYPE_NAME, - method: "DelegatorUnbondingDelegations", - Request: QueryDelegatorUnbondingDelegationsRequest, - Response: QueryDelegatorUnbondingDelegationsResponse, -} as const; - -/** - * Redelegations queries redelegations of given address. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.staking.v1beta1.Query.Redelegations - */ -export const QueryRedelegationsService = { - typeName: TYPE_NAME, - method: "Redelegations", - Request: QueryRedelegationsRequest, - Response: QueryRedelegationsResponse, -} as const; - -/** - * DelegatorValidators queries all validators info for given delegator - * address. - * - * When called from another module, this query might consume a high amount of - * gas if the pagination field is incorrectly set. - * - * @generated from rpc cosmos.staking.v1beta1.Query.DelegatorValidators - */ -export const QueryDelegatorValidatorsService = { - typeName: TYPE_NAME, - method: "DelegatorValidators", - Request: QueryDelegatorValidatorsRequest, - Response: QueryDelegatorValidatorsResponse, -} as const; - -/** - * DelegatorValidator queries validator info for given delegator validator - * pair. - * - * @generated from rpc cosmos.staking.v1beta1.Query.DelegatorValidator - */ -export const QueryDelegatorValidatorService = { - typeName: TYPE_NAME, - method: "DelegatorValidator", - Request: QueryDelegatorValidatorRequest, - Response: QueryDelegatorValidatorResponse, -} as const; - -/** - * HistoricalInfo queries the historical info for given height. - * - * @generated from rpc cosmos.staking.v1beta1.Query.HistoricalInfo - */ -export const QueryHistoricalInfoService = { - typeName: TYPE_NAME, - method: "HistoricalInfo", - Request: QueryHistoricalInfoRequest, - Response: QueryHistoricalInfoResponse, -} as const; - -/** - * Pool queries the pool info. - * - * @generated from rpc cosmos.staking.v1beta1.Query.Pool - */ -export const QueryPoolService = { - typeName: TYPE_NAME, - method: "Pool", - Request: QueryPoolRequest, - Response: QueryPoolResponse, -} as const; - -/** - * Parameters queries the staking parameters. - * - * @generated from rpc cosmos.staking.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_pb.ts deleted file mode 100644 index 8f4c915..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/query_pb.ts +++ /dev/null @@ -1,1304 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/staking/v1beta1/query.proto (package cosmos.staking.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; -import { DelegationResponse, HistoricalInfo, Params, Pool, RedelegationResponse, UnbondingDelegation, Validator } from "./staking_pb.js"; - -/** - * QueryValidatorsRequest is request type for Query/Validators RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorsRequest - */ -export class QueryValidatorsRequest extends Message { - /** - * status enables to query for validators matching a given status. - * - * @generated from field: string status = 1; - */ - status = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorsRequest { - return new QueryValidatorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorsRequest { - return new QueryValidatorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorsRequest { - return new QueryValidatorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorsRequest | PlainMessage | undefined, b: QueryValidatorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorsRequest, a, b); - } -} - -/** - * QueryValidatorsResponse is response type for the Query/Validators RPC method - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorsResponse - */ -export class QueryValidatorsResponse extends Message { - /** - * validators contains all the queried validators. - * - * @generated from field: repeated cosmos.staking.v1beta1.Validator validators = 1; - */ - validators: Validator[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validators", kind: "message", T: Validator, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorsResponse { - return new QueryValidatorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorsResponse { - return new QueryValidatorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorsResponse { - return new QueryValidatorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorsResponse | PlainMessage | undefined, b: QueryValidatorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorsResponse, a, b); - } -} - -/** - * QueryValidatorRequest is response type for the Query/Validator RPC method - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorRequest - */ -export class QueryValidatorRequest extends Message { - /** - * validator_addr defines the validator address to query for. - * - * @generated from field: string validator_addr = 1; - */ - validatorAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorRequest { - return new QueryValidatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorRequest { - return new QueryValidatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorRequest { - return new QueryValidatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorRequest | PlainMessage | undefined, b: QueryValidatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorRequest, a, b); - } -} - -/** - * QueryValidatorResponse is response type for the Query/Validator RPC method - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorResponse - */ -export class QueryValidatorResponse extends Message { - /** - * validator defines the validator info. - * - * @generated from field: cosmos.staking.v1beta1.Validator validator = 1; - */ - validator?: Validator; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator", kind: "message", T: Validator }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorResponse { - return new QueryValidatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorResponse { - return new QueryValidatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorResponse { - return new QueryValidatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorResponse | PlainMessage | undefined, b: QueryValidatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorResponse, a, b); - } -} - -/** - * QueryValidatorDelegationsRequest is request type for the - * Query/ValidatorDelegations RPC method - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorDelegationsRequest - */ -export class QueryValidatorDelegationsRequest extends Message { - /** - * validator_addr defines the validator address to query for. - * - * @generated from field: string validator_addr = 1; - */ - validatorAddr = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDelegationsRequest { - return new QueryValidatorDelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDelegationsRequest { - return new QueryValidatorDelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDelegationsRequest { - return new QueryValidatorDelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorDelegationsRequest | PlainMessage | undefined, b: QueryValidatorDelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorDelegationsRequest, a, b); - } -} - -/** - * QueryValidatorDelegationsResponse is response type for the - * Query/ValidatorDelegations RPC method - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorDelegationsResponse - */ -export class QueryValidatorDelegationsResponse extends Message { - /** - * @generated from field: repeated cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1; - */ - delegationResponses: DelegationResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegation_responses", kind: "message", T: DelegationResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDelegationsResponse { - return new QueryValidatorDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDelegationsResponse { - return new QueryValidatorDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDelegationsResponse { - return new QueryValidatorDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorDelegationsResponse | PlainMessage | undefined, b: QueryValidatorDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorDelegationsResponse, a, b); - } -} - -/** - * QueryValidatorUnbondingDelegationsRequest is required type for the - * Query/ValidatorUnbondingDelegations RPC method - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest - */ -export class QueryValidatorUnbondingDelegationsRequest extends Message { - /** - * validator_addr defines the validator address to query for. - * - * @generated from field: string validator_addr = 1; - */ - validatorAddr = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorUnbondingDelegationsRequest { - return new QueryValidatorUnbondingDelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorUnbondingDelegationsRequest { - return new QueryValidatorUnbondingDelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorUnbondingDelegationsRequest { - return new QueryValidatorUnbondingDelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryValidatorUnbondingDelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorUnbondingDelegationsRequest, a, b); - } -} - -/** - * QueryValidatorUnbondingDelegationsResponse is response type for the - * Query/ValidatorUnbondingDelegations RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse - */ -export class QueryValidatorUnbondingDelegationsResponse extends Message { - /** - * @generated from field: repeated cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1; - */ - unbondingResponses: UnbondingDelegation[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unbonding_responses", kind: "message", T: UnbondingDelegation, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorUnbondingDelegationsResponse { - return new QueryValidatorUnbondingDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorUnbondingDelegationsResponse { - return new QueryValidatorUnbondingDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorUnbondingDelegationsResponse { - return new QueryValidatorUnbondingDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryValidatorUnbondingDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorUnbondingDelegationsResponse, a, b); - } -} - -/** - * QueryDelegationRequest is request type for the Query/Delegation RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegationRequest - */ -export class QueryDelegationRequest extends Message { - /** - * delegator_addr defines the delegator address to query for. - * - * @generated from field: string delegator_addr = 1; - */ - delegatorAddr = ""; - - /** - * validator_addr defines the validator address to query for. - * - * @generated from field: string validator_addr = 2; - */ - validatorAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationRequest { - return new QueryDelegationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationRequest { - return new QueryDelegationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationRequest { - return new QueryDelegationRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationRequest | PlainMessage | undefined, b: QueryDelegationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationRequest, a, b); - } -} - -/** - * QueryDelegationResponse is response type for the Query/Delegation RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegationResponse - */ -export class QueryDelegationResponse extends Message { - /** - * delegation_responses defines the delegation info of a delegation. - * - * @generated from field: cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; - */ - delegationResponse?: DelegationResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegation_response", kind: "message", T: DelegationResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationResponse { - return new QueryDelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationResponse { - return new QueryDelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegationResponse { - return new QueryDelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegationResponse | PlainMessage | undefined, b: QueryDelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegationResponse, a, b); - } -} - -/** - * QueryUnbondingDelegationRequest is request type for the - * Query/UnbondingDelegation RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryUnbondingDelegationRequest - */ -export class QueryUnbondingDelegationRequest extends Message { - /** - * delegator_addr defines the delegator address to query for. - * - * @generated from field: string delegator_addr = 1; - */ - delegatorAddr = ""; - - /** - * validator_addr defines the validator address to query for. - * - * @generated from field: string validator_addr = 2; - */ - validatorAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnbondingDelegationRequest { - return new QueryUnbondingDelegationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnbondingDelegationRequest { - return new QueryUnbondingDelegationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnbondingDelegationRequest { - return new QueryUnbondingDelegationRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnbondingDelegationRequest | PlainMessage | undefined, b: QueryUnbondingDelegationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnbondingDelegationRequest, a, b); - } -} - -/** - * QueryDelegationResponse is response type for the Query/UnbondingDelegation - * RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryUnbondingDelegationResponse - */ -export class QueryUnbondingDelegationResponse extends Message { - /** - * unbond defines the unbonding information of a delegation. - * - * @generated from field: cosmos.staking.v1beta1.UnbondingDelegation unbond = 1; - */ - unbond?: UnbondingDelegation; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unbond", kind: "message", T: UnbondingDelegation }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnbondingDelegationResponse { - return new QueryUnbondingDelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnbondingDelegationResponse { - return new QueryUnbondingDelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnbondingDelegationResponse { - return new QueryUnbondingDelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnbondingDelegationResponse | PlainMessage | undefined, b: QueryUnbondingDelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnbondingDelegationResponse, a, b); - } -} - -/** - * QueryDelegatorDelegationsRequest is request type for the - * Query/DelegatorDelegations RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest - */ -export class QueryDelegatorDelegationsRequest extends Message { - /** - * delegator_addr defines the delegator address to query for. - * - * @generated from field: string delegator_addr = 1; - */ - delegatorAddr = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorDelegationsRequest { - return new QueryDelegatorDelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorDelegationsRequest { - return new QueryDelegatorDelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorDelegationsRequest { - return new QueryDelegatorDelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorDelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorDelegationsRequest, a, b); - } -} - -/** - * QueryDelegatorDelegationsResponse is response type for the - * Query/DelegatorDelegations RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse - */ -export class QueryDelegatorDelegationsResponse extends Message { - /** - * delegation_responses defines all the delegations' info of a delegator. - * - * @generated from field: repeated cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1; - */ - delegationResponses: DelegationResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegation_responses", kind: "message", T: DelegationResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorDelegationsResponse { - return new QueryDelegatorDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorDelegationsResponse { - return new QueryDelegatorDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorDelegationsResponse { - return new QueryDelegatorDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorDelegationsResponse, a, b); - } -} - -/** - * QueryDelegatorUnbondingDelegationsRequest is request type for the - * Query/DelegatorUnbondingDelegations RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest - */ -export class QueryDelegatorUnbondingDelegationsRequest extends Message { - /** - * delegator_addr defines the delegator address to query for. - * - * @generated from field: string delegator_addr = 1; - */ - delegatorAddr = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorUnbondingDelegationsRequest { - return new QueryDelegatorUnbondingDelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorUnbondingDelegationsRequest { - return new QueryDelegatorUnbondingDelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorUnbondingDelegationsRequest { - return new QueryDelegatorUnbondingDelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorUnbondingDelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorUnbondingDelegationsRequest, a, b); - } -} - -/** - * QueryUnbondingDelegatorDelegationsResponse is response type for the - * Query/UnbondingDelegatorDelegations RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse - */ -export class QueryDelegatorUnbondingDelegationsResponse extends Message { - /** - * @generated from field: repeated cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1; - */ - unbondingResponses: UnbondingDelegation[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unbonding_responses", kind: "message", T: UnbondingDelegation, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorUnbondingDelegationsResponse { - return new QueryDelegatorUnbondingDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorUnbondingDelegationsResponse { - return new QueryDelegatorUnbondingDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorUnbondingDelegationsResponse { - return new QueryDelegatorUnbondingDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorUnbondingDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorUnbondingDelegationsResponse, a, b); - } -} - -/** - * QueryRedelegationsRequest is request type for the Query/Redelegations RPC - * method. - * - * @generated from message cosmos.staking.v1beta1.QueryRedelegationsRequest - */ -export class QueryRedelegationsRequest extends Message { - /** - * delegator_addr defines the delegator address to query for. - * - * @generated from field: string delegator_addr = 1; - */ - delegatorAddr = ""; - - /** - * src_validator_addr defines the validator address to redelegate from. - * - * @generated from field: string src_validator_addr = 2; - */ - srcValidatorAddr = ""; - - /** - * dst_validator_addr defines the validator address to redelegate to. - * - * @generated from field: string dst_validator_addr = 3; - */ - dstValidatorAddr = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryRedelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "src_validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "dst_validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRedelegationsRequest { - return new QueryRedelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRedelegationsRequest { - return new QueryRedelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRedelegationsRequest { - return new QueryRedelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRedelegationsRequest | PlainMessage | undefined, b: QueryRedelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRedelegationsRequest, a, b); - } -} - -/** - * QueryRedelegationsResponse is response type for the Query/Redelegations RPC - * method. - * - * @generated from message cosmos.staking.v1beta1.QueryRedelegationsResponse - */ -export class QueryRedelegationsResponse extends Message { - /** - * @generated from field: repeated cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1; - */ - redelegationResponses: RedelegationResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryRedelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "redelegation_responses", kind: "message", T: RedelegationResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRedelegationsResponse { - return new QueryRedelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRedelegationsResponse { - return new QueryRedelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRedelegationsResponse { - return new QueryRedelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRedelegationsResponse | PlainMessage | undefined, b: QueryRedelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRedelegationsResponse, a, b); - } -} - -/** - * QueryDelegatorValidatorsRequest is request type for the - * Query/DelegatorValidators RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest - */ -export class QueryDelegatorValidatorsRequest extends Message { - /** - * delegator_addr defines the delegator address to query for. - * - * @generated from field: string delegator_addr = 1; - */ - delegatorAddr = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorsRequest { - return new QueryDelegatorValidatorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorsRequest { - return new QueryDelegatorValidatorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorsRequest { - return new QueryDelegatorValidatorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorValidatorsRequest | PlainMessage | undefined, b: QueryDelegatorValidatorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorValidatorsRequest, a, b); - } -} - -/** - * QueryDelegatorValidatorsResponse is response type for the - * Query/DelegatorValidators RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse - */ -export class QueryDelegatorValidatorsResponse extends Message { - /** - * validators defines the validators' info of a delegator. - * - * @generated from field: repeated cosmos.staking.v1beta1.Validator validators = 1; - */ - validators: Validator[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validators", kind: "message", T: Validator, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorsResponse { - return new QueryDelegatorValidatorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorsResponse { - return new QueryDelegatorValidatorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorsResponse { - return new QueryDelegatorValidatorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorValidatorsResponse | PlainMessage | undefined, b: QueryDelegatorValidatorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorValidatorsResponse, a, b); - } -} - -/** - * QueryDelegatorValidatorRequest is request type for the - * Query/DelegatorValidator RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorRequest - */ -export class QueryDelegatorValidatorRequest extends Message { - /** - * delegator_addr defines the delegator address to query for. - * - * @generated from field: string delegator_addr = 1; - */ - delegatorAddr = ""; - - /** - * validator_addr defines the validator address to query for. - * - * @generated from field: string validator_addr = 2; - */ - validatorAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorRequest { - return new QueryDelegatorValidatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorRequest { - return new QueryDelegatorValidatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorRequest { - return new QueryDelegatorValidatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorValidatorRequest | PlainMessage | undefined, b: QueryDelegatorValidatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorValidatorRequest, a, b); - } -} - -/** - * QueryDelegatorValidatorResponse response type for the - * Query/DelegatorValidator RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorResponse - */ -export class QueryDelegatorValidatorResponse extends Message { - /** - * validator defines the validator info. - * - * @generated from field: cosmos.staking.v1beta1.Validator validator = 1; - */ - validator?: Validator; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator", kind: "message", T: Validator }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorResponse { - return new QueryDelegatorValidatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorResponse { - return new QueryDelegatorValidatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorResponse { - return new QueryDelegatorValidatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDelegatorValidatorResponse | PlainMessage | undefined, b: QueryDelegatorValidatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDelegatorValidatorResponse, a, b); - } -} - -/** - * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC - * method. - * - * @generated from message cosmos.staking.v1beta1.QueryHistoricalInfoRequest - */ -export class QueryHistoricalInfoRequest extends Message { - /** - * height defines at which height to query the historical info. - * - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHistoricalInfoRequest { - return new QueryHistoricalInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHistoricalInfoRequest { - return new QueryHistoricalInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHistoricalInfoRequest { - return new QueryHistoricalInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryHistoricalInfoRequest | PlainMessage | undefined, b: QueryHistoricalInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHistoricalInfoRequest, a, b); - } -} - -/** - * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC - * method. - * - * @generated from message cosmos.staking.v1beta1.QueryHistoricalInfoResponse - */ -export class QueryHistoricalInfoResponse extends Message { - /** - * hist defines the historical info at the given height. - * - * @generated from field: cosmos.staking.v1beta1.HistoricalInfo hist = 1; - */ - hist?: HistoricalInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hist", kind: "message", T: HistoricalInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryHistoricalInfoResponse { - return new QueryHistoricalInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryHistoricalInfoResponse { - return new QueryHistoricalInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryHistoricalInfoResponse { - return new QueryHistoricalInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryHistoricalInfoResponse | PlainMessage | undefined, b: QueryHistoricalInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryHistoricalInfoResponse, a, b); - } -} - -/** - * QueryPoolRequest is request type for the Query/Pool RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryPoolRequest - */ -export class QueryPoolRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryPoolRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRequest { - return new QueryPoolRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRequest { - return new QueryPoolRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolRequest { - return new QueryPoolRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolRequest | PlainMessage | undefined, b: QueryPoolRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolRequest, a, b); - } -} - -/** - * QueryPoolResponse is response type for the Query/Pool RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryPoolResponse - */ -export class QueryPoolResponse extends Message { - /** - * pool defines the pool info. - * - * @generated from field: cosmos.staking.v1beta1.Pool pool = 1; - */ - pool?: Pool; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool", kind: "message", T: Pool }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { - return new QueryPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { - return new QueryPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { - return new QueryPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolResponse, a, b); - } -} - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message cosmos.staking.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: cosmos.staking.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts b/libs/es-client/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts deleted file mode 100644 index 664fbe7..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/staking_pb.ts +++ /dev/null @@ -1,1335 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/staking/v1beta1/staking.proto (package cosmos.staking.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Header } from "../../../tendermint/types/types_pb.js"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; -import { ValidatorUpdate } from "../../../tendermint/abci/types_pb.js"; - -/** - * BondStatus is the status of a validator. - * - * @generated from enum cosmos.staking.v1beta1.BondStatus - */ -export enum BondStatus { - /** - * UNSPECIFIED defines an invalid validator status. - * - * @generated from enum value: BOND_STATUS_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * UNBONDED defines a validator that is not bonded. - * - * @generated from enum value: BOND_STATUS_UNBONDED = 1; - */ - UNBONDED = 1, - - /** - * UNBONDING defines a validator that is unbonding. - * - * @generated from enum value: BOND_STATUS_UNBONDING = 2; - */ - UNBONDING = 2, - - /** - * BONDED defines a validator that is bonded. - * - * @generated from enum value: BOND_STATUS_BONDED = 3; - */ - BONDED = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(BondStatus) -proto3.util.setEnumType(BondStatus, "cosmos.staking.v1beta1.BondStatus", [ - { no: 0, name: "BOND_STATUS_UNSPECIFIED" }, - { no: 1, name: "BOND_STATUS_UNBONDED" }, - { no: 2, name: "BOND_STATUS_UNBONDING" }, - { no: 3, name: "BOND_STATUS_BONDED" }, -]); - -/** - * Infraction indicates the infraction a validator commited. - * - * @generated from enum cosmos.staking.v1beta1.Infraction - */ -export enum Infraction { - /** - * UNSPECIFIED defines an empty infraction. - * - * @generated from enum value: INFRACTION_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * DOUBLE_SIGN defines a validator that double-signs a block. - * - * @generated from enum value: INFRACTION_DOUBLE_SIGN = 1; - */ - DOUBLE_SIGN = 1, - - /** - * DOWNTIME defines a validator that missed signing too many blocks. - * - * @generated from enum value: INFRACTION_DOWNTIME = 2; - */ - DOWNTIME = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(Infraction) -proto3.util.setEnumType(Infraction, "cosmos.staking.v1beta1.Infraction", [ - { no: 0, name: "INFRACTION_UNSPECIFIED" }, - { no: 1, name: "INFRACTION_DOUBLE_SIGN" }, - { no: 2, name: "INFRACTION_DOWNTIME" }, -]); - -/** - * HistoricalInfo contains header and validator information for a given block. - * It is stored as part of staking module's state, which persists the `n` most - * recent HistoricalInfo - * (`n` is set by the staking module's `historical_entries` parameter). - * - * @generated from message cosmos.staking.v1beta1.HistoricalInfo - */ -export class HistoricalInfo extends Message { - /** - * @generated from field: tendermint.types.Header header = 1; - */ - header?: Header; - - /** - * @generated from field: repeated cosmos.staking.v1beta1.Validator valset = 2; - */ - valset: Validator[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.HistoricalInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: Header }, - { no: 2, name: "valset", kind: "message", T: Validator, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HistoricalInfo { - return new HistoricalInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HistoricalInfo { - return new HistoricalInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HistoricalInfo { - return new HistoricalInfo().fromJsonString(jsonString, options); - } - - static equals(a: HistoricalInfo | PlainMessage | undefined, b: HistoricalInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(HistoricalInfo, a, b); - } -} - -/** - * CommissionRates defines the initial commission rates to be used for creating - * a validator. - * - * @generated from message cosmos.staking.v1beta1.CommissionRates - */ -export class CommissionRates extends Message { - /** - * rate is the commission rate charged to delegators, as a fraction. - * - * @generated from field: string rate = 1; - */ - rate = ""; - - /** - * max_rate defines the maximum commission rate which validator can ever charge, as a fraction. - * - * @generated from field: string max_rate = 2; - */ - maxRate = ""; - - /** - * max_change_rate defines the maximum daily increase of the validator commission, as a fraction. - * - * @generated from field: string max_change_rate = 3; - */ - maxChangeRate = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.CommissionRates"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "max_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "max_change_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommissionRates { - return new CommissionRates().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommissionRates { - return new CommissionRates().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommissionRates { - return new CommissionRates().fromJsonString(jsonString, options); - } - - static equals(a: CommissionRates | PlainMessage | undefined, b: CommissionRates | PlainMessage | undefined): boolean { - return proto3.util.equals(CommissionRates, a, b); - } -} - -/** - * Commission defines commission parameters for a given validator. - * - * @generated from message cosmos.staking.v1beta1.Commission - */ -export class Commission extends Message { - /** - * commission_rates defines the initial commission rates to be used for creating a validator. - * - * @generated from field: cosmos.staking.v1beta1.CommissionRates commission_rates = 1; - */ - commissionRates?: CommissionRates; - - /** - * update_time is the last time the commission rate was changed. - * - * @generated from field: google.protobuf.Timestamp update_time = 2; - */ - updateTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.Commission"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "commission_rates", kind: "message", T: CommissionRates }, - { no: 2, name: "update_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Commission { - return new Commission().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Commission { - return new Commission().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Commission { - return new Commission().fromJsonString(jsonString, options); - } - - static equals(a: Commission | PlainMessage | undefined, b: Commission | PlainMessage | undefined): boolean { - return proto3.util.equals(Commission, a, b); - } -} - -/** - * Description defines a validator description. - * - * @generated from message cosmos.staking.v1beta1.Description - */ -export class Description extends Message { - /** - * moniker defines a human-readable name for the validator. - * - * @generated from field: string moniker = 1; - */ - moniker = ""; - - /** - * identity defines an optional identity signature (ex. UPort or Keybase). - * - * @generated from field: string identity = 2; - */ - identity = ""; - - /** - * website defines an optional website link. - * - * @generated from field: string website = 3; - */ - website = ""; - - /** - * security_contact defines an optional email for security contact. - * - * @generated from field: string security_contact = 4; - */ - securityContact = ""; - - /** - * details define other optional details. - * - * @generated from field: string details = 5; - */ - details = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.Description"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "moniker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "security_contact", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "details", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Description { - return new Description().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Description { - return new Description().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Description { - return new Description().fromJsonString(jsonString, options); - } - - static equals(a: Description | PlainMessage | undefined, b: Description | PlainMessage | undefined): boolean { - return proto3.util.equals(Description, a, b); - } -} - -/** - * Validator defines a validator, together with the total amount of the - * Validator's bond shares and their exchange rate to coins. Slashing results in - * a decrease in the exchange rate, allowing correct calculation of future - * undelegations without iterating over delegators. When coins are delegated to - * this validator, the validator is credited with a delegation whose number of - * bond shares is based on the amount of coins delegated divided by the current - * exchange rate. Voting power can be calculated as total bonded shares - * multiplied by exchange rate. - * - * @generated from message cosmos.staking.v1beta1.Validator - */ -export class Validator extends Message { - /** - * operator_address defines the address of the validator's operator; bech encoded in JSON. - * - * @generated from field: string operator_address = 1; - */ - operatorAddress = ""; - - /** - * consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. - * - * @generated from field: google.protobuf.Any consensus_pubkey = 2; - */ - consensusPubkey?: Any; - - /** - * jailed defined whether the validator has been jailed from bonded status or not. - * - * @generated from field: bool jailed = 3; - */ - jailed = false; - - /** - * status is the validator status (bonded/unbonding/unbonded). - * - * @generated from field: cosmos.staking.v1beta1.BondStatus status = 4; - */ - status = BondStatus.UNSPECIFIED; - - /** - * tokens define the delegated tokens (incl. self-delegation). - * - * @generated from field: string tokens = 5; - */ - tokens = ""; - - /** - * delegator_shares defines total shares issued to a validator's delegators. - * - * @generated from field: string delegator_shares = 6; - */ - delegatorShares = ""; - - /** - * description defines the description terms for the validator. - * - * @generated from field: cosmos.staking.v1beta1.Description description = 7; - */ - description?: Description; - - /** - * unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. - * - * @generated from field: int64 unbonding_height = 8; - */ - unbondingHeight = protoInt64.zero; - - /** - * unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. - * - * @generated from field: google.protobuf.Timestamp unbonding_time = 9; - */ - unbondingTime?: Timestamp; - - /** - * commission defines the commission parameters. - * - * @generated from field: cosmos.staking.v1beta1.Commission commission = 10; - */ - commission?: Commission; - - /** - * min_self_delegation is the validator's self declared minimum self delegation. - * - * Since: cosmos-sdk 0.46 - * - * @generated from field: string min_self_delegation = 11; - */ - minSelfDelegation = ""; - - /** - * strictly positive if this validator's unbonding has been stopped by external modules - * - * @generated from field: int64 unbonding_on_hold_ref_count = 12; - */ - unbondingOnHoldRefCount = protoInt64.zero; - - /** - * list of unbonding ids, each uniquely identifing an unbonding of this validator - * - * @generated from field: repeated uint64 unbonding_ids = 13; - */ - unbondingIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.Validator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "operator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "consensus_pubkey", kind: "message", T: Any }, - { no: 3, name: "jailed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(BondStatus) }, - { no: 5, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "delegator_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "description", kind: "message", T: Description }, - { no: 8, name: "unbonding_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 9, name: "unbonding_time", kind: "message", T: Timestamp }, - { no: 10, name: "commission", kind: "message", T: Commission }, - { no: 11, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "unbonding_on_hold_ref_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 13, name: "unbonding_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Validator { - return new Validator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Validator { - return new Validator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Validator { - return new Validator().fromJsonString(jsonString, options); - } - - static equals(a: Validator | PlainMessage | undefined, b: Validator | PlainMessage | undefined): boolean { - return proto3.util.equals(Validator, a, b); - } -} - -/** - * ValAddresses defines a repeated set of validator addresses. - * - * @generated from message cosmos.staking.v1beta1.ValAddresses - */ -export class ValAddresses extends Message { - /** - * @generated from field: repeated string addresses = 1; - */ - addresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.ValAddresses"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValAddresses { - return new ValAddresses().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValAddresses { - return new ValAddresses().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValAddresses { - return new ValAddresses().fromJsonString(jsonString, options); - } - - static equals(a: ValAddresses | PlainMessage | undefined, b: ValAddresses | PlainMessage | undefined): boolean { - return proto3.util.equals(ValAddresses, a, b); - } -} - -/** - * DVPair is struct that just has a delegator-validator pair with no other data. - * It is intended to be used as a marshalable pointer. For example, a DVPair can - * be used to construct the key to getting an UnbondingDelegation from state. - * - * @generated from message cosmos.staking.v1beta1.DVPair - */ -export class DVPair extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.DVPair"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DVPair { - return new DVPair().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DVPair { - return new DVPair().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DVPair { - return new DVPair().fromJsonString(jsonString, options); - } - - static equals(a: DVPair | PlainMessage | undefined, b: DVPair | PlainMessage | undefined): boolean { - return proto3.util.equals(DVPair, a, b); - } -} - -/** - * DVPairs defines an array of DVPair objects. - * - * @generated from message cosmos.staking.v1beta1.DVPairs - */ -export class DVPairs extends Message { - /** - * @generated from field: repeated cosmos.staking.v1beta1.DVPair pairs = 1; - */ - pairs: DVPair[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.DVPairs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pairs", kind: "message", T: DVPair, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DVPairs { - return new DVPairs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DVPairs { - return new DVPairs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DVPairs { - return new DVPairs().fromJsonString(jsonString, options); - } - - static equals(a: DVPairs | PlainMessage | undefined, b: DVPairs | PlainMessage | undefined): boolean { - return proto3.util.equals(DVPairs, a, b); - } -} - -/** - * DVVTriplet is struct that just has a delegator-validator-validator triplet - * with no other data. It is intended to be used as a marshalable pointer. For - * example, a DVVTriplet can be used to construct the key to getting a - * Redelegation from state. - * - * @generated from message cosmos.staking.v1beta1.DVVTriplet - */ -export class DVVTriplet extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_src_address = 2; - */ - validatorSrcAddress = ""; - - /** - * @generated from field: string validator_dst_address = 3; - */ - validatorDstAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.DVVTriplet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_src_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "validator_dst_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DVVTriplet { - return new DVVTriplet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DVVTriplet { - return new DVVTriplet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DVVTriplet { - return new DVVTriplet().fromJsonString(jsonString, options); - } - - static equals(a: DVVTriplet | PlainMessage | undefined, b: DVVTriplet | PlainMessage | undefined): boolean { - return proto3.util.equals(DVVTriplet, a, b); - } -} - -/** - * DVVTriplets defines an array of DVVTriplet objects. - * - * @generated from message cosmos.staking.v1beta1.DVVTriplets - */ -export class DVVTriplets extends Message { - /** - * @generated from field: repeated cosmos.staking.v1beta1.DVVTriplet triplets = 1; - */ - triplets: DVVTriplet[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.DVVTriplets"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "triplets", kind: "message", T: DVVTriplet, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DVVTriplets { - return new DVVTriplets().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DVVTriplets { - return new DVVTriplets().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DVVTriplets { - return new DVVTriplets().fromJsonString(jsonString, options); - } - - static equals(a: DVVTriplets | PlainMessage | undefined, b: DVVTriplets | PlainMessage | undefined): boolean { - return proto3.util.equals(DVVTriplets, a, b); - } -} - -/** - * Delegation represents the bond with tokens held by an account. It is - * owned by one delegator, and is associated with the voting power of one - * validator. - * - * @generated from message cosmos.staking.v1beta1.Delegation - */ -export class Delegation extends Message { - /** - * delegator_address is the encoded address of the delegator. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * validator_address is the encoded address of the validator. - * - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * shares define the delegation shares received. - * - * @generated from field: string shares = 3; - */ - shares = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.Delegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Delegation { - return new Delegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Delegation { - return new Delegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Delegation { - return new Delegation().fromJsonString(jsonString, options); - } - - static equals(a: Delegation | PlainMessage | undefined, b: Delegation | PlainMessage | undefined): boolean { - return proto3.util.equals(Delegation, a, b); - } -} - -/** - * UnbondingDelegation stores all of a single delegator's unbonding bonds - * for a single validator in an time-ordered list. - * - * @generated from message cosmos.staking.v1beta1.UnbondingDelegation - */ -export class UnbondingDelegation extends Message { - /** - * delegator_address is the encoded address of the delegator. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * validator_address is the encoded address of the validator. - * - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * entries are the unbonding delegation entries. - * - * unbonding delegation entries - * - * @generated from field: repeated cosmos.staking.v1beta1.UnbondingDelegationEntry entries = 3; - */ - entries: UnbondingDelegationEntry[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.UnbondingDelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "entries", kind: "message", T: UnbondingDelegationEntry, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingDelegation { - return new UnbondingDelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingDelegation { - return new UnbondingDelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UnbondingDelegation { - return new UnbondingDelegation().fromJsonString(jsonString, options); - } - - static equals(a: UnbondingDelegation | PlainMessage | undefined, b: UnbondingDelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(UnbondingDelegation, a, b); - } -} - -/** - * UnbondingDelegationEntry defines an unbonding object with relevant metadata. - * - * @generated from message cosmos.staking.v1beta1.UnbondingDelegationEntry - */ -export class UnbondingDelegationEntry extends Message { - /** - * creation_height is the height which the unbonding took place. - * - * @generated from field: int64 creation_height = 1; - */ - creationHeight = protoInt64.zero; - - /** - * completion_time is the unix time for unbonding completion. - * - * @generated from field: google.protobuf.Timestamp completion_time = 2; - */ - completionTime?: Timestamp; - - /** - * initial_balance defines the tokens initially scheduled to receive at completion. - * - * @generated from field: string initial_balance = 3; - */ - initialBalance = ""; - - /** - * balance defines the tokens to receive at completion. - * - * @generated from field: string balance = 4; - */ - balance = ""; - - /** - * Incrementing id that uniquely identifies this entry - * - * @generated from field: uint64 unbonding_id = 5; - */ - unbondingId = protoInt64.zero; - - /** - * Strictly positive if this entry's unbonding has been stopped by external modules - * - * @generated from field: int64 unbonding_on_hold_ref_count = 6; - */ - unbondingOnHoldRefCount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.UnbondingDelegationEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "creation_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "completion_time", kind: "message", T: Timestamp }, - { no: 3, name: "initial_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "unbonding_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "unbonding_on_hold_ref_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UnbondingDelegationEntry { - return new UnbondingDelegationEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UnbondingDelegationEntry { - return new UnbondingDelegationEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UnbondingDelegationEntry { - return new UnbondingDelegationEntry().fromJsonString(jsonString, options); - } - - static equals(a: UnbondingDelegationEntry | PlainMessage | undefined, b: UnbondingDelegationEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(UnbondingDelegationEntry, a, b); - } -} - -/** - * RedelegationEntry defines a redelegation object with relevant metadata. - * - * @generated from message cosmos.staking.v1beta1.RedelegationEntry - */ -export class RedelegationEntry extends Message { - /** - * creation_height defines the height which the redelegation took place. - * - * @generated from field: int64 creation_height = 1; - */ - creationHeight = protoInt64.zero; - - /** - * completion_time defines the unix time for redelegation completion. - * - * @generated from field: google.protobuf.Timestamp completion_time = 2; - */ - completionTime?: Timestamp; - - /** - * initial_balance defines the initial balance when redelegation started. - * - * @generated from field: string initial_balance = 3; - */ - initialBalance = ""; - - /** - * shares_dst is the amount of destination-validator shares created by redelegation. - * - * @generated from field: string shares_dst = 4; - */ - sharesDst = ""; - - /** - * Incrementing id that uniquely identifies this entry - * - * @generated from field: uint64 unbonding_id = 5; - */ - unbondingId = protoInt64.zero; - - /** - * Strictly positive if this entry's unbonding has been stopped by external modules - * - * @generated from field: int64 unbonding_on_hold_ref_count = 6; - */ - unbondingOnHoldRefCount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.RedelegationEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "creation_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "completion_time", kind: "message", T: Timestamp }, - { no: 3, name: "initial_balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "shares_dst", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "unbonding_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "unbonding_on_hold_ref_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RedelegationEntry { - return new RedelegationEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RedelegationEntry { - return new RedelegationEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RedelegationEntry { - return new RedelegationEntry().fromJsonString(jsonString, options); - } - - static equals(a: RedelegationEntry | PlainMessage | undefined, b: RedelegationEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(RedelegationEntry, a, b); - } -} - -/** - * Redelegation contains the list of a particular delegator's redelegating bonds - * from a particular source validator to a particular destination validator. - * - * @generated from message cosmos.staking.v1beta1.Redelegation - */ -export class Redelegation extends Message { - /** - * delegator_address is the bech32-encoded address of the delegator. - * - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * validator_src_address is the validator redelegation source operator address. - * - * @generated from field: string validator_src_address = 2; - */ - validatorSrcAddress = ""; - - /** - * validator_dst_address is the validator redelegation destination operator address. - * - * @generated from field: string validator_dst_address = 3; - */ - validatorDstAddress = ""; - - /** - * entries are the redelegation entries. - * - * redelegation entries - * - * @generated from field: repeated cosmos.staking.v1beta1.RedelegationEntry entries = 4; - */ - entries: RedelegationEntry[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.Redelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_src_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "validator_dst_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "entries", kind: "message", T: RedelegationEntry, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Redelegation { - return new Redelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Redelegation { - return new Redelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Redelegation { - return new Redelegation().fromJsonString(jsonString, options); - } - - static equals(a: Redelegation | PlainMessage | undefined, b: Redelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(Redelegation, a, b); - } -} - -/** - * Params defines the parameters for the x/staking module. - * - * @generated from message cosmos.staking.v1beta1.Params - */ -export class Params extends Message { - /** - * unbonding_time is the time duration of unbonding. - * - * @generated from field: google.protobuf.Duration unbonding_time = 1; - */ - unbondingTime?: Duration; - - /** - * max_validators is the maximum number of validators. - * - * @generated from field: uint32 max_validators = 2; - */ - maxValidators = 0; - - /** - * max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). - * - * @generated from field: uint32 max_entries = 3; - */ - maxEntries = 0; - - /** - * historical_entries is the number of historical entries to persist. - * - * @generated from field: uint32 historical_entries = 4; - */ - historicalEntries = 0; - - /** - * bond_denom defines the bondable coin denomination. - * - * @generated from field: string bond_denom = 5; - */ - bondDenom = ""; - - /** - * min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators - * - * @generated from field: string min_commission_rate = 6; - */ - minCommissionRate = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unbonding_time", kind: "message", T: Duration }, - { no: 2, name: "max_validators", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "max_entries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "historical_entries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "bond_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "min_commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * DelegationResponse is equivalent to Delegation except that it contains a - * balance in addition to shares which is more suitable for client responses. - * - * @generated from message cosmos.staking.v1beta1.DelegationResponse - */ -export class DelegationResponse extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.Delegation delegation = 1; - */ - delegation?: Delegation; - - /** - * @generated from field: cosmos.base.v1beta1.Coin balance = 2; - */ - balance?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.DelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegation", kind: "message", T: Delegation }, - { no: 2, name: "balance", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelegationResponse { - return new DelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelegationResponse { - return new DelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelegationResponse { - return new DelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: DelegationResponse | PlainMessage | undefined, b: DelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DelegationResponse, a, b); - } -} - -/** - * RedelegationEntryResponse is equivalent to a RedelegationEntry except that it - * contains a balance in addition to shares which is more suitable for client - * responses. - * - * @generated from message cosmos.staking.v1beta1.RedelegationEntryResponse - */ -export class RedelegationEntryResponse extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.RedelegationEntry redelegation_entry = 1; - */ - redelegationEntry?: RedelegationEntry; - - /** - * @generated from field: string balance = 4; - */ - balance = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.RedelegationEntryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "redelegation_entry", kind: "message", T: RedelegationEntry }, - { no: 4, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RedelegationEntryResponse { - return new RedelegationEntryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RedelegationEntryResponse { - return new RedelegationEntryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RedelegationEntryResponse { - return new RedelegationEntryResponse().fromJsonString(jsonString, options); - } - - static equals(a: RedelegationEntryResponse | PlainMessage | undefined, b: RedelegationEntryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RedelegationEntryResponse, a, b); - } -} - -/** - * RedelegationResponse is equivalent to a Redelegation except that its entries - * contain a balance in addition to shares which is more suitable for client - * responses. - * - * @generated from message cosmos.staking.v1beta1.RedelegationResponse - */ -export class RedelegationResponse extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.Redelegation redelegation = 1; - */ - redelegation?: Redelegation; - - /** - * @generated from field: repeated cosmos.staking.v1beta1.RedelegationEntryResponse entries = 2; - */ - entries: RedelegationEntryResponse[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.RedelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "redelegation", kind: "message", T: Redelegation }, - { no: 2, name: "entries", kind: "message", T: RedelegationEntryResponse, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RedelegationResponse { - return new RedelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RedelegationResponse { - return new RedelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RedelegationResponse { - return new RedelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: RedelegationResponse | PlainMessage | undefined, b: RedelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RedelegationResponse, a, b); - } -} - -/** - * Pool is used for tracking bonded and not-bonded token supply of the bond - * denomination. - * - * @generated from message cosmos.staking.v1beta1.Pool - */ -export class Pool extends Message { - /** - * @generated from field: string not_bonded_tokens = 1; - */ - notBondedTokens = ""; - - /** - * @generated from field: string bonded_tokens = 2; - */ - bondedTokens = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.Pool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "not_bonded_tokens", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "bonded_tokens", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Pool { - return new Pool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Pool { - return new Pool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Pool { - return new Pool().fromJsonString(jsonString, options); - } - - static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { - return proto3.util.equals(Pool, a, b); - } -} - -/** - * ValidatorUpdates defines an array of abci.ValidatorUpdate objects. - * TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence - * - * @generated from message cosmos.staking.v1beta1.ValidatorUpdates - */ -export class ValidatorUpdates extends Message { - /** - * @generated from field: repeated tendermint.abci.ValidatorUpdate updates = 1; - */ - updates: ValidatorUpdate[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.ValidatorUpdates"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "updates", kind: "message", T: ValidatorUpdate, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorUpdates { - return new ValidatorUpdates().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorUpdates { - return new ValidatorUpdates().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorUpdates { - return new ValidatorUpdates().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorUpdates | PlainMessage | undefined, b: ValidatorUpdates | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorUpdates, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_cosmes.ts deleted file mode 100644 index 213e192..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,101 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/staking/v1beta1/tx.proto (package cosmos.staking.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgBeginRedelegate, MsgBeginRedelegateResponse, MsgCancelUnbondingDelegation, MsgCancelUnbondingDelegationResponse, MsgCreateValidator, MsgCreateValidatorResponse, MsgDelegate, MsgDelegateResponse, MsgEditValidator, MsgEditValidatorResponse, MsgUndelegate, MsgUndelegateResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.staking.v1beta1.Msg"; - -/** - * CreateValidator defines a method for creating a new validator. - * - * @generated from rpc cosmos.staking.v1beta1.Msg.CreateValidator - */ -export const MsgCreateValidatorService = { - typeName: TYPE_NAME, - method: "CreateValidator", - Request: MsgCreateValidator, - Response: MsgCreateValidatorResponse, -} as const; - -/** - * EditValidator defines a method for editing an existing validator. - * - * @generated from rpc cosmos.staking.v1beta1.Msg.EditValidator - */ -export const MsgEditValidatorService = { - typeName: TYPE_NAME, - method: "EditValidator", - Request: MsgEditValidator, - Response: MsgEditValidatorResponse, -} as const; - -/** - * Delegate defines a method for performing a delegation of coins - * from a delegator to a validator. - * - * @generated from rpc cosmos.staking.v1beta1.Msg.Delegate - */ -export const MsgDelegateService = { - typeName: TYPE_NAME, - method: "Delegate", - Request: MsgDelegate, - Response: MsgDelegateResponse, -} as const; - -/** - * BeginRedelegate defines a method for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - * - * @generated from rpc cosmos.staking.v1beta1.Msg.BeginRedelegate - */ -export const MsgBeginRedelegateService = { - typeName: TYPE_NAME, - method: "BeginRedelegate", - Request: MsgBeginRedelegate, - Response: MsgBeginRedelegateResponse, -} as const; - -/** - * Undelegate defines a method for performing an undelegation from a - * delegate and a validator. - * - * @generated from rpc cosmos.staking.v1beta1.Msg.Undelegate - */ -export const MsgUndelegateService = { - typeName: TYPE_NAME, - method: "Undelegate", - Request: MsgUndelegate, - Response: MsgUndelegateResponse, -} as const; - -/** - * CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation - * and delegate back to previous validator. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.staking.v1beta1.Msg.CancelUnbondingDelegation - */ -export const MsgCancelUnbondingDelegationService = { - typeName: TYPE_NAME, - method: "CancelUnbondingDelegation", - Request: MsgCancelUnbondingDelegation, - Response: MsgCancelUnbondingDelegationResponse, -} as const; - -/** - * UpdateParams defines an operation for updating the x/staking module - * parameters. - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.staking.v1beta1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts deleted file mode 100644 index b9e94f7..0000000 --- a/libs/es-client/src/protobufs/cosmos/staking/v1beta1/tx_pb.ts +++ /dev/null @@ -1,688 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/staking/v1beta1/tx.proto (package cosmos.staking.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { CommissionRates, Description, Params } from "./staking_pb.js"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * MsgCreateValidator defines a SDK message for creating a new validator. - * - * @generated from message cosmos.staking.v1beta1.MsgCreateValidator - */ -export class MsgCreateValidator extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.Description description = 1; - */ - description?: Description; - - /** - * @generated from field: cosmos.staking.v1beta1.CommissionRates commission = 2; - */ - commission?: CommissionRates; - - /** - * @generated from field: string min_self_delegation = 3; - */ - minSelfDelegation = ""; - - /** - * Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated. - * The validator address bytes and delegator address bytes refer to the same account while creating validator (defer - * only in bech32 notation). - * - * @generated from field: string delegator_address = 4 [deprecated = true]; - * @deprecated - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 5; - */ - validatorAddress = ""; - - /** - * @generated from field: google.protobuf.Any pubkey = 6; - */ - pubkey?: Any; - - /** - * @generated from field: cosmos.base.v1beta1.Coin value = 7; - */ - value?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgCreateValidator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "description", kind: "message", T: Description }, - { no: 2, name: "commission", kind: "message", T: CommissionRates }, - { no: 3, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "pubkey", kind: "message", T: Any }, - { no: 7, name: "value", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateValidator { - return new MsgCreateValidator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateValidator { - return new MsgCreateValidator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateValidator { - return new MsgCreateValidator().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateValidator | PlainMessage | undefined, b: MsgCreateValidator | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateValidator, a, b); - } -} - -/** - * MsgCreateValidatorResponse defines the Msg/CreateValidator response type. - * - * @generated from message cosmos.staking.v1beta1.MsgCreateValidatorResponse - */ -export class MsgCreateValidatorResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgCreateValidatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateValidatorResponse { - return new MsgCreateValidatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateValidatorResponse { - return new MsgCreateValidatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateValidatorResponse { - return new MsgCreateValidatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateValidatorResponse | PlainMessage | undefined, b: MsgCreateValidatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateValidatorResponse, a, b); - } -} - -/** - * MsgEditValidator defines a SDK message for editing an existing validator. - * - * @generated from message cosmos.staking.v1beta1.MsgEditValidator - */ -export class MsgEditValidator extends Message { - /** - * @generated from field: cosmos.staking.v1beta1.Description description = 1; - */ - description?: Description; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * We pass a reference to the new commission rate and min self delegation as - * it's not mandatory to update. If not updated, the deserialized rate will be - * zero with no way to distinguish if an update was intended. - * REF: #2373 - * - * @generated from field: string commission_rate = 3; - */ - commissionRate = ""; - - /** - * @generated from field: string min_self_delegation = 4; - */ - minSelfDelegation = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgEditValidator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "description", kind: "message", T: Description }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "commission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "min_self_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditValidator { - return new MsgEditValidator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditValidator { - return new MsgEditValidator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEditValidator { - return new MsgEditValidator().fromJsonString(jsonString, options); - } - - static equals(a: MsgEditValidator | PlainMessage | undefined, b: MsgEditValidator | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEditValidator, a, b); - } -} - -/** - * MsgEditValidatorResponse defines the Msg/EditValidator response type. - * - * @generated from message cosmos.staking.v1beta1.MsgEditValidatorResponse - */ -export class MsgEditValidatorResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgEditValidatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEditValidatorResponse { - return new MsgEditValidatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEditValidatorResponse { - return new MsgEditValidatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEditValidatorResponse { - return new MsgEditValidatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgEditValidatorResponse | PlainMessage | undefined, b: MsgEditValidatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEditValidatorResponse, a, b); - } -} - -/** - * MsgDelegate defines a SDK message for performing a delegation of coins - * from a delegator to a validator. - * - * @generated from message cosmos.staking.v1beta1.MsgDelegate - */ -export class MsgDelegate extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 3; - */ - amount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgDelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegate { - return new MsgDelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegate { - return new MsgDelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDelegate { - return new MsgDelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgDelegate | PlainMessage | undefined, b: MsgDelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDelegate, a, b); - } -} - -/** - * MsgDelegateResponse defines the Msg/Delegate response type. - * - * @generated from message cosmos.staking.v1beta1.MsgDelegateResponse - */ -export class MsgDelegateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgDelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateResponse { - return new MsgDelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateResponse { - return new MsgDelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDelegateResponse { - return new MsgDelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgDelegateResponse | PlainMessage | undefined, b: MsgDelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDelegateResponse, a, b); - } -} - -/** - * MsgBeginRedelegate defines a SDK message for performing a redelegation - * of coins from a delegator and source validator to a destination validator. - * - * @generated from message cosmos.staking.v1beta1.MsgBeginRedelegate - */ -export class MsgBeginRedelegate extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_src_address = 2; - */ - validatorSrcAddress = ""; - - /** - * @generated from field: string validator_dst_address = 3; - */ - validatorDstAddress = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 4; - */ - amount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgBeginRedelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_src_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "validator_dst_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginRedelegate { - return new MsgBeginRedelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginRedelegate { - return new MsgBeginRedelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginRedelegate { - return new MsgBeginRedelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginRedelegate | PlainMessage | undefined, b: MsgBeginRedelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginRedelegate, a, b); - } -} - -/** - * MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. - * - * @generated from message cosmos.staking.v1beta1.MsgBeginRedelegateResponse - */ -export class MsgBeginRedelegateResponse extends Message { - /** - * @generated from field: google.protobuf.Timestamp completion_time = 1; - */ - completionTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgBeginRedelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "completion_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginRedelegateResponse { - return new MsgBeginRedelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginRedelegateResponse { - return new MsgBeginRedelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginRedelegateResponse { - return new MsgBeginRedelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginRedelegateResponse | PlainMessage | undefined, b: MsgBeginRedelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginRedelegateResponse, a, b); - } -} - -/** - * MsgUndelegate defines a SDK message for performing an undelegation from a - * delegate and a validator. - * - * @generated from message cosmos.staking.v1beta1.MsgUndelegate - */ -export class MsgUndelegate extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 3; - */ - amount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgUndelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegate { - return new MsgUndelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegate { - return new MsgUndelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUndelegate { - return new MsgUndelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgUndelegate | PlainMessage | undefined, b: MsgUndelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUndelegate, a, b); - } -} - -/** - * MsgUndelegateResponse defines the Msg/Undelegate response type. - * - * @generated from message cosmos.staking.v1beta1.MsgUndelegateResponse - */ -export class MsgUndelegateResponse extends Message { - /** - * @generated from field: google.protobuf.Timestamp completion_time = 1; - */ - completionTime?: Timestamp; - - /** - * amount returns the amount of undelegated coins - * - * Since: cosmos-sdk 0.50 - * - * @generated from field: cosmos.base.v1beta1.Coin amount = 2; - */ - amount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgUndelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "completion_time", kind: "message", T: Timestamp }, - { no: 2, name: "amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateResponse { - return new MsgUndelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateResponse { - return new MsgUndelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateResponse { - return new MsgUndelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUndelegateResponse | PlainMessage | undefined, b: MsgUndelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUndelegateResponse, a, b); - } -} - -/** - * MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.staking.v1beta1.MsgCancelUnbondingDelegation - */ -export class MsgCancelUnbondingDelegation extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * amount is always less than or equal to unbonding delegation entry balance - * - * @generated from field: cosmos.base.v1beta1.Coin amount = 3; - */ - amount?: Coin; - - /** - * creation_height is the height which the unbonding took place. - * - * @generated from field: int64 creation_height = 4; - */ - creationHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin }, - { no: 4, name: "creation_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelUnbondingDelegation { - return new MsgCancelUnbondingDelegation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelUnbondingDelegation { - return new MsgCancelUnbondingDelegation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCancelUnbondingDelegation { - return new MsgCancelUnbondingDelegation().fromJsonString(jsonString, options); - } - - static equals(a: MsgCancelUnbondingDelegation | PlainMessage | undefined, b: MsgCancelUnbondingDelegation | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCancelUnbondingDelegation, a, b); - } -} - -/** - * MsgCancelUnbondingDelegationResponse - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse - */ -export class MsgCancelUnbondingDelegationResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelUnbondingDelegationResponse { - return new MsgCancelUnbondingDelegationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelUnbondingDelegationResponse { - return new MsgCancelUnbondingDelegationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCancelUnbondingDelegationResponse { - return new MsgCancelUnbondingDelegationResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCancelUnbondingDelegationResponse | PlainMessage | undefined, b: MsgCancelUnbondingDelegationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCancelUnbondingDelegationResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.staking.v1beta1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/staking parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmos.staking.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.staking.v1beta1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.staking.v1beta1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts b/libs/es-client/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts deleted file mode 100644 index 8f8884d..0000000 --- a/libs/es-client/src/protobufs/cosmos/store/internal/kv/v1beta1/kv_pb.ts +++ /dev/null @@ -1,92 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/store/internal/kv/v1beta1/kv.proto (package cosmos.store.internal.kv.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Pairs defines a repeated slice of Pair objects. - * - * @generated from message cosmos.store.internal.kv.v1beta1.Pairs - */ -export class Pairs extends Message { - /** - * @generated from field: repeated cosmos.store.internal.kv.v1beta1.Pair pairs = 1; - */ - pairs: Pair[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.internal.kv.v1beta1.Pairs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pairs", kind: "message", T: Pair, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Pairs { - return new Pairs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Pairs { - return new Pairs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Pairs { - return new Pairs().fromJsonString(jsonString, options); - } - - static equals(a: Pairs | PlainMessage | undefined, b: Pairs | PlainMessage | undefined): boolean { - return proto3.util.equals(Pairs, a, b); - } -} - -/** - * Pair defines a key/value bytes tuple. - * - * @generated from message cosmos.store.internal.kv.v1beta1.Pair - */ -export class Pair extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.internal.kv.v1beta1.Pair"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Pair { - return new Pair().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Pair { - return new Pair().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Pair { - return new Pair().fromJsonString(jsonString, options); - } - - static equals(a: Pair | PlainMessage | undefined, b: Pair | PlainMessage | undefined): boolean { - return proto3.util.equals(Pair, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts b/libs/es-client/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts deleted file mode 100644 index 9f69f5a..0000000 --- a/libs/es-client/src/protobufs/cosmos/store/snapshots/v1/snapshot_pb.ts +++ /dev/null @@ -1,374 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/store/snapshots/v1/snapshot.proto (package cosmos.store.snapshots.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Snapshot contains Tendermint state sync snapshot info. - * - * @generated from message cosmos.store.snapshots.v1.Snapshot - */ -export class Snapshot extends Message { - /** - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - /** - * @generated from field: uint32 format = 2; - */ - format = 0; - - /** - * @generated from field: uint32 chunks = 3; - */ - chunks = 0; - - /** - * @generated from field: bytes hash = 4; - */ - hash = new Uint8Array(0); - - /** - * @generated from field: cosmos.store.snapshots.v1.Metadata metadata = 5; - */ - metadata?: Metadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.snapshots.v1.Snapshot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "chunks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "metadata", kind: "message", T: Metadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Snapshot { - return new Snapshot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Snapshot { - return new Snapshot().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Snapshot { - return new Snapshot().fromJsonString(jsonString, options); - } - - static equals(a: Snapshot | PlainMessage | undefined, b: Snapshot | PlainMessage | undefined): boolean { - return proto3.util.equals(Snapshot, a, b); - } -} - -/** - * Metadata contains SDK-specific snapshot metadata. - * - * @generated from message cosmos.store.snapshots.v1.Metadata - */ -export class Metadata extends Message { - /** - * SHA-256 chunk hashes - * - * @generated from field: repeated bytes chunk_hashes = 1; - */ - chunkHashes: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.snapshots.v1.Metadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chunk_hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { - return new Metadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { - return new Metadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Metadata { - return new Metadata().fromJsonString(jsonString, options); - } - - static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { - return proto3.util.equals(Metadata, a, b); - } -} - -/** - * SnapshotItem is an item contained in a rootmulti.Store snapshot. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.store.snapshots.v1.SnapshotItem - */ -export class SnapshotItem extends Message { - /** - * item is the specific type of snapshot item. - * - * @generated from oneof cosmos.store.snapshots.v1.SnapshotItem.item - */ - item: { - /** - * @generated from field: cosmos.store.snapshots.v1.SnapshotStoreItem store = 1; - */ - value: SnapshotStoreItem; - case: "store"; - } | { - /** - * @generated from field: cosmos.store.snapshots.v1.SnapshotIAVLItem iavl = 2; - */ - value: SnapshotIAVLItem; - case: "iavl"; - } | { - /** - * @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionMeta extension = 3; - */ - value: SnapshotExtensionMeta; - case: "extension"; - } | { - /** - * @generated from field: cosmos.store.snapshots.v1.SnapshotExtensionPayload extension_payload = 4; - */ - value: SnapshotExtensionPayload; - case: "extensionPayload"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.snapshots.v1.SnapshotItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "store", kind: "message", T: SnapshotStoreItem, oneof: "item" }, - { no: 2, name: "iavl", kind: "message", T: SnapshotIAVLItem, oneof: "item" }, - { no: 3, name: "extension", kind: "message", T: SnapshotExtensionMeta, oneof: "item" }, - { no: 4, name: "extension_payload", kind: "message", T: SnapshotExtensionPayload, oneof: "item" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotItem { - return new SnapshotItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotItem { - return new SnapshotItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotItem { - return new SnapshotItem().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotItem | PlainMessage | undefined, b: SnapshotItem | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotItem, a, b); - } -} - -/** - * SnapshotStoreItem contains metadata about a snapshotted store. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.store.snapshots.v1.SnapshotStoreItem - */ -export class SnapshotStoreItem extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.snapshots.v1.SnapshotStoreItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotStoreItem { - return new SnapshotStoreItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotStoreItem { - return new SnapshotStoreItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotStoreItem { - return new SnapshotStoreItem().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotStoreItem | PlainMessage | undefined, b: SnapshotStoreItem | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotStoreItem, a, b); - } -} - -/** - * SnapshotIAVLItem is an exported IAVL node. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.store.snapshots.v1.SnapshotIAVLItem - */ -export class SnapshotIAVLItem extends Message { - /** - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - /** - * version is block height - * - * @generated from field: int64 version = 3; - */ - version = protoInt64.zero; - - /** - * height is depth of the tree. - * - * @generated from field: int32 height = 4; - */ - height = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.snapshots.v1.SnapshotIAVLItem"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "height", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotIAVLItem { - return new SnapshotIAVLItem().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotIAVLItem { - return new SnapshotIAVLItem().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotIAVLItem { - return new SnapshotIAVLItem().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotIAVLItem | PlainMessage | undefined, b: SnapshotIAVLItem | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotIAVLItem, a, b); - } -} - -/** - * SnapshotExtensionMeta contains metadata about an external snapshotter. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.store.snapshots.v1.SnapshotExtensionMeta - */ -export class SnapshotExtensionMeta extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: uint32 format = 2; - */ - format = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.snapshots.v1.SnapshotExtensionMeta"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotExtensionMeta { - return new SnapshotExtensionMeta().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotExtensionMeta { - return new SnapshotExtensionMeta().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotExtensionMeta { - return new SnapshotExtensionMeta().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotExtensionMeta | PlainMessage | undefined, b: SnapshotExtensionMeta | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotExtensionMeta, a, b); - } -} - -/** - * SnapshotExtensionPayload contains payloads of an external snapshotter. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.store.snapshots.v1.SnapshotExtensionPayload - */ -export class SnapshotExtensionPayload extends Message { - /** - * @generated from field: bytes payload = 1; - */ - payload = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.snapshots.v1.SnapshotExtensionPayload"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SnapshotExtensionPayload { - return new SnapshotExtensionPayload().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SnapshotExtensionPayload { - return new SnapshotExtensionPayload().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SnapshotExtensionPayload { - return new SnapshotExtensionPayload().fromJsonString(jsonString, options); - } - - static equals(a: SnapshotExtensionPayload | PlainMessage | undefined, b: SnapshotExtensionPayload | PlainMessage | undefined): boolean { - return proto3.util.equals(SnapshotExtensionPayload, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts b/libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts deleted file mode 100644 index 4d179b6..0000000 --- a/libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ListenCommitRequest, ListenCommitResponse, ListenFinalizeBlockRequest, ListenFinalizeBlockResponse } from "./grpc_pb.js"; - -const TYPE_NAME = "cosmos.store.streaming.abci.ABCIListenerService"; - -/** - * ListenFinalizeBlock is the corresponding endpoint for ABCIListener.ListenEndBlock - * - * @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenFinalizeBlock - */ -export const ABCIListenerServiceListenFinalizeBlockService = { - typeName: TYPE_NAME, - method: "ListenFinalizeBlock", - Request: ListenFinalizeBlockRequest, - Response: ListenFinalizeBlockResponse, -} as const; - -/** - * ListenCommit is the corresponding endpoint for ABCIListener.ListenCommit - * - * @generated from rpc cosmos.store.streaming.abci.ABCIListenerService.ListenCommit - */ -export const ABCIListenerServiceListenCommitService = { - typeName: TYPE_NAME, - method: "ListenCommit", - Request: ListenCommitRequest, - Response: ListenCommitResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts b/libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts deleted file mode 100644 index 88f8a93..0000000 --- a/libs/es-client/src/protobufs/cosmos/store/streaming/abci/grpc_pb.ts +++ /dev/null @@ -1,174 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/store/streaming/abci/grpc.proto (package cosmos.store.streaming.abci, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { RequestFinalizeBlock, ResponseCommit, ResponseFinalizeBlock } from "../../../../tendermint/abci/types_pb.js"; -import { StoreKVPair } from "../../v1beta1/listening_pb.js"; - -/** - * ListenEndBlockRequest is the request type for the ListenEndBlock RPC method - * - * @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockRequest - */ -export class ListenFinalizeBlockRequest extends Message { - /** - * @generated from field: tendermint.abci.RequestFinalizeBlock req = 1; - */ - req?: RequestFinalizeBlock; - - /** - * @generated from field: tendermint.abci.ResponseFinalizeBlock res = 2; - */ - res?: ResponseFinalizeBlock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.streaming.abci.ListenFinalizeBlockRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "req", kind: "message", T: RequestFinalizeBlock }, - { no: 2, name: "res", kind: "message", T: ResponseFinalizeBlock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListenFinalizeBlockRequest { - return new ListenFinalizeBlockRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListenFinalizeBlockRequest { - return new ListenFinalizeBlockRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListenFinalizeBlockRequest { - return new ListenFinalizeBlockRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListenFinalizeBlockRequest | PlainMessage | undefined, b: ListenFinalizeBlockRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListenFinalizeBlockRequest, a, b); - } -} - -/** - * ListenEndBlockResponse is the response type for the ListenEndBlock RPC method - * - * @generated from message cosmos.store.streaming.abci.ListenFinalizeBlockResponse - */ -export class ListenFinalizeBlockResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.streaming.abci.ListenFinalizeBlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListenFinalizeBlockResponse { - return new ListenFinalizeBlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListenFinalizeBlockResponse { - return new ListenFinalizeBlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListenFinalizeBlockResponse { - return new ListenFinalizeBlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListenFinalizeBlockResponse | PlainMessage | undefined, b: ListenFinalizeBlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListenFinalizeBlockResponse, a, b); - } -} - -/** - * ListenCommitRequest is the request type for the ListenCommit RPC method - * - * @generated from message cosmos.store.streaming.abci.ListenCommitRequest - */ -export class ListenCommitRequest extends Message { - /** - * explicitly pass in block height as ResponseCommit does not contain this info - * - * @generated from field: int64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * @generated from field: tendermint.abci.ResponseCommit res = 2; - */ - res?: ResponseCommit; - - /** - * @generated from field: repeated cosmos.store.v1beta1.StoreKVPair change_set = 3; - */ - changeSet: StoreKVPair[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.streaming.abci.ListenCommitRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "res", kind: "message", T: ResponseCommit }, - { no: 3, name: "change_set", kind: "message", T: StoreKVPair, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListenCommitRequest { - return new ListenCommitRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListenCommitRequest { - return new ListenCommitRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListenCommitRequest { - return new ListenCommitRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListenCommitRequest | PlainMessage | undefined, b: ListenCommitRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListenCommitRequest, a, b); - } -} - -/** - * ListenCommitResponse is the response type for the ListenCommit RPC method - * - * @generated from message cosmos.store.streaming.abci.ListenCommitResponse - */ -export class ListenCommitResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.streaming.abci.ListenCommitResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListenCommitResponse { - return new ListenCommitResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListenCommitResponse { - return new ListenCommitResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListenCommitResponse { - return new ListenCommitResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListenCommitResponse | PlainMessage | undefined, b: ListenCommitResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListenCommitResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts b/libs/es-client/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts deleted file mode 100644 index 390cfde..0000000 --- a/libs/es-client/src/protobufs/cosmos/store/v1beta1/commit_info_pb.ts +++ /dev/null @@ -1,152 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/store/v1beta1/commit_info.proto (package cosmos.store.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * CommitInfo defines commit information used by the multi-store when committing - * a version/height. - * - * @generated from message cosmos.store.v1beta1.CommitInfo - */ -export class CommitInfo extends Message { - /** - * @generated from field: int64 version = 1; - */ - version = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.store.v1beta1.StoreInfo store_infos = 2; - */ - storeInfos: StoreInfo[] = []; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 3; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.v1beta1.CommitInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "store_infos", kind: "message", T: StoreInfo, repeated: true }, - { no: 3, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommitInfo { - return new CommitInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommitInfo { - return new CommitInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommitInfo { - return new CommitInfo().fromJsonString(jsonString, options); - } - - static equals(a: CommitInfo | PlainMessage | undefined, b: CommitInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(CommitInfo, a, b); - } -} - -/** - * StoreInfo defines store-specific commit information. It contains a reference - * between a store name and the commit ID. - * - * @generated from message cosmos.store.v1beta1.StoreInfo - */ -export class StoreInfo extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: cosmos.store.v1beta1.CommitID commit_id = 2; - */ - commitId?: CommitID; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.v1beta1.StoreInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "commit_id", kind: "message", T: CommitID }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreInfo { - return new StoreInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreInfo { - return new StoreInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StoreInfo { - return new StoreInfo().fromJsonString(jsonString, options); - } - - static equals(a: StoreInfo | PlainMessage | undefined, b: StoreInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreInfo, a, b); - } -} - -/** - * CommitID defines the commitment information when a specific store is - * committed. - * - * @generated from message cosmos.store.v1beta1.CommitID - */ -export class CommitID extends Message { - /** - * @generated from field: int64 version = 1; - */ - version = protoInt64.zero; - - /** - * @generated from field: bytes hash = 2; - */ - hash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.v1beta1.CommitID"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommitID { - return new CommitID().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommitID { - return new CommitID().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommitID { - return new CommitID().fromJsonString(jsonString, options); - } - - static equals(a: CommitID | PlainMessage | undefined, b: CommitID | PlainMessage | undefined): boolean { - return proto3.util.equals(CommitID, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/store/v1beta1/listening_pb.ts b/libs/es-client/src/protobufs/cosmos/store/v1beta1/listening_pb.ts deleted file mode 100644 index ff16677..0000000 --- a/libs/es-client/src/protobufs/cosmos/store/v1beta1/listening_pb.ts +++ /dev/null @@ -1,128 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/store/v1beta1/listening.proto (package cosmos.store.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { RequestFinalizeBlock, ResponseCommit, ResponseFinalizeBlock } from "../../../tendermint/abci/types_pb.js"; - -/** - * StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) - * It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and - * Deletes - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.store.v1beta1.StoreKVPair - */ -export class StoreKVPair extends Message { - /** - * the store key for the KVStore this pair originates from - * - * @generated from field: string store_key = 1; - */ - storeKey = ""; - - /** - * true indicates a delete operation, false indicates a set operation - * - * @generated from field: bool delete = 2; - */ - delete = false; - - /** - * @generated from field: bytes key = 3; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 4; - */ - value = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.v1beta1.StoreKVPair"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "store_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "delete", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreKVPair { - return new StoreKVPair().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreKVPair { - return new StoreKVPair().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StoreKVPair { - return new StoreKVPair().fromJsonString(jsonString, options); - } - - static equals(a: StoreKVPair | PlainMessage | undefined, b: StoreKVPair | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreKVPair, a, b); - } -} - -/** - * BlockMetadata contains all the abci event data of a block - * the file streamer dump them into files together with the state changes. - * - * @generated from message cosmos.store.v1beta1.BlockMetadata - */ -export class BlockMetadata extends Message { - /** - * @generated from field: tendermint.abci.ResponseCommit response_commit = 6; - */ - responseCommit?: ResponseCommit; - - /** - * @generated from field: tendermint.abci.RequestFinalizeBlock request_finalize_block = 7; - */ - requestFinalizeBlock?: RequestFinalizeBlock; - - /** - * TODO: should we renumber this? - * - * @generated from field: tendermint.abci.ResponseFinalizeBlock response_finalize_block = 8; - */ - responseFinalizeBlock?: ResponseFinalizeBlock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.store.v1beta1.BlockMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 6, name: "response_commit", kind: "message", T: ResponseCommit }, - { no: 7, name: "request_finalize_block", kind: "message", T: RequestFinalizeBlock }, - { no: 8, name: "response_finalize_block", kind: "message", T: ResponseFinalizeBlock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlockMetadata { - return new BlockMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlockMetadata { - return new BlockMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlockMetadata { - return new BlockMetadata().fromJsonString(jsonString, options); - } - - static equals(a: BlockMetadata | PlainMessage | undefined, b: BlockMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(BlockMetadata, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/tx/config/v1/config_pb.ts b/libs/es-client/src/protobufs/cosmos/tx/config/v1/config_pb.ts deleted file mode 100644 index 8b05608..0000000 --- a/libs/es-client/src/protobufs/cosmos/tx/config/v1/config_pb.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/tx/config/v1/config.proto (package cosmos.tx.config.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Config is the config object of the x/auth/tx package. - * - * @generated from message cosmos.tx.config.v1.Config - */ -export class Config extends Message { - /** - * skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override - * this functionality. - * - * @generated from field: bool skip_ante_handler = 1; - */ - skipAnteHandler = false; - - /** - * skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override - * this functionality. - * - * @generated from field: bool skip_post_handler = 2; - */ - skipPostHandler = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.config.v1.Config"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "skip_ante_handler", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "skip_post_handler", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Config { - return new Config().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Config { - return new Config().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Config { - return new Config().fromJsonString(jsonString, options); - } - - static equals(a: Config | PlainMessage | undefined, b: Config | PlainMessage | undefined): boolean { - return proto3.util.equals(Config, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts b/libs/es-client/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts deleted file mode 100644 index ce645f2..0000000 --- a/libs/es-client/src/protobufs/cosmos/tx/signing/v1beta1/signing_pb.ts +++ /dev/null @@ -1,351 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/tx/signing/v1beta1/signing.proto (package cosmos.tx.signing.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { CompactBitArray } from "../../../crypto/multisig/v1beta1/multisig_pb.js"; - -/** - * SignMode represents a signing mode with its own security guarantees. - * - * This enum should be considered a registry of all known sign modes - * in the Cosmos ecosystem. Apps are not expected to support all known - * sign modes. Apps that would like to support custom sign modes are - * encouraged to open a small PR against this file to add a new case - * to this SignMode enum describing their sign mode so that different - * apps have a consistent version of this enum. - * - * @generated from enum cosmos.tx.signing.v1beta1.SignMode - */ -export enum SignMode { - /** - * SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be - * rejected. - * - * @generated from enum value: SIGN_MODE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is - * verified with raw bytes from Tx. - * - * @generated from enum value: SIGN_MODE_DIRECT = 1; - */ - DIRECT = 1, - - /** - * SIGN_MODE_TEXTUAL is a future signing mode that will verify some - * human-readable textual representation on top of the binary representation - * from SIGN_MODE_DIRECT. - * - * Since: cosmos-sdk 0.50 - * - * @generated from enum value: SIGN_MODE_TEXTUAL = 2; - */ - TEXTUAL = 2, - - /** - * SIGN_MODE_DIRECT_AUX specifies a signing mode which uses - * SignDocDirectAux. As opposed to SIGN_MODE_DIRECT, this sign mode does not - * require signers signing over other signers' `signer_info`. - * - * Since: cosmos-sdk 0.46 - * - * @generated from enum value: SIGN_MODE_DIRECT_AUX = 3; - */ - DIRECT_AUX = 3, - - /** - * SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses - * Amino JSON and will be removed in the future. - * - * @generated from enum value: SIGN_MODE_LEGACY_AMINO_JSON = 127; - */ - LEGACY_AMINO_JSON = 127, - - /** - * SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos - * SDK. Ref: https://eips.ethereum.org/EIPS/eip-191 - * - * Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant, - * but is not implemented on the SDK by default. To enable EIP-191, you need - * to pass a custom `TxConfig` that has an implementation of - * `SignModeHandler` for EIP-191. The SDK may decide to fully support - * EIP-191 in the future. - * - * Since: cosmos-sdk 0.45.2 - * - * @generated from enum value: SIGN_MODE_EIP_191 = 191; - */ - EIP_191 = 191, -} -// Retrieve enum metadata with: proto3.getEnumType(SignMode) -proto3.util.setEnumType(SignMode, "cosmos.tx.signing.v1beta1.SignMode", [ - { no: 0, name: "SIGN_MODE_UNSPECIFIED" }, - { no: 1, name: "SIGN_MODE_DIRECT" }, - { no: 2, name: "SIGN_MODE_TEXTUAL" }, - { no: 3, name: "SIGN_MODE_DIRECT_AUX" }, - { no: 127, name: "SIGN_MODE_LEGACY_AMINO_JSON" }, - { no: 191, name: "SIGN_MODE_EIP_191" }, -]); - -/** - * SignatureDescriptors wraps multiple SignatureDescriptor's. - * - * @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptors - */ -export class SignatureDescriptors extends Message { - /** - * signatures are the signature descriptors - * - * @generated from field: repeated cosmos.tx.signing.v1beta1.SignatureDescriptor signatures = 1; - */ - signatures: SignatureDescriptor[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.signing.v1beta1.SignatureDescriptors"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signatures", kind: "message", T: SignatureDescriptor, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureDescriptors { - return new SignatureDescriptors().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureDescriptors { - return new SignatureDescriptors().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureDescriptors { - return new SignatureDescriptors().fromJsonString(jsonString, options); - } - - static equals(a: SignatureDescriptors | PlainMessage | undefined, b: SignatureDescriptors | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureDescriptors, a, b); - } -} - -/** - * SignatureDescriptor is a convenience type which represents the full data for - * a signature including the public key of the signer, signing modes and the - * signature itself. It is primarily used for coordinating signatures between - * clients. - * - * @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor - */ -export class SignatureDescriptor extends Message { - /** - * public_key is the public key of the signer - * - * @generated from field: google.protobuf.Any public_key = 1; - */ - publicKey?: Any; - - /** - * @generated from field: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data data = 2; - */ - data?: SignatureDescriptor_Data; - - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to prevent - * replay attacks. - * - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.signing.v1beta1.SignatureDescriptor"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "public_key", kind: "message", T: Any }, - { no: 2, name: "data", kind: "message", T: SignatureDescriptor_Data }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureDescriptor { - return new SignatureDescriptor().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureDescriptor { - return new SignatureDescriptor().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureDescriptor { - return new SignatureDescriptor().fromJsonString(jsonString, options); - } - - static equals(a: SignatureDescriptor | PlainMessage | undefined, b: SignatureDescriptor | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureDescriptor, a, b); - } -} - -/** - * Data represents signature data - * - * @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor.Data - */ -export class SignatureDescriptor_Data extends Message { - /** - * sum is the oneof that specifies whether this represents single or multi-signature data - * - * @generated from oneof cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.sum - */ - sum: { - /** - * single represents a single signer - * - * @generated from field: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single single = 1; - */ - value: SignatureDescriptor_Data_Single; - case: "single"; - } | { - /** - * multi represents a multisig signer - * - * @generated from field: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi multi = 2; - */ - value: SignatureDescriptor_Data_Multi; - case: "multi"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "single", kind: "message", T: SignatureDescriptor_Data_Single, oneof: "sum" }, - { no: 2, name: "multi", kind: "message", T: SignatureDescriptor_Data_Multi, oneof: "sum" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureDescriptor_Data { - return new SignatureDescriptor_Data().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureDescriptor_Data { - return new SignatureDescriptor_Data().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureDescriptor_Data { - return new SignatureDescriptor_Data().fromJsonString(jsonString, options); - } - - static equals(a: SignatureDescriptor_Data | PlainMessage | undefined, b: SignatureDescriptor_Data | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureDescriptor_Data, a, b); - } -} - -/** - * Single is the signature data for a single signer - * - * @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single - */ -export class SignatureDescriptor_Data_Single extends Message { - /** - * mode is the signing mode of the single signer - * - * @generated from field: cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - mode = SignMode.UNSPECIFIED; - - /** - * signature is the raw signature bytes - * - * @generated from field: bytes signature = 2; - */ - signature = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "mode", kind: "enum", T: proto3.getEnumType(SignMode) }, - { no: 2, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureDescriptor_Data_Single { - return new SignatureDescriptor_Data_Single().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureDescriptor_Data_Single { - return new SignatureDescriptor_Data_Single().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureDescriptor_Data_Single { - return new SignatureDescriptor_Data_Single().fromJsonString(jsonString, options); - } - - static equals(a: SignatureDescriptor_Data_Single | PlainMessage | undefined, b: SignatureDescriptor_Data_Single | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureDescriptor_Data_Single, a, b); - } -} - -/** - * Multi is the signature data for a multisig public key - * - * @generated from message cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi - */ -export class SignatureDescriptor_Data_Multi extends Message { - /** - * bitarray specifies which keys within the multisig are signing - * - * @generated from field: cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - bitarray?: CompactBitArray; - - /** - * signatures is the signatures of the multi-signature - * - * @generated from field: repeated cosmos.tx.signing.v1beta1.SignatureDescriptor.Data signatures = 2; - */ - signatures: SignatureDescriptor_Data[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bitarray", kind: "message", T: CompactBitArray }, - { no: 2, name: "signatures", kind: "message", T: SignatureDescriptor_Data, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureDescriptor_Data_Multi { - return new SignatureDescriptor_Data_Multi().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureDescriptor_Data_Multi { - return new SignatureDescriptor_Data_Multi().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureDescriptor_Data_Multi { - return new SignatureDescriptor_Data_Multi().fromJsonString(jsonString, options); - } - - static equals(a: SignatureDescriptor_Data_Multi | PlainMessage | undefined, b: SignatureDescriptor_Data_Multi | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureDescriptor_Data_Multi, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_cosmes.ts b/libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_cosmes.ts deleted file mode 100644 index 29b7687..0000000 --- a/libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_cosmes.ts +++ /dev/null @@ -1,127 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/tx/v1beta1/service.proto (package cosmos.tx.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { BroadcastTxRequest, BroadcastTxResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse, GetTxRequest, GetTxResponse, GetTxsEventRequest, GetTxsEventResponse, SimulateRequest, SimulateResponse, TxDecodeAminoRequest, TxDecodeAminoResponse, TxDecodeRequest, TxDecodeResponse, TxEncodeAminoRequest, TxEncodeAminoResponse, TxEncodeRequest, TxEncodeResponse } from "./service_pb.js"; - -const TYPE_NAME = "cosmos.tx.v1beta1.Service"; - -/** - * Simulate simulates executing a transaction for estimating gas usage. - * - * @generated from rpc cosmos.tx.v1beta1.Service.Simulate - */ -export const ServiceSimulateService = { - typeName: TYPE_NAME, - method: "Simulate", - Request: SimulateRequest, - Response: SimulateResponse, -} as const; - -/** - * GetTx fetches a tx by hash. - * - * @generated from rpc cosmos.tx.v1beta1.Service.GetTx - */ -export const ServiceGetTxService = { - typeName: TYPE_NAME, - method: "GetTx", - Request: GetTxRequest, - Response: GetTxResponse, -} as const; - -/** - * BroadcastTx broadcast transaction. - * - * @generated from rpc cosmos.tx.v1beta1.Service.BroadcastTx - */ -export const ServiceBroadcastTxService = { - typeName: TYPE_NAME, - method: "BroadcastTx", - Request: BroadcastTxRequest, - Response: BroadcastTxResponse, -} as const; - -/** - * GetTxsEvent fetches txs by event. - * - * @generated from rpc cosmos.tx.v1beta1.Service.GetTxsEvent - */ -export const ServiceGetTxsEventService = { - typeName: TYPE_NAME, - method: "GetTxsEvent", - Request: GetTxsEventRequest, - Response: GetTxsEventResponse, -} as const; - -/** - * GetBlockWithTxs fetches a block with decoded txs. - * - * Since: cosmos-sdk 0.45.2 - * - * @generated from rpc cosmos.tx.v1beta1.Service.GetBlockWithTxs - */ -export const ServiceGetBlockWithTxsService = { - typeName: TYPE_NAME, - method: "GetBlockWithTxs", - Request: GetBlockWithTxsRequest, - Response: GetBlockWithTxsResponse, -} as const; - -/** - * TxDecode decodes the transaction. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.tx.v1beta1.Service.TxDecode - */ -export const ServiceTxDecodeService = { - typeName: TYPE_NAME, - method: "TxDecode", - Request: TxDecodeRequest, - Response: TxDecodeResponse, -} as const; - -/** - * TxEncode encodes the transaction. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.tx.v1beta1.Service.TxEncode - */ -export const ServiceTxEncodeService = { - typeName: TYPE_NAME, - method: "TxEncode", - Request: TxEncodeRequest, - Response: TxEncodeResponse, -} as const; - -/** - * TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.tx.v1beta1.Service.TxEncodeAmino - */ -export const ServiceTxEncodeAminoService = { - typeName: TYPE_NAME, - method: "TxEncodeAmino", - Request: TxEncodeAminoRequest, - Response: TxEncodeAminoResponse, -} as const; - -/** - * TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc cosmos.tx.v1beta1.Service.TxDecodeAmino - */ -export const ServiceTxDecodeAminoService = { - typeName: TYPE_NAME, - method: "TxDecodeAmino", - Request: TxDecodeAminoRequest, - Response: TxDecodeAminoResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_pb.ts b/libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_pb.ts deleted file mode 100644 index 1463010..0000000 --- a/libs/es-client/src/protobufs/cosmos/tx/v1beta1/service_pb.ts +++ /dev/null @@ -1,998 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/tx/v1beta1/service.proto (package cosmos.tx.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; -import { Tx } from "./tx_pb.js"; -import { GasInfo, Result, TxResponse } from "../../base/abci/v1beta1/abci_pb.js"; -import { BlockID } from "../../../tendermint/types/types_pb.js"; -import { Block } from "../../../tendermint/types/block_pb.js"; - -/** - * OrderBy defines the sorting order - * - * @generated from enum cosmos.tx.v1beta1.OrderBy - */ -export enum OrderBy { - /** - * ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults - * to ASC in this case. - * - * @generated from enum value: ORDER_BY_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * ORDER_BY_ASC defines ascending order - * - * @generated from enum value: ORDER_BY_ASC = 1; - */ - ASC = 1, - - /** - * ORDER_BY_DESC defines descending order - * - * @generated from enum value: ORDER_BY_DESC = 2; - */ - DESC = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(OrderBy) -proto3.util.setEnumType(OrderBy, "cosmos.tx.v1beta1.OrderBy", [ - { no: 0, name: "ORDER_BY_UNSPECIFIED" }, - { no: 1, name: "ORDER_BY_ASC" }, - { no: 2, name: "ORDER_BY_DESC" }, -]); - -/** - * BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC - * method. - * - * @generated from enum cosmos.tx.v1beta1.BroadcastMode - */ -export enum BroadcastMode { - /** - * zero-value for mode ordering - * - * @generated from enum value: BROADCAST_MODE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * DEPRECATED: use BROADCAST_MODE_SYNC instead, - * BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - * - * @generated from enum value: BROADCAST_MODE_BLOCK = 1 [deprecated = true]; - * @deprecated - */ - BLOCK = 1, - - /** - * BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits - * for a CheckTx execution response only. - * - * @generated from enum value: BROADCAST_MODE_SYNC = 2; - */ - SYNC = 2, - - /** - * BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client - * returns immediately. - * - * @generated from enum value: BROADCAST_MODE_ASYNC = 3; - */ - ASYNC = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(BroadcastMode) -proto3.util.setEnumType(BroadcastMode, "cosmos.tx.v1beta1.BroadcastMode", [ - { no: 0, name: "BROADCAST_MODE_UNSPECIFIED" }, - { no: 1, name: "BROADCAST_MODE_BLOCK" }, - { no: 2, name: "BROADCAST_MODE_SYNC" }, - { no: 3, name: "BROADCAST_MODE_ASYNC" }, -]); - -/** - * GetTxsEventRequest is the request type for the Service.TxsByEvents - * RPC method. - * - * @generated from message cosmos.tx.v1beta1.GetTxsEventRequest - */ -export class GetTxsEventRequest extends Message { - /** - * events is the list of transaction event type. - * Deprecated post v0.47.x: use query instead, which should contain a valid - * events query. - * - * @generated from field: repeated string events = 1 [deprecated = true]; - * @deprecated - */ - events: string[] = []; - - /** - * pagination defines a pagination for the request. - * Deprecated post v0.46.x: use page and limit instead. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2 [deprecated = true]; - * @deprecated - */ - pagination?: PageRequest; - - /** - * @generated from field: cosmos.tx.v1beta1.OrderBy order_by = 3; - */ - orderBy = OrderBy.UNSPECIFIED; - - /** - * page is the page number to query, starts at 1. If not provided, will - * default to first page. - * - * @generated from field: uint64 page = 4; - */ - page = protoInt64.zero; - - /** - * limit is the total number of results to be returned in the result page. - * If left empty it will default to a value to be set by each app. - * - * @generated from field: uint64 limit = 5; - */ - limit = protoInt64.zero; - - /** - * query defines the transaction event query that is proxied to Tendermint's - * TxSearch RPC method. The query must be valid. - * - * Since cosmos-sdk 0.50 - * - * @generated from field: string query = 6; - */ - query = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.GetTxsEventRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "events", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - { no: 3, name: "order_by", kind: "enum", T: proto3.getEnumType(OrderBy) }, - { no: 4, name: "page", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTxsEventRequest { - return new GetTxsEventRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTxsEventRequest { - return new GetTxsEventRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTxsEventRequest { - return new GetTxsEventRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTxsEventRequest | PlainMessage | undefined, b: GetTxsEventRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTxsEventRequest, a, b); - } -} - -/** - * GetTxsEventResponse is the response type for the Service.TxsByEvents - * RPC method. - * - * @generated from message cosmos.tx.v1beta1.GetTxsEventResponse - */ -export class GetTxsEventResponse extends Message { - /** - * txs is the list of queried transactions. - * - * @generated from field: repeated cosmos.tx.v1beta1.Tx txs = 1; - */ - txs: Tx[] = []; - - /** - * tx_responses is the list of queried TxResponses. - * - * @generated from field: repeated cosmos.base.abci.v1beta1.TxResponse tx_responses = 2; - */ - txResponses: TxResponse[] = []; - - /** - * pagination defines a pagination for the response. - * Deprecated post v0.46.x: use total instead. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 3 [deprecated = true]; - * @deprecated - */ - pagination?: PageResponse; - - /** - * total is total number of results available - * - * @generated from field: uint64 total = 4; - */ - total = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.GetTxsEventResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "txs", kind: "message", T: Tx, repeated: true }, - { no: 2, name: "tx_responses", kind: "message", T: TxResponse, repeated: true }, - { no: 3, name: "pagination", kind: "message", T: PageResponse }, - { no: 4, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTxsEventResponse { - return new GetTxsEventResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTxsEventResponse { - return new GetTxsEventResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTxsEventResponse { - return new GetTxsEventResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTxsEventResponse | PlainMessage | undefined, b: GetTxsEventResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTxsEventResponse, a, b); - } -} - -/** - * BroadcastTxRequest is the request type for the Service.BroadcastTxRequest - * RPC method. - * - * @generated from message cosmos.tx.v1beta1.BroadcastTxRequest - */ -export class BroadcastTxRequest extends Message { - /** - * tx_bytes is the raw transaction. - * - * @generated from field: bytes tx_bytes = 1; - */ - txBytes = new Uint8Array(0); - - /** - * @generated from field: cosmos.tx.v1beta1.BroadcastMode mode = 2; - */ - mode = BroadcastMode.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.BroadcastTxRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "mode", kind: "enum", T: proto3.getEnumType(BroadcastMode) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxRequest { - return new BroadcastTxRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxRequest { - return new BroadcastTxRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BroadcastTxRequest { - return new BroadcastTxRequest().fromJsonString(jsonString, options); - } - - static equals(a: BroadcastTxRequest | PlainMessage | undefined, b: BroadcastTxRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(BroadcastTxRequest, a, b); - } -} - -/** - * BroadcastTxResponse is the response type for the - * Service.BroadcastTx method. - * - * @generated from message cosmos.tx.v1beta1.BroadcastTxResponse - */ -export class BroadcastTxResponse extends Message { - /** - * tx_response is the queried TxResponses. - * - * @generated from field: cosmos.base.abci.v1beta1.TxResponse tx_response = 1; - */ - txResponse?: TxResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.BroadcastTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_response", kind: "message", T: TxResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxResponse { - return new BroadcastTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxResponse { - return new BroadcastTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BroadcastTxResponse { - return new BroadcastTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: BroadcastTxResponse | PlainMessage | undefined, b: BroadcastTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(BroadcastTxResponse, a, b); - } -} - -/** - * SimulateRequest is the request type for the Service.Simulate - * RPC method. - * - * @generated from message cosmos.tx.v1beta1.SimulateRequest - */ -export class SimulateRequest extends Message { - /** - * tx is the transaction to simulate. - * Deprecated. Send raw tx bytes instead. - * - * @generated from field: cosmos.tx.v1beta1.Tx tx = 1 [deprecated = true]; - * @deprecated - */ - tx?: Tx; - - /** - * tx_bytes is the raw transaction. - * - * Since: cosmos-sdk 0.43 - * - * @generated from field: bytes tx_bytes = 2; - */ - txBytes = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.SimulateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "message", T: Tx }, - { no: 2, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SimulateRequest { - return new SimulateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SimulateRequest { - return new SimulateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SimulateRequest { - return new SimulateRequest().fromJsonString(jsonString, options); - } - - static equals(a: SimulateRequest | PlainMessage | undefined, b: SimulateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SimulateRequest, a, b); - } -} - -/** - * SimulateResponse is the response type for the - * Service.SimulateRPC method. - * - * @generated from message cosmos.tx.v1beta1.SimulateResponse - */ -export class SimulateResponse extends Message { - /** - * gas_info is the information about gas used in the simulation. - * - * @generated from field: cosmos.base.abci.v1beta1.GasInfo gas_info = 1; - */ - gasInfo?: GasInfo; - - /** - * result is the result of the simulation. - * - * @generated from field: cosmos.base.abci.v1beta1.Result result = 2; - */ - result?: Result; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.SimulateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gas_info", kind: "message", T: GasInfo }, - { no: 2, name: "result", kind: "message", T: Result }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SimulateResponse { - return new SimulateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SimulateResponse { - return new SimulateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SimulateResponse { - return new SimulateResponse().fromJsonString(jsonString, options); - } - - static equals(a: SimulateResponse | PlainMessage | undefined, b: SimulateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SimulateResponse, a, b); - } -} - -/** - * GetTxRequest is the request type for the Service.GetTx - * RPC method. - * - * @generated from message cosmos.tx.v1beta1.GetTxRequest - */ -export class GetTxRequest extends Message { - /** - * hash is the tx hash to query, encoded as a hex string. - * - * @generated from field: string hash = 1; - */ - hash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.GetTxRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTxRequest { - return new GetTxRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTxRequest { - return new GetTxRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTxRequest { - return new GetTxRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTxRequest | PlainMessage | undefined, b: GetTxRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTxRequest, a, b); - } -} - -/** - * GetTxResponse is the response type for the Service.GetTx method. - * - * @generated from message cosmos.tx.v1beta1.GetTxResponse - */ -export class GetTxResponse extends Message { - /** - * tx is the queried transaction. - * - * @generated from field: cosmos.tx.v1beta1.Tx tx = 1; - */ - tx?: Tx; - - /** - * tx_response is the queried TxResponses. - * - * @generated from field: cosmos.base.abci.v1beta1.TxResponse tx_response = 2; - */ - txResponse?: TxResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.GetTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "message", T: Tx }, - { no: 2, name: "tx_response", kind: "message", T: TxResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTxResponse { - return new GetTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTxResponse { - return new GetTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTxResponse { - return new GetTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTxResponse | PlainMessage | undefined, b: GetTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTxResponse, a, b); - } -} - -/** - * GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs - * RPC method. - * - * Since: cosmos-sdk 0.45.2 - * - * @generated from message cosmos.tx.v1beta1.GetBlockWithTxsRequest - */ -export class GetBlockWithTxsRequest extends Message { - /** - * height is the height of the block to query. - * - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * pagination defines a pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.GetBlockWithTxsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlockWithTxsRequest { - return new GetBlockWithTxsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlockWithTxsRequest { - return new GetBlockWithTxsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlockWithTxsRequest { - return new GetBlockWithTxsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetBlockWithTxsRequest | PlainMessage | undefined, b: GetBlockWithTxsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlockWithTxsRequest, a, b); - } -} - -/** - * GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs - * method. - * - * Since: cosmos-sdk 0.45.2 - * - * @generated from message cosmos.tx.v1beta1.GetBlockWithTxsResponse - */ -export class GetBlockWithTxsResponse extends Message { - /** - * txs are the transactions in the block. - * - * @generated from field: repeated cosmos.tx.v1beta1.Tx txs = 1; - */ - txs: Tx[] = []; - - /** - * @generated from field: tendermint.types.BlockID block_id = 2; - */ - blockId?: BlockID; - - /** - * @generated from field: tendermint.types.Block block = 3; - */ - block?: Block; - - /** - * pagination defines a pagination for the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 4; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.GetBlockWithTxsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "txs", kind: "message", T: Tx, repeated: true }, - { no: 2, name: "block_id", kind: "message", T: BlockID }, - { no: 3, name: "block", kind: "message", T: Block }, - { no: 4, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlockWithTxsResponse { - return new GetBlockWithTxsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlockWithTxsResponse { - return new GetBlockWithTxsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlockWithTxsResponse { - return new GetBlockWithTxsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBlockWithTxsResponse | PlainMessage | undefined, b: GetBlockWithTxsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlockWithTxsResponse, a, b); - } -} - -/** - * TxDecodeRequest is the request type for the Service.TxDecode - * RPC method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxDecodeRequest - */ -export class TxDecodeRequest extends Message { - /** - * tx_bytes is the raw transaction. - * - * @generated from field: bytes tx_bytes = 1; - */ - txBytes = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxDecodeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeRequest { - return new TxDecodeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeRequest { - return new TxDecodeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxDecodeRequest { - return new TxDecodeRequest().fromJsonString(jsonString, options); - } - - static equals(a: TxDecodeRequest | PlainMessage | undefined, b: TxDecodeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TxDecodeRequest, a, b); - } -} - -/** - * TxDecodeResponse is the response type for the - * Service.TxDecode method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxDecodeResponse - */ -export class TxDecodeResponse extends Message { - /** - * tx is the decoded transaction. - * - * @generated from field: cosmos.tx.v1beta1.Tx tx = 1; - */ - tx?: Tx; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxDecodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "message", T: Tx }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeResponse { - return new TxDecodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeResponse { - return new TxDecodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxDecodeResponse { - return new TxDecodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: TxDecodeResponse | PlainMessage | undefined, b: TxDecodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TxDecodeResponse, a, b); - } -} - -/** - * TxEncodeRequest is the request type for the Service.TxEncode - * RPC method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxEncodeRequest - */ -export class TxEncodeRequest extends Message { - /** - * tx is the transaction to encode. - * - * @generated from field: cosmos.tx.v1beta1.Tx tx = 1; - */ - tx?: Tx; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxEncodeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "message", T: Tx }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeRequest { - return new TxEncodeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeRequest { - return new TxEncodeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxEncodeRequest { - return new TxEncodeRequest().fromJsonString(jsonString, options); - } - - static equals(a: TxEncodeRequest | PlainMessage | undefined, b: TxEncodeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TxEncodeRequest, a, b); - } -} - -/** - * TxEncodeResponse is the response type for the - * Service.TxEncode method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxEncodeResponse - */ -export class TxEncodeResponse extends Message { - /** - * tx_bytes is the encoded transaction bytes. - * - * @generated from field: bytes tx_bytes = 1; - */ - txBytes = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxEncodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeResponse { - return new TxEncodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeResponse { - return new TxEncodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxEncodeResponse { - return new TxEncodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: TxEncodeResponse | PlainMessage | undefined, b: TxEncodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TxEncodeResponse, a, b); - } -} - -/** - * TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino - * RPC method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxEncodeAminoRequest - */ -export class TxEncodeAminoRequest extends Message { - /** - * @generated from field: string amino_json = 1; - */ - aminoJson = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxEncodeAminoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amino_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeAminoRequest { - return new TxEncodeAminoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeAminoRequest { - return new TxEncodeAminoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxEncodeAminoRequest { - return new TxEncodeAminoRequest().fromJsonString(jsonString, options); - } - - static equals(a: TxEncodeAminoRequest | PlainMessage | undefined, b: TxEncodeAminoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TxEncodeAminoRequest, a, b); - } -} - -/** - * TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino - * RPC method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxEncodeAminoResponse - */ -export class TxEncodeAminoResponse extends Message { - /** - * @generated from field: bytes amino_binary = 1; - */ - aminoBinary = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxEncodeAminoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amino_binary", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxEncodeAminoResponse { - return new TxEncodeAminoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxEncodeAminoResponse { - return new TxEncodeAminoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxEncodeAminoResponse { - return new TxEncodeAminoResponse().fromJsonString(jsonString, options); - } - - static equals(a: TxEncodeAminoResponse | PlainMessage | undefined, b: TxEncodeAminoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TxEncodeAminoResponse, a, b); - } -} - -/** - * TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino - * RPC method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxDecodeAminoRequest - */ -export class TxDecodeAminoRequest extends Message { - /** - * @generated from field: bytes amino_binary = 1; - */ - aminoBinary = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxDecodeAminoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amino_binary", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeAminoRequest { - return new TxDecodeAminoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeAminoRequest { - return new TxDecodeAminoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxDecodeAminoRequest { - return new TxDecodeAminoRequest().fromJsonString(jsonString, options); - } - - static equals(a: TxDecodeAminoRequest | PlainMessage | undefined, b: TxDecodeAminoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TxDecodeAminoRequest, a, b); - } -} - -/** - * TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino - * RPC method. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message cosmos.tx.v1beta1.TxDecodeAminoResponse - */ -export class TxDecodeAminoResponse extends Message { - /** - * @generated from field: string amino_json = 1; - */ - aminoJson = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxDecodeAminoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amino_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxDecodeAminoResponse { - return new TxDecodeAminoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxDecodeAminoResponse { - return new TxDecodeAminoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxDecodeAminoResponse { - return new TxDecodeAminoResponse().fromJsonString(jsonString, options); - } - - static equals(a: TxDecodeAminoResponse | PlainMessage | undefined, b: TxDecodeAminoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TxDecodeAminoResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts deleted file mode 100644 index e89ef27..0000000 --- a/libs/es-client/src/protobufs/cosmos/tx/v1beta1/tx_pb.ts +++ /dev/null @@ -1,862 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/tx/v1beta1/tx.proto (package cosmos.tx.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { SignMode } from "../signing/v1beta1/signing_pb.js"; -import { CompactBitArray } from "../../crypto/multisig/v1beta1/multisig_pb.js"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * Tx is the standard type used for broadcasting transactions. - * - * @generated from message cosmos.tx.v1beta1.Tx - */ -export class Tx extends Message { - /** - * body is the processable content of the transaction - * - * @generated from field: cosmos.tx.v1beta1.TxBody body = 1; - */ - body?: TxBody; - - /** - * auth_info is the authorization related content of the transaction, - * specifically signers, signer modes and fee - * - * @generated from field: cosmos.tx.v1beta1.AuthInfo auth_info = 2; - */ - authInfo?: AuthInfo; - - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - * - * @generated from field: repeated bytes signatures = 3; - */ - signatures: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.Tx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "body", kind: "message", T: TxBody }, - { no: 2, name: "auth_info", kind: "message", T: AuthInfo }, - { no: 3, name: "signatures", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Tx { - return new Tx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Tx { - return new Tx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Tx { - return new Tx().fromJsonString(jsonString, options); - } - - static equals(a: Tx | PlainMessage | undefined, b: Tx | PlainMessage | undefined): boolean { - return proto3.util.equals(Tx, a, b); - } -} - -/** - * TxRaw is a variant of Tx that pins the signer's exact binary representation - * of body and auth_info. This is used for signing, broadcasting and - * verification. The binary `serialize(tx: TxRaw)` is stored in Tendermint and - * the hash `sha256(serialize(tx: TxRaw))` becomes the "txhash", commonly used - * as the transaction ID. - * - * @generated from message cosmos.tx.v1beta1.TxRaw - */ -export class TxRaw extends Message { - /** - * body_bytes is a protobuf serialization of a TxBody that matches the - * representation in SignDoc. - * - * @generated from field: bytes body_bytes = 1; - */ - bodyBytes = new Uint8Array(0); - - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in SignDoc. - * - * @generated from field: bytes auth_info_bytes = 2; - */ - authInfoBytes = new Uint8Array(0); - - /** - * signatures is a list of signatures that matches the length and order of - * AuthInfo's signer_infos to allow connecting signature meta information like - * public key and signing mode by position. - * - * @generated from field: repeated bytes signatures = 3; - */ - signatures: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxRaw"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "body_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "auth_info_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "signatures", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxRaw { - return new TxRaw().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxRaw { - return new TxRaw().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxRaw { - return new TxRaw().fromJsonString(jsonString, options); - } - - static equals(a: TxRaw | PlainMessage | undefined, b: TxRaw | PlainMessage | undefined): boolean { - return proto3.util.equals(TxRaw, a, b); - } -} - -/** - * SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. - * - * @generated from message cosmos.tx.v1beta1.SignDoc - */ -export class SignDoc extends Message { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - * - * @generated from field: bytes body_bytes = 1; - */ - bodyBytes = new Uint8Array(0); - - /** - * auth_info_bytes is a protobuf serialization of an AuthInfo that matches the - * representation in TxRaw. - * - * @generated from field: bytes auth_info_bytes = 2; - */ - authInfoBytes = new Uint8Array(0); - - /** - * chain_id is the unique identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker - * - * @generated from field: string chain_id = 3; - */ - chainId = ""; - - /** - * account_number is the account number of the account in state - * - * @generated from field: uint64 account_number = 4; - */ - accountNumber = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.SignDoc"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "body_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "auth_info_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignDoc { - return new SignDoc().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignDoc { - return new SignDoc().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignDoc { - return new SignDoc().fromJsonString(jsonString, options); - } - - static equals(a: SignDoc | PlainMessage | undefined, b: SignDoc | PlainMessage | undefined): boolean { - return proto3.util.equals(SignDoc, a, b); - } -} - -/** - * SignDocDirectAux is the type used for generating sign bytes for - * SIGN_MODE_DIRECT_AUX. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.tx.v1beta1.SignDocDirectAux - */ -export class SignDocDirectAux extends Message { - /** - * body_bytes is protobuf serialization of a TxBody that matches the - * representation in TxRaw. - * - * @generated from field: bytes body_bytes = 1; - */ - bodyBytes = new Uint8Array(0); - - /** - * public_key is the public key of the signing account. - * - * @generated from field: google.protobuf.Any public_key = 2; - */ - publicKey?: Any; - - /** - * chain_id is the identifier of the chain this transaction targets. - * It prevents signed transactions from being used on another chain by an - * attacker. - * - * @generated from field: string chain_id = 3; - */ - chainId = ""; - - /** - * account_number is the account number of the account in state. - * - * @generated from field: uint64 account_number = 4; - */ - accountNumber = protoInt64.zero; - - /** - * sequence is the sequence number of the signing account. - * - * @generated from field: uint64 sequence = 5; - */ - sequence = protoInt64.zero; - - /** - * tips have been depreacted and should not be used - * - * @generated from field: cosmos.tx.v1beta1.Tip tip = 6 [deprecated = true]; - * @deprecated - */ - tip?: Tip; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.SignDocDirectAux"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "body_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "public_key", kind: "message", T: Any }, - { no: 3, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "tip", kind: "message", T: Tip }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignDocDirectAux { - return new SignDocDirectAux().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignDocDirectAux { - return new SignDocDirectAux().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignDocDirectAux { - return new SignDocDirectAux().fromJsonString(jsonString, options); - } - - static equals(a: SignDocDirectAux | PlainMessage | undefined, b: SignDocDirectAux | PlainMessage | undefined): boolean { - return proto3.util.equals(SignDocDirectAux, a, b); - } -} - -/** - * TxBody is the body of a transaction that all signers sign over. - * - * @generated from message cosmos.tx.v1beta1.TxBody - */ -export class TxBody extends Message { - /** - * messages is a list of messages to be executed. The required signers of - * those messages define the number and order of elements in AuthInfo's - * signer_infos and Tx's signatures. Each required signer address is added to - * the list only the first time it occurs. - * By convention, the first required signer (usually from the first message) - * is referred to as the primary signer and pays the fee for the whole - * transaction. - * - * @generated from field: repeated google.protobuf.Any messages = 1; - */ - messages: Any[] = []; - - /** - * memo is any arbitrary note/comment to be added to the transaction. - * WARNING: in clients, any publicly exposed text should not be called memo, - * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). - * - * @generated from field: string memo = 2; - */ - memo = ""; - - /** - * timeout is the block height after which this transaction will not - * be processed by the chain - * - * @generated from field: uint64 timeout_height = 3; - */ - timeoutHeight = protoInt64.zero; - - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, the transaction will be rejected - * - * @generated from field: repeated google.protobuf.Any extension_options = 1023; - */ - extensionOptions: Any[] = []; - - /** - * extension_options are arbitrary options that can be added by chains - * when the default options are not sufficient. If any of these are present - * and can't be handled, they will be ignored - * - * @generated from field: repeated google.protobuf.Any non_critical_extension_options = 2047; - */ - nonCriticalExtensionOptions: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.TxBody"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "messages", kind: "message", T: Any, repeated: true }, - { no: 2, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "timeout_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 1023, name: "extension_options", kind: "message", T: Any, repeated: true }, - { no: 2047, name: "non_critical_extension_options", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxBody { - return new TxBody().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxBody { - return new TxBody().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxBody { - return new TxBody().fromJsonString(jsonString, options); - } - - static equals(a: TxBody | PlainMessage | undefined, b: TxBody | PlainMessage | undefined): boolean { - return proto3.util.equals(TxBody, a, b); - } -} - -/** - * AuthInfo describes the fee and signer modes that are used to sign a - * transaction. - * - * @generated from message cosmos.tx.v1beta1.AuthInfo - */ -export class AuthInfo extends Message { - /** - * signer_infos defines the signing modes for the required signers. The number - * and order of elements must match the required signers from TxBody's - * messages. The first element is the primary signer and the one which pays - * the fee. - * - * @generated from field: repeated cosmos.tx.v1beta1.SignerInfo signer_infos = 1; - */ - signerInfos: SignerInfo[] = []; - - /** - * Fee is the fee and gas limit for the transaction. The first signer is the - * primary signer and the one which pays the fee. The fee can be calculated - * based on the cost of evaluating the body and doing signature verification - * of the signers. This can be estimated via simulation. - * - * @generated from field: cosmos.tx.v1beta1.Fee fee = 2; - */ - fee?: Fee; - - /** - * Tip is the optional tip used for transactions fees paid in another denom. - * - * This field is ignored if the chain didn't enable tips, i.e. didn't add the - * `TipDecorator` in its posthandler. - * - * Since: cosmos-sdk 0.46 - * - * @generated from field: cosmos.tx.v1beta1.Tip tip = 3 [deprecated = true]; - * @deprecated - */ - tip?: Tip; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.AuthInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer_infos", kind: "message", T: SignerInfo, repeated: true }, - { no: 2, name: "fee", kind: "message", T: Fee }, - { no: 3, name: "tip", kind: "message", T: Tip }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AuthInfo { - return new AuthInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AuthInfo { - return new AuthInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AuthInfo { - return new AuthInfo().fromJsonString(jsonString, options); - } - - static equals(a: AuthInfo | PlainMessage | undefined, b: AuthInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(AuthInfo, a, b); - } -} - -/** - * SignerInfo describes the public key and signing mode of a single top-level - * signer. - * - * @generated from message cosmos.tx.v1beta1.SignerInfo - */ -export class SignerInfo extends Message { - /** - * public_key is the public key of the signer. It is optional for accounts - * that already exist in state. If unset, the verifier can use the required \ - * signer address for this position and lookup the public key. - * - * @generated from field: google.protobuf.Any public_key = 1; - */ - publicKey?: Any; - - /** - * mode_info describes the signing mode of the signer and is a nested - * structure to support nested multisig pubkey's - * - * @generated from field: cosmos.tx.v1beta1.ModeInfo mode_info = 2; - */ - modeInfo?: ModeInfo; - - /** - * sequence is the sequence of the account, which describes the - * number of committed transactions signed by a given address. It is used to - * prevent replay attacks. - * - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.SignerInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "public_key", kind: "message", T: Any }, - { no: 2, name: "mode_info", kind: "message", T: ModeInfo }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignerInfo { - return new SignerInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignerInfo { - return new SignerInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignerInfo { - return new SignerInfo().fromJsonString(jsonString, options); - } - - static equals(a: SignerInfo | PlainMessage | undefined, b: SignerInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(SignerInfo, a, b); - } -} - -/** - * ModeInfo describes the signing mode of a single or nested multisig signer. - * - * @generated from message cosmos.tx.v1beta1.ModeInfo - */ -export class ModeInfo extends Message { - /** - * sum is the oneof that specifies whether this represents a single or nested - * multisig signer - * - * @generated from oneof cosmos.tx.v1beta1.ModeInfo.sum - */ - sum: { - /** - * single represents a single signer - * - * @generated from field: cosmos.tx.v1beta1.ModeInfo.Single single = 1; - */ - value: ModeInfo_Single; - case: "single"; - } | { - /** - * multi represents a nested multisig signer - * - * @generated from field: cosmos.tx.v1beta1.ModeInfo.Multi multi = 2; - */ - value: ModeInfo_Multi; - case: "multi"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.ModeInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "single", kind: "message", T: ModeInfo_Single, oneof: "sum" }, - { no: 2, name: "multi", kind: "message", T: ModeInfo_Multi, oneof: "sum" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModeInfo { - return new ModeInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModeInfo { - return new ModeInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModeInfo { - return new ModeInfo().fromJsonString(jsonString, options); - } - - static equals(a: ModeInfo | PlainMessage | undefined, b: ModeInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ModeInfo, a, b); - } -} - -/** - * Single is the mode info for a single signer. It is structured as a message - * to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the - * future - * - * @generated from message cosmos.tx.v1beta1.ModeInfo.Single - */ -export class ModeInfo_Single extends Message { - /** - * mode is the signing mode of the single signer - * - * @generated from field: cosmos.tx.signing.v1beta1.SignMode mode = 1; - */ - mode = SignMode.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.ModeInfo.Single"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "mode", kind: "enum", T: proto3.getEnumType(SignMode) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModeInfo_Single { - return new ModeInfo_Single().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModeInfo_Single { - return new ModeInfo_Single().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModeInfo_Single { - return new ModeInfo_Single().fromJsonString(jsonString, options); - } - - static equals(a: ModeInfo_Single | PlainMessage | undefined, b: ModeInfo_Single | PlainMessage | undefined): boolean { - return proto3.util.equals(ModeInfo_Single, a, b); - } -} - -/** - * Multi is the mode info for a multisig public key - * - * @generated from message cosmos.tx.v1beta1.ModeInfo.Multi - */ -export class ModeInfo_Multi extends Message { - /** - * bitarray specifies which keys within the multisig are signing - * - * @generated from field: cosmos.crypto.multisig.v1beta1.CompactBitArray bitarray = 1; - */ - bitarray?: CompactBitArray; - - /** - * mode_infos is the corresponding modes of the signers of the multisig - * which could include nested multisig public keys - * - * @generated from field: repeated cosmos.tx.v1beta1.ModeInfo mode_infos = 2; - */ - modeInfos: ModeInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.ModeInfo.Multi"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bitarray", kind: "message", T: CompactBitArray }, - { no: 2, name: "mode_infos", kind: "message", T: ModeInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModeInfo_Multi { - return new ModeInfo_Multi().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModeInfo_Multi { - return new ModeInfo_Multi().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModeInfo_Multi { - return new ModeInfo_Multi().fromJsonString(jsonString, options); - } - - static equals(a: ModeInfo_Multi | PlainMessage | undefined, b: ModeInfo_Multi | PlainMessage | undefined): boolean { - return proto3.util.equals(ModeInfo_Multi, a, b); - } -} - -/** - * Fee includes the amount of coins paid in fees and the maximum - * gas to be used by the transaction. The ratio yields an effective "gasprice", - * which must be above some miminum to be accepted into the mempool. - * - * @generated from message cosmos.tx.v1beta1.Fee - */ -export class Fee extends Message { - /** - * amount is the amount of coins to be paid as a fee - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; - */ - amount: Coin[] = []; - - /** - * gas_limit is the maximum gas that can be used in transaction processing - * before an out of gas error occurs - * - * @generated from field: uint64 gas_limit = 2; - */ - gasLimit = protoInt64.zero; - - /** - * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. - * the payer must be a tx signer (and thus have signed this field in AuthInfo). - * setting this field does *not* change the ordering of required signers for the transaction. - * - * @generated from field: string payer = 3; - */ - payer = ""; - - /** - * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used - * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does - * not support fee grants, this will fail - * - * @generated from field: string granter = 4; - */ - granter = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.Fee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "payer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "granter", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Fee { - return new Fee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Fee { - return new Fee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Fee { - return new Fee().fromJsonString(jsonString, options); - } - - static equals(a: Fee | PlainMessage | undefined, b: Fee | PlainMessage | undefined): boolean { - return proto3.util.equals(Fee, a, b); - } -} - -/** - * Tip is the tip used for meta-transactions. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.tx.v1beta1.Tip - * @deprecated - */ -export class Tip extends Message { - /** - * amount is the amount of the tip - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; - */ - amount: Coin[] = []; - - /** - * tipper is the address of the account paying for the tip - * - * @generated from field: string tipper = 2; - */ - tipper = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.Tip"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "tipper", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Tip { - return new Tip().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Tip { - return new Tip().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Tip { - return new Tip().fromJsonString(jsonString, options); - } - - static equals(a: Tip | PlainMessage | undefined, b: Tip | PlainMessage | undefined): boolean { - return proto3.util.equals(Tip, a, b); - } -} - -/** - * AuxSignerData is the intermediary format that an auxiliary signer (e.g. a - * tipper) builds and sends to the fee payer (who will build and broadcast the - * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected - * by the node if sent directly as-is. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.tx.v1beta1.AuxSignerData - */ -export class AuxSignerData extends Message { - /** - * address is the bech32-encoded address of the auxiliary signer. If using - * AuxSignerData across different chains, the bech32 prefix of the target - * chain (where the final transaction is broadcasted) should be used. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer - * signs. Note: we use the same sign doc even if we're signing with - * LEGACY_AMINO_JSON. - * - * @generated from field: cosmos.tx.v1beta1.SignDocDirectAux sign_doc = 2; - */ - signDoc?: SignDocDirectAux; - - /** - * mode is the signing mode of the single signer. - * - * @generated from field: cosmos.tx.signing.v1beta1.SignMode mode = 3; - */ - mode = SignMode.UNSPECIFIED; - - /** - * sig is the signature of the sign doc. - * - * @generated from field: bytes sig = 4; - */ - sig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.tx.v1beta1.AuxSignerData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sign_doc", kind: "message", T: SignDocDirectAux }, - { no: 3, name: "mode", kind: "enum", T: proto3.getEnumType(SignMode) }, - { no: 4, name: "sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AuxSignerData { - return new AuxSignerData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AuxSignerData { - return new AuxSignerData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AuxSignerData { - return new AuxSignerData().fromJsonString(jsonString, options); - } - - static equals(a: AuxSignerData | PlainMessage | undefined, b: AuxSignerData | PlainMessage | undefined): boolean { - return proto3.util.equals(AuxSignerData, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/upgrade/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/upgrade/module/v1/module_pb.ts deleted file mode 100644 index a9aaba3..0000000 --- a/libs/es-client/src/protobufs/cosmos/upgrade/module/v1/module_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/upgrade/module/v1/module.proto (package cosmos.upgrade.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the upgrade module. - * - * @generated from message cosmos.upgrade.module.v1.Module - */ -export class Module extends Message { - /** - * authority defines the custom module authority. If not set, defaults to the governance module. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_cosmes.ts deleted file mode 100644 index 89a9731..0000000 --- a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,79 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/upgrade/v1beta1/query.proto (package cosmos.upgrade.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAppliedPlanRequest, QueryAppliedPlanResponse, QueryAuthorityRequest, QueryAuthorityResponse, QueryCurrentPlanRequest, QueryCurrentPlanResponse, QueryModuleVersionsRequest, QueryModuleVersionsResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmos.upgrade.v1beta1.Query"; - -/** - * CurrentPlan queries the current upgrade plan. - * - * @generated from rpc cosmos.upgrade.v1beta1.Query.CurrentPlan - */ -export const QueryCurrentPlanService = { - typeName: TYPE_NAME, - method: "CurrentPlan", - Request: QueryCurrentPlanRequest, - Response: QueryCurrentPlanResponse, -} as const; - -/** - * AppliedPlan queries a previously applied upgrade plan by its name. - * - * @generated from rpc cosmos.upgrade.v1beta1.Query.AppliedPlan - */ -export const QueryAppliedPlanService = { - typeName: TYPE_NAME, - method: "AppliedPlan", - Request: QueryAppliedPlanRequest, - Response: QueryAppliedPlanResponse, -} as const; - -/** - * UpgradedConsensusState queries the consensus state that will serve - * as a trusted kernel for the next version of this chain. It will only be - * stored at the last height of this chain. - * UpgradedConsensusState RPC not supported with legacy querier - * This rpc is deprecated now that IBC has its own replacement - * (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) - * - * @generated from rpc cosmos.upgrade.v1beta1.Query.UpgradedConsensusState - * @deprecated - */ -export const QueryUpgradedConsensusStateService = { - typeName: TYPE_NAME, - method: "UpgradedConsensusState", - Request: QueryUpgradedConsensusStateRequest, - Response: QueryUpgradedConsensusStateResponse, -} as const; - -/** - * ModuleVersions queries the list of module versions from state. - * - * Since: cosmos-sdk 0.43 - * - * @generated from rpc cosmos.upgrade.v1beta1.Query.ModuleVersions - */ -export const QueryModuleVersionsService = { - typeName: TYPE_NAME, - method: "ModuleVersions", - Request: QueryModuleVersionsRequest, - Response: QueryModuleVersionsResponse, -} as const; - -/** - * Returns the account with authority to conduct upgrades - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.upgrade.v1beta1.Query.Authority - */ -export const QueryAuthorityService = { - typeName: TYPE_NAME, - method: "Authority", - Request: QueryAuthorityRequest, - Response: QueryAuthorityResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_pb.ts deleted file mode 100644 index 097ef4f..0000000 --- a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/query_pb.ts +++ /dev/null @@ -1,422 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/upgrade/v1beta1/query.proto (package cosmos.upgrade.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ModuleVersion, Plan } from "./upgrade_pb.js"; - -/** - * QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC - * method. - * - * @generated from message cosmos.upgrade.v1beta1.QueryCurrentPlanRequest - */ -export class QueryCurrentPlanRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryCurrentPlanRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentPlanRequest { - return new QueryCurrentPlanRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentPlanRequest { - return new QueryCurrentPlanRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentPlanRequest { - return new QueryCurrentPlanRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentPlanRequest | PlainMessage | undefined, b: QueryCurrentPlanRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentPlanRequest, a, b); - } -} - -/** - * QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC - * method. - * - * @generated from message cosmos.upgrade.v1beta1.QueryCurrentPlanResponse - */ -export class QueryCurrentPlanResponse extends Message { - /** - * plan is the current upgrade plan. - * - * @generated from field: cosmos.upgrade.v1beta1.Plan plan = 1; - */ - plan?: Plan; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryCurrentPlanResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "plan", kind: "message", T: Plan }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentPlanResponse { - return new QueryCurrentPlanResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentPlanResponse { - return new QueryCurrentPlanResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentPlanResponse { - return new QueryCurrentPlanResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentPlanResponse | PlainMessage | undefined, b: QueryCurrentPlanResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentPlanResponse, a, b); - } -} - -/** - * QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC - * method. - * - * @generated from message cosmos.upgrade.v1beta1.QueryAppliedPlanRequest - */ -export class QueryAppliedPlanRequest extends Message { - /** - * name is the name of the applied plan to query for. - * - * @generated from field: string name = 1; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryAppliedPlanRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAppliedPlanRequest { - return new QueryAppliedPlanRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAppliedPlanRequest { - return new QueryAppliedPlanRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAppliedPlanRequest { - return new QueryAppliedPlanRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAppliedPlanRequest | PlainMessage | undefined, b: QueryAppliedPlanRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAppliedPlanRequest, a, b); - } -} - -/** - * QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC - * method. - * - * @generated from message cosmos.upgrade.v1beta1.QueryAppliedPlanResponse - */ -export class QueryAppliedPlanResponse extends Message { - /** - * height is the block height at which the plan was applied. - * - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryAppliedPlanResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAppliedPlanResponse { - return new QueryAppliedPlanResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAppliedPlanResponse { - return new QueryAppliedPlanResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAppliedPlanResponse { - return new QueryAppliedPlanResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAppliedPlanResponse | PlainMessage | undefined, b: QueryAppliedPlanResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAppliedPlanResponse, a, b); - } -} - -/** - * QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState - * RPC method. - * - * @generated from message cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest - * @deprecated - */ -export class QueryUpgradedConsensusStateRequest extends Message { - /** - * last height of the current chain must be sent in request - * as this is the height under which next consensus state is stored - * - * @generated from field: int64 last_height = 1; - */ - lastHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "last_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateRequest { - return new QueryUpgradedConsensusStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateRequest { - return new QueryUpgradedConsensusStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateRequest { - return new QueryUpgradedConsensusStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradedConsensusStateRequest | PlainMessage | undefined, b: QueryUpgradedConsensusStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradedConsensusStateRequest, a, b); - } -} - -/** - * QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState - * RPC method. - * - * @generated from message cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse - * @deprecated - */ -export class QueryUpgradedConsensusStateResponse extends Message { - /** - * Since: cosmos-sdk 0.43 - * - * @generated from field: bytes upgraded_consensus_state = 2; - */ - upgradedConsensusState = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "upgraded_consensus_state", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateResponse { - return new QueryUpgradedConsensusStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateResponse { - return new QueryUpgradedConsensusStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateResponse { - return new QueryUpgradedConsensusStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradedConsensusStateResponse | PlainMessage | undefined, b: QueryUpgradedConsensusStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradedConsensusStateResponse, a, b); - } -} - -/** - * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.upgrade.v1beta1.QueryModuleVersionsRequest - */ -export class QueryModuleVersionsRequest extends Message { - /** - * module_name is a field to query a specific module - * consensus version from state. Leaving this empty will - * fetch the full list of module versions from state - * - * @generated from field: string module_name = 1; - */ - moduleName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryModuleVersionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleVersionsRequest { - return new QueryModuleVersionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleVersionsRequest { - return new QueryModuleVersionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryModuleVersionsRequest { - return new QueryModuleVersionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryModuleVersionsRequest | PlainMessage | undefined, b: QueryModuleVersionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryModuleVersionsRequest, a, b); - } -} - -/** - * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions - * RPC method. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.upgrade.v1beta1.QueryModuleVersionsResponse - */ -export class QueryModuleVersionsResponse extends Message { - /** - * module_versions is a list of module names with their consensus versions. - * - * @generated from field: repeated cosmos.upgrade.v1beta1.ModuleVersion module_versions = 1; - */ - moduleVersions: ModuleVersion[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryModuleVersionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module_versions", kind: "message", T: ModuleVersion, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryModuleVersionsResponse { - return new QueryModuleVersionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryModuleVersionsResponse { - return new QueryModuleVersionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryModuleVersionsResponse { - return new QueryModuleVersionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryModuleVersionsResponse | PlainMessage | undefined, b: QueryModuleVersionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryModuleVersionsResponse, a, b); - } -} - -/** - * QueryAuthorityRequest is the request type for Query/Authority - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.upgrade.v1beta1.QueryAuthorityRequest - */ -export class QueryAuthorityRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryAuthorityRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuthorityRequest { - return new QueryAuthorityRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuthorityRequest { - return new QueryAuthorityRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAuthorityRequest { - return new QueryAuthorityRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAuthorityRequest | PlainMessage | undefined, b: QueryAuthorityRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAuthorityRequest, a, b); - } -} - -/** - * QueryAuthorityResponse is the response type for Query/Authority - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.upgrade.v1beta1.QueryAuthorityResponse - */ -export class QueryAuthorityResponse extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.QueryAuthorityResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAuthorityResponse { - return new QueryAuthorityResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAuthorityResponse { - return new QueryAuthorityResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAuthorityResponse { - return new QueryAuthorityResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAuthorityResponse | PlainMessage | undefined, b: QueryAuthorityResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAuthorityResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_cosmes.ts deleted file mode 100644 index fef6234..0000000 --- a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/upgrade/v1beta1/tx.proto (package cosmos.upgrade.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCancelUpgrade, MsgCancelUpgradeResponse, MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.upgrade.v1beta1.Msg"; - -/** - * SoftwareUpgrade is a governance operation for initiating a software upgrade. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.upgrade.v1beta1.Msg.SoftwareUpgrade - */ -export const MsgSoftwareUpgradeService = { - typeName: TYPE_NAME, - method: "SoftwareUpgrade", - Request: MsgSoftwareUpgrade, - Response: MsgSoftwareUpgradeResponse, -} as const; - -/** - * CancelUpgrade is a governance operation for cancelling a previously - * approved software upgrade. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.upgrade.v1beta1.Msg.CancelUpgrade - */ -export const MsgCancelUpgradeService = { - typeName: TYPE_NAME, - method: "CancelUpgrade", - Request: MsgCancelUpgrade, - Response: MsgCancelUpgradeResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_pb.ts deleted file mode 100644 index 4c60564..0000000 --- a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/tx_pb.ts +++ /dev/null @@ -1,175 +0,0 @@ -// Since: cosmos-sdk 0.46 - -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/upgrade/v1beta1/tx.proto (package cosmos.upgrade.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Plan } from "./upgrade_pb.js"; - -/** - * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.upgrade.v1beta1.MsgSoftwareUpgrade - */ -export class MsgSoftwareUpgrade extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * plan is the upgrade plan. - * - * @generated from field: cosmos.upgrade.v1beta1.Plan plan = 2; - */ - plan?: Plan; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.MsgSoftwareUpgrade"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "plan", kind: "message", T: Plan }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSoftwareUpgrade { - return new MsgSoftwareUpgrade().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSoftwareUpgrade { - return new MsgSoftwareUpgrade().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSoftwareUpgrade { - return new MsgSoftwareUpgrade().fromJsonString(jsonString, options); - } - - static equals(a: MsgSoftwareUpgrade | PlainMessage | undefined, b: MsgSoftwareUpgrade | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSoftwareUpgrade, a, b); - } -} - -/** - * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse - */ -export class MsgSoftwareUpgradeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSoftwareUpgradeResponse { - return new MsgSoftwareUpgradeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSoftwareUpgradeResponse { - return new MsgSoftwareUpgradeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSoftwareUpgradeResponse { - return new MsgSoftwareUpgradeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSoftwareUpgradeResponse | PlainMessage | undefined, b: MsgSoftwareUpgradeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSoftwareUpgradeResponse, a, b); - } -} - -/** - * MsgCancelUpgrade is the Msg/CancelUpgrade request type. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.upgrade.v1beta1.MsgCancelUpgrade - */ -export class MsgCancelUpgrade extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.MsgCancelUpgrade"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelUpgrade { - return new MsgCancelUpgrade().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelUpgrade { - return new MsgCancelUpgrade().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCancelUpgrade { - return new MsgCancelUpgrade().fromJsonString(jsonString, options); - } - - static equals(a: MsgCancelUpgrade | PlainMessage | undefined, b: MsgCancelUpgrade | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCancelUpgrade, a, b); - } -} - -/** - * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse - */ -export class MsgCancelUpgradeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCancelUpgradeResponse { - return new MsgCancelUpgradeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCancelUpgradeResponse { - return new MsgCancelUpgradeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCancelUpgradeResponse { - return new MsgCancelUpgradeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCancelUpgradeResponse | PlainMessage | undefined, b: MsgCancelUpgradeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCancelUpgradeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/upgrade_pb.ts b/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/upgrade_pb.ts deleted file mode 100644 index 35414e7..0000000 --- a/libs/es-client/src/protobufs/cosmos/upgrade/v1beta1/upgrade_pb.ts +++ /dev/null @@ -1,259 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/upgrade/v1beta1/upgrade.proto (package cosmos.upgrade.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * Plan specifies information about a planned upgrade and when it should occur. - * - * @generated from message cosmos.upgrade.v1beta1.Plan - */ -export class Plan extends Message { - /** - * Sets the name for the upgrade. This name will be used by the upgraded - * version of the software to apply any special "on-upgrade" commands during - * the first BeginBlock method after the upgrade is applied. It is also used - * to detect whether a software version can handle a given upgrade. If no - * upgrade handler with this name has been set in the software, it will be - * assumed that the software is out-of-date when the upgrade Time or Height is - * reached and the software will exit. - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * Deprecated: Time based upgrades have been deprecated. Time based upgrade logic - * has been removed from the SDK. - * If this field is not empty, an error will be thrown. - * - * @generated from field: google.protobuf.Timestamp time = 2 [deprecated = true]; - * @deprecated - */ - time?: Timestamp; - - /** - * The height at which the upgrade must be performed. - * - * @generated from field: int64 height = 3; - */ - height = protoInt64.zero; - - /** - * Any application specific upgrade info to be included on-chain - * such as a git commit that validators could automatically upgrade to - * - * @generated from field: string info = 4; - */ - info = ""; - - /** - * Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been - * moved to the IBC module in the sub module 02-client. - * If this field is not empty, an error will be thrown. - * - * @generated from field: google.protobuf.Any upgraded_client_state = 5 [deprecated = true]; - * @deprecated - */ - upgradedClientState?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.Plan"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "time", kind: "message", T: Timestamp }, - { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "upgraded_client_state", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Plan { - return new Plan().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Plan { - return new Plan().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Plan { - return new Plan().fromJsonString(jsonString, options); - } - - static equals(a: Plan | PlainMessage | undefined, b: Plan | PlainMessage | undefined): boolean { - return proto3.util.equals(Plan, a, b); - } -} - -/** - * SoftwareUpgradeProposal is a gov Content type for initiating a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgSoftwareUpgrade. - * - * @generated from message cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @deprecated - */ -export class SoftwareUpgradeProposal extends Message { - /** - * title of the proposal - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * description of the proposal - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * plan of the proposal - * - * @generated from field: cosmos.upgrade.v1beta1.Plan plan = 3; - */ - plan?: Plan; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.SoftwareUpgradeProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "plan", kind: "message", T: Plan }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SoftwareUpgradeProposal { - return new SoftwareUpgradeProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SoftwareUpgradeProposal { - return new SoftwareUpgradeProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SoftwareUpgradeProposal { - return new SoftwareUpgradeProposal().fromJsonString(jsonString, options); - } - - static equals(a: SoftwareUpgradeProposal | PlainMessage | undefined, b: SoftwareUpgradeProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(SoftwareUpgradeProposal, a, b); - } -} - -/** - * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software - * upgrade. - * Deprecated: This legacy proposal is deprecated in favor of Msg-based gov - * proposals, see MsgCancelUpgrade. - * - * @generated from message cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal - * @deprecated - */ -export class CancelSoftwareUpgradeProposal extends Message { - /** - * title of the proposal - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * description of the proposal - * - * @generated from field: string description = 2; - */ - description = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CancelSoftwareUpgradeProposal { - return new CancelSoftwareUpgradeProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CancelSoftwareUpgradeProposal { - return new CancelSoftwareUpgradeProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CancelSoftwareUpgradeProposal { - return new CancelSoftwareUpgradeProposal().fromJsonString(jsonString, options); - } - - static equals(a: CancelSoftwareUpgradeProposal | PlainMessage | undefined, b: CancelSoftwareUpgradeProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(CancelSoftwareUpgradeProposal, a, b); - } -} - -/** - * ModuleVersion specifies a module and its consensus version. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.upgrade.v1beta1.ModuleVersion - */ -export class ModuleVersion extends Message { - /** - * name of the app module - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * consensus version of the app module - * - * @generated from field: uint64 version = 2; - */ - version = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.upgrade.v1beta1.ModuleVersion"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleVersion { - return new ModuleVersion().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleVersion { - return new ModuleVersion().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleVersion { - return new ModuleVersion().fromJsonString(jsonString, options); - } - - static equals(a: ModuleVersion | PlainMessage | undefined, b: ModuleVersion | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleVersion, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/vesting/module/v1/module_pb.ts b/libs/es-client/src/protobufs/cosmos/vesting/module/v1/module_pb.ts deleted file mode 100644 index 3f36200..0000000 --- a/libs/es-client/src/protobufs/cosmos/vesting/module/v1/module_pb.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/vesting/module/v1/module.proto (package cosmos.vesting.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the config object of the vesting module. - * - * @generated from message cosmos.vesting.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_cosmes.ts deleted file mode 100644 index 5649057..0000000 --- a/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,52 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmos/vesting/v1beta1/tx.proto (package cosmos.vesting.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreateVestingAccount, MsgCreateVestingAccountResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmos.vesting.v1beta1.Msg"; - -/** - * CreateVestingAccount defines a method that enables creating a vesting - * account. - * - * @generated from rpc cosmos.vesting.v1beta1.Msg.CreateVestingAccount - */ -export const MsgCreateVestingAccountService = { - typeName: TYPE_NAME, - method: "CreateVestingAccount", - Request: MsgCreateVestingAccount, - Response: MsgCreateVestingAccountResponse, -} as const; - -/** - * CreatePermanentLockedAccount defines a method that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.vesting.v1beta1.Msg.CreatePermanentLockedAccount - */ -export const MsgCreatePermanentLockedAccountService = { - typeName: TYPE_NAME, - method: "CreatePermanentLockedAccount", - Request: MsgCreatePermanentLockedAccount, - Response: MsgCreatePermanentLockedAccountResponse, -} as const; - -/** - * CreatePeriodicVestingAccount defines a method that enables creating a - * periodic vesting account. - * - * Since: cosmos-sdk 0.46 - * - * @generated from rpc cosmos.vesting.v1beta1.Msg.CreatePeriodicVestingAccount - */ -export const MsgCreatePeriodicVestingAccountService = { - typeName: TYPE_NAME, - method: "CreatePeriodicVestingAccount", - Request: MsgCreatePeriodicVestingAccount, - Response: MsgCreatePeriodicVestingAccountResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_pb.ts deleted file mode 100644 index 0d52b6f..0000000 --- a/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/tx_pb.ts +++ /dev/null @@ -1,296 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/vesting/v1beta1/tx.proto (package cosmos.vesting.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; -import { Period } from "./vesting_pb.js"; - -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * @generated from message cosmos.vesting.v1beta1.MsgCreateVestingAccount - */ -export class MsgCreateVestingAccount extends Message { - /** - * @generated from field: string from_address = 1; - */ - fromAddress = ""; - - /** - * @generated from field: string to_address = 2; - */ - toAddress = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - /** - * end of vesting as unix time (in seconds). - * - * @generated from field: int64 end_time = 4; - */ - endTime = protoInt64.zero; - - /** - * @generated from field: bool delayed = 5; - */ - delayed = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.MsgCreateVestingAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - { no: 4, name: "end_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "delayed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateVestingAccount { - return new MsgCreateVestingAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateVestingAccount { - return new MsgCreateVestingAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateVestingAccount { - return new MsgCreateVestingAccount().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateVestingAccount | PlainMessage | undefined, b: MsgCreateVestingAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateVestingAccount, a, b); - } -} - -/** - * MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. - * - * @generated from message cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse - */ -export class MsgCreateVestingAccountResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateVestingAccountResponse { - return new MsgCreateVestingAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateVestingAccountResponse { - return new MsgCreateVestingAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateVestingAccountResponse { - return new MsgCreateVestingAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateVestingAccountResponse | PlainMessage | undefined, b: MsgCreateVestingAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateVestingAccountResponse, a, b); - } -} - -/** - * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent - * locked account. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount - */ -export class MsgCreatePermanentLockedAccount extends Message { - /** - * @generated from field: string from_address = 1; - */ - fromAddress = ""; - - /** - * @generated from field: string to_address = 2; - */ - toAddress = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 3; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePermanentLockedAccount { - return new MsgCreatePermanentLockedAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePermanentLockedAccount { - return new MsgCreatePermanentLockedAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreatePermanentLockedAccount { - return new MsgCreatePermanentLockedAccount().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreatePermanentLockedAccount | PlainMessage | undefined, b: MsgCreatePermanentLockedAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreatePermanentLockedAccount, a, b); - } -} - -/** - * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse - */ -export class MsgCreatePermanentLockedAccountResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePermanentLockedAccountResponse { - return new MsgCreatePermanentLockedAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePermanentLockedAccountResponse { - return new MsgCreatePermanentLockedAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreatePermanentLockedAccountResponse { - return new MsgCreatePermanentLockedAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreatePermanentLockedAccountResponse | PlainMessage | undefined, b: MsgCreatePermanentLockedAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreatePermanentLockedAccountResponse, a, b); - } -} - -/** - * MsgCreateVestingAccount defines a message that enables creating a vesting - * account. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount - */ -export class MsgCreatePeriodicVestingAccount extends Message { - /** - * @generated from field: string from_address = 1; - */ - fromAddress = ""; - - /** - * @generated from field: string to_address = 2; - */ - toAddress = ""; - - /** - * start of vesting as unix time (in seconds). - * - * @generated from field: int64 start_time = 3; - */ - startTime = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.vesting.v1beta1.Period vesting_periods = 4; - */ - vestingPeriods: Period[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "from_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "to_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "start_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "vesting_periods", kind: "message", T: Period, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePeriodicVestingAccount { - return new MsgCreatePeriodicVestingAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePeriodicVestingAccount { - return new MsgCreatePeriodicVestingAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreatePeriodicVestingAccount { - return new MsgCreatePeriodicVestingAccount().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreatePeriodicVestingAccount | PlainMessage | undefined, b: MsgCreatePeriodicVestingAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreatePeriodicVestingAccount, a, b); - } -} - -/** - * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount - * response type. - * - * Since: cosmos-sdk 0.46 - * - * @generated from message cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse - */ -export class MsgCreatePeriodicVestingAccountResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePeriodicVestingAccountResponse { - return new MsgCreatePeriodicVestingAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePeriodicVestingAccountResponse { - return new MsgCreatePeriodicVestingAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreatePeriodicVestingAccountResponse { - return new MsgCreatePeriodicVestingAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreatePeriodicVestingAccountResponse | PlainMessage | undefined, b: MsgCreatePeriodicVestingAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreatePeriodicVestingAccountResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/vesting_pb.ts b/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/vesting_pb.ts deleted file mode 100644 index f84834a..0000000 --- a/libs/es-client/src/protobufs/cosmos/vesting/v1beta1/vesting_pb.ts +++ /dev/null @@ -1,307 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmos/vesting/v1beta1/vesting.proto (package cosmos.vesting.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { BaseAccount } from "../../auth/v1beta1/auth_pb.js"; -import { Coin } from "../../base/v1beta1/coin_pb.js"; - -/** - * BaseVestingAccount implements the VestingAccount interface. It contains all - * the necessary fields needed for any vesting account implementation. - * - * @generated from message cosmos.vesting.v1beta1.BaseVestingAccount - */ -export class BaseVestingAccount extends Message { - /** - * @generated from field: cosmos.auth.v1beta1.BaseAccount base_account = 1; - */ - baseAccount?: BaseAccount; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin original_vesting = 2; - */ - originalVesting: Coin[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin delegated_free = 3; - */ - delegatedFree: Coin[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin delegated_vesting = 4; - */ - delegatedVesting: Coin[] = []; - - /** - * Vesting end time, as unix timestamp (in seconds). - * - * @generated from field: int64 end_time = 5; - */ - endTime = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.BaseVestingAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_account", kind: "message", T: BaseAccount }, - { no: 2, name: "original_vesting", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "delegated_free", kind: "message", T: Coin, repeated: true }, - { no: 4, name: "delegated_vesting", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "end_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BaseVestingAccount { - return new BaseVestingAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BaseVestingAccount { - return new BaseVestingAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BaseVestingAccount { - return new BaseVestingAccount().fromJsonString(jsonString, options); - } - - static equals(a: BaseVestingAccount | PlainMessage | undefined, b: BaseVestingAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(BaseVestingAccount, a, b); - } -} - -/** - * ContinuousVestingAccount implements the VestingAccount interface. It - * continuously vests by unlocking coins linearly with respect to time. - * - * @generated from message cosmos.vesting.v1beta1.ContinuousVestingAccount - */ -export class ContinuousVestingAccount extends Message { - /** - * @generated from field: cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1; - */ - baseVestingAccount?: BaseVestingAccount; - - /** - * Vesting start time, as unix timestamp (in seconds). - * - * @generated from field: int64 start_time = 2; - */ - startTime = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.ContinuousVestingAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_vesting_account", kind: "message", T: BaseVestingAccount }, - { no: 2, name: "start_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContinuousVestingAccount { - return new ContinuousVestingAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContinuousVestingAccount { - return new ContinuousVestingAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContinuousVestingAccount { - return new ContinuousVestingAccount().fromJsonString(jsonString, options); - } - - static equals(a: ContinuousVestingAccount | PlainMessage | undefined, b: ContinuousVestingAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(ContinuousVestingAccount, a, b); - } -} - -/** - * DelayedVestingAccount implements the VestingAccount interface. It vests all - * coins after a specific time, but non prior. In other words, it keeps them - * locked until a specified time. - * - * @generated from message cosmos.vesting.v1beta1.DelayedVestingAccount - */ -export class DelayedVestingAccount extends Message { - /** - * @generated from field: cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1; - */ - baseVestingAccount?: BaseVestingAccount; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.DelayedVestingAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_vesting_account", kind: "message", T: BaseVestingAccount }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DelayedVestingAccount { - return new DelayedVestingAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DelayedVestingAccount { - return new DelayedVestingAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DelayedVestingAccount { - return new DelayedVestingAccount().fromJsonString(jsonString, options); - } - - static equals(a: DelayedVestingAccount | PlainMessage | undefined, b: DelayedVestingAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(DelayedVestingAccount, a, b); - } -} - -/** - * Period defines a length of time and amount of coins that will vest. - * - * @generated from message cosmos.vesting.v1beta1.Period - */ -export class Period extends Message { - /** - * Period duration in seconds. - * - * @generated from field: int64 length = 1; - */ - length = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 2; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.Period"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "length", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Period { - return new Period().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Period { - return new Period().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Period { - return new Period().fromJsonString(jsonString, options); - } - - static equals(a: Period | PlainMessage | undefined, b: Period | PlainMessage | undefined): boolean { - return proto3.util.equals(Period, a, b); - } -} - -/** - * PeriodicVestingAccount implements the VestingAccount interface. It - * periodically vests by unlocking coins during each specified period. - * - * @generated from message cosmos.vesting.v1beta1.PeriodicVestingAccount - */ -export class PeriodicVestingAccount extends Message { - /** - * @generated from field: cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1; - */ - baseVestingAccount?: BaseVestingAccount; - - /** - * @generated from field: int64 start_time = 2; - */ - startTime = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.vesting.v1beta1.Period vesting_periods = 3; - */ - vestingPeriods: Period[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.PeriodicVestingAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_vesting_account", kind: "message", T: BaseVestingAccount }, - { no: 2, name: "start_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "vesting_periods", kind: "message", T: Period, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PeriodicVestingAccount { - return new PeriodicVestingAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PeriodicVestingAccount { - return new PeriodicVestingAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PeriodicVestingAccount { - return new PeriodicVestingAccount().fromJsonString(jsonString, options); - } - - static equals(a: PeriodicVestingAccount | PlainMessage | undefined, b: PeriodicVestingAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(PeriodicVestingAccount, a, b); - } -} - -/** - * PermanentLockedAccount implements the VestingAccount interface. It does - * not ever release coins, locking them indefinitely. Coins in this account can - * still be used for delegating and for governance votes even while locked. - * - * Since: cosmos-sdk 0.43 - * - * @generated from message cosmos.vesting.v1beta1.PermanentLockedAccount - */ -export class PermanentLockedAccount extends Message { - /** - * @generated from field: cosmos.vesting.v1beta1.BaseVestingAccount base_vesting_account = 1; - */ - baseVestingAccount?: BaseVestingAccount; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmos.vesting.v1beta1.PermanentLockedAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_vesting_account", kind: "message", T: BaseVestingAccount }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PermanentLockedAccount { - return new PermanentLockedAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PermanentLockedAccount { - return new PermanentLockedAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PermanentLockedAccount { - return new PermanentLockedAccount().fromJsonString(jsonString, options); - } - - static equals(a: PermanentLockedAccount | PlainMessage | undefined, b: PermanentLockedAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(PermanentLockedAccount, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/authz_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/authz_pb.ts deleted file mode 100644 index 4097fdf..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/authz_pb.ts +++ /dev/null @@ -1,505 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/authz.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AccessConfig } from "./types_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * StoreCodeAuthorization defines authorization for wasm code upload. - * Since: wasmd 0.42 - * - * @generated from message cosmwasm.wasm.v1.StoreCodeAuthorization - */ -export class StoreCodeAuthorization extends Message { - /** - * Grants for code upload - * - * @generated from field: repeated cosmwasm.wasm.v1.CodeGrant grants = 1; - */ - grants: CodeGrant[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.StoreCodeAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grants", kind: "message", T: CodeGrant, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreCodeAuthorization { - return new StoreCodeAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreCodeAuthorization { - return new StoreCodeAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StoreCodeAuthorization { - return new StoreCodeAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: StoreCodeAuthorization | PlainMessage | undefined, b: StoreCodeAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreCodeAuthorization, a, b); - } -} - -/** - * ContractExecutionAuthorization defines authorization for wasm execute. - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.ContractExecutionAuthorization - */ -export class ContractExecutionAuthorization extends Message { - /** - * Grants for contract executions - * - * @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1; - */ - grants: ContractGrant[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.ContractExecutionAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContractExecutionAuthorization { - return new ContractExecutionAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContractExecutionAuthorization { - return new ContractExecutionAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContractExecutionAuthorization { - return new ContractExecutionAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: ContractExecutionAuthorization | PlainMessage | undefined, b: ContractExecutionAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(ContractExecutionAuthorization, a, b); - } -} - -/** - * ContractMigrationAuthorization defines authorization for wasm contract - * migration. Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.ContractMigrationAuthorization - */ -export class ContractMigrationAuthorization extends Message { - /** - * Grants for contract migrations - * - * @generated from field: repeated cosmwasm.wasm.v1.ContractGrant grants = 1; - */ - grants: ContractGrant[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.ContractMigrationAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "grants", kind: "message", T: ContractGrant, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContractMigrationAuthorization { - return new ContractMigrationAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContractMigrationAuthorization { - return new ContractMigrationAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContractMigrationAuthorization { - return new ContractMigrationAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: ContractMigrationAuthorization | PlainMessage | undefined, b: ContractMigrationAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(ContractMigrationAuthorization, a, b); - } -} - -/** - * CodeGrant a granted permission for a single code - * - * @generated from message cosmwasm.wasm.v1.CodeGrant - */ -export class CodeGrant extends Message { - /** - * CodeHash is the unique identifier created by wasmvm - * Wildcard "*" is used to specify any kind of grant. - * - * @generated from field: bytes code_hash = 1; - */ - codeHash = new Uint8Array(0); - - /** - * InstantiatePermission is the superset access control to apply - * on contract creation. - * Optional - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 2; - */ - instantiatePermission?: AccessConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.CodeGrant"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "instantiate_permission", kind: "message", T: AccessConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CodeGrant { - return new CodeGrant().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CodeGrant { - return new CodeGrant().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CodeGrant { - return new CodeGrant().fromJsonString(jsonString, options); - } - - static equals(a: CodeGrant | PlainMessage | undefined, b: CodeGrant | PlainMessage | undefined): boolean { - return proto3.util.equals(CodeGrant, a, b); - } -} - -/** - * ContractGrant a granted permission for a single contract - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.ContractGrant - */ -export class ContractGrant extends Message { - /** - * Contract is the bech32 address of the smart contract - * - * @generated from field: string contract = 1; - */ - contract = ""; - - /** - * Limit defines execution limits that are enforced and updated when the grant - * is applied. When the limit lapsed the grant is removed. - * - * @generated from field: google.protobuf.Any limit = 2; - */ - limit?: Any; - - /** - * Filter define more fine-grained control on the message payload passed - * to the contract in the operation. When no filter applies on execution, the - * operation is prohibited. - * - * @generated from field: google.protobuf.Any filter = 3; - */ - filter?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.ContractGrant"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "message", T: Any }, - { no: 3, name: "filter", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContractGrant { - return new ContractGrant().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContractGrant { - return new ContractGrant().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContractGrant { - return new ContractGrant().fromJsonString(jsonString, options); - } - - static equals(a: ContractGrant | PlainMessage | undefined, b: ContractGrant | PlainMessage | undefined): boolean { - return proto3.util.equals(ContractGrant, a, b); - } -} - -/** - * MaxCallsLimit limited number of calls to the contract. No funds transferable. - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.MaxCallsLimit - */ -export class MaxCallsLimit extends Message { - /** - * Remaining number that is decremented on each execution - * - * @generated from field: uint64 remaining = 1; - */ - remaining = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MaxCallsLimit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MaxCallsLimit { - return new MaxCallsLimit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MaxCallsLimit { - return new MaxCallsLimit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MaxCallsLimit { - return new MaxCallsLimit().fromJsonString(jsonString, options); - } - - static equals(a: MaxCallsLimit | PlainMessage | undefined, b: MaxCallsLimit | PlainMessage | undefined): boolean { - return proto3.util.equals(MaxCallsLimit, a, b); - } -} - -/** - * MaxFundsLimit defines the maximal amounts that can be sent to the contract. - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.MaxFundsLimit - */ -export class MaxFundsLimit extends Message { - /** - * Amounts is the maximal amount of tokens transferable to the contract. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 1; - */ - amounts: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MaxFundsLimit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amounts", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MaxFundsLimit { - return new MaxFundsLimit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MaxFundsLimit { - return new MaxFundsLimit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MaxFundsLimit { - return new MaxFundsLimit().fromJsonString(jsonString, options); - } - - static equals(a: MaxFundsLimit | PlainMessage | undefined, b: MaxFundsLimit | PlainMessage | undefined): boolean { - return proto3.util.equals(MaxFundsLimit, a, b); - } -} - -/** - * CombinedLimit defines the maximal amounts that can be sent to a contract and - * the maximal number of calls executable. Both need to remain >0 to be valid. - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.CombinedLimit - */ -export class CombinedLimit extends Message { - /** - * Remaining number that is decremented on each execution - * - * @generated from field: uint64 calls_remaining = 1; - */ - callsRemaining = protoInt64.zero; - - /** - * Amounts is the maximal amount of tokens transferable to the contract. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin amounts = 2; - */ - amounts: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.CombinedLimit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "calls_remaining", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "amounts", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CombinedLimit { - return new CombinedLimit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CombinedLimit { - return new CombinedLimit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CombinedLimit { - return new CombinedLimit().fromJsonString(jsonString, options); - } - - static equals(a: CombinedLimit | PlainMessage | undefined, b: CombinedLimit | PlainMessage | undefined): boolean { - return proto3.util.equals(CombinedLimit, a, b); - } -} - -/** - * AllowAllMessagesFilter is a wildcard to allow any type of contract payload - * message. - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.AllowAllMessagesFilter - */ -export class AllowAllMessagesFilter extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.AllowAllMessagesFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllowAllMessagesFilter { - return new AllowAllMessagesFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllowAllMessagesFilter { - return new AllowAllMessagesFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllowAllMessagesFilter { - return new AllowAllMessagesFilter().fromJsonString(jsonString, options); - } - - static equals(a: AllowAllMessagesFilter | PlainMessage | undefined, b: AllowAllMessagesFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(AllowAllMessagesFilter, a, b); - } -} - -/** - * AcceptedMessageKeysFilter accept only the specific contract message keys in - * the json object to be executed. - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.AcceptedMessageKeysFilter - */ -export class AcceptedMessageKeysFilter extends Message { - /** - * Messages is the list of unique keys - * - * @generated from field: repeated string keys = 1; - */ - keys: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessageKeysFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AcceptedMessageKeysFilter { - return new AcceptedMessageKeysFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AcceptedMessageKeysFilter { - return new AcceptedMessageKeysFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AcceptedMessageKeysFilter { - return new AcceptedMessageKeysFilter().fromJsonString(jsonString, options); - } - - static equals(a: AcceptedMessageKeysFilter | PlainMessage | undefined, b: AcceptedMessageKeysFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(AcceptedMessageKeysFilter, a, b); - } -} - -/** - * AcceptedMessagesFilter accept only the specific raw contract messages to be - * executed. - * Since: wasmd 0.30 - * - * @generated from message cosmwasm.wasm.v1.AcceptedMessagesFilter - */ -export class AcceptedMessagesFilter extends Message { - /** - * Messages is the list of raw contract messages - * - * @generated from field: repeated bytes messages = 1; - */ - messages: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.AcceptedMessagesFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "messages", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AcceptedMessagesFilter { - return new AcceptedMessagesFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AcceptedMessagesFilter { - return new AcceptedMessagesFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AcceptedMessagesFilter { - return new AcceptedMessagesFilter().fromJsonString(jsonString, options); - } - - static equals(a: AcceptedMessagesFilter | PlainMessage | undefined, b: AcceptedMessagesFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(AcceptedMessagesFilter, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/genesis_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/genesis_pb.ts deleted file mode 100644 index 66ec9d4..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/genesis_pb.ts +++ /dev/null @@ -1,227 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/genesis.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { CodeInfo, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types_pb.js"; - -/** - * GenesisState - genesis state of x/wasm - * - * @generated from message cosmwasm.wasm.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: cosmwasm.wasm.v1.Params params = 1; - */ - params?: Params; - - /** - * @generated from field: repeated cosmwasm.wasm.v1.Code codes = 2; - */ - codes: Code[] = []; - - /** - * @generated from field: repeated cosmwasm.wasm.v1.Contract contracts = 3; - */ - contracts: Contract[] = []; - - /** - * @generated from field: repeated cosmwasm.wasm.v1.Sequence sequences = 4; - */ - sequences: Sequence[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "codes", kind: "message", T: Code, repeated: true }, - { no: 3, name: "contracts", kind: "message", T: Contract, repeated: true }, - { no: 4, name: "sequences", kind: "message", T: Sequence, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * Code struct encompasses CodeInfo and CodeBytes - * - * @generated from message cosmwasm.wasm.v1.Code - */ -export class Code extends Message { - /** - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * @generated from field: cosmwasm.wasm.v1.CodeInfo code_info = 2; - */ - codeInfo?: CodeInfo; - - /** - * @generated from field: bytes code_bytes = 3; - */ - codeBytes = new Uint8Array(0); - - /** - * Pinned to wasmvm cache - * - * @generated from field: bool pinned = 4; - */ - pinned = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.Code"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "code_info", kind: "message", T: CodeInfo }, - { no: 3, name: "code_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "pinned", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Code { - return new Code().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Code { - return new Code().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Code { - return new Code().fromJsonString(jsonString, options); - } - - static equals(a: Code | PlainMessage | undefined, b: Code | PlainMessage | undefined): boolean { - return proto3.util.equals(Code, a, b); - } -} - -/** - * Contract struct encompasses ContractAddress, ContractInfo, and ContractState - * - * @generated from message cosmwasm.wasm.v1.Contract - */ -export class Contract extends Message { - /** - * @generated from field: string contract_address = 1; - */ - contractAddress = ""; - - /** - * @generated from field: cosmwasm.wasm.v1.ContractInfo contract_info = 2; - */ - contractInfo?: ContractInfo; - - /** - * @generated from field: repeated cosmwasm.wasm.v1.Model contract_state = 3; - */ - contractState: Model[] = []; - - /** - * @generated from field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry contract_code_history = 4; - */ - contractCodeHistory: ContractCodeHistoryEntry[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.Contract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "contract_info", kind: "message", T: ContractInfo }, - { no: 3, name: "contract_state", kind: "message", T: Model, repeated: true }, - { no: 4, name: "contract_code_history", kind: "message", T: ContractCodeHistoryEntry, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Contract { - return new Contract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Contract { - return new Contract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Contract { - return new Contract().fromJsonString(jsonString, options); - } - - static equals(a: Contract | PlainMessage | undefined, b: Contract | PlainMessage | undefined): boolean { - return proto3.util.equals(Contract, a, b); - } -} - -/** - * Sequence key and value of an id generation counter - * - * @generated from message cosmwasm.wasm.v1.Sequence - */ -export class Sequence extends Message { - /** - * @generated from field: bytes id_key = 1; - */ - idKey = new Uint8Array(0); - - /** - * @generated from field: uint64 value = 2; - */ - value = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.Sequence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Sequence { - return new Sequence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Sequence { - return new Sequence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Sequence { - return new Sequence().fromJsonString(jsonString, options); - } - - static equals(a: Sequence | PlainMessage | undefined, b: Sequence | PlainMessage | undefined): boolean { - return proto3.util.equals(Sequence, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts deleted file mode 100644 index 4704b63..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/ibc_pb.ts +++ /dev/null @@ -1,189 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/ibc.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * MsgIBCSend - * - * @generated from message cosmwasm.wasm.v1.MsgIBCSend - */ -export class MsgIBCSend extends Message { - /** - * the channel by which the packet will be sent - * - * @generated from field: string channel = 2; - */ - channel = ""; - - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - * - * @generated from field: uint64 timeout_height = 4; - */ - timeoutHeight = protoInt64.zero; - - /** - * Timeout timestamp (in nanoseconds) relative to the current block timestamp. - * The timeout is disabled when set to 0. - * - * @generated from field: uint64 timeout_timestamp = 5; - */ - timeoutTimestamp = protoInt64.zero; - - /** - * Data is the payload to transfer. We must not make assumption what format or - * content is in here. - * - * @generated from field: bytes data = 6; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgIBCSend"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "timeout_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSend { - return new MsgIBCSend().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSend { - return new MsgIBCSend().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgIBCSend { - return new MsgIBCSend().fromJsonString(jsonString, options); - } - - static equals(a: MsgIBCSend | PlainMessage | undefined, b: MsgIBCSend | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgIBCSend, a, b); - } -} - -/** - * MsgIBCSendResponse - * - * @generated from message cosmwasm.wasm.v1.MsgIBCSendResponse - */ -export class MsgIBCSendResponse extends Message { - /** - * Sequence number of the IBC packet sent - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgIBCSendResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSendResponse { - return new MsgIBCSendResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSendResponse { - return new MsgIBCSendResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgIBCSendResponse { - return new MsgIBCSendResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgIBCSendResponse | PlainMessage | undefined, b: MsgIBCSendResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgIBCSendResponse, a, b); - } -} - -/** - * MsgIBCWriteAcknowledgementResponse - * - * @generated from message cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse - */ -export class MsgIBCWriteAcknowledgementResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgIBCWriteAcknowledgementResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCWriteAcknowledgementResponse { - return new MsgIBCWriteAcknowledgementResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCWriteAcknowledgementResponse { - return new MsgIBCWriteAcknowledgementResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgIBCWriteAcknowledgementResponse { - return new MsgIBCWriteAcknowledgementResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgIBCWriteAcknowledgementResponse | PlainMessage | undefined, b: MsgIBCWriteAcknowledgementResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgIBCWriteAcknowledgementResponse, a, b); - } -} - -/** - * MsgIBCCloseChannel port and channel need to be owned by the contract - * - * @generated from message cosmwasm.wasm.v1.MsgIBCCloseChannel - */ -export class MsgIBCCloseChannel extends Message { - /** - * @generated from field: string channel = 2; - */ - channel = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgIBCCloseChannel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCCloseChannel { - return new MsgIBCCloseChannel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCCloseChannel { - return new MsgIBCCloseChannel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgIBCCloseChannel { - return new MsgIBCCloseChannel().fromJsonString(jsonString, options); - } - - static equals(a: MsgIBCCloseChannel | PlainMessage | undefined, b: MsgIBCCloseChannel | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgIBCCloseChannel, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts deleted file mode 100644 index bad308b..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/proposal_legacy_pb.ts +++ /dev/null @@ -1,1080 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/proposal_legacy.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AccessConfig } from "./types_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit StoreCodeProposal. To submit WASM code to the system, - * a simple MsgStoreCode can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.StoreCodeProposal - * @deprecated - */ -export class StoreCodeProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * RunAs is the address that is passed to the contract's environment as sender - * - * @generated from field: string run_as = 3; - */ - runAs = ""; - - /** - * WASMByteCode can be raw or gzip compressed - * - * @generated from field: bytes wasm_byte_code = 4; - */ - wasmByteCode = new Uint8Array(0); - - /** - * InstantiatePermission to apply on contract creation, optional - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 7; - */ - instantiatePermission?: AccessConfig; - - /** - * UnpinCode code on upload, optional - * - * @generated from field: bool unpin_code = 8; - */ - unpinCode = false; - - /** - * Source is the URL where the code is hosted - * - * @generated from field: string source = 9; - */ - source = ""; - - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - * - * @generated from field: string builder = 10; - */ - builder = ""; - - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - * - * @generated from field: bytes code_hash = 11; - */ - codeHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.StoreCodeProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "instantiate_permission", kind: "message", T: AccessConfig }, - { no: 8, name: "unpin_code", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 9, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "builder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreCodeProposal { - return new StoreCodeProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreCodeProposal { - return new StoreCodeProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StoreCodeProposal { - return new StoreCodeProposal().fromJsonString(jsonString, options); - } - - static equals(a: StoreCodeProposal | PlainMessage | undefined, b: StoreCodeProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreCodeProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit InstantiateContractProposal. To instantiate a contract, - * a simple MsgInstantiateContract can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.InstantiateContractProposal - * @deprecated - */ -export class InstantiateContractProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * RunAs is the address that is passed to the contract's environment as sender - * - * @generated from field: string run_as = 3; - */ - runAs = ""; - - /** - * Admin is an optional address that can execute migrations - * - * @generated from field: string admin = 4; - */ - admin = ""; - - /** - * CodeID is the reference to the stored WASM code - * - * @generated from field: uint64 code_id = 5; - */ - codeId = protoInt64.zero; - - /** - * Label is optional metadata to be stored with a contract instance. - * - * @generated from field: string label = 6; - */ - label = ""; - - /** - * Msg json encoded message to be passed to the contract on instantiation - * - * @generated from field: bytes msg = 7; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred to the contract on instantiation - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 8; - */ - funds: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.InstantiateContractProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "funds", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InstantiateContractProposal { - return new InstantiateContractProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InstantiateContractProposal { - return new InstantiateContractProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InstantiateContractProposal { - return new InstantiateContractProposal().fromJsonString(jsonString, options); - } - - static equals(a: InstantiateContractProposal | PlainMessage | undefined, b: InstantiateContractProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(InstantiateContractProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit InstantiateContract2Proposal. To instantiate contract 2, - * a simple MsgInstantiateContract2 can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.InstantiateContract2Proposal - * @deprecated - */ -export class InstantiateContract2Proposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * RunAs is the address that is passed to the contract's environment as sender - * - * @generated from field: string run_as = 3; - */ - runAs = ""; - - /** - * Admin is an optional address that can execute migrations - * - * @generated from field: string admin = 4; - */ - admin = ""; - - /** - * CodeID is the reference to the stored WASM code - * - * @generated from field: uint64 code_id = 5; - */ - codeId = protoInt64.zero; - - /** - * Label is optional metadata to be stored with a contract instance. - * - * @generated from field: string label = 6; - */ - label = ""; - - /** - * Msg json encode message to be passed to the contract on instantiation - * - * @generated from field: bytes msg = 7; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred to the contract on instantiation - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 8; - */ - funds: Coin[] = []; - - /** - * Salt is an arbitrary value provided by the sender. Size can be 1 to 64. - * - * @generated from field: bytes salt = 9; - */ - salt = new Uint8Array(0); - - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - * - * @generated from field: bool fix_msg = 10; - */ - fixMsg = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.InstantiateContract2Proposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "funds", kind: "message", T: Coin, repeated: true }, - { no: 9, name: "salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "fix_msg", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InstantiateContract2Proposal { - return new InstantiateContract2Proposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InstantiateContract2Proposal { - return new InstantiateContract2Proposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InstantiateContract2Proposal { - return new InstantiateContract2Proposal().fromJsonString(jsonString, options); - } - - static equals(a: InstantiateContract2Proposal | PlainMessage | undefined, b: InstantiateContract2Proposal | PlainMessage | undefined): boolean { - return proto3.util.equals(InstantiateContract2Proposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit MigrateContractProposal. To migrate a contract, - * a simple MsgMigrateContract can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.MigrateContractProposal - * @deprecated - */ -export class MigrateContractProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * Note: skipping 3 as this was previously used for unneeded run_as - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 4; - */ - contract = ""; - - /** - * CodeID references the new WASM code - * - * @generated from field: uint64 code_id = 5; - */ - codeId = protoInt64.zero; - - /** - * Msg json encoded message to be passed to the contract on migration - * - * @generated from field: bytes msg = 6; - */ - msg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MigrateContractProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MigrateContractProposal { - return new MigrateContractProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MigrateContractProposal { - return new MigrateContractProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MigrateContractProposal { - return new MigrateContractProposal().fromJsonString(jsonString, options); - } - - static equals(a: MigrateContractProposal | PlainMessage | undefined, b: MigrateContractProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(MigrateContractProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit SudoContractProposal. To call sudo on a contract, - * a simple MsgSudoContract can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.SudoContractProposal - * @deprecated - */ -export class SudoContractProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 3; - */ - contract = ""; - - /** - * Msg json encoded message to be passed to the contract as sudo - * - * @generated from field: bytes msg = 4; - */ - msg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.SudoContractProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SudoContractProposal { - return new SudoContractProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SudoContractProposal { - return new SudoContractProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SudoContractProposal { - return new SudoContractProposal().fromJsonString(jsonString, options); - } - - static equals(a: SudoContractProposal | PlainMessage | undefined, b: SudoContractProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(SudoContractProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit ExecuteContractProposal. To call execute on a contract, - * a simple MsgExecuteContract can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.ExecuteContractProposal - * @deprecated - */ -export class ExecuteContractProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * RunAs is the address that is passed to the contract's environment as sender - * - * @generated from field: string run_as = 3; - */ - runAs = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 4; - */ - contract = ""; - - /** - * Msg json encoded message to be passed to the contract as execute - * - * @generated from field: bytes msg = 5; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred to the contract on instantiation - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; - */ - funds: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.ExecuteContractProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteContractProposal { - return new ExecuteContractProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteContractProposal { - return new ExecuteContractProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecuteContractProposal { - return new ExecuteContractProposal().fromJsonString(jsonString, options); - } - - static equals(a: ExecuteContractProposal | PlainMessage | undefined, b: ExecuteContractProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecuteContractProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit UpdateAdminProposal. To set an admin for a contract, - * a simple MsgUpdateAdmin can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.UpdateAdminProposal - * @deprecated - */ -export class UpdateAdminProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * NewAdmin address to be set - * - * @generated from field: string new_admin = 3; - */ - newAdmin = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 4; - */ - contract = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.UpdateAdminProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateAdminProposal { - return new UpdateAdminProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateAdminProposal { - return new UpdateAdminProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateAdminProposal { - return new UpdateAdminProposal().fromJsonString(jsonString, options); - } - - static equals(a: UpdateAdminProposal | PlainMessage | undefined, b: UpdateAdminProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateAdminProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit ClearAdminProposal. To clear the admin of a contract, - * a simple MsgClearAdmin can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.ClearAdminProposal - * @deprecated - */ -export class ClearAdminProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 3; - */ - contract = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.ClearAdminProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClearAdminProposal { - return new ClearAdminProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClearAdminProposal { - return new ClearAdminProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClearAdminProposal { - return new ClearAdminProposal().fromJsonString(jsonString, options); - } - - static equals(a: ClearAdminProposal | PlainMessage | undefined, b: ClearAdminProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(ClearAdminProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit PinCodesProposal. To pin a set of code ids in the wasmvm - * cache, a simple MsgPinCodes can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.PinCodesProposal - * @deprecated - */ -export class PinCodesProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * CodeIDs references the new WASM codes - * - * @generated from field: repeated uint64 code_ids = 3; - */ - codeIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.PinCodesProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PinCodesProposal { - return new PinCodesProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PinCodesProposal { - return new PinCodesProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PinCodesProposal { - return new PinCodesProposal().fromJsonString(jsonString, options); - } - - static equals(a: PinCodesProposal | PlainMessage | undefined, b: PinCodesProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(PinCodesProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm - * cache, a simple MsgUnpinCodes can be invoked from the x/gov module via - * a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.UnpinCodesProposal - * @deprecated - */ -export class UnpinCodesProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * CodeIDs references the WASM codes - * - * @generated from field: repeated uint64 code_ids = 3; - */ - codeIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.UnpinCodesProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UnpinCodesProposal { - return new UnpinCodesProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UnpinCodesProposal { - return new UnpinCodesProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UnpinCodesProposal { - return new UnpinCodesProposal().fromJsonString(jsonString, options); - } - - static equals(a: UnpinCodesProposal | PlainMessage | undefined, b: UnpinCodesProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UnpinCodesProposal, a, b); - } -} - -/** - * AccessConfigUpdate contains the code id and the access config to be - * applied. - * - * @generated from message cosmwasm.wasm.v1.AccessConfigUpdate - */ -export class AccessConfigUpdate extends Message { - /** - * CodeID is the reference to the stored WASM code to be updated - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * InstantiatePermission to apply to the set of code ids - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 2; - */ - instantiatePermission?: AccessConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.AccessConfigUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "instantiate_permission", kind: "message", T: AccessConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccessConfigUpdate { - return new AccessConfigUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccessConfigUpdate { - return new AccessConfigUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccessConfigUpdate { - return new AccessConfigUpdate().fromJsonString(jsonString, options); - } - - static equals(a: AccessConfigUpdate | PlainMessage | undefined, b: AccessConfigUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(AccessConfigUpdate, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit UpdateInstantiateConfigProposal. To update instantiate config - * to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from - * the x/gov module via a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.UpdateInstantiateConfigProposal - * @deprecated - */ -export class UpdateInstantiateConfigProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * AccessConfigUpdate contains the list of code ids and the access config - * to be applied. - * - * @generated from field: repeated cosmwasm.wasm.v1.AccessConfigUpdate access_config_updates = 3; - */ - accessConfigUpdates: AccessConfigUpdate[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.UpdateInstantiateConfigProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "access_config_updates", kind: "message", T: AccessConfigUpdate, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateInstantiateConfigProposal { - return new UpdateInstantiateConfigProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateInstantiateConfigProposal { - return new UpdateInstantiateConfigProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateInstantiateConfigProposal { - return new UpdateInstantiateConfigProposal().fromJsonString(jsonString, options); - } - - static equals(a: UpdateInstantiateConfigProposal | PlainMessage | undefined, b: UpdateInstantiateConfigProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateInstantiateConfigProposal, a, b); - } -} - -/** - * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for - * an explicit StoreAndInstantiateContractProposal. To store and instantiate - * the contract, a simple MsgStoreAndInstantiateContract can be invoked from - * the x/gov module via a v1 governance proposal. - * - * @generated from message cosmwasm.wasm.v1.StoreAndInstantiateContractProposal - * @deprecated - */ -export class StoreAndInstantiateContractProposal extends Message { - /** - * Title is a short summary - * - * @generated from field: string title = 1; - */ - title = ""; - - /** - * Description is a human readable text - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * RunAs is the address that is passed to the contract's environment as sender - * - * @generated from field: string run_as = 3; - */ - runAs = ""; - - /** - * WASMByteCode can be raw or gzip compressed - * - * @generated from field: bytes wasm_byte_code = 4; - */ - wasmByteCode = new Uint8Array(0); - - /** - * InstantiatePermission to apply on contract creation, optional - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 5; - */ - instantiatePermission?: AccessConfig; - - /** - * UnpinCode code on upload, optional - * - * @generated from field: bool unpin_code = 6; - */ - unpinCode = false; - - /** - * Admin is an optional address that can execute migrations - * - * @generated from field: string admin = 7; - */ - admin = ""; - - /** - * Label is optional metadata to be stored with a contract instance. - * - * @generated from field: string label = 8; - */ - label = ""; - - /** - * Msg json encoded message to be passed to the contract on instantiation - * - * @generated from field: bytes msg = 9; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred to the contract on instantiation - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 10; - */ - funds: Coin[] = []; - - /** - * Source is the URL where the code is hosted - * - * @generated from field: string source = 11; - */ - source = ""; - - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - * - * @generated from field: string builder = 12; - */ - builder = ""; - - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - * - * @generated from field: bytes code_hash = 13; - */ - codeHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.StoreAndInstantiateContractProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "run_as", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "instantiate_permission", kind: "message", T: AccessConfig }, - { no: 6, name: "unpin_code", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "funds", kind: "message", T: Coin, repeated: true }, - { no: 11, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "builder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StoreAndInstantiateContractProposal { - return new StoreAndInstantiateContractProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StoreAndInstantiateContractProposal { - return new StoreAndInstantiateContractProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StoreAndInstantiateContractProposal { - return new StoreAndInstantiateContractProposal().fromJsonString(jsonString, options); - } - - static equals(a: StoreAndInstantiateContractProposal | PlainMessage | undefined, b: StoreAndInstantiateContractProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(StoreAndInstantiateContractProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_cosmes.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_cosmes.ts deleted file mode 100644 index 88dd6da..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_cosmes.ts +++ /dev/null @@ -1,178 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/query.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAllContractStateRequest, QueryAllContractStateResponse, QueryBuildAddressRequest, QueryBuildAddressResponse, QueryCodeInfoRequest, QueryCodeInfoResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractInfoRequest, QueryContractInfoResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse, QueryParamsRequest, QueryParamsResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryWasmLimitsConfigRequest, QueryWasmLimitsConfigResponse } from "./query_pb.js"; - -const TYPE_NAME = "cosmwasm.wasm.v1.Query"; - -/** - * ContractInfo gets the contract meta data - * - * @generated from rpc cosmwasm.wasm.v1.Query.ContractInfo - */ -export const QueryContractInfoService = { - typeName: TYPE_NAME, - method: "ContractInfo", - Request: QueryContractInfoRequest, - Response: QueryContractInfoResponse, -} as const; - -/** - * ContractHistory gets the contract code history - * - * @generated from rpc cosmwasm.wasm.v1.Query.ContractHistory - */ -export const QueryContractHistoryService = { - typeName: TYPE_NAME, - method: "ContractHistory", - Request: QueryContractHistoryRequest, - Response: QueryContractHistoryResponse, -} as const; - -/** - * ContractsByCode lists all smart contracts for a code id - * - * @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCode - */ -export const QueryContractsByCodeService = { - typeName: TYPE_NAME, - method: "ContractsByCode", - Request: QueryContractsByCodeRequest, - Response: QueryContractsByCodeResponse, -} as const; - -/** - * AllContractState gets all raw store data for a single contract - * - * @generated from rpc cosmwasm.wasm.v1.Query.AllContractState - */ -export const QueryAllContractStateService = { - typeName: TYPE_NAME, - method: "AllContractState", - Request: QueryAllContractStateRequest, - Response: QueryAllContractStateResponse, -} as const; - -/** - * RawContractState gets single key from the raw store data of a contract - * - * @generated from rpc cosmwasm.wasm.v1.Query.RawContractState - */ -export const QueryRawContractStateService = { - typeName: TYPE_NAME, - method: "RawContractState", - Request: QueryRawContractStateRequest, - Response: QueryRawContractStateResponse, -} as const; - -/** - * SmartContractState get smart query result from the contract - * - * @generated from rpc cosmwasm.wasm.v1.Query.SmartContractState - */ -export const QuerySmartContractStateService = { - typeName: TYPE_NAME, - method: "SmartContractState", - Request: QuerySmartContractStateRequest, - Response: QuerySmartContractStateResponse, -} as const; - -/** - * Code gets the binary code and metadata for a single wasm code - * - * @generated from rpc cosmwasm.wasm.v1.Query.Code - */ -export const QueryCodeService = { - typeName: TYPE_NAME, - method: "Code", - Request: QueryCodeRequest, - Response: QueryCodeResponse, -} as const; - -/** - * Codes gets the metadata for all stored wasm codes - * - * @generated from rpc cosmwasm.wasm.v1.Query.Codes - */ -export const QueryCodesService = { - typeName: TYPE_NAME, - method: "Codes", - Request: QueryCodesRequest, - Response: QueryCodesResponse, -} as const; - -/** - * CodeInfo gets the metadata for a single wasm code - * - * @generated from rpc cosmwasm.wasm.v1.Query.CodeInfo - */ -export const QueryCodeInfoService = { - typeName: TYPE_NAME, - method: "CodeInfo", - Request: QueryCodeInfoRequest, - Response: QueryCodeInfoResponse, -} as const; - -/** - * PinnedCodes gets the pinned code ids - * - * @generated from rpc cosmwasm.wasm.v1.Query.PinnedCodes - */ -export const QueryPinnedCodesService = { - typeName: TYPE_NAME, - method: "PinnedCodes", - Request: QueryPinnedCodesRequest, - Response: QueryPinnedCodesResponse, -} as const; - -/** - * Params gets the module params - * - * @generated from rpc cosmwasm.wasm.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * ContractsByCreator gets the contracts by creator - * - * @generated from rpc cosmwasm.wasm.v1.Query.ContractsByCreator - */ -export const QueryContractsByCreatorService = { - typeName: TYPE_NAME, - method: "ContractsByCreator", - Request: QueryContractsByCreatorRequest, - Response: QueryContractsByCreatorResponse, -} as const; - -/** - * WasmLimitsConfig gets the configured limits for static validation of Wasm - * files, encoded in JSON. - * - * @generated from rpc cosmwasm.wasm.v1.Query.WasmLimitsConfig - */ -export const QueryWasmLimitsConfigService = { - typeName: TYPE_NAME, - method: "WasmLimitsConfig", - Request: QueryWasmLimitsConfigRequest, - Response: QueryWasmLimitsConfigResponse, -} as const; - -/** - * BuildAddress builds a contract address - * - * @generated from rpc cosmwasm.wasm.v1.Query.BuildAddress - */ -export const QueryBuildAddressService = { - typeName: TYPE_NAME, - method: "BuildAddress", - Request: QueryBuildAddressRequest, - Response: QueryBuildAddressResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_pb.ts deleted file mode 100644 index 87bef60..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/query_pb.ts +++ /dev/null @@ -1,1357 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/query.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AccessConfig, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * QueryContractInfoRequest is the request type for the Query/ContractInfo RPC - * method - * - * @generated from message cosmwasm.wasm.v1.QueryContractInfoRequest - */ -export class QueryContractInfoRequest extends Message { - /** - * address is the address of the contract to query - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractInfoRequest { - return new QueryContractInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractInfoRequest { - return new QueryContractInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractInfoRequest { - return new QueryContractInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractInfoRequest | PlainMessage | undefined, b: QueryContractInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractInfoRequest, a, b); - } -} - -/** - * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC - * method - * - * @generated from message cosmwasm.wasm.v1.QueryContractInfoResponse - */ -export class QueryContractInfoResponse extends Message { - /** - * address is the address of the contract - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: cosmwasm.wasm.v1.ContractInfo contract_info = 2; - */ - contractInfo?: ContractInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "contract_info", kind: "message", T: ContractInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractInfoResponse { - return new QueryContractInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractInfoResponse { - return new QueryContractInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractInfoResponse { - return new QueryContractInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractInfoResponse | PlainMessage | undefined, b: QueryContractInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractInfoResponse, a, b); - } -} - -/** - * QueryContractHistoryRequest is the request type for the Query/ContractHistory - * RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryContractHistoryRequest - */ -export class QueryContractHistoryRequest extends Message { - /** - * address is the address of the contract to query - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractHistoryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractHistoryRequest { - return new QueryContractHistoryRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractHistoryRequest { - return new QueryContractHistoryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractHistoryRequest { - return new QueryContractHistoryRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractHistoryRequest | PlainMessage | undefined, b: QueryContractHistoryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractHistoryRequest, a, b); - } -} - -/** - * QueryContractHistoryResponse is the response type for the - * Query/ContractHistory RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryContractHistoryResponse - */ -export class QueryContractHistoryResponse extends Message { - /** - * @generated from field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1; - */ - entries: ContractCodeHistoryEntry[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractHistoryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "entries", kind: "message", T: ContractCodeHistoryEntry, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractHistoryResponse { - return new QueryContractHistoryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractHistoryResponse { - return new QueryContractHistoryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractHistoryResponse { - return new QueryContractHistoryResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractHistoryResponse | PlainMessage | undefined, b: QueryContractHistoryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractHistoryResponse, a, b); - } -} - -/** - * QueryContractsByCodeRequest is the request type for the Query/ContractsByCode - * RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryContractsByCodeRequest - */ -export class QueryContractsByCodeRequest extends Message { - /** - * grpc-gateway_out does not support Go style CodeID - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCodeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCodeRequest { - return new QueryContractsByCodeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCodeRequest { - return new QueryContractsByCodeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCodeRequest { - return new QueryContractsByCodeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractsByCodeRequest | PlainMessage | undefined, b: QueryContractsByCodeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractsByCodeRequest, a, b); - } -} - -/** - * QueryContractsByCodeResponse is the response type for the - * Query/ContractsByCode RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryContractsByCodeResponse - */ -export class QueryContractsByCodeResponse extends Message { - /** - * contracts are a set of contract addresses - * - * @generated from field: repeated string contracts = 1; - */ - contracts: string[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCodeResponse { - return new QueryContractsByCodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCodeResponse { - return new QueryContractsByCodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCodeResponse { - return new QueryContractsByCodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractsByCodeResponse | PlainMessage | undefined, b: QueryContractsByCodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractsByCodeResponse, a, b); - } -} - -/** - * QueryAllContractStateRequest is the request type for the - * Query/AllContractState RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryAllContractStateRequest - */ -export class QueryAllContractStateRequest extends Message { - /** - * address is the address of the contract - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryAllContractStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllContractStateRequest { - return new QueryAllContractStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllContractStateRequest { - return new QueryAllContractStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllContractStateRequest { - return new QueryAllContractStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllContractStateRequest | PlainMessage | undefined, b: QueryAllContractStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllContractStateRequest, a, b); - } -} - -/** - * QueryAllContractStateResponse is the response type for the - * Query/AllContractState RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryAllContractStateResponse - */ -export class QueryAllContractStateResponse extends Message { - /** - * @generated from field: repeated cosmwasm.wasm.v1.Model models = 1; - */ - models: Model[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryAllContractStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "models", kind: "message", T: Model, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllContractStateResponse { - return new QueryAllContractStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllContractStateResponse { - return new QueryAllContractStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllContractStateResponse { - return new QueryAllContractStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllContractStateResponse | PlainMessage | undefined, b: QueryAllContractStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllContractStateResponse, a, b); - } -} - -/** - * QueryRawContractStateRequest is the request type for the - * Query/RawContractState RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryRawContractStateRequest - */ -export class QueryRawContractStateRequest extends Message { - /** - * address is the address of the contract - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: bytes query_data = 2; - */ - queryData = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryRawContractStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "query_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawContractStateRequest { - return new QueryRawContractStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawContractStateRequest { - return new QueryRawContractStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawContractStateRequest { - return new QueryRawContractStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawContractStateRequest | PlainMessage | undefined, b: QueryRawContractStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawContractStateRequest, a, b); - } -} - -/** - * QueryRawContractStateResponse is the response type for the - * Query/RawContractState RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryRawContractStateResponse - */ -export class QueryRawContractStateResponse extends Message { - /** - * Data contains the raw store data - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryRawContractStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawContractStateResponse { - return new QueryRawContractStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawContractStateResponse { - return new QueryRawContractStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRawContractStateResponse { - return new QueryRawContractStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRawContractStateResponse | PlainMessage | undefined, b: QueryRawContractStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRawContractStateResponse, a, b); - } -} - -/** - * QuerySmartContractStateRequest is the request type for the - * Query/SmartContractState RPC method - * - * @generated from message cosmwasm.wasm.v1.QuerySmartContractStateRequest - */ -export class QuerySmartContractStateRequest extends Message { - /** - * address is the address of the contract - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * QueryData contains the query data passed to the contract - * - * @generated from field: bytes query_data = 2; - */ - queryData = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QuerySmartContractStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "query_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySmartContractStateRequest { - return new QuerySmartContractStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySmartContractStateRequest { - return new QuerySmartContractStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySmartContractStateRequest { - return new QuerySmartContractStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySmartContractStateRequest | PlainMessage | undefined, b: QuerySmartContractStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySmartContractStateRequest, a, b); - } -} - -/** - * QuerySmartContractStateResponse is the response type for the - * Query/SmartContractState RPC method - * - * @generated from message cosmwasm.wasm.v1.QuerySmartContractStateResponse - */ -export class QuerySmartContractStateResponse extends Message { - /** - * Data contains the json data returned from the smart contract - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QuerySmartContractStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySmartContractStateResponse { - return new QuerySmartContractStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySmartContractStateResponse { - return new QuerySmartContractStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySmartContractStateResponse { - return new QuerySmartContractStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySmartContractStateResponse | PlainMessage | undefined, b: QuerySmartContractStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySmartContractStateResponse, a, b); - } -} - -/** - * QueryCodeRequest is the request type for the Query/Code RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryCodeRequest - */ -export class QueryCodeRequest extends Message { - /** - * grpc-gateway_out does not support Go style CodeID - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryCodeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeRequest, a, b); - } -} - -/** - * QueryCodeInfoRequest is the request type for the Query/CodeInfo RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryCodeInfoRequest - */ -export class QueryCodeInfoRequest extends Message { - /** - * grpc-gateway_out does not support Go style CodeID - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryCodeInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeInfoRequest { - return new QueryCodeInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeInfoRequest { - return new QueryCodeInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeInfoRequest { - return new QueryCodeInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeInfoRequest | PlainMessage | undefined, b: QueryCodeInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeInfoRequest, a, b); - } -} - -/** - * QueryCodeInfoResponse is the response type for the Query/CodeInfo RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryCodeInfoResponse - */ -export class QueryCodeInfoResponse extends Message { - /** - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * @generated from field: string creator = 2; - */ - creator = ""; - - /** - * @generated from field: bytes checksum = 3; - */ - checksum = new Uint8Array(0); - - /** - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 4; - */ - instantiatePermission?: AccessConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryCodeInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "instantiate_permission", kind: "message", T: AccessConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeInfoResponse { - return new QueryCodeInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeInfoResponse { - return new QueryCodeInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeInfoResponse { - return new QueryCodeInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeInfoResponse | PlainMessage | undefined, b: QueryCodeInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeInfoResponse, a, b); - } -} - -/** - * CodeInfoResponse contains code meta data from CodeInfo - * - * @generated from message cosmwasm.wasm.v1.CodeInfoResponse - */ -export class CodeInfoResponse extends Message { - /** - * id for legacy support - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * @generated from field: string creator = 2; - */ - creator = ""; - - /** - * @generated from field: bytes data_hash = 3; - */ - dataHash = new Uint8Array(0); - - /** - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6; - */ - instantiatePermission?: AccessConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.CodeInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "data_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "instantiate_permission", kind: "message", T: AccessConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CodeInfoResponse { - return new CodeInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CodeInfoResponse { - return new CodeInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CodeInfoResponse { - return new CodeInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: CodeInfoResponse | PlainMessage | undefined, b: CodeInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CodeInfoResponse, a, b); - } -} - -/** - * QueryCodeResponse is the response type for the Query/Code RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryCodeResponse - */ -export class QueryCodeResponse extends Message { - /** - * @generated from field: cosmwasm.wasm.v1.CodeInfoResponse code_info = 1; - */ - codeInfo?: CodeInfoResponse; - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryCodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_info", kind: "message", T: CodeInfoResponse }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeResponse, a, b); - } -} - -/** - * QueryCodesRequest is the request type for the Query/Codes RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryCodesRequest - */ -export class QueryCodesRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryCodesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodesRequest { - return new QueryCodesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodesRequest { - return new QueryCodesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodesRequest { - return new QueryCodesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodesRequest | PlainMessage | undefined, b: QueryCodesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodesRequest, a, b); - } -} - -/** - * QueryCodesResponse is the response type for the Query/Codes RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryCodesResponse - */ -export class QueryCodesResponse extends Message { - /** - * @generated from field: repeated cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1; - */ - codeInfos: CodeInfoResponse[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryCodesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_infos", kind: "message", T: CodeInfoResponse, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodesResponse { - return new QueryCodesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodesResponse { - return new QueryCodesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodesResponse { - return new QueryCodesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodesResponse | PlainMessage | undefined, b: QueryCodesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodesResponse, a, b); - } -} - -/** - * QueryPinnedCodesRequest is the request type for the Query/PinnedCodes - * RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryPinnedCodesRequest - */ -export class QueryPinnedCodesRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryPinnedCodesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPinnedCodesRequest { - return new QueryPinnedCodesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPinnedCodesRequest { - return new QueryPinnedCodesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPinnedCodesRequest { - return new QueryPinnedCodesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPinnedCodesRequest | PlainMessage | undefined, b: QueryPinnedCodesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPinnedCodesRequest, a, b); - } -} - -/** - * QueryPinnedCodesResponse is the response type for the - * Query/PinnedCodes RPC method - * - * @generated from message cosmwasm.wasm.v1.QueryPinnedCodesResponse - */ -export class QueryPinnedCodesResponse extends Message { - /** - * @generated from field: repeated uint64 code_ids = 1; - */ - codeIds: bigint[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryPinnedCodesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPinnedCodesResponse { - return new QueryPinnedCodesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPinnedCodesResponse { - return new QueryPinnedCodesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPinnedCodesResponse { - return new QueryPinnedCodesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPinnedCodesResponse | PlainMessage | undefined, b: QueryPinnedCodesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPinnedCodesResponse, a, b); - } -} - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message cosmwasm.wasm.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message cosmwasm.wasm.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: cosmwasm.wasm.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryContractsByCreatorRequest is the request type for the - * Query/ContractsByCreator RPC method. - * - * @generated from message cosmwasm.wasm.v1.QueryContractsByCreatorRequest - */ -export class QueryContractsByCreatorRequest extends Message { - /** - * CreatorAddress is the address of contract creator - * - * @generated from field: string creator_address = 1; - */ - creatorAddress = ""; - - /** - * Pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCreatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCreatorRequest { - return new QueryContractsByCreatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCreatorRequest { - return new QueryContractsByCreatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCreatorRequest { - return new QueryContractsByCreatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractsByCreatorRequest | PlainMessage | undefined, b: QueryContractsByCreatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractsByCreatorRequest, a, b); - } -} - -/** - * QueryContractsByCreatorResponse is the response type for the - * Query/ContractsByCreator RPC method. - * - * @generated from message cosmwasm.wasm.v1.QueryContractsByCreatorResponse - */ -export class QueryContractsByCreatorResponse extends Message { - /** - * ContractAddresses result set - * - * @generated from field: repeated string contract_addresses = 1; - */ - contractAddresses: string[] = []; - - /** - * Pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCreatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCreatorResponse { - return new QueryContractsByCreatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCreatorResponse { - return new QueryContractsByCreatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCreatorResponse { - return new QueryContractsByCreatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryContractsByCreatorResponse | PlainMessage | undefined, b: QueryContractsByCreatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryContractsByCreatorResponse, a, b); - } -} - -/** - * QueryWasmLimitsConfigRequest is the request type for the - * Query/WasmLimitsConfig RPC method. - * - * @generated from message cosmwasm.wasm.v1.QueryWasmLimitsConfigRequest - */ -export class QueryWasmLimitsConfigRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryWasmLimitsConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryWasmLimitsConfigRequest { - return new QueryWasmLimitsConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryWasmLimitsConfigRequest { - return new QueryWasmLimitsConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryWasmLimitsConfigRequest { - return new QueryWasmLimitsConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryWasmLimitsConfigRequest | PlainMessage | undefined, b: QueryWasmLimitsConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryWasmLimitsConfigRequest, a, b); - } -} - -/** - * QueryWasmLimitsConfigResponse is the response type for the - * Query/WasmLimitsConfig RPC method. It contains the JSON encoded limits for - * static validation of Wasm files. - * - * @generated from message cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse - */ -export class QueryWasmLimitsConfigResponse extends Message { - /** - * @generated from field: string config = 1; - */ - config = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "config", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryWasmLimitsConfigResponse { - return new QueryWasmLimitsConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryWasmLimitsConfigResponse { - return new QueryWasmLimitsConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryWasmLimitsConfigResponse { - return new QueryWasmLimitsConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryWasmLimitsConfigResponse | PlainMessage | undefined, b: QueryWasmLimitsConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryWasmLimitsConfigResponse, a, b); - } -} - -/** - * QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC - * method. - * - * @generated from message cosmwasm.wasm.v1.QueryBuildAddressRequest - */ -export class QueryBuildAddressRequest extends Message { - /** - * CodeHash is the hash of the code - * - * @generated from field: string code_hash = 1; - */ - codeHash = ""; - - /** - * CreatorAddress is the address of the contract instantiator - * - * @generated from field: string creator_address = 2; - */ - creatorAddress = ""; - - /** - * Salt is a hex encoded salt - * - * @generated from field: string salt = 3; - */ - salt = ""; - - /** - * InitArgs are optional json encoded init args to be used in contract address - * building if provided - * - * @generated from field: bytes init_args = 4; - */ - initArgs = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryBuildAddressRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "init_args", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBuildAddressRequest { - return new QueryBuildAddressRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBuildAddressRequest { - return new QueryBuildAddressRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBuildAddressRequest { - return new QueryBuildAddressRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBuildAddressRequest | PlainMessage | undefined, b: QueryBuildAddressRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBuildAddressRequest, a, b); - } -} - -/** - * QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC - * method. - * - * @generated from message cosmwasm.wasm.v1.QueryBuildAddressResponse - */ -export class QueryBuildAddressResponse extends Message { - /** - * Address is the contract address - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.QueryBuildAddressResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBuildAddressResponse { - return new QueryBuildAddressResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBuildAddressResponse { - return new QueryBuildAddressResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBuildAddressResponse { - return new QueryBuildAddressResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBuildAddressResponse | PlainMessage | undefined, b: QueryBuildAddressResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBuildAddressResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts deleted file mode 100644 index 3f2e1ee..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_cosmes.ts +++ /dev/null @@ -1,239 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/tx.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAddCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddressesResponse, MsgClearAdmin, MsgClearAdminResponse, MsgExecuteContract, MsgExecuteContractResponse, MsgInstantiateContract, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgInstantiateContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgPinCodes, MsgPinCodesResponse, MsgRemoveCodeUploadParamsAddresses, MsgRemoveCodeUploadParamsAddressesResponse, MsgStoreAndInstantiateContract, MsgStoreAndInstantiateContractResponse, MsgStoreAndMigrateContract, MsgStoreAndMigrateContractResponse, MsgStoreCode, MsgStoreCodeResponse, MsgSudoContract, MsgSudoContractResponse, MsgUnpinCodes, MsgUnpinCodesResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgUpdateContractLabel, MsgUpdateContractLabelResponse, MsgUpdateInstantiateConfig, MsgUpdateInstantiateConfigResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "cosmwasm.wasm.v1.Msg"; - -/** - * StoreCode to submit Wasm code to the system - * - * @generated from rpc cosmwasm.wasm.v1.Msg.StoreCode - */ -export const MsgStoreCodeService = { - typeName: TYPE_NAME, - method: "StoreCode", - Request: MsgStoreCode, - Response: MsgStoreCodeResponse, -} as const; - -/** - * InstantiateContract creates a new smart contract instance for the given - * code id. - * - * @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract - */ -export const MsgInstantiateContractService = { - typeName: TYPE_NAME, - method: "InstantiateContract", - Request: MsgInstantiateContract, - Response: MsgInstantiateContractResponse, -} as const; - -/** - * InstantiateContract2 creates a new smart contract instance for the given - * code id with a predictable address - * - * @generated from rpc cosmwasm.wasm.v1.Msg.InstantiateContract2 - */ -export const MsgInstantiateContract2Service = { - typeName: TYPE_NAME, - method: "InstantiateContract2", - Request: MsgInstantiateContract2, - Response: MsgInstantiateContract2Response, -} as const; - -/** - * Execute submits the given message data to a smart contract - * - * @generated from rpc cosmwasm.wasm.v1.Msg.ExecuteContract - */ -export const MsgExecuteContractService = { - typeName: TYPE_NAME, - method: "ExecuteContract", - Request: MsgExecuteContract, - Response: MsgExecuteContractResponse, -} as const; - -/** - * Migrate runs a code upgrade/ downgrade for a smart contract - * - * @generated from rpc cosmwasm.wasm.v1.Msg.MigrateContract - */ -export const MsgMigrateContractService = { - typeName: TYPE_NAME, - method: "MigrateContract", - Request: MsgMigrateContract, - Response: MsgMigrateContractResponse, -} as const; - -/** - * UpdateAdmin sets a new admin for a smart contract - * - * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateAdmin - */ -export const MsgUpdateAdminService = { - typeName: TYPE_NAME, - method: "UpdateAdmin", - Request: MsgUpdateAdmin, - Response: MsgUpdateAdminResponse, -} as const; - -/** - * ClearAdmin removes any admin stored for a smart contract - * - * @generated from rpc cosmwasm.wasm.v1.Msg.ClearAdmin - */ -export const MsgClearAdminService = { - typeName: TYPE_NAME, - method: "ClearAdmin", - Request: MsgClearAdmin, - Response: MsgClearAdminResponse, -} as const; - -/** - * UpdateInstantiateConfig updates instantiate config for a smart contract - * - * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateInstantiateConfig - */ -export const MsgUpdateInstantiateConfigService = { - typeName: TYPE_NAME, - method: "UpdateInstantiateConfig", - Request: MsgUpdateInstantiateConfig, - Response: MsgUpdateInstantiateConfigResponse, -} as const; - -/** - * UpdateParams defines a governance operation for updating the x/wasm - * module parameters. The authority is defined in the keeper. - * - * Since: 0.40 - * - * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * SudoContract defines a governance operation for calling sudo - * on a contract. The authority is defined in the keeper. - * - * Since: 0.40 - * - * @generated from rpc cosmwasm.wasm.v1.Msg.SudoContract - */ -export const MsgSudoContractService = { - typeName: TYPE_NAME, - method: "SudoContract", - Request: MsgSudoContract, - Response: MsgSudoContractResponse, -} as const; - -/** - * PinCodes defines a governance operation for pinning a set of - * code ids in the wasmvm cache. The authority is defined in the keeper. - * - * Since: 0.40 - * - * @generated from rpc cosmwasm.wasm.v1.Msg.PinCodes - */ -export const MsgPinCodesService = { - typeName: TYPE_NAME, - method: "PinCodes", - Request: MsgPinCodes, - Response: MsgPinCodesResponse, -} as const; - -/** - * UnpinCodes defines a governance operation for unpinning a set of - * code ids in the wasmvm cache. The authority is defined in the keeper. - * - * Since: 0.40 - * - * @generated from rpc cosmwasm.wasm.v1.Msg.UnpinCodes - */ -export const MsgUnpinCodesService = { - typeName: TYPE_NAME, - method: "UnpinCodes", - Request: MsgUnpinCodes, - Response: MsgUnpinCodesResponse, -} as const; - -/** - * StoreAndInstantiateContract defines a governance operation for storing - * and instantiating the contract. The authority is defined in the keeper. - * - * Since: 0.40 - * - * @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndInstantiateContract - */ -export const MsgStoreAndInstantiateContractService = { - typeName: TYPE_NAME, - method: "StoreAndInstantiateContract", - Request: MsgStoreAndInstantiateContract, - Response: MsgStoreAndInstantiateContractResponse, -} as const; - -/** - * RemoveCodeUploadParamsAddresses defines a governance operation for - * removing addresses from code upload params. - * The authority is defined in the keeper. - * - * @generated from rpc cosmwasm.wasm.v1.Msg.RemoveCodeUploadParamsAddresses - */ -export const MsgRemoveCodeUploadParamsAddressesService = { - typeName: TYPE_NAME, - method: "RemoveCodeUploadParamsAddresses", - Request: MsgRemoveCodeUploadParamsAddresses, - Response: MsgRemoveCodeUploadParamsAddressesResponse, -} as const; - -/** - * AddCodeUploadParamsAddresses defines a governance operation for - * adding addresses to code upload params. - * The authority is defined in the keeper. - * - * @generated from rpc cosmwasm.wasm.v1.Msg.AddCodeUploadParamsAddresses - */ -export const MsgAddCodeUploadParamsAddressesService = { - typeName: TYPE_NAME, - method: "AddCodeUploadParamsAddresses", - Request: MsgAddCodeUploadParamsAddresses, - Response: MsgAddCodeUploadParamsAddressesResponse, -} as const; - -/** - * StoreAndMigrateContract defines a governance operation for storing - * and migrating the contract. The authority is defined in the keeper. - * - * Since: 0.42 - * - * @generated from rpc cosmwasm.wasm.v1.Msg.StoreAndMigrateContract - */ -export const MsgStoreAndMigrateContractService = { - typeName: TYPE_NAME, - method: "StoreAndMigrateContract", - Request: MsgStoreAndMigrateContract, - Response: MsgStoreAndMigrateContractResponse, -} as const; - -/** - * UpdateContractLabel sets a new label for a smart contract - * - * Since: 0.43 - * - * @generated from rpc cosmwasm.wasm.v1.Msg.UpdateContractLabel - */ -export const MsgUpdateContractLabelService = { - typeName: TYPE_NAME, - method: "UpdateContractLabel", - Request: MsgUpdateContractLabel, - Response: MsgUpdateContractLabelResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts deleted file mode 100644 index f55caac..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/tx_pb.ts +++ /dev/null @@ -1,1807 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/tx.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AccessConfig, Params } from "./types_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * MsgStoreCode submit Wasm code to the system - * - * @generated from message cosmwasm.wasm.v1.MsgStoreCode - */ -export class MsgStoreCode extends Message { - /** - * Sender is the actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * WASMByteCode can be raw or gzip compressed - * - * @generated from field: bytes wasm_byte_code = 2; - */ - wasmByteCode = new Uint8Array(0); - - /** - * InstantiatePermission access control to apply on contract creation, - * optional - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 5; - */ - instantiatePermission?: AccessConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgStoreCode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "instantiate_permission", kind: "message", T: AccessConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCode { - return new MsgStoreCode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCode { - return new MsgStoreCode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreCode { - return new MsgStoreCode().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreCode | PlainMessage | undefined, b: MsgStoreCode | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreCode, a, b); - } -} - -/** - * MsgStoreCodeResponse returns store result data. - * - * @generated from message cosmwasm.wasm.v1.MsgStoreCodeResponse - */ -export class MsgStoreCodeResponse extends Message { - /** - * CodeID is the reference to the stored WASM code - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * Checksum is the sha256 hash of the stored code - * - * @generated from field: bytes checksum = 2; - */ - checksum = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgStoreCodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCodeResponse { - return new MsgStoreCodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCodeResponse { - return new MsgStoreCodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreCodeResponse { - return new MsgStoreCodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreCodeResponse | PlainMessage | undefined, b: MsgStoreCodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreCodeResponse, a, b); - } -} - -/** - * MsgInstantiateContract create a new smart contract instance for the given - * code id. - * - * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract - */ -export class MsgInstantiateContract extends Message { - /** - * Sender is the that actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * Admin is an optional address that can execute migrations - * - * @generated from field: string admin = 2; - */ - admin = ""; - - /** - * CodeID is the reference to the stored WASM code - * - * @generated from field: uint64 code_id = 3; - */ - codeId = protoInt64.zero; - - /** - * Label is optional metadata to be stored with a contract instance. - * - * @generated from field: string label = 4; - */ - label = ""; - - /** - * Msg json encoded message to be passed to the contract on instantiation - * - * @generated from field: bytes msg = 5; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred to the contract on instantiation - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; - */ - funds: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract { - return new MsgInstantiateContract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract { - return new MsgInstantiateContract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract { - return new MsgInstantiateContract().fromJsonString(jsonString, options); - } - - static equals(a: MsgInstantiateContract | PlainMessage | undefined, b: MsgInstantiateContract | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInstantiateContract, a, b); - } -} - -/** - * MsgInstantiateContractResponse return instantiation result data - * - * @generated from message cosmwasm.wasm.v1.MsgInstantiateContractResponse - */ -export class MsgInstantiateContractResponse extends Message { - /** - * Address is the bech32 address of the new contract instance. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * Data contains bytes to returned from the contract - * - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContractResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContractResponse { - return new MsgInstantiateContractResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContractResponse { - return new MsgInstantiateContractResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContractResponse { - return new MsgInstantiateContractResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgInstantiateContractResponse | PlainMessage | undefined, b: MsgInstantiateContractResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInstantiateContractResponse, a, b); - } -} - -/** - * MsgInstantiateContract2 create a new smart contract instance for the given - * code id with a predictable address. - * - * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract2 - */ -export class MsgInstantiateContract2 extends Message { - /** - * Sender is the that actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * Admin is an optional address that can execute migrations - * - * @generated from field: string admin = 2; - */ - admin = ""; - - /** - * CodeID is the reference to the stored WASM code - * - * @generated from field: uint64 code_id = 3; - */ - codeId = protoInt64.zero; - - /** - * Label is optional metadata to be stored with a contract instance. - * - * @generated from field: string label = 4; - */ - label = ""; - - /** - * Msg json encoded message to be passed to the contract on instantiation - * - * @generated from field: bytes msg = 5; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred to the contract on instantiation - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; - */ - funds: Coin[] = []; - - /** - * Salt is an arbitrary value provided by the sender. Size can be 1 to 64. - * - * @generated from field: bytes salt = 7; - */ - salt = new Uint8Array(0); - - /** - * FixMsg include the msg value into the hash for the predictable address. - * Default is false - * - * @generated from field: bool fix_msg = 8; - */ - fixMsg = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract2"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, - { no: 7, name: "salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "fix_msg", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract2 { - return new MsgInstantiateContract2().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract2 { - return new MsgInstantiateContract2().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract2 { - return new MsgInstantiateContract2().fromJsonString(jsonString, options); - } - - static equals(a: MsgInstantiateContract2 | PlainMessage | undefined, b: MsgInstantiateContract2 | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInstantiateContract2, a, b); - } -} - -/** - * MsgInstantiateContract2Response return instantiation result data - * - * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract2Response - */ -export class MsgInstantiateContract2Response extends Message { - /** - * Address is the bech32 address of the new contract instance. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * Data contains bytes to returned from the contract - * - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract2Response"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract2Response { - return new MsgInstantiateContract2Response().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract2Response { - return new MsgInstantiateContract2Response().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract2Response { - return new MsgInstantiateContract2Response().fromJsonString(jsonString, options); - } - - static equals(a: MsgInstantiateContract2Response | PlainMessage | undefined, b: MsgInstantiateContract2Response | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInstantiateContract2Response, a, b); - } -} - -/** - * MsgExecuteContract submits the given message data to a smart contract - * - * @generated from message cosmwasm.wasm.v1.MsgExecuteContract - */ -export class MsgExecuteContract extends Message { - /** - * Sender is the that actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 2; - */ - contract = ""; - - /** - * Msg json encoded message to be passed to the contract - * - * @generated from field: bytes msg = 3; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred to the contract on execution - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 5; - */ - funds: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgExecuteContract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "funds", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContract { - return new MsgExecuteContract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContract { - return new MsgExecuteContract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContract { - return new MsgExecuteContract().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecuteContract | PlainMessage | undefined, b: MsgExecuteContract | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecuteContract, a, b); - } -} - -/** - * MsgExecuteContractResponse returns execution result data. - * - * @generated from message cosmwasm.wasm.v1.MsgExecuteContractResponse - */ -export class MsgExecuteContractResponse extends Message { - /** - * Data contains bytes to returned from the contract - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgExecuteContractResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContractResponse { - return new MsgExecuteContractResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContractResponse { - return new MsgExecuteContractResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContractResponse { - return new MsgExecuteContractResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecuteContractResponse | PlainMessage | undefined, b: MsgExecuteContractResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecuteContractResponse, a, b); - } -} - -/** - * MsgMigrateContract runs a code upgrade/ downgrade for a smart contract - * - * @generated from message cosmwasm.wasm.v1.MsgMigrateContract - */ -export class MsgMigrateContract extends Message { - /** - * Sender is the that actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 2; - */ - contract = ""; - - /** - * CodeID references the new WASM code - * - * @generated from field: uint64 code_id = 3; - */ - codeId = protoInt64.zero; - - /** - * Msg json encoded message to be passed to the contract on migration - * - * @generated from field: bytes msg = 4; - */ - msg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgMigrateContract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContract { - return new MsgMigrateContract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContract { - return new MsgMigrateContract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContract { - return new MsgMigrateContract().fromJsonString(jsonString, options); - } - - static equals(a: MsgMigrateContract | PlainMessage | undefined, b: MsgMigrateContract | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMigrateContract, a, b); - } -} - -/** - * MsgMigrateContractResponse returns contract migration result data. - * - * @generated from message cosmwasm.wasm.v1.MsgMigrateContractResponse - */ -export class MsgMigrateContractResponse extends Message { - /** - * Data contains same raw bytes returned as data from the wasm contract. - * (May be empty) - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgMigrateContractResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContractResponse { - return new MsgMigrateContractResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContractResponse { - return new MsgMigrateContractResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContractResponse { - return new MsgMigrateContractResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgMigrateContractResponse | PlainMessage | undefined, b: MsgMigrateContractResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMigrateContractResponse, a, b); - } -} - -/** - * MsgUpdateAdmin sets a new admin for a smart contract - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateAdmin - */ -export class MsgUpdateAdmin extends Message { - /** - * Sender is the that actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * NewAdmin address to be set - * - * @generated from field: string new_admin = 2; - */ - newAdmin = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 3; - */ - contract = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateAdmin"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAdmin { - return new MsgUpdateAdmin().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAdmin { - return new MsgUpdateAdmin().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAdmin { - return new MsgUpdateAdmin().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateAdmin | PlainMessage | undefined, b: MsgUpdateAdmin | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateAdmin, a, b); - } -} - -/** - * MsgUpdateAdminResponse returns empty data - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateAdminResponse - */ -export class MsgUpdateAdminResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateAdminResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAdminResponse { - return new MsgUpdateAdminResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAdminResponse { - return new MsgUpdateAdminResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAdminResponse { - return new MsgUpdateAdminResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateAdminResponse | PlainMessage | undefined, b: MsgUpdateAdminResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateAdminResponse, a, b); - } -} - -/** - * MsgClearAdmin removes any admin stored for a smart contract - * - * @generated from message cosmwasm.wasm.v1.MsgClearAdmin - */ -export class MsgClearAdmin extends Message { - /** - * Sender is the actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 3; - */ - contract = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgClearAdmin"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgClearAdmin { - return new MsgClearAdmin().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgClearAdmin { - return new MsgClearAdmin().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgClearAdmin { - return new MsgClearAdmin().fromJsonString(jsonString, options); - } - - static equals(a: MsgClearAdmin | PlainMessage | undefined, b: MsgClearAdmin | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgClearAdmin, a, b); - } -} - -/** - * MsgClearAdminResponse returns empty data - * - * @generated from message cosmwasm.wasm.v1.MsgClearAdminResponse - */ -export class MsgClearAdminResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgClearAdminResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgClearAdminResponse { - return new MsgClearAdminResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgClearAdminResponse { - return new MsgClearAdminResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgClearAdminResponse { - return new MsgClearAdminResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgClearAdminResponse | PlainMessage | undefined, b: MsgClearAdminResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgClearAdminResponse, a, b); - } -} - -/** - * MsgUpdateInstantiateConfig updates instantiate config for a smart contract - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateInstantiateConfig - */ -export class MsgUpdateInstantiateConfig extends Message { - /** - * Sender is the that actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * CodeID references the stored WASM code - * - * @generated from field: uint64 code_id = 2; - */ - codeId = protoInt64.zero; - - /** - * NewInstantiatePermission is the new access control - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig new_instantiate_permission = 3; - */ - newInstantiatePermission?: AccessConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateInstantiateConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "new_instantiate_permission", kind: "message", T: AccessConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInstantiateConfig { - return new MsgUpdateInstantiateConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInstantiateConfig { - return new MsgUpdateInstantiateConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInstantiateConfig { - return new MsgUpdateInstantiateConfig().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateInstantiateConfig | PlainMessage | undefined, b: MsgUpdateInstantiateConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateInstantiateConfig, a, b); - } -} - -/** - * MsgUpdateInstantiateConfigResponse returns empty data - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse - */ -export class MsgUpdateInstantiateConfigResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInstantiateConfigResponse { - return new MsgUpdateInstantiateConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInstantiateConfigResponse { - return new MsgUpdateInstantiateConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInstantiateConfigResponse { - return new MsgUpdateInstantiateConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateInstantiateConfigResponse | PlainMessage | undefined, b: MsgUpdateInstantiateConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateInstantiateConfigResponse, a, b); - } -} - -/** - * MsgUpdateParams is the MsgUpdateParams request type. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/wasm parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: cosmwasm.wasm.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgSudoContract is the MsgSudoContract request type. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgSudoContract - */ -export class MsgSudoContract extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 2; - */ - contract = ""; - - /** - * Msg json encoded message to be passed to the contract as sudo - * - * @generated from field: bytes msg = 3; - */ - msg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgSudoContract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoContract { - return new MsgSudoContract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoContract { - return new MsgSudoContract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSudoContract { - return new MsgSudoContract().fromJsonString(jsonString, options); - } - - static equals(a: MsgSudoContract | PlainMessage | undefined, b: MsgSudoContract | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSudoContract, a, b); - } -} - -/** - * MsgSudoContractResponse defines the response structure for executing a - * MsgSudoContract message. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgSudoContractResponse - */ -export class MsgSudoContractResponse extends Message { - /** - * Data contains bytes to returned from the contract - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgSudoContractResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoContractResponse { - return new MsgSudoContractResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoContractResponse { - return new MsgSudoContractResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSudoContractResponse { - return new MsgSudoContractResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSudoContractResponse | PlainMessage | undefined, b: MsgSudoContractResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSudoContractResponse, a, b); - } -} - -/** - * MsgPinCodes is the MsgPinCodes request type. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgPinCodes - */ -export class MsgPinCodes extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * CodeIDs references the new WASM codes - * - * @generated from field: repeated uint64 code_ids = 2; - */ - codeIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgPinCodes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPinCodes { - return new MsgPinCodes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPinCodes { - return new MsgPinCodes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPinCodes { - return new MsgPinCodes().fromJsonString(jsonString, options); - } - - static equals(a: MsgPinCodes | PlainMessage | undefined, b: MsgPinCodes | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPinCodes, a, b); - } -} - -/** - * MsgPinCodesResponse defines the response structure for executing a - * MsgPinCodes message. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgPinCodesResponse - */ -export class MsgPinCodesResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgPinCodesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPinCodesResponse { - return new MsgPinCodesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPinCodesResponse { - return new MsgPinCodesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPinCodesResponse { - return new MsgPinCodesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgPinCodesResponse | PlainMessage | undefined, b: MsgPinCodesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPinCodesResponse, a, b); - } -} - -/** - * MsgUnpinCodes is the MsgUnpinCodes request type. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgUnpinCodes - */ -export class MsgUnpinCodes extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * CodeIDs references the WASM codes - * - * @generated from field: repeated uint64 code_ids = 2; - */ - codeIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUnpinCodes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpinCodes { - return new MsgUnpinCodes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpinCodes { - return new MsgUnpinCodes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnpinCodes { - return new MsgUnpinCodes().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnpinCodes | PlainMessage | undefined, b: MsgUnpinCodes | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnpinCodes, a, b); - } -} - -/** - * MsgUnpinCodesResponse defines the response structure for executing a - * MsgUnpinCodes message. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgUnpinCodesResponse - */ -export class MsgUnpinCodesResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUnpinCodesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpinCodesResponse { - return new MsgUnpinCodesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpinCodesResponse { - return new MsgUnpinCodesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnpinCodesResponse { - return new MsgUnpinCodesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnpinCodesResponse | PlainMessage | undefined, b: MsgUnpinCodesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnpinCodesResponse, a, b); - } -} - -/** - * MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract - * request type. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgStoreAndInstantiateContract - */ -export class MsgStoreAndInstantiateContract extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * WASMByteCode can be raw or gzip compressed - * - * @generated from field: bytes wasm_byte_code = 3; - */ - wasmByteCode = new Uint8Array(0); - - /** - * InstantiatePermission to apply on contract creation, optional - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 4; - */ - instantiatePermission?: AccessConfig; - - /** - * UnpinCode code on upload, optional. As default the uploaded contract is - * pinned to cache. - * - * @generated from field: bool unpin_code = 5; - */ - unpinCode = false; - - /** - * Admin is an optional address that can execute migrations - * - * @generated from field: string admin = 6; - */ - admin = ""; - - /** - * Label is optional metadata to be stored with a contract instance. - * - * @generated from field: string label = 7; - */ - label = ""; - - /** - * Msg json encoded message to be passed to the contract on instantiation - * - * @generated from field: bytes msg = 8; - */ - msg = new Uint8Array(0); - - /** - * Funds coins that are transferred from the authority account to the contract - * on instantiation - * - * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 9; - */ - funds: Coin[] = []; - - /** - * Source is the URL where the code is hosted - * - * @generated from field: string source = 10; - */ - source = ""; - - /** - * Builder is the docker image used to build the code deterministically, used - * for smart contract verification - * - * @generated from field: string builder = 11; - */ - builder = ""; - - /** - * CodeHash is the SHA256 sum of the code outputted by builder, used for smart - * contract verification - * - * @generated from field: bytes code_hash = 12; - */ - codeHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndInstantiateContract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "instantiate_permission", kind: "message", T: AccessConfig }, - { no: 5, name: "unpin_code", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "funds", kind: "message", T: Coin, repeated: true }, - { no: 10, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "builder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndInstantiateContract { - return new MsgStoreAndInstantiateContract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndInstantiateContract { - return new MsgStoreAndInstantiateContract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndInstantiateContract { - return new MsgStoreAndInstantiateContract().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreAndInstantiateContract | PlainMessage | undefined, b: MsgStoreAndInstantiateContract | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreAndInstantiateContract, a, b); - } -} - -/** - * MsgStoreAndInstantiateContractResponse defines the response structure - * for executing a MsgStoreAndInstantiateContract message. - * - * Since: 0.40 - * - * @generated from message cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse - */ -export class MsgStoreAndInstantiateContractResponse extends Message { - /** - * Address is the bech32 address of the new contract instance. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * Data contains bytes to returned from the contract - * - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndInstantiateContractResponse { - return new MsgStoreAndInstantiateContractResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndInstantiateContractResponse { - return new MsgStoreAndInstantiateContractResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndInstantiateContractResponse { - return new MsgStoreAndInstantiateContractResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreAndInstantiateContractResponse | PlainMessage | undefined, b: MsgStoreAndInstantiateContractResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreAndInstantiateContractResponse, a, b); - } -} - -/** - * MsgAddCodeUploadParamsAddresses is the - * MsgAddCodeUploadParamsAddresses request type. - * - * @generated from message cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses - */ -export class MsgAddCodeUploadParamsAddresses extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * @generated from field: repeated string addresses = 2; - */ - addresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCodeUploadParamsAddresses { - return new MsgAddCodeUploadParamsAddresses().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCodeUploadParamsAddresses { - return new MsgAddCodeUploadParamsAddresses().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddCodeUploadParamsAddresses { - return new MsgAddCodeUploadParamsAddresses().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddCodeUploadParamsAddresses | PlainMessage | undefined, b: MsgAddCodeUploadParamsAddresses | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddCodeUploadParamsAddresses, a, b); - } -} - -/** - * MsgAddCodeUploadParamsAddressesResponse defines the response - * structure for executing a MsgAddCodeUploadParamsAddresses message. - * - * @generated from message cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse - */ -export class MsgAddCodeUploadParamsAddressesResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { - return new MsgAddCodeUploadParamsAddressesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { - return new MsgAddCodeUploadParamsAddressesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { - return new MsgAddCodeUploadParamsAddressesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddCodeUploadParamsAddressesResponse | PlainMessage | undefined, b: MsgAddCodeUploadParamsAddressesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddCodeUploadParamsAddressesResponse, a, b); - } -} - -/** - * MsgRemoveCodeUploadParamsAddresses is the - * MsgRemoveCodeUploadParamsAddresses request type. - * - * @generated from message cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses - */ -export class MsgRemoveCodeUploadParamsAddresses extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * @generated from field: repeated string addresses = 2; - */ - addresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveCodeUploadParamsAddresses { - return new MsgRemoveCodeUploadParamsAddresses().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveCodeUploadParamsAddresses { - return new MsgRemoveCodeUploadParamsAddresses().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRemoveCodeUploadParamsAddresses { - return new MsgRemoveCodeUploadParamsAddresses().fromJsonString(jsonString, options); - } - - static equals(a: MsgRemoveCodeUploadParamsAddresses | PlainMessage | undefined, b: MsgRemoveCodeUploadParamsAddresses | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRemoveCodeUploadParamsAddresses, a, b); - } -} - -/** - * MsgRemoveCodeUploadParamsAddressesResponse defines the response - * structure for executing a MsgRemoveCodeUploadParamsAddresses message. - * - * @generated from message cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse - */ -export class MsgRemoveCodeUploadParamsAddressesResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { - return new MsgRemoveCodeUploadParamsAddressesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { - return new MsgRemoveCodeUploadParamsAddressesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { - return new MsgRemoveCodeUploadParamsAddressesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRemoveCodeUploadParamsAddressesResponse | PlainMessage | undefined, b: MsgRemoveCodeUploadParamsAddressesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRemoveCodeUploadParamsAddressesResponse, a, b); - } -} - -/** - * MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract - * request type. - * - * Since: 0.42 - * - * @generated from message cosmwasm.wasm.v1.MsgStoreAndMigrateContract - */ -export class MsgStoreAndMigrateContract extends Message { - /** - * Authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * WASMByteCode can be raw or gzip compressed - * - * @generated from field: bytes wasm_byte_code = 2; - */ - wasmByteCode = new Uint8Array(0); - - /** - * InstantiatePermission to apply on contract creation, optional - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 3; - */ - instantiatePermission?: AccessConfig; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 4; - */ - contract = ""; - - /** - * Msg json encoded message to be passed to the contract on migration - * - * @generated from field: bytes msg = 5; - */ - msg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndMigrateContract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "instantiate_permission", kind: "message", T: AccessConfig }, - { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndMigrateContract { - return new MsgStoreAndMigrateContract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndMigrateContract { - return new MsgStoreAndMigrateContract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndMigrateContract { - return new MsgStoreAndMigrateContract().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreAndMigrateContract | PlainMessage | undefined, b: MsgStoreAndMigrateContract | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreAndMigrateContract, a, b); - } -} - -/** - * MsgStoreAndMigrateContractResponse defines the response structure - * for executing a MsgStoreAndMigrateContract message. - * - * Since: 0.42 - * - * @generated from message cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse - */ -export class MsgStoreAndMigrateContractResponse extends Message { - /** - * CodeID is the reference to the stored WASM code - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * Checksum is the sha256 hash of the stored code - * - * @generated from field: bytes checksum = 2; - */ - checksum = new Uint8Array(0); - - /** - * Data contains bytes to returned from the contract - * - * @generated from field: bytes data = 3; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndMigrateContractResponse { - return new MsgStoreAndMigrateContractResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndMigrateContractResponse { - return new MsgStoreAndMigrateContractResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndMigrateContractResponse { - return new MsgStoreAndMigrateContractResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreAndMigrateContractResponse | PlainMessage | undefined, b: MsgStoreAndMigrateContractResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreAndMigrateContractResponse, a, b); - } -} - -/** - * MsgUpdateContractLabel sets a new label for a smart contract - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateContractLabel - */ -export class MsgUpdateContractLabel extends Message { - /** - * Sender is the that actor that signed the messages - * - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * NewLabel string to be set - * - * @generated from field: string new_label = 2; - */ - newLabel = ""; - - /** - * Contract is the address of the smart contract - * - * @generated from field: string contract = 3; - */ - contract = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateContractLabel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "new_label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractLabel { - return new MsgUpdateContractLabel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractLabel { - return new MsgUpdateContractLabel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractLabel { - return new MsgUpdateContractLabel().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateContractLabel | PlainMessage | undefined, b: MsgUpdateContractLabel | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateContractLabel, a, b); - } -} - -/** - * MsgUpdateContractLabelResponse returns empty data - * - * @generated from message cosmwasm.wasm.v1.MsgUpdateContractLabelResponse - */ -export class MsgUpdateContractLabelResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateContractLabelResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractLabelResponse { - return new MsgUpdateContractLabelResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractLabelResponse { - return new MsgUpdateContractLabelResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractLabelResponse { - return new MsgUpdateContractLabelResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateContractLabelResponse | PlainMessage | undefined, b: MsgUpdateContractLabelResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateContractLabelResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/types_pb.ts b/libs/es-client/src/protobufs/cosmwasm/wasm/v1/types_pb.ts deleted file mode 100644 index 3d06107..0000000 --- a/libs/es-client/src/protobufs/cosmwasm/wasm/v1/types_pb.ts +++ /dev/null @@ -1,527 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file cosmwasm/wasm/v1/types.proto (package cosmwasm.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * AccessType permission types - * - * @generated from enum cosmwasm.wasm.v1.AccessType - */ -export enum AccessType { - /** - * AccessTypeUnspecified placeholder for empty value - * - * @generated from enum value: ACCESS_TYPE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * AccessTypeNobody forbidden - * - * @generated from enum value: ACCESS_TYPE_NOBODY = 1; - */ - NOBODY = 1, - - /** - * AccessTypeEverybody unrestricted - * - * @generated from enum value: ACCESS_TYPE_EVERYBODY = 3; - */ - EVERYBODY = 3, - - /** - * AccessTypeAnyOfAddresses allow any of the addresses - * - * @generated from enum value: ACCESS_TYPE_ANY_OF_ADDRESSES = 4; - */ - ANY_OF_ADDRESSES = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(AccessType) -proto3.util.setEnumType(AccessType, "cosmwasm.wasm.v1.AccessType", [ - { no: 0, name: "ACCESS_TYPE_UNSPECIFIED" }, - { no: 1, name: "ACCESS_TYPE_NOBODY" }, - { no: 3, name: "ACCESS_TYPE_EVERYBODY" }, - { no: 4, name: "ACCESS_TYPE_ANY_OF_ADDRESSES" }, -]); - -/** - * ContractCodeHistoryOperationType actions that caused a code change - * - * @generated from enum cosmwasm.wasm.v1.ContractCodeHistoryOperationType - */ -export enum ContractCodeHistoryOperationType { - /** - * ContractCodeHistoryOperationTypeUnspecified placeholder for empty value - * - * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * ContractCodeHistoryOperationTypeInit on chain contract instantiation - * - * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1; - */ - INIT = 1, - - /** - * ContractCodeHistoryOperationTypeMigrate code migration - * - * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2; - */ - MIGRATE = 2, - - /** - * ContractCodeHistoryOperationTypeGenesis based on genesis data - * - * @generated from enum value: CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3; - */ - GENESIS = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(ContractCodeHistoryOperationType) -proto3.util.setEnumType(ContractCodeHistoryOperationType, "cosmwasm.wasm.v1.ContractCodeHistoryOperationType", [ - { no: 0, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED" }, - { no: 1, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT" }, - { no: 2, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE" }, - { no: 3, name: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS" }, -]); - -/** - * AccessTypeParam - * - * @generated from message cosmwasm.wasm.v1.AccessTypeParam - */ -export class AccessTypeParam extends Message { - /** - * @generated from field: cosmwasm.wasm.v1.AccessType value = 1; - */ - value = AccessType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.AccessTypeParam"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "enum", T: proto3.getEnumType(AccessType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccessTypeParam { - return new AccessTypeParam().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccessTypeParam { - return new AccessTypeParam().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccessTypeParam { - return new AccessTypeParam().fromJsonString(jsonString, options); - } - - static equals(a: AccessTypeParam | PlainMessage | undefined, b: AccessTypeParam | PlainMessage | undefined): boolean { - return proto3.util.equals(AccessTypeParam, a, b); - } -} - -/** - * AccessConfig access control type. - * - * @generated from message cosmwasm.wasm.v1.AccessConfig - */ -export class AccessConfig extends Message { - /** - * @generated from field: cosmwasm.wasm.v1.AccessType permission = 1; - */ - permission = AccessType.UNSPECIFIED; - - /** - * @generated from field: repeated string addresses = 3; - */ - addresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.AccessConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "permission", kind: "enum", T: proto3.getEnumType(AccessType) }, - { no: 3, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccessConfig { - return new AccessConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccessConfig { - return new AccessConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccessConfig { - return new AccessConfig().fromJsonString(jsonString, options); - } - - static equals(a: AccessConfig | PlainMessage | undefined, b: AccessConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(AccessConfig, a, b); - } -} - -/** - * Params defines the set of wasm parameters. - * - * @generated from message cosmwasm.wasm.v1.Params - */ -export class Params extends Message { - /** - * @generated from field: cosmwasm.wasm.v1.AccessConfig code_upload_access = 1; - */ - codeUploadAccess?: AccessConfig; - - /** - * @generated from field: cosmwasm.wasm.v1.AccessType instantiate_default_permission = 2; - */ - instantiateDefaultPermission = AccessType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_upload_access", kind: "message", T: AccessConfig }, - { no: 2, name: "instantiate_default_permission", kind: "enum", T: proto3.getEnumType(AccessType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * CodeInfo is data for the uploaded contract WASM code - * - * @generated from message cosmwasm.wasm.v1.CodeInfo - */ -export class CodeInfo extends Message { - /** - * CodeHash is the unique identifier created by wasmvm - * - * @generated from field: bytes code_hash = 1; - */ - codeHash = new Uint8Array(0); - - /** - * Creator address who initially stored the code - * - * @generated from field: string creator = 2; - */ - creator = ""; - - /** - * InstantiateConfig access control to apply on contract creation, optional - * - * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_config = 5; - */ - instantiateConfig?: AccessConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.CodeInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "instantiate_config", kind: "message", T: AccessConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CodeInfo { - return new CodeInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CodeInfo { - return new CodeInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CodeInfo { - return new CodeInfo().fromJsonString(jsonString, options); - } - - static equals(a: CodeInfo | PlainMessage | undefined, b: CodeInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(CodeInfo, a, b); - } -} - -/** - * ContractInfo stores a WASM contract instance - * - * @generated from message cosmwasm.wasm.v1.ContractInfo - */ -export class ContractInfo extends Message { - /** - * CodeID is the reference to the stored Wasm code - * - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * Creator address who initially instantiated the contract - * - * @generated from field: string creator = 2; - */ - creator = ""; - - /** - * Admin is an optional address that can execute migrations - * - * @generated from field: string admin = 3; - */ - admin = ""; - - /** - * Label is optional metadata to be stored with a contract instance. - * - * @generated from field: string label = 4; - */ - label = ""; - - /** - * Created Tx position when the contract was instantiated. - * - * @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition created = 5; - */ - created?: AbsoluteTxPosition; - - /** - * @generated from field: string ibc_port_id = 6; - */ - ibcPortId = ""; - - /** - * Extension is an extension point to store custom metadata within the - * persistence model. - * - * @generated from field: google.protobuf.Any extension = 7; - */ - extension?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.ContractInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "created", kind: "message", T: AbsoluteTxPosition }, - { no: 6, name: "ibc_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "extension", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContractInfo { - return new ContractInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContractInfo { - return new ContractInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContractInfo { - return new ContractInfo().fromJsonString(jsonString, options); - } - - static equals(a: ContractInfo | PlainMessage | undefined, b: ContractInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ContractInfo, a, b); - } -} - -/** - * ContractCodeHistoryEntry metadata to a contract. - * - * @generated from message cosmwasm.wasm.v1.ContractCodeHistoryEntry - */ -export class ContractCodeHistoryEntry extends Message { - /** - * @generated from field: cosmwasm.wasm.v1.ContractCodeHistoryOperationType operation = 1; - */ - operation = ContractCodeHistoryOperationType.UNSPECIFIED; - - /** - * CodeID is the reference to the stored WASM code - * - * @generated from field: uint64 code_id = 2; - */ - codeId = protoInt64.zero; - - /** - * Updated Tx position when the operation was executed. - * - * @generated from field: cosmwasm.wasm.v1.AbsoluteTxPosition updated = 3; - */ - updated?: AbsoluteTxPosition; - - /** - * @generated from field: bytes msg = 4; - */ - msg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.ContractCodeHistoryEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "operation", kind: "enum", T: proto3.getEnumType(ContractCodeHistoryOperationType) }, - { no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "updated", kind: "message", T: AbsoluteTxPosition }, - { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContractCodeHistoryEntry { - return new ContractCodeHistoryEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContractCodeHistoryEntry { - return new ContractCodeHistoryEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContractCodeHistoryEntry { - return new ContractCodeHistoryEntry().fromJsonString(jsonString, options); - } - - static equals(a: ContractCodeHistoryEntry | PlainMessage | undefined, b: ContractCodeHistoryEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(ContractCodeHistoryEntry, a, b); - } -} - -/** - * AbsoluteTxPosition is a unique transaction position that allows for global - * ordering of transactions. - * - * @generated from message cosmwasm.wasm.v1.AbsoluteTxPosition - */ -export class AbsoluteTxPosition extends Message { - /** - * BlockHeight is the block the contract was created at - * - * @generated from field: uint64 block_height = 1; - */ - blockHeight = protoInt64.zero; - - /** - * TxIndex is a monotonic counter within the block (actual transaction index, - * or gas consumed) - * - * @generated from field: uint64 tx_index = 2; - */ - txIndex = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.AbsoluteTxPosition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AbsoluteTxPosition { - return new AbsoluteTxPosition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AbsoluteTxPosition { - return new AbsoluteTxPosition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AbsoluteTxPosition { - return new AbsoluteTxPosition().fromJsonString(jsonString, options); - } - - static equals(a: AbsoluteTxPosition | PlainMessage | undefined, b: AbsoluteTxPosition | PlainMessage | undefined): boolean { - return proto3.util.equals(AbsoluteTxPosition, a, b); - } -} - -/** - * Model is a struct that holds a KV pair - * - * @generated from message cosmwasm.wasm.v1.Model - */ -export class Model extends Message { - /** - * hex-encode key to read it better (this is often ascii) - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * base64-encode raw value - * - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "cosmwasm.wasm.v1.Model"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Model { - return new Model().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Model { - return new Model().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Model { - return new Model().fromJsonString(jsonString, options); - } - - static equals(a: Model | PlainMessage | undefined, b: Model | PlainMessage | undefined): boolean { - return proto3.util.equals(Model, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/did/module/v1/module_pb.ts b/libs/es-client/src/protobufs/did/module/v1/module_pb.ts deleted file mode 100644 index 9a3082c..0000000 --- a/libs/es-client/src/protobufs/did/module/v1/module_pb.ts +++ /dev/null @@ -1,42 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file did/module/v1/module.proto (package did.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the app config object of the module. - * Learn more: https://docs.cosmos.network/main/building-modules/depinject - * - * @generated from message did.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/did/v1/genesis_pb.ts b/libs/es-client/src/protobufs/did/v1/genesis_pb.ts deleted file mode 100644 index 80ca7b3..0000000 --- a/libs/es-client/src/protobufs/did/v1/genesis_pb.ts +++ /dev/null @@ -1,159 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file did/v1/genesis.proto (package did.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * GenesisState defines the module genesis state - * - * @generated from message did.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * Params defines all the parameters of the module. - * - * @generated from field: did.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * Document defines a DID document - * - * @generated from message did.v1.Document - */ -export class Document extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * The DID of the controller - * - * @generated from field: string controller = 2; - */ - controller = ""; - - /** - * @generated from field: repeated string authentication = 3; - */ - authentication: string[] = []; - - /** - * @generated from field: repeated string assertion_method = 4; - */ - assertionMethod: string[] = []; - - /** - * @generated from field: repeated string capability_delegation = 5; - */ - capabilityDelegation: string[] = []; - - /** - * @generated from field: repeated string capability_invocation = 6; - */ - capabilityInvocation: string[] = []; - - /** - * @generated from field: repeated string service = 7; - */ - service: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.Document"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "authentication", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "assertion_method", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "capability_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "capability_invocation", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 7, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Document { - return new Document().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Document { - return new Document().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Document { - return new Document().fromJsonString(jsonString, options); - } - - static equals(a: Document | PlainMessage | undefined, b: Document | PlainMessage | undefined): boolean { - return proto3.util.equals(Document, a, b); - } -} - -/** - * Params defines the set of module parameters. - * - * @generated from message did.v1.Params - */ -export class Params extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/did/v1/query_cosmes.ts b/libs/es-client/src/protobufs/did/v1/query_cosmes.ts deleted file mode 100644 index c15da5e..0000000 --- a/libs/es-client/src/protobufs/did/v1/query_cosmes.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file did/v1/query.proto (package did.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryParamsResponse, QueryRequest, QueryResolveResponse, QueryVerifyRequest, QueryVerifyResponse } from "./query_pb.js"; - -const TYPE_NAME = "did.v1.Query"; - -/** - * Params queries all parameters of the module. - * - * @generated from rpc did.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Resolve queries the DID document by its id. - * - * @generated from rpc did.v1.Query.Resolve - */ -export const QueryResolveService = { - typeName: TYPE_NAME, - method: "Resolve", - Request: QueryRequest, - Response: QueryResolveResponse, -} as const; - -/** - * Verify verifies a message with the DID document - * - * @generated from rpc did.v1.Query.Verify - */ -export const QueryVerifyService = { - typeName: TYPE_NAME, - method: "Verify", - Request: QueryVerifyRequest, - Response: QueryVerifyResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/did/v1/query_pb.ts b/libs/es-client/src/protobufs/did/v1/query_pb.ts deleted file mode 100644 index 47b2fac..0000000 --- a/libs/es-client/src/protobufs/did/v1/query_pb.ts +++ /dev/null @@ -1,362 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file did/v1/query.proto (package did.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Document, Params } from "./genesis_pb.js"; - -/** - * Queryequest is the request type for the Query/Params RPC method. - * - * @generated from message did.v1.QueryRequest - */ -export class QueryRequest extends Message { - /** - * @generated from field: string did = 1; - */ - did = ""; - - /** - * @generated from field: string origin = 2; - */ - origin = ""; - - /** - * @generated from field: string key = 3; - */ - key = ""; - - /** - * @generated from field: string asset = 4; - */ - asset = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.QueryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest { - return new QueryRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest { - return new QueryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRequest { - return new QueryRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message did.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: did.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryResolveResponse is the response type for the Query/Resolve RPC method. - * - * @generated from message did.v1.QueryResolveResponse - */ -export class QueryResolveResponse extends Message { - /** - * document is the DID document - * - * @generated from field: did.v1.Document document = 1; - */ - document?: Document; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.QueryResolveResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "document", kind: "message", T: Document }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryResolveResponse { - return new QueryResolveResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryResolveResponse { - return new QueryResolveResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryResolveResponse { - return new QueryResolveResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryResolveResponse | PlainMessage | undefined, b: QueryResolveResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryResolveResponse, a, b); - } -} - -/** - * QuerySignRequest is the request type for the Query/Sign RPC method. - * - * @generated from message did.v1.QuerySignRequest - */ -export class QuerySignRequest extends Message { - /** - * @generated from field: string did = 1; - */ - did = ""; - - /** - * @generated from field: string origin = 2; - */ - origin = ""; - - /** - * @generated from field: string key = 3; - */ - key = ""; - - /** - * @generated from field: string asset = 4; - */ - asset = ""; - - /** - * @generated from field: string message = 5; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.QuerySignRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySignRequest { - return new QuerySignRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySignRequest { - return new QuerySignRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySignRequest { - return new QuerySignRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySignRequest | PlainMessage | undefined, b: QuerySignRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySignRequest, a, b); - } -} - -/** - * QuerySignResponse is the response type for the Query/Sign RPC method. - * - * @generated from message did.v1.QuerySignResponse - */ -export class QuerySignResponse extends Message { - /** - * signature is the signature of the message - * - * @generated from field: string signature = 1; - */ - signature = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.QuerySignResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySignResponse { - return new QuerySignResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySignResponse { - return new QuerySignResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySignResponse { - return new QuerySignResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySignResponse | PlainMessage | undefined, b: QuerySignResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySignResponse, a, b); - } -} - -/** - * QueryVerifyRequest is the request type for the Query/Verify RPC method. - * - * @generated from message did.v1.QueryVerifyRequest - */ -export class QueryVerifyRequest extends Message { - /** - * @generated from field: string did = 1; - */ - did = ""; - - /** - * @generated from field: string origin = 2; - */ - origin = ""; - - /** - * @generated from field: string key = 3; - */ - key = ""; - - /** - * @generated from field: string asset = 4; - */ - asset = ""; - - /** - * @generated from field: string message = 5; - */ - message = ""; - - /** - * @generated from field: string signature = 6; - */ - signature = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.QueryVerifyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyRequest { - return new QueryVerifyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyRequest { - return new QueryVerifyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVerifyRequest { - return new QueryVerifyRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVerifyRequest | PlainMessage | undefined, b: QueryVerifyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVerifyRequest, a, b); - } -} - -/** - * QueryVerifyResponse is the response type for the Query/Verify RPC method. - * - * @generated from message did.v1.QueryVerifyResponse - */ -export class QueryVerifyResponse extends Message { - /** - * valid is the validity of the signature - * - * @generated from field: bool valid = 1; - */ - valid = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.QueryVerifyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "valid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyResponse { - return new QueryVerifyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyResponse { - return new QueryVerifyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVerifyResponse { - return new QueryVerifyResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVerifyResponse | PlainMessage | undefined, b: QueryVerifyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVerifyResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/did/v1/state_pb.ts b/libs/es-client/src/protobufs/did/v1/state_pb.ts deleted file mode 100644 index 6bd683d..0000000 --- a/libs/es-client/src/protobufs/did/v1/state_pb.ts +++ /dev/null @@ -1,305 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file did/v1/state.proto (package did.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message did.v1.Account - */ -export class Account extends Message { - /** - * The unique identifier of the assertion - * - * @generated from field: string did = 1; - */ - did = ""; - - /** - * The authentication of the DID - * - * @generated from field: string controller = 2; - */ - controller = ""; - - /** - * Origin of the authentication - * - * @generated from field: string subject = 3; - */ - subject = ""; - - /** - * string is the verification method - * - * @generated from field: string public_key_hex = 4; - */ - publicKeyHex = ""; - - /** - * AssertionType is the assertion type - * - * @generated from field: string assertion_type = 5; - */ - assertionType = ""; - - /** - * Metadata of the authentication - * - * @generated from field: map accumulator = 6; - */ - accumulator: { [key: string]: Uint8Array } = {}; - - /** - * CreationBlock is the block number of the creation of the authentication - * - * @generated from field: int64 creation_block = 7; - */ - creationBlock = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.Account"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "public_key_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "assertion_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "accumulator", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 12 /* ScalarType.BYTES */} }, - { no: 7, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Account { - return new Account().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Account { - return new Account().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Account { - return new Account().fromJsonString(jsonString, options); - } - - static equals(a: Account | PlainMessage | undefined, b: Account | PlainMessage | undefined): boolean { - return proto3.util.equals(Account, a, b); - } -} - -/** - * PublicKey represents a public key - * - * @generated from message did.v1.PublicKey - */ -export class PublicKey extends Message { - /** - * The unique identifier of the controller - * - * @generated from field: uint64 number = 1; - */ - number = protoInt64.zero; - - /** - * The unique identifier of the controller - * - * @generated from field: string did = 2; - */ - did = ""; - - /** - * The DID of the controller - * - * @generated from field: string sonr_address = 3; - */ - sonrAddress = ""; - - /** - * The DID of the controller - * - * @generated from field: string eth_address = 4; - */ - ethAddress = ""; - - /** - * The DID of the controller - * - * @generated from field: string btc_address = 5; - */ - btcAddress = ""; - - /** - * string is the verification method - * - * @generated from field: string public_key_hex = 6; - */ - publicKeyHex = ""; - - /** - * Pointer to the Keyshares - * - * @generated from field: string ks_val = 7; - */ - ksVal = ""; - - /** - * The block number of when a user claimed the controller - * - * @generated from field: int64 claimed_block = 8; - */ - claimedBlock = protoInt64.zero; - - /** - * CreationBlock is the block number of the creation of the controller - * - * @generated from field: int64 creation_block = 9; - */ - creationBlock = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.PublicKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sonr_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "eth_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "btc_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "public_key_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "ks_val", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "claimed_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 9, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PublicKey { - return new PublicKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PublicKey { - return new PublicKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PublicKey { - return new PublicKey().fromJsonString(jsonString, options); - } - - static equals(a: PublicKey | PlainMessage | undefined, b: PublicKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PublicKey, a, b); - } -} - -/** - * Verification represents a verification method - * - * @generated from message did.v1.Verification - */ -export class Verification extends Message { - /** - * The unique identifier of the verification - * - * @generated from field: string did = 1; - */ - did = ""; - - /** - * The controller of the verification - * - * @generated from field: string controller = 2; - */ - controller = ""; - - /** - * The DIDNamespace of the verification - * - * @generated from field: string did_method = 3; - */ - didMethod = ""; - - /** - * The value of the linked identifier - * - * @generated from field: string issuer = 4; - */ - issuer = ""; - - /** - * The subject of the verification - * - * @generated from field: string subject = 5; - */ - subject = ""; - - /** - * The public key of the verification - * - * @generated from field: string public_key_hex = 6; - */ - publicKeyHex = ""; - - /** - * The verification method type - * - * @generated from field: string verification_type = 7; - */ - verificationType = ""; - - /** - * Metadata of the verification - * - * @generated from field: map metadata = 8; - */ - metadata: { [key: string]: string } = {}; - - /** - * CreationBlock is the block number of the creation of the controller - * - * @generated from field: int64 creation_block = 9; - */ - creationBlock = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.Verification"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "did_method", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "public_key_hex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "verification_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 9, name: "creation_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Verification { - return new Verification().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Verification { - return new Verification().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Verification { - return new Verification().fromJsonString(jsonString, options); - } - - static equals(a: Verification | PlainMessage | undefined, b: Verification | PlainMessage | undefined): boolean { - return proto3.util.equals(Verification, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/did/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/did/v1/tx_cosmes.ts deleted file mode 100644 index dbcbba0..0000000 --- a/libs/es-client/src/protobufs/did/v1/tx_cosmes.ts +++ /dev/null @@ -1,82 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file did/v1/tx.proto (package did.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgExecuteTx, MsgExecuteTxResponse, MsgLinkAssertion, MsgLinkAssertionResponse, MsgLinkAuthentication, MsgLinkAuthenticationResponse, MsgUnlinkAssertion, MsgUnlinkAssertionResponse, MsgUnlinkAuthentication, MsgUnlinkAuthenticationResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "did.v1.Msg"; - -/** - * ExecuteTx executes a transaction on the Sonr Blockchain. It leverages - * Macaroon for verification. - * - * @generated from rpc did.v1.Msg.ExecuteTx - */ -export const MsgExecuteTxService = { - typeName: TYPE_NAME, - method: "ExecuteTx", - Request: MsgExecuteTx, - Response: MsgExecuteTxResponse, -} as const; - -/** - * LinkAssertion links an assertion to a controller. - * - * @generated from rpc did.v1.Msg.LinkAssertion - */ -export const MsgLinkAssertionService = { - typeName: TYPE_NAME, - method: "LinkAssertion", - Request: MsgLinkAssertion, - Response: MsgLinkAssertionResponse, -} as const; - -/** - * LinkAuthentication links an authentication to a controller. - * - * @generated from rpc did.v1.Msg.LinkAuthentication - */ -export const MsgLinkAuthenticationService = { - typeName: TYPE_NAME, - method: "LinkAuthentication", - Request: MsgLinkAuthentication, - Response: MsgLinkAuthenticationResponse, -} as const; - -/** - * UnlinkAssertion unlinks an assertion from a controller. - * - * @generated from rpc did.v1.Msg.UnlinkAssertion - */ -export const MsgUnlinkAssertionService = { - typeName: TYPE_NAME, - method: "UnlinkAssertion", - Request: MsgUnlinkAssertion, - Response: MsgUnlinkAssertionResponse, -} as const; - -/** - * UnlinkAuthentication unlinks an authentication from a controller. - * - * @generated from rpc did.v1.Msg.UnlinkAuthentication - */ -export const MsgUnlinkAuthenticationService = { - typeName: TYPE_NAME, - method: "UnlinkAuthentication", - Request: MsgUnlinkAuthentication, - Response: MsgUnlinkAuthenticationResponse, -} as const; - -/** - * UpdateParams defines a governance operation for updating the parameters. - * - * @generated from rpc did.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/did/v1/tx_pb.ts b/libs/es-client/src/protobufs/did/v1/tx_pb.ts deleted file mode 100644 index 81768bb..0000000 --- a/libs/es-client/src/protobufs/did/v1/tx_pb.ts +++ /dev/null @@ -1,662 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file did/v1/tx.proto (package did.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./genesis_pb.js"; - -/** - * MsgLinkAuthentication is the message type for the LinkAuthentication RPC. - * - * @generated from message did.v1.MsgLinkAuthentication - */ -export class MsgLinkAuthentication extends Message { - /** - * Controller is the address of the controller to authenticate. - * - * @generated from field: string controller = 1; - */ - controller = ""; - - /** - * Subject is the subject of the authentication. - * - * @generated from field: string subject = 2; - */ - subject = ""; - - /** - * Assertion is the assertion of the authentication. - * - * @generated from field: string assertion = 3; - */ - assertion = ""; - - /** - * Authentication is the authentication of the authentication. - * - * @generated from field: bytes credential_id = 4; - */ - credentialId = new Uint8Array(0); - - /** - * token is the macron token to authenticate the operation. - * - * @generated from field: string macaroon_token = 5; - */ - macaroonToken = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgLinkAuthentication"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "assertion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "credential_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAuthentication { - return new MsgLinkAuthentication().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAuthentication { - return new MsgLinkAuthentication().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLinkAuthentication { - return new MsgLinkAuthentication().fromJsonString(jsonString, options); - } - - static equals(a: MsgLinkAuthentication | PlainMessage | undefined, b: MsgLinkAuthentication | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLinkAuthentication, a, b); - } -} - -/** - * MsgLinkAuthenticationResponse is the response type for the - * LinkAuthentication RPC. - * - * @generated from message did.v1.MsgLinkAuthenticationResponse - */ -export class MsgLinkAuthenticationResponse extends Message { - /** - * Success returns true if the specified cid is valid and not already - * encrypted. - * - * @generated from field: bool success = 1; - */ - success = false; - - /** - * Controller is the address of the initialized controller. - * - * @generated from field: string did = 2; - */ - did = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgLinkAuthenticationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAuthenticationResponse { - return new MsgLinkAuthenticationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAuthenticationResponse { - return new MsgLinkAuthenticationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLinkAuthenticationResponse { - return new MsgLinkAuthenticationResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgLinkAuthenticationResponse | PlainMessage | undefined, b: MsgLinkAuthenticationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLinkAuthenticationResponse, a, b); - } -} - -/** - * MsgLinkAssertion is the message type for the LinkAssertion RPC. - * - * @generated from message did.v1.MsgLinkAssertion - */ -export class MsgLinkAssertion extends Message { - /** - * Controller is the address of the controller to authenticate. - * - * @generated from field: string controller = 1; - */ - controller = ""; - - /** - * Subject is the subject of the authentication. - * - * @generated from field: string subject = 2; - */ - subject = ""; - - /** - * Assertion is the assertion of the authentication. - * - * @generated from field: string assertion = 3; - */ - assertion = ""; - - /** - * token is the macron token to authenticate the operation. - * - * @generated from field: string macaroon_token = 4; - */ - macaroonToken = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgLinkAssertion"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "assertion", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAssertion { - return new MsgLinkAssertion().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAssertion { - return new MsgLinkAssertion().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLinkAssertion { - return new MsgLinkAssertion().fromJsonString(jsonString, options); - } - - static equals(a: MsgLinkAssertion | PlainMessage | undefined, b: MsgLinkAssertion | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLinkAssertion, a, b); - } -} - -/** - * MsgLinkAssertionResponse is the response type for the - * LinkAssertion RPC. - * - * @generated from message did.v1.MsgLinkAssertionResponse - */ -export class MsgLinkAssertionResponse extends Message { - /** - * Success returns true if the specified cid is valid and not already - * encrypted. - * - * @generated from field: bool success = 1; - */ - success = false; - - /** - * Controller is the address of the initialized controller. - * - * @generated from field: string did = 2; - */ - did = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgLinkAssertionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLinkAssertionResponse { - return new MsgLinkAssertionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLinkAssertionResponse { - return new MsgLinkAssertionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLinkAssertionResponse { - return new MsgLinkAssertionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgLinkAssertionResponse | PlainMessage | undefined, b: MsgLinkAssertionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLinkAssertionResponse, a, b); - } -} - -/** - * MsgExecuteTx is the message type for the ExecuteTx RPC. - * - * @generated from message did.v1.MsgExecuteTx - */ -export class MsgExecuteTx extends Message { - /** - * Controller is the address of the controller to authenticate. - * - * @generated from field: string controller = 1; - */ - controller = ""; - - /** - * Messages is the list of messages to execute. - * - * @generated from field: map messages = 2; - */ - messages: { [key: string]: Uint8Array } = {}; - - /** - * MacaroonToken is the macaroon token to authenticate the operation. - * - * @generated from field: string macaroon_token = 3; - */ - macaroonToken = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgExecuteTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "messages", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 12 /* ScalarType.BYTES */} }, - { no: 3, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteTx { - return new MsgExecuteTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteTx { - return new MsgExecuteTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecuteTx { - return new MsgExecuteTx().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecuteTx | PlainMessage | undefined, b: MsgExecuteTx | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecuteTx, a, b); - } -} - -/** - * MsgExecuteTxResponse is the response type for the ExecuteTx RPC. - * - * @generated from message did.v1.MsgExecuteTxResponse - */ -export class MsgExecuteTxResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - /** - * @generated from field: string tx_hash = 2; - */ - txHash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgExecuteTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteTxResponse { - return new MsgExecuteTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteTxResponse { - return new MsgExecuteTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExecuteTxResponse { - return new MsgExecuteTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExecuteTxResponse | PlainMessage | undefined, b: MsgExecuteTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExecuteTxResponse, a, b); - } -} - -/** - * MsgUnlinkAssertion is the message type for the UnlinkAssertion RPC. - * - * @generated from message did.v1.MsgUnlinkAssertion - */ -export class MsgUnlinkAssertion extends Message { - /** - * Controller is the address of the controller to authenticate. - * - * @generated from field: string controller = 1; - */ - controller = ""; - - /** - * Assertion is the assertion of the authentication. - * - * @generated from field: string assertion_did = 2; - */ - assertionDid = ""; - - /** - * token is the macron token to authenticate the operation. - * - * @generated from field: string macaroon_token = 3; - */ - macaroonToken = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgUnlinkAssertion"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "assertion_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAssertion { - return new MsgUnlinkAssertion().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAssertion { - return new MsgUnlinkAssertion().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAssertion { - return new MsgUnlinkAssertion().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlinkAssertion | PlainMessage | undefined, b: MsgUnlinkAssertion | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlinkAssertion, a, b); - } -} - -/** - * MsgUnlinkAssertionResponse is the response type for the - * UnlinkAssertion RPC. - * - * @generated from message did.v1.MsgUnlinkAssertionResponse - */ -export class MsgUnlinkAssertionResponse extends Message { - /** - * Success returns true if the specified cid is valid and not already - * encrypted. - * - * @generated from field: bool success = 1; - */ - success = false; - - /** - * Controller is the address of the initialized controller. - * - * @generated from field: string did = 2; - */ - did = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgUnlinkAssertionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAssertionResponse { - return new MsgUnlinkAssertionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAssertionResponse { - return new MsgUnlinkAssertionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAssertionResponse { - return new MsgUnlinkAssertionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlinkAssertionResponse | PlainMessage | undefined, b: MsgUnlinkAssertionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlinkAssertionResponse, a, b); - } -} - -/** - * MsgUnlinkAuthentication is the message type for the UnlinkAuthentication RPC. - * - * @generated from message did.v1.MsgUnlinkAuthentication - */ -export class MsgUnlinkAuthentication extends Message { - /** - * Controller is the address of the controller to authenticate. - * - * @generated from field: string controller = 1; - */ - controller = ""; - - /** - * Subject is the subject of the authentication. - * - * @generated from field: string authentication_did = 2; - */ - authenticationDid = ""; - - /** - * token is the macron token to authenticate the operation. - * - * @generated from field: string macaroon_token = 3; - */ - macaroonToken = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgUnlinkAuthentication"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authentication_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "macaroon_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAuthentication { - return new MsgUnlinkAuthentication().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAuthentication { - return new MsgUnlinkAuthentication().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAuthentication { - return new MsgUnlinkAuthentication().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlinkAuthentication | PlainMessage | undefined, b: MsgUnlinkAuthentication | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlinkAuthentication, a, b); - } -} - -/** - * MsgUnlinkAuthenticationResponse is the response type for the - * UnlinkAuthentication RPC. - * - * @generated from message did.v1.MsgUnlinkAuthenticationResponse - */ -export class MsgUnlinkAuthenticationResponse extends Message { - /** - * Success returns true if the specified cid is valid and not already - * encrypted. - * - * @generated from field: bool success = 1; - */ - success = false; - - /** - * Controller is the address of the initialized controller. - * - * @generated from field: string did = 2; - */ - did = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgUnlinkAuthenticationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlinkAuthenticationResponse { - return new MsgUnlinkAuthenticationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlinkAuthenticationResponse { - return new MsgUnlinkAuthenticationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlinkAuthenticationResponse { - return new MsgUnlinkAuthenticationResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlinkAuthenticationResponse | PlainMessage | undefined, b: MsgUnlinkAuthenticationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlinkAuthenticationResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message did.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the parameters to update. - * - * @generated from field: did.v1.Params params = 2; - */ - params?: Params; - - /** - * token is the macron token to authenticate the operation. - * - * @generated from field: string token = 3; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message did.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "did.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/dwn/module/v1/module_pb.ts b/libs/es-client/src/protobufs/dwn/module/v1/module_pb.ts deleted file mode 100644 index e1731a5..0000000 --- a/libs/es-client/src/protobufs/dwn/module/v1/module_pb.ts +++ /dev/null @@ -1,42 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file dwn/module/v1/module.proto (package dwn.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the app config object of the module. - * Learn more: https://docs.cosmos.network/main/building-modules/depinject - * - * @generated from message dwn.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/dwn/v1/genesis_pb.ts b/libs/es-client/src/protobufs/dwn/v1/genesis_pb.ts deleted file mode 100644 index 8906794..0000000 --- a/libs/es-client/src/protobufs/dwn/v1/genesis_pb.ts +++ /dev/null @@ -1,376 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file dwn/v1/genesis.proto (package dwn.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * GenesisState defines the module genesis state - * - * @generated from message dwn.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * Params defines all the parameters of the module. - * - * @generated from field: dwn.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * Params defines the set of module parameters. - * - * @generated from message dwn.v1.Params - */ -export class Params extends Message { - /** - * Whitelisted Key Types - * - * @generated from field: map allowed_public_keys = 1; - */ - allowedPublicKeys: { [key: string]: KeyInfo } = {}; - - /** - * ConveyancePreference defines the conveyance preference - * - * @generated from field: string conveyance_preference = 2; - */ - conveyancePreference = ""; - - /** - * AttestationFormats defines the attestation formats - * - * @generated from field: repeated string attestation_formats = 3; - */ - attestationFormats: string[] = []; - - /** - * @generated from field: dwn.v1.Schema schema = 4; - */ - schema?: Schema; - - /** - * @generated from field: repeated string allowed_operators = 5; - */ - allowedOperators: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowed_public_keys", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: KeyInfo} }, - { no: 2, name: "conveyance_preference", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "attestation_formats", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "schema", kind: "message", T: Schema }, - { no: 5, name: "allowed_operators", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * Capability reprensents the available capabilities of a decentralized web node - * - * @generated from message dwn.v1.Capability - */ -export class Capability extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: string parent = 2; - */ - parent = ""; - - /** - * @generated from field: string description = 3; - */ - description = ""; - - /** - * @generated from field: repeated string resources = 4; - */ - resources: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.Capability"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "parent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "resources", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Capability { - return new Capability().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Capability { - return new Capability().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Capability { - return new Capability().fromJsonString(jsonString, options); - } - - static equals(a: Capability | PlainMessage | undefined, b: Capability | PlainMessage | undefined): boolean { - return proto3.util.equals(Capability, a, b); - } -} - -/** - * KeyInfo defines information for accepted PubKey types - * - * @generated from message dwn.v1.KeyInfo - */ -export class KeyInfo extends Message { - /** - * @generated from field: string role = 1; - */ - role = ""; - - /** - * e.g., "ES256", "EdDSA", "ES256K" - * - * @generated from field: string algorithm = 2; - */ - algorithm = ""; - - /** - * e.g., "hex", "base64", "multibase" - * - * @generated from field: string encoding = 3; - */ - encoding = ""; - - /** - * e.g., "P256", "P384", "P521", "X25519", "X448", - * - * @generated from field: string curve = 4; - */ - curve = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.KeyInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "algorithm", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "encoding", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "curve", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): KeyInfo { - return new KeyInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): KeyInfo { - return new KeyInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): KeyInfo { - return new KeyInfo().fromJsonString(jsonString, options); - } - - static equals(a: KeyInfo | PlainMessage | undefined, b: KeyInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(KeyInfo, a, b); - } -} - -/** - * Resource reprensents the available resources of a decentralized web node - * - * @generated from message dwn.v1.Resource - */ -export class Resource extends Message { - /** - * @generated from field: string kind = 1; - */ - kind = ""; - - /** - * @generated from field: string template = 2; - */ - template = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.Resource"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "template", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Resource { - return new Resource().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Resource { - return new Resource().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Resource { - return new Resource().fromJsonString(jsonString, options); - } - - static equals(a: Resource | PlainMessage | undefined, b: Resource | PlainMessage | undefined): boolean { - return proto3.util.equals(Resource, a, b); - } -} - -/** - * Schema is the Database Model for Decentralized Web Nodes - * - * @generated from message dwn.v1.Schema - */ -export class Schema extends Message { - /** - * @generated from field: int32 version = 1; - */ - version = 0; - - /** - * @generated from field: string account = 2; - */ - account = ""; - - /** - * @generated from field: string asset = 3; - */ - asset = ""; - - /** - * @generated from field: string chain = 4; - */ - chain = ""; - - /** - * @generated from field: string credential = 5; - */ - credential = ""; - - /** - * @generated from field: string did = 6; - */ - did = ""; - - /** - * @generated from field: string jwk = 7; - */ - jwk = ""; - - /** - * @generated from field: string grant = 8; - */ - grant = ""; - - /** - * @generated from field: string keyshare = 9; - */ - keyshare = ""; - - /** - * @generated from field: string profile = 10; - */ - profile = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.Schema"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "jwk", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "grant", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "keyshare", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "profile", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Schema { - return new Schema().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Schema { - return new Schema().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Schema { - return new Schema().fromJsonString(jsonString, options); - } - - static equals(a: Schema | PlainMessage | undefined, b: Schema | PlainMessage | undefined): boolean { - return proto3.util.equals(Schema, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/dwn/v1/query_cosmes.ts b/libs/es-client/src/protobufs/dwn/v1/query_cosmes.ts deleted file mode 100644 index de382ef..0000000 --- a/libs/es-client/src/protobufs/dwn/v1/query_cosmes.ts +++ /dev/null @@ -1,60 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file dwn/v1/query.proto (package dwn.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAllocateRequest, QueryAllocateResponse, QueryParamsRequest, QueryParamsResponse, QuerySchemaRequest, QuerySchemaResponse, QuerySyncRequest, QuerySyncResponse } from "./query_pb.js"; - -const TYPE_NAME = "dwn.v1.Query"; - -/** - * Params queries all parameters of the module. - * - * @generated from rpc dwn.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Schema queries the DID document by its id. And returns the required PKL - * information - * - * @generated from rpc dwn.v1.Query.Schema - */ -export const QuerySchemaService = { - typeName: TYPE_NAME, - method: "Schema", - Request: QuerySchemaRequest, - Response: QuerySchemaResponse, -} as const; - -/** - * Allocate initializes a Target Vault available for claims with a compatible - * Authentication mechanism. The default authentication mechanism is WebAuthn. - * - * @generated from rpc dwn.v1.Query.Allocate - */ -export const QueryAllocateService = { - typeName: TYPE_NAME, - method: "Allocate", - Request: QueryAllocateRequest, - Response: QueryAllocateResponse, -} as const; - -/** - * Sync queries the DID document by its id. And returns the required PKL - * information - * - * @generated from rpc dwn.v1.Query.Sync - */ -export const QuerySyncService = { - typeName: TYPE_NAME, - method: "Sync", - Request: QuerySyncRequest, - Response: QuerySyncResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/dwn/v1/query_pb.ts b/libs/es-client/src/protobufs/dwn/v1/query_pb.ts deleted file mode 100644 index 433576d..0000000 --- a/libs/es-client/src/protobufs/dwn/v1/query_pb.ts +++ /dev/null @@ -1,355 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file dwn/v1/query.proto (package dwn.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params, Schema } from "./genesis_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message dwn.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message dwn.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: dwn.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QuerySchemaRequest is the request type for the Query/Schema RPC method. - * - * @generated from message dwn.v1.QuerySchemaRequest - */ -export class QuerySchemaRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QuerySchemaRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySchemaRequest { - return new QuerySchemaRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySchemaRequest { - return new QuerySchemaRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySchemaRequest { - return new QuerySchemaRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySchemaRequest | PlainMessage | undefined, b: QuerySchemaRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySchemaRequest, a, b); - } -} - -/** - * QuerySchemaResponse is the response type for the Query/Schema RPC method. - * - * @generated from message dwn.v1.QuerySchemaResponse - */ -export class QuerySchemaResponse extends Message { - /** - * Schema is the DID document. - * - * @generated from field: dwn.v1.Schema schema = 1; - */ - schema?: Schema; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QuerySchemaResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "schema", kind: "message", T: Schema }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySchemaResponse { - return new QuerySchemaResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySchemaResponse { - return new QuerySchemaResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySchemaResponse { - return new QuerySchemaResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySchemaResponse | PlainMessage | undefined, b: QuerySchemaResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySchemaResponse, a, b); - } -} - -/** - * QueryAllocateRequest is the request type for the Allocate RPC method. - * - * @generated from message dwn.v1.QueryAllocateRequest - */ -export class QueryAllocateRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QueryAllocateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllocateRequest { - return new QueryAllocateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllocateRequest { - return new QueryAllocateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllocateRequest { - return new QueryAllocateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllocateRequest | PlainMessage | undefined, b: QueryAllocateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllocateRequest, a, b); - } -} - -/** - * AllocateResponse is the response type for the Allocate RPC method. - * - * @generated from message dwn.v1.QueryAllocateResponse - */ -export class QueryAllocateResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - /** - * @generated from field: string cid = 2; - */ - cid = ""; - - /** - * @generated from field: string macaroon = 3; - */ - macaroon = ""; - - /** - * @generated from field: string public_uri = 4; - */ - publicUri = ""; - - /** - * @generated from field: int64 expiry_block = 5; - */ - expiryBlock = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QueryAllocateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "macaroon", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "public_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "expiry_block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllocateResponse { - return new QueryAllocateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllocateResponse { - return new QueryAllocateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllocateResponse { - return new QueryAllocateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllocateResponse | PlainMessage | undefined, b: QueryAllocateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllocateResponse, a, b); - } -} - -/** - * SyncRequest is the request type for the Sync RPC method. - * - * @generated from message dwn.v1.QuerySyncRequest - */ -export class QuerySyncRequest extends Message { - /** - * @generated from field: string did = 1; - */ - did = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QuerySyncRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySyncRequest { - return new QuerySyncRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySyncRequest { - return new QuerySyncRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySyncRequest { - return new QuerySyncRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySyncRequest | PlainMessage | undefined, b: QuerySyncRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySyncRequest, a, b); - } -} - -/** - * SyncResponse is the response type for the Sync RPC method. - * - * @generated from message dwn.v1.QuerySyncResponse - */ -export class QuerySyncResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - /** - * Schema is the DID document. - * - * @generated from field: dwn.v1.Schema schema = 2; - */ - schema?: Schema; - - /** - * Address is the address of the calling DID. - * - * @generated from field: string address = 3; - */ - address = ""; - - /** - * ChainID is the chain ID of the current network. - * - * @generated from field: string chainID = 4; - */ - chainID = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.QuerySyncResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "schema", kind: "message", T: Schema }, - { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "chainID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySyncResponse { - return new QuerySyncResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySyncResponse { - return new QuerySyncResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySyncResponse { - return new QuerySyncResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySyncResponse | PlainMessage | undefined, b: QuerySyncResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySyncResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/dwn/v1/state_pb.ts b/libs/es-client/src/protobufs/dwn/v1/state_pb.ts deleted file mode 100644 index be7479f..0000000 --- a/libs/es-client/src/protobufs/dwn/v1/state_pb.ts +++ /dev/null @@ -1,130 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file dwn/v1/state.proto (package dwn.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message dwn.v1.Credential - */ -export class Credential extends Message { - /** - * The credential ID as a byte array - * - * @generated from field: bytes id = 1; - */ - id = new Uint8Array(0); - - /** - * The credential type (e.g. "public-key") - * - * @generated from field: string kind = 2; - */ - kind = ""; - - /** - * Optional transport hints (usb, nfc, ble, internal) - * - * @generated from field: repeated string transports = 3; - */ - transports: string[] = []; - - /** - * The credential's public key - * - * @generated from field: bytes public_key = 4; - */ - publicKey = new Uint8Array(0); - - /** - * The attestation type used (e.g. "none", "indirect", etc) - * - * @generated from field: string attestation_type = 5; - */ - attestationType = ""; - - /** - * Timestamp of when the credential was created - * - * @generated from field: uint64 created_at = 6; - */ - createdAt = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.Credential"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "transports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "public_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "attestation_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "created_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Credential { - return new Credential().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Credential { - return new Credential().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Credential { - return new Credential().fromJsonString(jsonString, options); - } - - static equals(a: Credential | PlainMessage | undefined, b: Credential | PlainMessage | undefined): boolean { - return proto3.util.equals(Credential, a, b); - } -} - -/** - * @generated from message dwn.v1.Profile - */ -export class Profile extends Message { - /** - * @generated from field: bytes account = 1; - */ - account = new Uint8Array(0); - - /** - * @generated from field: uint64 amount = 2; - */ - amount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.Profile"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Profile { - return new Profile().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Profile { - return new Profile().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Profile { - return new Profile().fromJsonString(jsonString, options); - } - - static equals(a: Profile | PlainMessage | undefined, b: Profile | PlainMessage | undefined): boolean { - return proto3.util.equals(Profile, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/dwn/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/dwn/v1/tx_cosmes.ts deleted file mode 100644 index bdbba99..0000000 --- a/libs/es-client/src/protobufs/dwn/v1/tx_cosmes.ts +++ /dev/null @@ -1,39 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file dwn/v1/tx.proto (package dwn.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - MsgInitialize, - MsgInitializeResponse, - MsgUpdateParams, - MsgUpdateParamsResponse, -} from "./tx_pb.js"; - -const TYPE_NAME = "dwn.v1.Msg"; - -/** - * UpdateParams defines a governance operation for updating the parameters. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc dwn.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * Initialize spawns a new Vault - * - * @generated from rpc dwn.v1.Msg.Initialize - */ -export const MsgInitializeService = { - typeName: TYPE_NAME, - method: "Initialize", - Request: MsgInitialize, - Response: MsgInitializeResponse, -} as const; diff --git a/libs/es-client/src/protobufs/dwn/v1/tx_pb.ts b/libs/es-client/src/protobufs/dwn/v1/tx_pb.ts deleted file mode 100644 index a3770f6..0000000 --- a/libs/es-client/src/protobufs/dwn/v1/tx_pb.ts +++ /dev/null @@ -1,188 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file dwn/v1/tx.proto (package dwn.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./genesis_pb.js"; - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message dwn.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: dwn.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message dwn.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgInitialize spawns a New Vault with Unclaimed State. This is a one-time - * operation that must be performed interacting with the Vault. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message dwn.v1.MsgInitialize - */ -export class MsgInitialize extends Message { - /** - * authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: dwn.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.MsgInitialize"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInitialize { - return new MsgInitialize().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitialize { - return new MsgInitialize().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInitialize { - return new MsgInitialize().fromJsonString(jsonString, options); - } - - static equals(a: MsgInitialize | PlainMessage | undefined, b: MsgInitialize | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInitialize, a, b); - } -} - -/** - * MsgInitializeResponse defines the response structure for executing a - * MsgInitialize message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message dwn.v1.MsgInitializeResponse - */ -export class MsgInitializeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "dwn.v1.MsgInitializeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgInitializeResponse { - return new MsgInitializeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgInitializeResponse { - return new MsgInitializeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgInitializeResponse { - return new MsgInitializeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgInitializeResponse | PlainMessage | undefined, b: MsgInitializeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgInitializeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts b/libs/es-client/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts deleted file mode 100644 index 7987c85..0000000 --- a/libs/es-client/src/protobufs/ethermint/crypto/v1/ethsecp256k1/keys_pb.ts +++ /dev/null @@ -1,93 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/crypto/v1/ethsecp256k1/keys.proto (package ethermint.crypto.v1.ethsecp256k1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * PubKey defines a type alias for an ecdsa.PublicKey that implements - * Tendermint's PubKey interface. It represents the 33-byte compressed public - * key format. - * - * @generated from message ethermint.crypto.v1.ethsecp256k1.PubKey - */ -export class PubKey extends Message { - /** - * key is the public key in byte form - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.crypto.v1.ethsecp256k1.PubKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PubKey { - return new PubKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PubKey { - return new PubKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PubKey { - return new PubKey().fromJsonString(jsonString, options); - } - - static equals(a: PubKey | PlainMessage | undefined, b: PubKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PubKey, a, b); - } -} - -/** - * PrivKey defines a type alias for an ecdsa.PrivateKey that implements - * Tendermint's PrivateKey interface. - * - * @generated from message ethermint.crypto.v1.ethsecp256k1.PrivKey - */ -export class PrivKey extends Message { - /** - * key is the private key in byte form - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.crypto.v1.ethsecp256k1.PrivKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PrivKey { - return new PrivKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PrivKey { - return new PrivKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PrivKey { - return new PrivKey().fromJsonString(jsonString, options); - } - - static equals(a: PrivKey | PlainMessage | undefined, b: PrivKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PrivKey, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/evm/v1/events_pb.ts b/libs/es-client/src/protobufs/ethermint/evm/v1/events_pb.ts deleted file mode 100644 index f171249..0000000 --- a/libs/es-client/src/protobufs/ethermint/evm/v1/events_pb.ts +++ /dev/null @@ -1,236 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/evm/v1/events.proto (package ethermint.evm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * EventEthereumTx defines the event for an Ethereum transaction - * - * @generated from message ethermint.evm.v1.EventEthereumTx - */ -export class EventEthereumTx extends Message { - /** - * amount - * - * @generated from field: string amount = 1; - */ - amount = ""; - - /** - * eth_hash is the Ethereum hash of the transaction - * - * @generated from field: string eth_hash = 2; - */ - ethHash = ""; - - /** - * index of the transaction in the block - * - * @generated from field: string index = 3; - */ - index = ""; - - /** - * gas_used is the amount of gas used by the transaction - * - * @generated from field: string gas_used = 4; - */ - gasUsed = ""; - - /** - * hash is the Tendermint hash of the transaction - * - * @generated from field: string hash = 5; - */ - hash = ""; - - /** - * recipient of the transaction - * - * @generated from field: string recipient = 6; - */ - recipient = ""; - - /** - * eth_tx_failed contains a VM error should it occur - * - * @generated from field: string eth_tx_failed = 7; - */ - ethTxFailed = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.EventEthereumTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "eth_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "eth_tx_failed", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventEthereumTx { - return new EventEthereumTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventEthereumTx { - return new EventEthereumTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventEthereumTx { - return new EventEthereumTx().fromJsonString(jsonString, options); - } - - static equals(a: EventEthereumTx | PlainMessage | undefined, b: EventEthereumTx | PlainMessage | undefined): boolean { - return proto3.util.equals(EventEthereumTx, a, b); - } -} - -/** - * EventTxLog defines the event for an Ethereum transaction log - * - * @generated from message ethermint.evm.v1.EventTxLog - */ -export class EventTxLog extends Message { - /** - * tx_logs is an array of transaction logs - * - * @generated from field: repeated string tx_logs = 1; - */ - txLogs: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.EventTxLog"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_logs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventTxLog { - return new EventTxLog().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventTxLog { - return new EventTxLog().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventTxLog { - return new EventTxLog().fromJsonString(jsonString, options); - } - - static equals(a: EventTxLog | PlainMessage | undefined, b: EventTxLog | PlainMessage | undefined): boolean { - return proto3.util.equals(EventTxLog, a, b); - } -} - -/** - * EventMessage - * - * @generated from message ethermint.evm.v1.EventMessage - */ -export class EventMessage extends Message { - /** - * module which emits the event - * - * @generated from field: string module = 1; - */ - module = ""; - - /** - * sender of the message - * - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * tx_type is the type of the message - * - * @generated from field: string tx_type = 3; - */ - txType = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.EventMessage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "module", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "tx_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventMessage { - return new EventMessage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventMessage { - return new EventMessage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventMessage { - return new EventMessage().fromJsonString(jsonString, options); - } - - static equals(a: EventMessage | PlainMessage | undefined, b: EventMessage | PlainMessage | undefined): boolean { - return proto3.util.equals(EventMessage, a, b); - } -} - -/** - * EventBlockBloom defines an Ethereum block bloom filter event - * - * @generated from message ethermint.evm.v1.EventBlockBloom - */ -export class EventBlockBloom extends Message { - /** - * bloom is the bloom filter of the block - * - * @generated from field: string bloom = 1; - */ - bloom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.EventBlockBloom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBlockBloom { - return new EventBlockBloom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBlockBloom { - return new EventBlockBloom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBlockBloom { - return new EventBlockBloom().fromJsonString(jsonString, options); - } - - static equals(a: EventBlockBloom | PlainMessage | undefined, b: EventBlockBloom | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBlockBloom, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/evm/v1/evm_pb.ts b/libs/es-client/src/protobufs/ethermint/evm/v1/evm_pb.ts deleted file mode 100644 index ecf1c1b..0000000 --- a/libs/es-client/src/protobufs/ethermint/evm/v1/evm_pb.ts +++ /dev/null @@ -1,745 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/evm/v1/evm.proto (package ethermint.evm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Params defines the EVM module parameters - * - * @generated from message ethermint.evm.v1.Params - */ -export class Params extends Message { - /** - * evm_denom represents the token denomination used to run the EVM state - * transitions. - * - * @generated from field: string evm_denom = 1; - */ - evmDenom = ""; - - /** - * enable_create toggles state transitions that use the vm.Create function - * - * @generated from field: bool enable_create = 2; - */ - enableCreate = false; - - /** - * enable_call toggles state transitions that use the vm.Call function - * - * @generated from field: bool enable_call = 3; - */ - enableCall = false; - - /** - * extra_eips defines the additional EIPs for the vm.Config - * - * @generated from field: repeated int64 extra_eips = 4; - */ - extraEips: bigint[] = []; - - /** - * chain_config defines the EVM chain configuration parameters - * - * @generated from field: ethermint.evm.v1.ChainConfig chain_config = 5; - */ - chainConfig?: ChainConfig; - - /** - * allow_unprotected_txs defines if replay-protected (i.e non EIP155 - * signed) transactions can be executed on the state machine. - * - * @generated from field: bool allow_unprotected_txs = 6; - */ - allowUnprotectedTxs = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evm_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "enable_create", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "enable_call", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "extra_eips", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, - { no: 5, name: "chain_config", kind: "message", T: ChainConfig }, - { no: 6, name: "allow_unprotected_txs", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values - * instead of *big.Int. - * - * @generated from message ethermint.evm.v1.ChainConfig - */ -export class ChainConfig extends Message { - /** - * homestead_block switch (nil no fork, 0 = already homestead) - * - * @generated from field: string homestead_block = 1; - */ - homesteadBlock = ""; - - /** - * dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork) - * - * @generated from field: string dao_fork_block = 2; - */ - daoForkBlock = ""; - - /** - * dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork - * - * @generated from field: bool dao_fork_support = 3; - */ - daoForkSupport = false; - - /** - * eip150_block: EIP150 implements the Gas price changes - * (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork) - * - * @generated from field: string eip150_block = 4; - */ - eip150Block = ""; - - /** - * eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed) - * - * @generated from field: string eip150_hash = 5; - */ - eip150Hash = ""; - - /** - * eip155_block: EIP155Block HF block - * - * @generated from field: string eip155_block = 6; - */ - eip155Block = ""; - - /** - * eip158_block: EIP158 HF block - * - * @generated from field: string eip158_block = 7; - */ - eip158Block = ""; - - /** - * byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium) - * - * @generated from field: string byzantium_block = 8; - */ - byzantiumBlock = ""; - - /** - * constantinople_block: Constantinople switch block (nil no fork, 0 = already activated) - * - * @generated from field: string constantinople_block = 9; - */ - constantinopleBlock = ""; - - /** - * petersburg_block: Petersburg switch block (nil same as Constantinople) - * - * @generated from field: string petersburg_block = 10; - */ - petersburgBlock = ""; - - /** - * istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul) - * - * @generated from field: string istanbul_block = 11; - */ - istanbulBlock = ""; - - /** - * muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated) - * - * @generated from field: string muir_glacier_block = 12; - */ - muirGlacierBlock = ""; - - /** - * berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin) - * - * @generated from field: string berlin_block = 13; - */ - berlinBlock = ""; - - /** - * london_block: London switch block (nil = no fork, 0 = already on london) - * - * @generated from field: string london_block = 17; - */ - londonBlock = ""; - - /** - * arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) - * - * @generated from field: string arrow_glacier_block = 18; - */ - arrowGlacierBlock = ""; - - /** - * gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated) - * - * @generated from field: string gray_glacier_block = 20; - */ - grayGlacierBlock = ""; - - /** - * merge_netsplit_block: Virtual fork after The Merge to use as a network splitter - * - * @generated from field: string merge_netsplit_block = 21; - */ - mergeNetsplitBlock = ""; - - /** - * shanghai_block switch block (nil = no fork, 0 = already on shanghai) - * - * @generated from field: string shanghai_block = 22; - */ - shanghaiBlock = ""; - - /** - * cancun_block switch block (nil = no fork, 0 = already on cancun) - * - * @generated from field: string cancun_block = 23; - */ - cancunBlock = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.ChainConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "homestead_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "dao_fork_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "dao_fork_support", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "eip150_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "eip150_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "eip155_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "eip158_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "byzantium_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "constantinople_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "petersburg_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "istanbul_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "muir_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "berlin_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 17, name: "london_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 18, name: "arrow_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 20, name: "gray_glacier_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 21, name: "merge_netsplit_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 22, name: "shanghai_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 23, name: "cancun_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChainConfig { - return new ChainConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChainConfig { - return new ChainConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChainConfig { - return new ChainConfig().fromJsonString(jsonString, options); - } - - static equals(a: ChainConfig | PlainMessage | undefined, b: ChainConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(ChainConfig, a, b); - } -} - -/** - * State represents a single Storage key value pair item. - * - * @generated from message ethermint.evm.v1.State - */ -export class State extends Message { - /** - * key is the stored key - * - * @generated from field: string key = 1; - */ - key = ""; - - /** - * value is the stored value for the given key - * - * @generated from field: string value = 2; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.State"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): State { - return new State().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): State { - return new State().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): State { - return new State().fromJsonString(jsonString, options); - } - - static equals(a: State | PlainMessage | undefined, b: State | PlainMessage | undefined): boolean { - return proto3.util.equals(State, a, b); - } -} - -/** - * TransactionLogs define the logs generated from a transaction execution - * with a given hash. It it used for import/export data as transactions are not - * persisted on blockchain state after an upgrade. - * - * @generated from message ethermint.evm.v1.TransactionLogs - */ -export class TransactionLogs extends Message { - /** - * hash of the transaction - * - * @generated from field: string hash = 1; - */ - hash = ""; - - /** - * logs is an array of Logs for the given transaction hash - * - * @generated from field: repeated ethermint.evm.v1.Log logs = 2; - */ - logs: Log[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.TransactionLogs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "logs", kind: "message", T: Log, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TransactionLogs { - return new TransactionLogs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TransactionLogs { - return new TransactionLogs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TransactionLogs { - return new TransactionLogs().fromJsonString(jsonString, options); - } - - static equals(a: TransactionLogs | PlainMessage | undefined, b: TransactionLogs | PlainMessage | undefined): boolean { - return proto3.util.equals(TransactionLogs, a, b); - } -} - -/** - * Log represents an protobuf compatible Ethereum Log that defines a contract - * log event. These events are generated by the LOG opcode and stored/indexed by - * the node. - * - * NOTE: address, topics and data are consensus fields. The rest of the fields - * are derived, i.e. filled in by the nodes, but not secured by consensus. - * - * @generated from message ethermint.evm.v1.Log - */ -export class Log extends Message { - /** - * address of the contract that generated the event - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * topics is a list of topics provided by the contract. - * - * @generated from field: repeated string topics = 2; - */ - topics: string[] = []; - - /** - * data which is supplied by the contract, usually ABI-encoded - * - * @generated from field: bytes data = 3; - */ - data = new Uint8Array(0); - - /** - * block_number of the block in which the transaction was included - * - * @generated from field: uint64 block_number = 4; - */ - blockNumber = protoInt64.zero; - - /** - * tx_hash is the transaction hash - * - * @generated from field: string tx_hash = 5; - */ - txHash = ""; - - /** - * tx_index of the transaction in the block - * - * @generated from field: uint64 tx_index = 6; - */ - txIndex = protoInt64.zero; - - /** - * block_hash of the block in which the transaction was included - * - * @generated from field: string block_hash = 7; - */ - blockHash = ""; - - /** - * index of the log in the block - * - * @generated from field: uint64 index = 8; - */ - index = protoInt64.zero; - - /** - * removed is true if this log was reverted due to a chain - * reorganisation. You must pay attention to this field if you receive logs - * through a filter query. - * - * @generated from field: bool removed = 9; - */ - removed = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.Log"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { 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: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "tx_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 9, name: "removed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Log { - return new Log().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Log { - return new Log().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Log { - return new Log().fromJsonString(jsonString, options); - } - - static equals(a: Log | PlainMessage | undefined, b: Log | PlainMessage | undefined): boolean { - return proto3.util.equals(Log, a, b); - } -} - -/** - * TxResult stores results of Tx execution. - * - * @generated from message ethermint.evm.v1.TxResult - */ -export class TxResult extends Message { - /** - * contract_address contains the ethereum address of the created contract (if - * any). If the state transition is an evm.Call, the contract address will be - * empty. - * - * @generated from field: string contract_address = 1; - */ - contractAddress = ""; - - /** - * bloom represents the bloom filter bytes - * - * @generated from field: bytes bloom = 2; - */ - bloom = new Uint8Array(0); - - /** - * tx_logs contains the transaction hash and the proto-compatible ethereum - * logs. - * - * @generated from field: ethermint.evm.v1.TransactionLogs tx_logs = 3; - */ - txLogs?: TransactionLogs; - - /** - * ret defines the bytes from the execution. - * - * @generated from field: bytes ret = 4; - */ - ret = new Uint8Array(0); - - /** - * reverted flag is set to true when the call has been reverted - * - * @generated from field: bool reverted = 5; - */ - reverted = false; - - /** - * gas_used notes the amount of gas consumed while execution - * - * @generated from field: uint64 gas_used = 6; - */ - gasUsed = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.TxResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "bloom", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "tx_logs", kind: "message", T: TransactionLogs }, - { no: 4, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "reverted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { - return new TxResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxResult { - return new TxResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxResult { - return new TxResult().fromJsonString(jsonString, options); - } - - static equals(a: TxResult | PlainMessage | undefined, b: TxResult | PlainMessage | undefined): boolean { - return proto3.util.equals(TxResult, a, b); - } -} - -/** - * AccessTuple is the element type of an access list. - * - * @generated from message ethermint.evm.v1.AccessTuple - */ -export class AccessTuple extends Message { - /** - * address is a hex formatted ethereum address - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * storage_keys are hex formatted hashes of the storage keys - * - * @generated from field: repeated string storage_keys = 2; - */ - storageKeys: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.AccessTuple"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "storage_keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccessTuple { - return new AccessTuple().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccessTuple { - return new AccessTuple().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccessTuple { - return new AccessTuple().fromJsonString(jsonString, options); - } - - static equals(a: AccessTuple | PlainMessage | undefined, b: AccessTuple | PlainMessage | undefined): boolean { - return proto3.util.equals(AccessTuple, a, b); - } -} - -/** - * TraceConfig holds extra parameters to trace functions. - * - * @generated from message ethermint.evm.v1.TraceConfig - */ -export class TraceConfig extends Message { - /** - * tracer is a custom javascript tracer - * - * @generated from field: string tracer = 1; - */ - tracer = ""; - - /** - * timeout overrides the default timeout of 5 seconds for JavaScript-based tracing - * calls - * - * @generated from field: string timeout = 2; - */ - timeout = ""; - - /** - * reexec defines the number of blocks the tracer is willing to go back - * - * @generated from field: uint64 reexec = 3; - */ - reexec = protoInt64.zero; - - /** - * disable_stack switches stack capture - * - * @generated from field: bool disable_stack = 5; - */ - disableStack = false; - - /** - * disable_storage switches storage capture - * - * @generated from field: bool disable_storage = 6; - */ - disableStorage = false; - - /** - * debug can be used to print output during capture end - * - * @generated from field: bool debug = 8; - */ - debug = false; - - /** - * limit defines the maximum length of output, but zero means unlimited - * - * @generated from field: int32 limit = 9; - */ - limit = 0; - - /** - * overrides can be used to execute a trace using future fork rules - * - * @generated from field: ethermint.evm.v1.ChainConfig overrides = 10; - */ - overrides?: ChainConfig; - - /** - * enable_memory switches memory capture - * - * @generated from field: bool enable_memory = 11; - */ - enableMemory = false; - - /** - * enable_return_data switches the capture of return data - * - * @generated from field: bool enable_return_data = 12; - */ - enableReturnData = false; - - /** - * tracer_json_config configures the tracer using a JSON string - * - * @generated from field: string tracer_json_config = 13; - */ - tracerJsonConfig = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.TraceConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tracer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timeout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "reexec", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "disable_stack", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "disable_storage", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 8, name: "debug", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 9, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 10, name: "overrides", kind: "message", T: ChainConfig }, - { no: 11, name: "enable_memory", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 12, name: "enable_return_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 13, name: "tracer_json_config", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TraceConfig { - return new TraceConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TraceConfig { - return new TraceConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TraceConfig { - return new TraceConfig().fromJsonString(jsonString, options); - } - - static equals(a: TraceConfig | PlainMessage | undefined, b: TraceConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(TraceConfig, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/evm/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ethermint/evm/v1/genesis_pb.ts deleted file mode 100644 index 3b4c263..0000000 --- a/libs/es-client/src/protobufs/ethermint/evm/v1/genesis_pb.ts +++ /dev/null @@ -1,117 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/evm/v1/genesis.proto (package ethermint.evm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params, State } from "./evm_pb.js"; - -/** - * GenesisState defines the evm module's genesis state. - * - * @generated from message ethermint.evm.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * accounts is an array containing the ethereum genesis accounts. - * - * @generated from field: repeated ethermint.evm.v1.GenesisAccount accounts = 1; - */ - accounts: GenesisAccount[] = []; - - /** - * params defines all the parameters of the module. - * - * @generated from field: ethermint.evm.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accounts", kind: "message", T: GenesisAccount, repeated: true }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * GenesisAccount defines an account to be initialized in the genesis state. - * Its main difference between with Geth's GenesisAccount is that it uses a - * custom storage type and that it doesn't contain the private key field. - * - * @generated from message ethermint.evm.v1.GenesisAccount - */ -export class GenesisAccount extends Message { - /** - * address defines an ethereum hex formated address of an account - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * code defines the hex bytes of the account code. - * - * @generated from field: string code = 2; - */ - code = ""; - - /** - * storage defines the set of state key values for the account. - * - * @generated from field: repeated ethermint.evm.v1.State storage = 3; - */ - storage: State[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.GenesisAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "storage", kind: "message", T: State, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisAccount { - return new GenesisAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisAccount { - return new GenesisAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisAccount { - return new GenesisAccount().fromJsonString(jsonString, options); - } - - static equals(a: GenesisAccount | PlainMessage | undefined, b: GenesisAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisAccount, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/evm/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ethermint/evm/v1/query_cosmes.ts deleted file mode 100644 index 2aba51d..0000000 --- a/libs/es-client/src/protobufs/ethermint/evm/v1/query_cosmes.ts +++ /dev/null @@ -1,157 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ethermint/evm/v1/query.proto (package ethermint.evm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { EstimateGasResponse, EthCallRequest, QueryAccountRequest, QueryAccountResponse, QueryBalanceRequest, QueryBalanceResponse, QueryBaseFeeRequest, QueryBaseFeeResponse, QueryCodeRequest, QueryCodeResponse, QueryCosmosAccountRequest, QueryCosmosAccountResponse, QueryParamsRequest, QueryParamsResponse, QueryStorageRequest, QueryStorageResponse, QueryTraceBlockRequest, QueryTraceBlockResponse, QueryTraceTxRequest, QueryTraceTxResponse, QueryValidatorAccountRequest, QueryValidatorAccountResponse } from "./query_pb.js"; -import { MsgEthereumTxResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ethermint.evm.v1.Query"; - -/** - * Account queries an Ethereum account. - * - * @generated from rpc ethermint.evm.v1.Query.Account - */ -export const QueryAccountService = { - typeName: TYPE_NAME, - method: "Account", - Request: QueryAccountRequest, - Response: QueryAccountResponse, -} as const; - -/** - * CosmosAccount queries an Ethereum account's Cosmos Address. - * - * @generated from rpc ethermint.evm.v1.Query.CosmosAccount - */ -export const QueryCosmosAccountService = { - typeName: TYPE_NAME, - method: "CosmosAccount", - Request: QueryCosmosAccountRequest, - Response: QueryCosmosAccountResponse, -} as const; - -/** - * ValidatorAccount queries an Ethereum account's from a validator consensus - * Address. - * - * @generated from rpc ethermint.evm.v1.Query.ValidatorAccount - */ -export const QueryValidatorAccountService = { - typeName: TYPE_NAME, - method: "ValidatorAccount", - Request: QueryValidatorAccountRequest, - Response: QueryValidatorAccountResponse, -} as const; - -/** - * Balance queries the balance of a the EVM denomination for a single - * EthAccount. - * - * @generated from rpc ethermint.evm.v1.Query.Balance - */ -export const QueryBalanceService = { - typeName: TYPE_NAME, - method: "Balance", - Request: QueryBalanceRequest, - Response: QueryBalanceResponse, -} as const; - -/** - * Storage queries the balance of all coins for a single account. - * - * @generated from rpc ethermint.evm.v1.Query.Storage - */ -export const QueryStorageService = { - typeName: TYPE_NAME, - method: "Storage", - Request: QueryStorageRequest, - Response: QueryStorageResponse, -} as const; - -/** - * Code queries the balance of all coins for a single account. - * - * @generated from rpc ethermint.evm.v1.Query.Code - */ -export const QueryCodeService = { - typeName: TYPE_NAME, - method: "Code", - Request: QueryCodeRequest, - Response: QueryCodeResponse, -} as const; - -/** - * Params queries the parameters of x/evm module. - * - * @generated from rpc ethermint.evm.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * EthCall implements the `eth_call` rpc api - * - * @generated from rpc ethermint.evm.v1.Query.EthCall - */ -export const QueryEthCallService = { - typeName: TYPE_NAME, - method: "EthCall", - Request: EthCallRequest, - Response: MsgEthereumTxResponse, -} as const; - -/** - * EstimateGas implements the `eth_estimateGas` rpc api - * - * @generated from rpc ethermint.evm.v1.Query.EstimateGas - */ -export const QueryEstimateGasService = { - typeName: TYPE_NAME, - method: "EstimateGas", - Request: EthCallRequest, - Response: EstimateGasResponse, -} as const; - -/** - * TraceTx implements the `debug_traceTransaction` rpc api - * - * @generated from rpc ethermint.evm.v1.Query.TraceTx - */ -export const QueryTraceTxService = { - typeName: TYPE_NAME, - method: "TraceTx", - Request: QueryTraceTxRequest, - Response: QueryTraceTxResponse, -} as const; - -/** - * TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api - * - * @generated from rpc ethermint.evm.v1.Query.TraceBlock - */ -export const QueryTraceBlockService = { - typeName: TYPE_NAME, - method: "TraceBlock", - Request: QueryTraceBlockRequest, - Response: QueryTraceBlockResponse, -} as const; - -/** - * BaseFee queries the base fee of the parent block of the current block, - * it's similar to feemarket module's method, but also checks london hardfork status. - * - * @generated from rpc ethermint.evm.v1.Query.BaseFee - */ -export const QueryBaseFeeService = { - typeName: TYPE_NAME, - method: "BaseFee", - Request: QueryBaseFeeRequest, - Response: QueryBaseFeeResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ethermint/evm/v1/query_pb.ts b/libs/es-client/src/protobufs/ethermint/evm/v1/query_pb.ts deleted file mode 100644 index 2e3a95c..0000000 --- a/libs/es-client/src/protobufs/ethermint/evm/v1/query_pb.ts +++ /dev/null @@ -1,1187 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/evm/v1/query.proto (package ethermint.evm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Log, Params, TraceConfig } from "./evm_pb.js"; -import { MsgEthereumTx } from "./tx_pb.js"; - -/** - * QueryAccountRequest is the request type for the Query/Account RPC method. - * - * @generated from message ethermint.evm.v1.QueryAccountRequest - */ -export class QueryAccountRequest extends Message { - /** - * address is the ethereum hex address to query the account for. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest { - return new QueryAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountRequest, a, b); - } -} - -/** - * QueryAccountResponse is the response type for the Query/Account RPC method. - * - * @generated from message ethermint.evm.v1.QueryAccountResponse - */ -export class QueryAccountResponse extends Message { - /** - * balance is the balance of the EVM denomination. - * - * @generated from field: string balance = 1; - */ - balance = ""; - - /** - * code_hash is the hex-formatted code bytes from the EOA. - * - * @generated from field: string code_hash = 2; - */ - codeHash = ""; - - /** - * nonce is the account's sequence number. - * - * @generated from field: uint64 nonce = 3; - */ - nonce = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountResponse { - return new QueryAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountResponse { - return new QueryAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountResponse { - return new QueryAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAccountResponse | PlainMessage | undefined, b: QueryAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAccountResponse, a, b); - } -} - -/** - * QueryCosmosAccountRequest is the request type for the Query/CosmosAccount RPC - * method. - * - * @generated from message ethermint.evm.v1.QueryCosmosAccountRequest - */ -export class QueryCosmosAccountRequest extends Message { - /** - * address is the ethereum hex address to query the account for. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryCosmosAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCosmosAccountRequest { - return new QueryCosmosAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCosmosAccountRequest { - return new QueryCosmosAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCosmosAccountRequest { - return new QueryCosmosAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCosmosAccountRequest | PlainMessage | undefined, b: QueryCosmosAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCosmosAccountRequest, a, b); - } -} - -/** - * QueryCosmosAccountResponse is the response type for the Query/CosmosAccount - * RPC method. - * - * @generated from message ethermint.evm.v1.QueryCosmosAccountResponse - */ -export class QueryCosmosAccountResponse extends Message { - /** - * cosmos_address is the cosmos address of the account. - * - * @generated from field: string cosmos_address = 1; - */ - cosmosAddress = ""; - - /** - * sequence is the account's sequence number. - * - * @generated from field: uint64 sequence = 2; - */ - sequence = protoInt64.zero; - - /** - * account_number is the account number - * - * @generated from field: uint64 account_number = 3; - */ - accountNumber = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryCosmosAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cosmos_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCosmosAccountResponse { - return new QueryCosmosAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCosmosAccountResponse { - return new QueryCosmosAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCosmosAccountResponse { - return new QueryCosmosAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCosmosAccountResponse | PlainMessage | undefined, b: QueryCosmosAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCosmosAccountResponse, a, b); - } -} - -/** - * QueryValidatorAccountRequest is the request type for the - * Query/ValidatorAccount RPC method. - * - * @generated from message ethermint.evm.v1.QueryValidatorAccountRequest - */ -export class QueryValidatorAccountRequest extends Message { - /** - * cons_address is the validator cons address to query the account for. - * - * @generated from field: string cons_address = 1; - */ - consAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryValidatorAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cons_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorAccountRequest { - return new QueryValidatorAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorAccountRequest { - return new QueryValidatorAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorAccountRequest { - return new QueryValidatorAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorAccountRequest | PlainMessage | undefined, b: QueryValidatorAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorAccountRequest, a, b); - } -} - -/** - * QueryValidatorAccountResponse is the response type for the - * Query/ValidatorAccount RPC method. - * - * @generated from message ethermint.evm.v1.QueryValidatorAccountResponse - */ -export class QueryValidatorAccountResponse extends Message { - /** - * account_address is the cosmos address of the account in bech32 format. - * - * @generated from field: string account_address = 1; - */ - accountAddress = ""; - - /** - * sequence is the account's sequence number. - * - * @generated from field: uint64 sequence = 2; - */ - sequence = protoInt64.zero; - - /** - * account_number is the account number - * - * @generated from field: uint64 account_number = 3; - */ - accountNumber = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryValidatorAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorAccountResponse { - return new QueryValidatorAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorAccountResponse { - return new QueryValidatorAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryValidatorAccountResponse { - return new QueryValidatorAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryValidatorAccountResponse | PlainMessage | undefined, b: QueryValidatorAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryValidatorAccountResponse, a, b); - } -} - -/** - * QueryBalanceRequest is the request type for the Query/Balance RPC method. - * - * @generated from message ethermint.evm.v1.QueryBalanceRequest - */ -export class QueryBalanceRequest extends Message { - /** - * address is the ethereum hex address to query the balance for. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryBalanceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { - return new QueryBalanceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBalanceRequest, a, b); - } -} - -/** - * QueryBalanceResponse is the response type for the Query/Balance RPC method. - * - * @generated from message ethermint.evm.v1.QueryBalanceResponse - */ -export class QueryBalanceResponse extends Message { - /** - * balance is the balance of the EVM denomination. - * - * @generated from field: string balance = 1; - */ - balance = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryBalanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { - return new QueryBalanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBalanceResponse, a, b); - } -} - -/** - * QueryStorageRequest is the request type for the Query/Storage RPC method. - * - * @generated from message ethermint.evm.v1.QueryStorageRequest - */ -export class QueryStorageRequest extends Message { - /** - * address is the ethereum hex address to query the storage state for. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * key defines the key of the storage state - * - * @generated from field: string key = 2; - */ - key = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryStorageRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorageRequest { - return new QueryStorageRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorageRequest { - return new QueryStorageRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryStorageRequest { - return new QueryStorageRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryStorageRequest | PlainMessage | undefined, b: QueryStorageRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryStorageRequest, a, b); - } -} - -/** - * QueryStorageResponse is the response type for the Query/Storage RPC - * method. - * - * @generated from message ethermint.evm.v1.QueryStorageResponse - */ -export class QueryStorageResponse extends Message { - /** - * value defines the storage state value hash associated with the given key. - * - * @generated from field: string value = 1; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryStorageResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryStorageResponse { - return new QueryStorageResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryStorageResponse { - return new QueryStorageResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryStorageResponse { - return new QueryStorageResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryStorageResponse | PlainMessage | undefined, b: QueryStorageResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryStorageResponse, a, b); - } -} - -/** - * QueryCodeRequest is the request type for the Query/Code RPC method. - * - * @generated from message ethermint.evm.v1.QueryCodeRequest - */ -export class QueryCodeRequest extends Message { - /** - * address is the ethereum hex address to query the code for. - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryCodeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeRequest, a, b); - } -} - -/** - * QueryCodeResponse is the response type for the Query/Code RPC - * method. - * - * @generated from message ethermint.evm.v1.QueryCodeResponse - */ -export class QueryCodeResponse extends Message { - /** - * code represents the code bytes from an ethereum address. - * - * @generated from field: bytes code = 1; - */ - code = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryCodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeResponse, a, b); - } -} - -/** - * QueryTxLogsRequest is the request type for the Query/TxLogs RPC method. - * - * @generated from message ethermint.evm.v1.QueryTxLogsRequest - */ -export class QueryTxLogsRequest extends Message { - /** - * hash is the ethereum transaction hex hash to query the logs for. - * - * @generated from field: string hash = 1; - */ - hash = ""; - - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryTxLogsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTxLogsRequest { - return new QueryTxLogsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTxLogsRequest { - return new QueryTxLogsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTxLogsRequest { - return new QueryTxLogsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTxLogsRequest | PlainMessage | undefined, b: QueryTxLogsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTxLogsRequest, a, b); - } -} - -/** - * QueryTxLogsResponse is the response type for the Query/TxLogs RPC method. - * - * @generated from message ethermint.evm.v1.QueryTxLogsResponse - */ -export class QueryTxLogsResponse extends Message { - /** - * logs represents the ethereum logs generated from the given transaction. - * - * @generated from field: repeated ethermint.evm.v1.Log logs = 1; - */ - logs: Log[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryTxLogsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "logs", kind: "message", T: Log, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTxLogsResponse { - return new QueryTxLogsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTxLogsResponse { - return new QueryTxLogsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTxLogsResponse { - return new QueryTxLogsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTxLogsResponse | PlainMessage | undefined, b: QueryTxLogsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTxLogsResponse, a, b); - } -} - -/** - * QueryParamsRequest defines the request type for querying x/evm parameters. - * - * @generated from message ethermint.evm.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse defines the response type for querying x/evm parameters. - * - * @generated from message ethermint.evm.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params define the evm module parameters. - * - * @generated from field: ethermint.evm.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * EthCallRequest defines EthCall request - * - * @generated from message ethermint.evm.v1.EthCallRequest - */ -export class EthCallRequest extends Message { - /** - * args uses the same json format as the json rpc api. - * - * @generated from field: bytes args = 1; - */ - args = new Uint8Array(0); - - /** - * gas_cap defines the default gas cap to be used - * - * @generated from field: uint64 gas_cap = 2; - */ - gasCap = protoInt64.zero; - - /** - * proposer_address of the requested block in hex format - * - * @generated from field: bytes proposer_address = 3; - */ - proposerAddress = new Uint8Array(0); - - /** - * chain_id is the eip155 chain id parsed from the requested block header - * - * @generated from field: int64 chain_id = 4; - */ - chainId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.EthCallRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "args", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "gas_cap", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EthCallRequest { - return new EthCallRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EthCallRequest { - return new EthCallRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EthCallRequest { - return new EthCallRequest().fromJsonString(jsonString, options); - } - - static equals(a: EthCallRequest | PlainMessage | undefined, b: EthCallRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EthCallRequest, a, b); - } -} - -/** - * EstimateGasResponse defines EstimateGas response - * - * @generated from message ethermint.evm.v1.EstimateGasResponse - */ -export class EstimateGasResponse extends Message { - /** - * gas returns the estimated gas - * - * @generated from field: uint64 gas = 1; - */ - gas = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.EstimateGasResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateGasResponse { - return new EstimateGasResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateGasResponse { - return new EstimateGasResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateGasResponse { - return new EstimateGasResponse().fromJsonString(jsonString, options); - } - - static equals(a: EstimateGasResponse | PlainMessage | undefined, b: EstimateGasResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateGasResponse, a, b); - } -} - -/** - * QueryTraceTxRequest defines TraceTx request - * - * @generated from message ethermint.evm.v1.QueryTraceTxRequest - */ -export class QueryTraceTxRequest extends Message { - /** - * msg is the MsgEthereumTx for the requested transaction - * - * @generated from field: ethermint.evm.v1.MsgEthereumTx msg = 1; - */ - msg?: MsgEthereumTx; - - /** - * trace_config holds extra parameters to trace functions. - * - * @generated from field: ethermint.evm.v1.TraceConfig trace_config = 3; - */ - traceConfig?: TraceConfig; - - /** - * predecessors is an array of transactions included in the same block - * need to be replayed first to get correct context for tracing. - * - * @generated from field: repeated ethermint.evm.v1.MsgEthereumTx predecessors = 4; - */ - predecessors: MsgEthereumTx[] = []; - - /** - * block_number of requested transaction - * - * @generated from field: int64 block_number = 5; - */ - blockNumber = protoInt64.zero; - - /** - * block_hash of requested transaction - * - * @generated from field: string block_hash = 6; - */ - blockHash = ""; - - /** - * block_time of requested transaction - * - * @generated from field: google.protobuf.Timestamp block_time = 7; - */ - blockTime?: Timestamp; - - /** - * proposer_address is the proposer of the requested block - * - * @generated from field: bytes proposer_address = 8; - */ - proposerAddress = new Uint8Array(0); - - /** - * chain_id is the the eip155 chain id parsed from the requested block header - * - * @generated from field: int64 chain_id = 9; - */ - chainId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryTraceTxRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "msg", kind: "message", T: MsgEthereumTx }, - { no: 3, name: "trace_config", kind: "message", T: TraceConfig }, - { no: 4, name: "predecessors", kind: "message", T: MsgEthereumTx, repeated: true }, - { no: 5, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "block_time", kind: "message", T: Timestamp }, - { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceTxRequest { - return new QueryTraceTxRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceTxRequest { - return new QueryTraceTxRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTraceTxRequest { - return new QueryTraceTxRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTraceTxRequest | PlainMessage | undefined, b: QueryTraceTxRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTraceTxRequest, a, b); - } -} - -/** - * QueryTraceTxResponse defines TraceTx response - * - * @generated from message ethermint.evm.v1.QueryTraceTxResponse - */ -export class QueryTraceTxResponse extends Message { - /** - * data is the response serialized in bytes - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryTraceTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceTxResponse { - return new QueryTraceTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceTxResponse { - return new QueryTraceTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTraceTxResponse { - return new QueryTraceTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTraceTxResponse | PlainMessage | undefined, b: QueryTraceTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTraceTxResponse, a, b); - } -} - -/** - * QueryTraceBlockRequest defines TraceTx request - * - * @generated from message ethermint.evm.v1.QueryTraceBlockRequest - */ -export class QueryTraceBlockRequest extends Message { - /** - * txs is an array of messages in the block - * - * @generated from field: repeated ethermint.evm.v1.MsgEthereumTx txs = 1; - */ - txs: MsgEthereumTx[] = []; - - /** - * trace_config holds extra parameters to trace functions. - * - * @generated from field: ethermint.evm.v1.TraceConfig trace_config = 3; - */ - traceConfig?: TraceConfig; - - /** - * block_number of the traced block - * - * @generated from field: int64 block_number = 5; - */ - blockNumber = protoInt64.zero; - - /** - * block_hash (hex) of the traced block - * - * @generated from field: string block_hash = 6; - */ - blockHash = ""; - - /** - * block_time of the traced block - * - * @generated from field: google.protobuf.Timestamp block_time = 7; - */ - blockTime?: Timestamp; - - /** - * proposer_address is the address of the requested block - * - * @generated from field: bytes proposer_address = 8; - */ - proposerAddress = new Uint8Array(0); - - /** - * chain_id is the eip155 chain id parsed from the requested block header - * - * @generated from field: int64 chain_id = 9; - */ - chainId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryTraceBlockRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "txs", kind: "message", T: MsgEthereumTx, repeated: true }, - { no: 3, name: "trace_config", kind: "message", T: TraceConfig }, - { no: 5, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "block_time", kind: "message", T: Timestamp }, - { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceBlockRequest { - return new QueryTraceBlockRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceBlockRequest { - return new QueryTraceBlockRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTraceBlockRequest { - return new QueryTraceBlockRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTraceBlockRequest | PlainMessage | undefined, b: QueryTraceBlockRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTraceBlockRequest, a, b); - } -} - -/** - * QueryTraceBlockResponse defines TraceBlock response - * - * @generated from message ethermint.evm.v1.QueryTraceBlockResponse - */ -export class QueryTraceBlockResponse extends Message { - /** - * data is the response serialized in bytes - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryTraceBlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTraceBlockResponse { - return new QueryTraceBlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTraceBlockResponse { - return new QueryTraceBlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTraceBlockResponse { - return new QueryTraceBlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTraceBlockResponse | PlainMessage | undefined, b: QueryTraceBlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTraceBlockResponse, a, b); - } -} - -/** - * QueryBaseFeeRequest defines the request type for querying the EIP1559 base - * fee. - * - * @generated from message ethermint.evm.v1.QueryBaseFeeRequest - */ -export class QueryBaseFeeRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryBaseFeeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeRequest { - return new QueryBaseFeeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeRequest { - return new QueryBaseFeeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeRequest { - return new QueryBaseFeeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseFeeRequest | PlainMessage | undefined, b: QueryBaseFeeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseFeeRequest, a, b); - } -} - -/** - * QueryBaseFeeResponse returns the EIP1559 base fee. - * - * @generated from message ethermint.evm.v1.QueryBaseFeeResponse - */ -export class QueryBaseFeeResponse extends Message { - /** - * base_fee is the EIP1559 base fee - * - * @generated from field: string base_fee = 1; - */ - baseFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.QueryBaseFeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeResponse { - return new QueryBaseFeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeResponse { - return new QueryBaseFeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeResponse { - return new QueryBaseFeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseFeeResponse | PlainMessage | undefined, b: QueryBaseFeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseFeeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/evm/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ethermint/evm/v1/tx_cosmes.ts deleted file mode 100644 index 48b9a97..0000000 --- a/libs/es-client/src/protobufs/ethermint/evm/v1/tx_cosmes.ts +++ /dev/null @@ -1,34 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ethermint/evm/v1/tx.proto (package ethermint.evm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgEthereumTx, MsgEthereumTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ethermint.evm.v1.Msg"; - -/** - * EthereumTx defines a method submitting Ethereum transactions. - * - * @generated from rpc ethermint.evm.v1.Msg.EthereumTx - */ -export const MsgEthereumTxService = { - typeName: TYPE_NAME, - method: "EthereumTx", - Request: MsgEthereumTx, - Response: MsgEthereumTxResponse, -} as const; - -/** - * UpdateParams defined a governance operation for updating the x/evm module parameters. - * The authority is hard-coded to the Cosmos SDK x/gov module account - * - * @generated from rpc ethermint.evm.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ethermint/evm/v1/tx_pb.ts b/libs/es-client/src/protobufs/ethermint/evm/v1/tx_pb.ts deleted file mode 100644 index 10eb686..0000000 --- a/libs/es-client/src/protobufs/ethermint/evm/v1/tx_pb.ts +++ /dev/null @@ -1,627 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/evm/v1/tx.proto (package ethermint.evm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AccessTuple, Log, Params } from "./evm_pb.js"; - -/** - * MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. - * - * @generated from message ethermint.evm.v1.MsgEthereumTx - */ -export class MsgEthereumTx extends Message { - /** - * data is inner transaction data of the Ethereum transaction - * - * @generated from field: google.protobuf.Any data = 1; - */ - data?: Any; - - /** - * size is the encoded storage size of the transaction (DEPRECATED) - * - * @generated from field: double size = 2; - */ - size = 0; - - /** - * hash of the transaction in hex format - * - * @generated from field: string hash = 3; - */ - hash = ""; - - /** - * from is the ethereum signer address in hex format. This address value is checked - * against the address derived from the signature (V, R, S) using the - * secp256k1 elliptic curve - * - * @generated from field: string from = 4; - */ - from = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.MsgEthereumTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Any }, - { no: 2, name: "size", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 3, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEthereumTx { - return new MsgEthereumTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEthereumTx { - return new MsgEthereumTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEthereumTx { - return new MsgEthereumTx().fromJsonString(jsonString, options); - } - - static equals(a: MsgEthereumTx | PlainMessage | undefined, b: MsgEthereumTx | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEthereumTx, a, b); - } -} - -/** - * LegacyTx is the transaction data of regular Ethereum transactions. - * NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the - * AllowUnprotectedTxs parameter is disabled. - * - * @generated from message ethermint.evm.v1.LegacyTx - */ -export class LegacyTx extends Message { - /** - * nonce corresponds to the account nonce (transaction sequence). - * - * @generated from field: uint64 nonce = 1; - */ - nonce = protoInt64.zero; - - /** - * gas_price defines the value for each gas unit - * - * @generated from field: string gas_price = 2; - */ - gasPrice = ""; - - /** - * gas defines the gas limit defined for the transaction. - * - * @generated from field: uint64 gas = 3; - */ - gas = protoInt64.zero; - - /** - * to is the hex formatted address of the recipient - * - * @generated from field: string to = 4; - */ - to = ""; - - /** - * value defines the unsigned integer value of the transaction amount. - * - * @generated from field: string value = 5; - */ - value = ""; - - /** - * data is the data payload bytes of the transaction. - * - * @generated from field: bytes data = 6; - */ - data = new Uint8Array(0); - - /** - * v defines the signature value - * - * @generated from field: bytes v = 7; - */ - v = new Uint8Array(0); - - /** - * r defines the signature value - * - * @generated from field: bytes r = 8; - */ - r = new Uint8Array(0); - - /** - * s define the signature value - * - * @generated from field: bytes s = 9; - */ - s = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.LegacyTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LegacyTx { - return new LegacyTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LegacyTx { - return new LegacyTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LegacyTx { - return new LegacyTx().fromJsonString(jsonString, options); - } - - static equals(a: LegacyTx | PlainMessage | undefined, b: LegacyTx | PlainMessage | undefined): boolean { - return proto3.util.equals(LegacyTx, a, b); - } -} - -/** - * AccessListTx is the data of EIP-2930 access list transactions. - * - * @generated from message ethermint.evm.v1.AccessListTx - */ -export class AccessListTx extends Message { - /** - * chain_id of the destination EVM chain - * - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * nonce corresponds to the account nonce (transaction sequence). - * - * @generated from field: uint64 nonce = 2; - */ - nonce = protoInt64.zero; - - /** - * gas_price defines the value for each gas unit - * - * @generated from field: string gas_price = 3; - */ - gasPrice = ""; - - /** - * gas defines the gas limit defined for the transaction. - * - * @generated from field: uint64 gas = 4; - */ - gas = protoInt64.zero; - - /** - * to is the recipient address in hex format - * - * @generated from field: string to = 5; - */ - to = ""; - - /** - * value defines the unsigned integer value of the transaction amount. - * - * @generated from field: string value = 6; - */ - value = ""; - - /** - * data is the data payload bytes of the transaction. - * - * @generated from field: bytes data = 7; - */ - data = new Uint8Array(0); - - /** - * accesses is an array of access tuples - * - * @generated from field: repeated ethermint.evm.v1.AccessTuple accesses = 8; - */ - accesses: AccessTuple[] = []; - - /** - * v defines the signature value - * - * @generated from field: bytes v = 9; - */ - v = new Uint8Array(0); - - /** - * r defines the signature value - * - * @generated from field: bytes r = 10; - */ - r = new Uint8Array(0); - - /** - * s define the signature value - * - * @generated from field: bytes s = 11; - */ - s = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.AccessListTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "accesses", kind: "message", T: AccessTuple, repeated: true }, - { no: 9, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccessListTx { - return new AccessListTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccessListTx { - return new AccessListTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccessListTx { - return new AccessListTx().fromJsonString(jsonString, options); - } - - static equals(a: AccessListTx | PlainMessage | undefined, b: AccessListTx | PlainMessage | undefined): boolean { - return proto3.util.equals(AccessListTx, a, b); - } -} - -/** - * DynamicFeeTx is the data of EIP-1559 dinamic fee transactions. - * - * @generated from message ethermint.evm.v1.DynamicFeeTx - */ -export class DynamicFeeTx extends Message { - /** - * chain_id of the destination EVM chain - * - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * nonce corresponds to the account nonce (transaction sequence). - * - * @generated from field: uint64 nonce = 2; - */ - nonce = protoInt64.zero; - - /** - * gas_tip_cap defines the max value for the gas tip - * - * @generated from field: string gas_tip_cap = 3; - */ - gasTipCap = ""; - - /** - * gas_fee_cap defines the max value for the gas fee - * - * @generated from field: string gas_fee_cap = 4; - */ - gasFeeCap = ""; - - /** - * gas defines the gas limit defined for the transaction. - * - * @generated from field: uint64 gas = 5; - */ - gas = protoInt64.zero; - - /** - * to is the hex formatted address of the recipient - * - * @generated from field: string to = 6; - */ - to = ""; - - /** - * value defines the the transaction amount. - * - * @generated from field: string value = 7; - */ - value = ""; - - /** - * data is the data payload bytes of the transaction. - * - * @generated from field: bytes data = 8; - */ - data = new Uint8Array(0); - - /** - * accesses is an array of access tuples - * - * @generated from field: repeated ethermint.evm.v1.AccessTuple accesses = 9; - */ - accesses: AccessTuple[] = []; - - /** - * v defines the signature value - * - * @generated from field: bytes v = 10; - */ - v = new Uint8Array(0); - - /** - * r defines the signature value - * - * @generated from field: bytes r = 11; - */ - r = new Uint8Array(0); - - /** - * s define the signature value - * - * @generated from field: bytes s = 12; - */ - s = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.DynamicFeeTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "gas_tip_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "gas_fee_cap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "accesses", kind: "message", T: AccessTuple, repeated: true }, - { no: 10, name: "v", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "r", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 12, name: "s", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DynamicFeeTx { - return new DynamicFeeTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DynamicFeeTx { - return new DynamicFeeTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DynamicFeeTx { - return new DynamicFeeTx().fromJsonString(jsonString, options); - } - - static equals(a: DynamicFeeTx | PlainMessage | undefined, b: DynamicFeeTx | PlainMessage | undefined): boolean { - return proto3.util.equals(DynamicFeeTx, a, b); - } -} - -/** - * ExtensionOptionsEthereumTx is an extension option for ethereum transactions - * - * @generated from message ethermint.evm.v1.ExtensionOptionsEthereumTx - */ -export class ExtensionOptionsEthereumTx extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.ExtensionOptionsEthereumTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionOptionsEthereumTx { - return new ExtensionOptionsEthereumTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionOptionsEthereumTx { - return new ExtensionOptionsEthereumTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtensionOptionsEthereumTx { - return new ExtensionOptionsEthereumTx().fromJsonString(jsonString, options); - } - - static equals(a: ExtensionOptionsEthereumTx | PlainMessage | undefined, b: ExtensionOptionsEthereumTx | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtensionOptionsEthereumTx, a, b); - } -} - -/** - * MsgEthereumTxResponse defines the Msg/EthereumTx response type. - * - * @generated from message ethermint.evm.v1.MsgEthereumTxResponse - */ -export class MsgEthereumTxResponse extends Message { - /** - * hash of the ethereum transaction in hex format. This hash differs from the - * Tendermint sha256 hash of the transaction bytes. See - * https://github.com/tendermint/tendermint/issues/6539 for reference - * - * @generated from field: string hash = 1; - */ - hash = ""; - - /** - * logs contains the transaction hash and the proto-compatible ethereum - * logs. - * - * @generated from field: repeated ethermint.evm.v1.Log logs = 2; - */ - logs: Log[] = []; - - /** - * ret is the returned data from evm function (result or data supplied with revert - * opcode) - * - * @generated from field: bytes ret = 3; - */ - ret = new Uint8Array(0); - - /** - * vm_error is the error returned by vm execution - * - * @generated from field: string vm_error = 4; - */ - vmError = ""; - - /** - * gas_used specifies how much gas was consumed by the transaction - * - * @generated from field: uint64 gas_used = 5; - */ - gasUsed = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.MsgEthereumTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "logs", kind: "message", T: Log, repeated: true }, - { no: 3, name: "ret", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "vm_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEthereumTxResponse { - return new MsgEthereumTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEthereumTxResponse { - return new MsgEthereumTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEthereumTxResponse { - return new MsgEthereumTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgEthereumTxResponse | PlainMessage | undefined, b: MsgEthereumTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEthereumTxResponse, a, b); - } -} - -/** - * MsgUpdateParams defines a Msg for updating the x/evm module parameters. - * - * @generated from message ethermint.evm.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/evm parameters to update. - * NOTE: All parameters must be supplied. - * - * @generated from field: ethermint.evm.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * @generated from message ethermint.evm.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.evm.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/feemarket/v1/events_pb.ts b/libs/es-client/src/protobufs/ethermint/feemarket/v1/events_pb.ts deleted file mode 100644 index 54e0797..0000000 --- a/libs/es-client/src/protobufs/ethermint/feemarket/v1/events_pb.ts +++ /dev/null @@ -1,98 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/feemarket/v1/events.proto (package ethermint.feemarket.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * EventFeeMarket is the event type for the fee market module - * - * @generated from message ethermint.feemarket.v1.EventFeeMarket - */ -export class EventFeeMarket extends Message { - /** - * base_fee for EIP-1559 blocks - * - * @generated from field: string base_fee = 1; - */ - baseFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.EventFeeMarket"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventFeeMarket { - return new EventFeeMarket().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventFeeMarket { - return new EventFeeMarket().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventFeeMarket { - return new EventFeeMarket().fromJsonString(jsonString, options); - } - - static equals(a: EventFeeMarket | PlainMessage | undefined, b: EventFeeMarket | PlainMessage | undefined): boolean { - return proto3.util.equals(EventFeeMarket, a, b); - } -} - -/** - * EventBlockGas defines an Ethereum block gas event - * - * @generated from message ethermint.feemarket.v1.EventBlockGas - */ -export class EventBlockGas extends Message { - /** - * height of the block - * - * @generated from field: string height = 1; - */ - height = ""; - - /** - * amount of gas wanted by the block - * - * @generated from field: string amount = 2; - */ - amount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.EventBlockGas"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventBlockGas { - return new EventBlockGas().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventBlockGas { - return new EventBlockGas().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventBlockGas { - return new EventBlockGas().fromJsonString(jsonString, options); - } - - static equals(a: EventBlockGas | PlainMessage | undefined, b: EventBlockGas | PlainMessage | undefined): boolean { - return proto3.util.equals(EventBlockGas, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts b/libs/es-client/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts deleted file mode 100644 index dd7757c..0000000 --- a/libs/es-client/src/protobufs/ethermint/feemarket/v1/feemarket_pb.ts +++ /dev/null @@ -1,100 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/feemarket/v1/feemarket.proto (package ethermint.feemarket.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Params defines the EVM module parameters - * - * @generated from message ethermint.feemarket.v1.Params - */ -export class Params extends Message { - /** - * no_base_fee forces the EIP-1559 base fee to 0 (needed for 0 price calls) - * - * @generated from field: bool no_base_fee = 1; - */ - noBaseFee = false; - - /** - * base_fee_change_denominator bounds the amount the base fee can change - * between blocks. - * - * @generated from field: uint32 base_fee_change_denominator = 2; - */ - baseFeeChangeDenominator = 0; - - /** - * elasticity_multiplier bounds the maximum gas limit an EIP-1559 block may - * have. - * - * @generated from field: uint32 elasticity_multiplier = 3; - */ - elasticityMultiplier = 0; - - /** - * enable_height defines at which block height the base fee calculation is enabled. - * - * @generated from field: int64 enable_height = 5; - */ - enableHeight = protoInt64.zero; - - /** - * base_fee for EIP-1559 blocks. - * - * @generated from field: string base_fee = 6; - */ - baseFee = ""; - - /** - * min_gas_price defines the minimum gas price value for cosmos and eth transactions - * - * @generated from field: string min_gas_price = 7; - */ - minGasPrice = ""; - - /** - * min_gas_multiplier bounds the minimum gas used to be charged - * to senders based on gas limit - * - * @generated from field: string min_gas_multiplier = 8; - */ - minGasMultiplier = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "no_base_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "base_fee_change_denominator", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "elasticity_multiplier", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "enable_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "min_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "min_gas_multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts deleted file mode 100644 index 78c369a..0000000 --- a/libs/es-client/src/protobufs/ethermint/feemarket/v1/genesis_pb.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/feemarket/v1/genesis.proto (package ethermint.feemarket.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./feemarket_pb.js"; - -/** - * GenesisState defines the feemarket module's genesis state. - * - * @generated from message ethermint.feemarket.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines all the parameters of the feemarket module. - * - * @generated from field: ethermint.feemarket.v1.Params params = 1; - */ - params?: Params; - - /** - * block_gas is the amount of gas wanted on the last block before the upgrade. - * Zero by default. - * - * @generated from field: uint64 block_gas = 3; - */ - blockGas = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 3, name: "block_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts deleted file mode 100644 index 524253a..0000000 --- a/libs/es-client/src/protobufs/ethermint/feemarket/v1/query_cosmes.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ethermint/feemarket/v1/query.proto (package ethermint.feemarket.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBaseFeeRequest, QueryBaseFeeResponse, QueryBlockGasRequest, QueryBlockGasResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "ethermint.feemarket.v1.Query"; - -/** - * Params queries the parameters of x/feemarket module. - * - * @generated from rpc ethermint.feemarket.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * BaseFee queries the base fee of the parent block of the current block. - * - * @generated from rpc ethermint.feemarket.v1.Query.BaseFee - */ -export const QueryBaseFeeService = { - typeName: TYPE_NAME, - method: "BaseFee", - Request: QueryBaseFeeRequest, - Response: QueryBaseFeeResponse, -} as const; - -/** - * BlockGas queries the gas used at a given block height - * - * @generated from rpc ethermint.feemarket.v1.Query.BlockGas - */ -export const QueryBlockGasService = { - typeName: TYPE_NAME, - method: "BlockGas", - Request: QueryBlockGasRequest, - Response: QueryBlockGasResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ethermint/feemarket/v1/query_pb.ts b/libs/es-client/src/protobufs/ethermint/feemarket/v1/query_pb.ts deleted file mode 100644 index e036976..0000000 --- a/libs/es-client/src/protobufs/ethermint/feemarket/v1/query_pb.ts +++ /dev/null @@ -1,233 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/feemarket/v1/query.proto (package ethermint.feemarket.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./feemarket_pb.js"; - -/** - * QueryParamsRequest defines the request type for querying x/evm parameters. - * - * @generated from message ethermint.feemarket.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse defines the response type for querying x/evm parameters. - * - * @generated from message ethermint.feemarket.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params define the evm module parameters. - * - * @generated from field: ethermint.feemarket.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryBaseFeeRequest defines the request type for querying the EIP1559 base - * fee. - * - * @generated from message ethermint.feemarket.v1.QueryBaseFeeRequest - */ -export class QueryBaseFeeRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.QueryBaseFeeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeRequest { - return new QueryBaseFeeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeRequest { - return new QueryBaseFeeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeRequest { - return new QueryBaseFeeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseFeeRequest | PlainMessage | undefined, b: QueryBaseFeeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseFeeRequest, a, b); - } -} - -/** - * QueryBaseFeeResponse returns the EIP1559 base fee. - * - * @generated from message ethermint.feemarket.v1.QueryBaseFeeResponse - */ -export class QueryBaseFeeResponse extends Message { - /** - * base_fee is the EIP1559 base fee - * - * @generated from field: string base_fee = 1; - */ - baseFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.QueryBaseFeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseFeeResponse { - return new QueryBaseFeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseFeeResponse { - return new QueryBaseFeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseFeeResponse { - return new QueryBaseFeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseFeeResponse | PlainMessage | undefined, b: QueryBaseFeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseFeeResponse, a, b); - } -} - -/** - * QueryBlockGasRequest defines the request type for querying the EIP1559 base - * fee. - * - * @generated from message ethermint.feemarket.v1.QueryBlockGasRequest - */ -export class QueryBlockGasRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.QueryBlockGasRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlockGasRequest { - return new QueryBlockGasRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlockGasRequest { - return new QueryBlockGasRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBlockGasRequest { - return new QueryBlockGasRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBlockGasRequest | PlainMessage | undefined, b: QueryBlockGasRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBlockGasRequest, a, b); - } -} - -/** - * QueryBlockGasResponse returns block gas used for a given height. - * - * @generated from message ethermint.feemarket.v1.QueryBlockGasResponse - */ -export class QueryBlockGasResponse extends Message { - /** - * gas is the returned block gas - * - * @generated from field: int64 gas = 1; - */ - gas = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.QueryBlockGasResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlockGasResponse { - return new QueryBlockGasResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlockGasResponse { - return new QueryBlockGasResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBlockGasResponse { - return new QueryBlockGasResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBlockGasResponse | PlainMessage | undefined, b: QueryBlockGasResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBlockGasResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts deleted file mode 100644 index 44cc3b7..0000000 --- a/libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ethermint/feemarket/v1/tx.proto (package ethermint.feemarket.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ethermint.feemarket.v1.Msg"; - -/** - * UpdateParams defined a governance operation for updating the x/feemarket module parameters. - * The authority is hard-coded to the Cosmos SDK x/gov module account - * - * @generated from rpc ethermint.feemarket.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_pb.ts b/libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_pb.ts deleted file mode 100644 index 9e99c48..0000000 --- a/libs/es-client/src/protobufs/ethermint/feemarket/v1/tx_pb.ts +++ /dev/null @@ -1,93 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/feemarket/v1/tx.proto (package ethermint.feemarket.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./feemarket_pb.js"; - -/** - * MsgUpdateParams defines a Msg for updating the x/feemarket module parameters. - * - * @generated from message ethermint.feemarket.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the x/feemarket parameters to update. - * NOTE: All parameters must be supplied. - * - * @generated from field: ethermint.feemarket.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * @generated from message ethermint.feemarket.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.feemarket.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/types/v1/account_pb.ts b/libs/es-client/src/protobufs/ethermint/types/v1/account_pb.ts deleted file mode 100644 index 31e5356..0000000 --- a/libs/es-client/src/protobufs/ethermint/types/v1/account_pb.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/types/v1/account.proto (package ethermint.types.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { BaseAccount } from "../../../cosmos/auth/v1beta1/auth_pb.js"; - -/** - * EthAccount implements the authtypes.AccountI interface and embeds an - * authtypes.BaseAccount type. It is compatible with the auth AccountKeeper. - * - * @generated from message ethermint.types.v1.EthAccount - */ -export class EthAccount extends Message { - /** - * base_account is an authtypes.BaseAccount - * - * @generated from field: cosmos.auth.v1beta1.BaseAccount base_account = 1; - */ - baseAccount?: BaseAccount; - - /** - * code_hash is the hash calculated from the code contents - * - * @generated from field: string code_hash = 2; - */ - codeHash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.types.v1.EthAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_account", kind: "message", T: BaseAccount }, - { no: 2, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EthAccount { - return new EthAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EthAccount { - return new EthAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EthAccount { - return new EthAccount().fromJsonString(jsonString, options); - } - - static equals(a: EthAccount | PlainMessage | undefined, b: EthAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(EthAccount, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts b/libs/es-client/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts deleted file mode 100644 index 08187b2..0000000 --- a/libs/es-client/src/protobufs/ethermint/types/v1/dynamic_fee_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/types/v1/dynamic_fee.proto (package ethermint.types.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ExtensionOptionDynamicFeeTx is an extension option that specifies the maxPrioPrice for cosmos tx - * - * @generated from message ethermint.types.v1.ExtensionOptionDynamicFeeTx - */ -export class ExtensionOptionDynamicFeeTx extends Message { - /** - * max_priority_price is the same as `max_priority_fee_per_gas` in eip-1559 spec - * - * @generated from field: string max_priority_price = 1; - */ - maxPriorityPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.types.v1.ExtensionOptionDynamicFeeTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_priority_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionOptionDynamicFeeTx { - return new ExtensionOptionDynamicFeeTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionOptionDynamicFeeTx { - return new ExtensionOptionDynamicFeeTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtensionOptionDynamicFeeTx { - return new ExtensionOptionDynamicFeeTx().fromJsonString(jsonString, options); - } - - static equals(a: ExtensionOptionDynamicFeeTx | PlainMessage | undefined, b: ExtensionOptionDynamicFeeTx | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtensionOptionDynamicFeeTx, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/types/v1/indexer_pb.ts b/libs/es-client/src/protobufs/ethermint/types/v1/indexer_pb.ts deleted file mode 100644 index f5d92ec..0000000 --- a/libs/es-client/src/protobufs/ethermint/types/v1/indexer_pb.ts +++ /dev/null @@ -1,100 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/types/v1/indexer.proto (package ethermint.types.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * TxResult is the value stored in eth tx indexer - * - * @generated from message ethermint.types.v1.TxResult - */ -export class TxResult extends Message { - /** - * height of the blockchain - * - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * tx_index of the cosmos transaction - * - * @generated from field: uint32 tx_index = 2; - */ - txIndex = 0; - - /** - * msg_index in a batch transaction - * - * @generated from field: uint32 msg_index = 3; - */ - msgIndex = 0; - - /** - * eth_tx_index is the index in the list of valid eth tx in the block, - * aka. the transaction list returned by eth_getBlock api. - * - * @generated from field: int32 eth_tx_index = 4; - */ - ethTxIndex = 0; - - /** - * failed is true if the eth transaction did not go succeed - * - * @generated from field: bool failed = 5; - */ - failed = false; - - /** - * gas_used by the transaction. If it exceeds the block gas limit, - * it's set to gas limit, which is what's actually deducted by ante handler. - * - * @generated from field: uint64 gas_used = 6; - */ - gasUsed = protoInt64.zero; - - /** - * cumulative_gas_used specifies the cumulated amount of gas used for all - * processed messages within the current batch transaction. - * - * @generated from field: uint64 cumulative_gas_used = 7; - */ - cumulativeGasUsed = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.types.v1.TxResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "tx_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "msg_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "eth_tx_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "cumulative_gas_used", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { - return new TxResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxResult { - return new TxResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxResult { - return new TxResult().fromJsonString(jsonString, options); - } - - static equals(a: TxResult | PlainMessage | undefined, b: TxResult | PlainMessage | undefined): boolean { - return proto3.util.equals(TxResult, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ethermint/types/v1/web3_pb.ts b/libs/es-client/src/protobufs/ethermint/types/v1/web3_pb.ts deleted file mode 100644 index 891b5fe..0000000 --- a/libs/es-client/src/protobufs/ethermint/types/v1/web3_pb.ts +++ /dev/null @@ -1,69 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ethermint/types/v1/web3.proto (package ethermint.types.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * ExtensionOptionsWeb3Tx is an extension option that specifies the typed chain id, - * the fee payer as well as its signature data. - * - * @generated from message ethermint.types.v1.ExtensionOptionsWeb3Tx - */ -export class ExtensionOptionsWeb3Tx extends Message { - /** - * typed_data_chain_id is used only in EIP712 Domain and should match - * Ethereum network ID in a Web3 provider (e.g. Metamask). - * - * @generated from field: uint64 typed_data_chain_id = 1; - */ - typedDataChainId = protoInt64.zero; - - /** - * fee_payer is an account address for the fee payer. It will be validated - * during EIP712 signature checking. - * - * @generated from field: string fee_payer = 2; - */ - feePayer = ""; - - /** - * fee_payer_sig is a signature data from the fee paying account, - * allows to perform fee delegation when using EIP712 Domain. - * - * @generated from field: bytes fee_payer_sig = 3; - */ - feePayerSig = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ethermint.types.v1.ExtensionOptionsWeb3Tx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "typed_data_chain_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "fee_payer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "fee_payer_sig", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtensionOptionsWeb3Tx { - return new ExtensionOptionsWeb3Tx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtensionOptionsWeb3Tx { - return new ExtensionOptionsWeb3Tx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtensionOptionsWeb3Tx { - return new ExtensionOptionsWeb3Tx().fromJsonString(jsonString, options); - } - - static equals(a: ExtensionOptionsWeb3Tx | PlainMessage | undefined, b: ExtensionOptionsWeb3Tx | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtensionOptionsWeb3Tx, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/ack_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/ack_pb.ts deleted file mode 100644 index 6963d28..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/ack_pb.ts +++ /dev/null @@ -1,65 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/ack.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * IncentivizedAcknowledgement is the acknowledgement format to be used by applications wrapped in the fee middleware - * - * @generated from message ibc.applications.fee.v1.IncentivizedAcknowledgement - */ -export class IncentivizedAcknowledgement extends Message { - /** - * the underlying app acknowledgement bytes - * - * @generated from field: bytes app_acknowledgement = 1; - */ - appAcknowledgement = new Uint8Array(0); - - /** - * the relayer address which submits the recv packet message - * - * @generated from field: string forward_relayer_address = 2; - */ - forwardRelayerAddress = ""; - - /** - * success flag of the base application callback - * - * @generated from field: bool underlying_app_success = 3; - */ - underlyingAppSuccess = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.IncentivizedAcknowledgement"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app_acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "forward_relayer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "underlying_app_success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IncentivizedAcknowledgement { - return new IncentivizedAcknowledgement().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IncentivizedAcknowledgement { - return new IncentivizedAcknowledgement().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IncentivizedAcknowledgement { - return new IncentivizedAcknowledgement().fromJsonString(jsonString, options); - } - - static equals(a: IncentivizedAcknowledgement | PlainMessage | undefined, b: IncentivizedAcknowledgement | PlainMessage | undefined): boolean { - return proto3.util.equals(IncentivizedAcknowledgement, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/fee_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/fee_pb.ts deleted file mode 100644 index e120d6c..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/fee_pb.ts +++ /dev/null @@ -1,214 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/fee.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; -import { PacketId } from "../../../core/channel/v1/channel_pb.js"; - -/** - * Fee defines the ICS29 receive, acknowledgement and timeout fees - * - * @generated from message ibc.applications.fee.v1.Fee - */ -export class Fee extends Message { - /** - * the packet receive fee - * - * @generated from field: repeated cosmos.base.v1beta1.Coin recv_fee = 1; - */ - recvFee: Coin[] = []; - - /** - * the packet acknowledgement fee - * - * @generated from field: repeated cosmos.base.v1beta1.Coin ack_fee = 2; - */ - ackFee: Coin[] = []; - - /** - * the packet timeout fee - * - * @generated from field: repeated cosmos.base.v1beta1.Coin timeout_fee = 3; - */ - timeoutFee: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.Fee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "recv_fee", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "ack_fee", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "timeout_fee", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Fee { - return new Fee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Fee { - return new Fee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Fee { - return new Fee().fromJsonString(jsonString, options); - } - - static equals(a: Fee | PlainMessage | undefined, b: Fee | PlainMessage | undefined): boolean { - return proto3.util.equals(Fee, a, b); - } -} - -/** - * PacketFee contains ICS29 relayer fees, refund address and optional list of permitted relayers - * - * @generated from message ibc.applications.fee.v1.PacketFee - */ -export class PacketFee extends Message { - /** - * fee encapsulates the recv, ack and timeout fees associated with an IBC packet - * - * @generated from field: ibc.applications.fee.v1.Fee fee = 1; - */ - fee?: Fee; - - /** - * the refund address for unspent fees - * - * @generated from field: string refund_address = 2; - */ - refundAddress = ""; - - /** - * optional list of relayers permitted to receive fees - * - * @generated from field: repeated string relayers = 3; - */ - relayers: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.PacketFee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee", kind: "message", T: Fee }, - { no: 2, name: "refund_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "relayers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketFee { - return new PacketFee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketFee { - return new PacketFee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketFee { - return new PacketFee().fromJsonString(jsonString, options); - } - - static equals(a: PacketFee | PlainMessage | undefined, b: PacketFee | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketFee, a, b); - } -} - -/** - * PacketFees contains a list of type PacketFee - * - * @generated from message ibc.applications.fee.v1.PacketFees - */ -export class PacketFees extends Message { - /** - * list of packet fees - * - * @generated from field: repeated ibc.applications.fee.v1.PacketFee packet_fees = 1; - */ - packetFees: PacketFee[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.PacketFees"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet_fees", kind: "message", T: PacketFee, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketFees { - return new PacketFees().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketFees { - return new PacketFees().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketFees { - return new PacketFees().fromJsonString(jsonString, options); - } - - static equals(a: PacketFees | PlainMessage | undefined, b: PacketFees | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketFees, a, b); - } -} - -/** - * IdentifiedPacketFees contains a list of type PacketFee and associated PacketId - * - * @generated from message ibc.applications.fee.v1.IdentifiedPacketFees - */ -export class IdentifiedPacketFees extends Message { - /** - * unique packet identifier comprised of the channel ID, port ID and sequence - * - * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; - */ - packetId?: PacketId; - - /** - * list of packet fees - * - * @generated from field: repeated ibc.applications.fee.v1.PacketFee packet_fees = 2; - */ - packetFees: PacketFee[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.IdentifiedPacketFees"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet_id", kind: "message", T: PacketId }, - { no: 2, name: "packet_fees", kind: "message", T: PacketFee, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedPacketFees { - return new IdentifiedPacketFees().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedPacketFees { - return new IdentifiedPacketFees().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IdentifiedPacketFees { - return new IdentifiedPacketFees().fromJsonString(jsonString, options); - } - - static equals(a: IdentifiedPacketFees | PlainMessage | undefined, b: IdentifiedPacketFees | PlainMessage | undefined): boolean { - return proto3.util.equals(IdentifiedPacketFees, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts deleted file mode 100644 index 766781e..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/genesis_pb.ts +++ /dev/null @@ -1,296 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/genesis.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { IdentifiedPacketFees } from "./fee_pb.js"; -import { PacketId } from "../../../core/channel/v1/channel_pb.js"; - -/** - * GenesisState defines the ICS29 fee middleware genesis state - * - * @generated from message ibc.applications.fee.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * list of identified packet fees - * - * @generated from field: repeated ibc.applications.fee.v1.IdentifiedPacketFees identified_fees = 1; - */ - identifiedFees: IdentifiedPacketFees[] = []; - - /** - * list of fee enabled channels - * - * @generated from field: repeated ibc.applications.fee.v1.FeeEnabledChannel fee_enabled_channels = 2; - */ - feeEnabledChannels: FeeEnabledChannel[] = []; - - /** - * list of registered payees - * - * @generated from field: repeated ibc.applications.fee.v1.RegisteredPayee registered_payees = 3; - */ - registeredPayees: RegisteredPayee[] = []; - - /** - * list of registered counterparty payees - * - * @generated from field: repeated ibc.applications.fee.v1.RegisteredCounterpartyPayee registered_counterparty_payees = 4; - */ - registeredCounterpartyPayees: RegisteredCounterpartyPayee[] = []; - - /** - * list of forward relayer addresses - * - * @generated from field: repeated ibc.applications.fee.v1.ForwardRelayerAddress forward_relayers = 5; - */ - forwardRelayers: ForwardRelayerAddress[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "identified_fees", kind: "message", T: IdentifiedPacketFees, repeated: true }, - { no: 2, name: "fee_enabled_channels", kind: "message", T: FeeEnabledChannel, repeated: true }, - { no: 3, name: "registered_payees", kind: "message", T: RegisteredPayee, repeated: true }, - { no: 4, name: "registered_counterparty_payees", kind: "message", T: RegisteredCounterpartyPayee, repeated: true }, - { no: 5, name: "forward_relayers", kind: "message", T: ForwardRelayerAddress, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * FeeEnabledChannel contains the PortID & ChannelID for a fee enabled channel - * - * @generated from message ibc.applications.fee.v1.FeeEnabledChannel - */ -export class FeeEnabledChannel extends Message { - /** - * unique port identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * unique channel identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.FeeEnabledChannel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FeeEnabledChannel { - return new FeeEnabledChannel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FeeEnabledChannel { - return new FeeEnabledChannel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FeeEnabledChannel { - return new FeeEnabledChannel().fromJsonString(jsonString, options); - } - - static equals(a: FeeEnabledChannel | PlainMessage | undefined, b: FeeEnabledChannel | PlainMessage | undefined): boolean { - return proto3.util.equals(FeeEnabledChannel, a, b); - } -} - -/** - * RegisteredPayee contains the relayer address and payee address for a specific channel - * - * @generated from message ibc.applications.fee.v1.RegisteredPayee - */ -export class RegisteredPayee extends Message { - /** - * unique channel identifier - * - * @generated from field: string channel_id = 1; - */ - channelId = ""; - - /** - * the relayer address - * - * @generated from field: string relayer = 2; - */ - relayer = ""; - - /** - * the payee address - * - * @generated from field: string payee = 3; - */ - payee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.RegisteredPayee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredPayee { - return new RegisteredPayee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredPayee { - return new RegisteredPayee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RegisteredPayee { - return new RegisteredPayee().fromJsonString(jsonString, options); - } - - static equals(a: RegisteredPayee | PlainMessage | undefined, b: RegisteredPayee | PlainMessage | undefined): boolean { - return proto3.util.equals(RegisteredPayee, a, b); - } -} - -/** - * RegisteredCounterpartyPayee contains the relayer address and counterparty payee address for a specific channel (used - * for recv fee distribution) - * - * @generated from message ibc.applications.fee.v1.RegisteredCounterpartyPayee - */ -export class RegisteredCounterpartyPayee extends Message { - /** - * unique channel identifier - * - * @generated from field: string channel_id = 1; - */ - channelId = ""; - - /** - * the relayer address - * - * @generated from field: string relayer = 2; - */ - relayer = ""; - - /** - * the counterparty payee address - * - * @generated from field: string counterparty_payee = 3; - */ - counterpartyPayee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.RegisteredCounterpartyPayee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "counterparty_payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredCounterpartyPayee { - return new RegisteredCounterpartyPayee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredCounterpartyPayee { - return new RegisteredCounterpartyPayee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RegisteredCounterpartyPayee { - return new RegisteredCounterpartyPayee().fromJsonString(jsonString, options); - } - - static equals(a: RegisteredCounterpartyPayee | PlainMessage | undefined, b: RegisteredCounterpartyPayee | PlainMessage | undefined): boolean { - return proto3.util.equals(RegisteredCounterpartyPayee, a, b); - } -} - -/** - * ForwardRelayerAddress contains the forward relayer address and PacketId used for async acknowledgements - * - * @generated from message ibc.applications.fee.v1.ForwardRelayerAddress - */ -export class ForwardRelayerAddress extends Message { - /** - * the forward relayer address - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * unique packet identifier comprised of the channel ID, port ID and sequence - * - * @generated from field: ibc.core.channel.v1.PacketId packet_id = 2; - */ - packetId?: PacketId; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.ForwardRelayerAddress"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "packet_id", kind: "message", T: PacketId }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ForwardRelayerAddress { - return new ForwardRelayerAddress().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ForwardRelayerAddress { - return new ForwardRelayerAddress().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ForwardRelayerAddress { - return new ForwardRelayerAddress().fromJsonString(jsonString, options); - } - - static equals(a: ForwardRelayerAddress | PlainMessage | undefined, b: ForwardRelayerAddress | PlainMessage | undefined): boolean { - return proto3.util.equals(ForwardRelayerAddress, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts deleted file mode 100644 index 67da24f..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/metadata_pb.ts +++ /dev/null @@ -1,58 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/metadata.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Metadata defines the ICS29 channel specific metadata encoded into the channel version bytestring - * See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning - * - * @generated from message ibc.applications.fee.v1.Metadata - */ -export class Metadata extends Message { - /** - * fee_version defines the ICS29 fee version - * - * @generated from field: string fee_version = 1; - */ - feeVersion = ""; - - /** - * app_version defines the underlying application version, which may or may not be a JSON encoded bytestring - * - * @generated from field: string app_version = 2; - */ - appVersion = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.Metadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "app_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { - return new Metadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { - return new Metadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Metadata { - return new Metadata().fromJsonString(jsonString, options); - } - - static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { - return proto3.util.equals(Metadata, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts deleted file mode 100644 index 9e54de9..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_cosmes.ts +++ /dev/null @@ -1,129 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/query.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryCounterpartyPayeeRequest, QueryCounterpartyPayeeResponse, QueryFeeEnabledChannelRequest, QueryFeeEnabledChannelResponse, QueryFeeEnabledChannelsRequest, QueryFeeEnabledChannelsResponse, QueryIncentivizedPacketRequest, QueryIncentivizedPacketResponse, QueryIncentivizedPacketsForChannelRequest, QueryIncentivizedPacketsForChannelResponse, QueryIncentivizedPacketsRequest, QueryIncentivizedPacketsResponse, QueryPayeeRequest, QueryPayeeResponse, QueryTotalAckFeesRequest, QueryTotalAckFeesResponse, QueryTotalRecvFeesRequest, QueryTotalRecvFeesResponse, QueryTotalTimeoutFeesRequest, QueryTotalTimeoutFeesResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.applications.fee.v1.Query"; - -/** - * IncentivizedPackets returns all incentivized packets and their associated fees - * - * @generated from rpc ibc.applications.fee.v1.Query.IncentivizedPackets - */ -export const QueryIncentivizedPacketsService = { - typeName: TYPE_NAME, - method: "IncentivizedPackets", - Request: QueryIncentivizedPacketsRequest, - Response: QueryIncentivizedPacketsResponse, -} as const; - -/** - * IncentivizedPacket returns all packet fees for a packet given its identifier - * - * @generated from rpc ibc.applications.fee.v1.Query.IncentivizedPacket - */ -export const QueryIncentivizedPacketService = { - typeName: TYPE_NAME, - method: "IncentivizedPacket", - Request: QueryIncentivizedPacketRequest, - Response: QueryIncentivizedPacketResponse, -} as const; - -/** - * Gets all incentivized packets for a specific channel - * - * @generated from rpc ibc.applications.fee.v1.Query.IncentivizedPacketsForChannel - */ -export const QueryIncentivizedPacketsForChannelService = { - typeName: TYPE_NAME, - method: "IncentivizedPacketsForChannel", - Request: QueryIncentivizedPacketsForChannelRequest, - Response: QueryIncentivizedPacketsForChannelResponse, -} as const; - -/** - * TotalRecvFees returns the total receive fees for a packet given its identifier - * - * @generated from rpc ibc.applications.fee.v1.Query.TotalRecvFees - */ -export const QueryTotalRecvFeesService = { - typeName: TYPE_NAME, - method: "TotalRecvFees", - Request: QueryTotalRecvFeesRequest, - Response: QueryTotalRecvFeesResponse, -} as const; - -/** - * TotalAckFees returns the total acknowledgement fees for a packet given its identifier - * - * @generated from rpc ibc.applications.fee.v1.Query.TotalAckFees - */ -export const QueryTotalAckFeesService = { - typeName: TYPE_NAME, - method: "TotalAckFees", - Request: QueryTotalAckFeesRequest, - Response: QueryTotalAckFeesResponse, -} as const; - -/** - * TotalTimeoutFees returns the total timeout fees for a packet given its identifier - * - * @generated from rpc ibc.applications.fee.v1.Query.TotalTimeoutFees - */ -export const QueryTotalTimeoutFeesService = { - typeName: TYPE_NAME, - method: "TotalTimeoutFees", - Request: QueryTotalTimeoutFeesRequest, - Response: QueryTotalTimeoutFeesResponse, -} as const; - -/** - * Payee returns the registered payee address for a specific channel given the relayer address - * - * @generated from rpc ibc.applications.fee.v1.Query.Payee - */ -export const QueryPayeeService = { - typeName: TYPE_NAME, - method: "Payee", - Request: QueryPayeeRequest, - Response: QueryPayeeResponse, -} as const; - -/** - * CounterpartyPayee returns the registered counterparty payee for forward relaying - * - * @generated from rpc ibc.applications.fee.v1.Query.CounterpartyPayee - */ -export const QueryCounterpartyPayeeService = { - typeName: TYPE_NAME, - method: "CounterpartyPayee", - Request: QueryCounterpartyPayeeRequest, - Response: QueryCounterpartyPayeeResponse, -} as const; - -/** - * FeeEnabledChannels returns a list of all fee enabled channels - * - * @generated from rpc ibc.applications.fee.v1.Query.FeeEnabledChannels - */ -export const QueryFeeEnabledChannelsService = { - typeName: TYPE_NAME, - method: "FeeEnabledChannels", - Request: QueryFeeEnabledChannelsRequest, - Response: QueryFeeEnabledChannelsResponse, -} as const; - -/** - * FeeEnabledChannel returns true if the provided port and channel identifiers belong to a fee enabled channel - * - * @generated from rpc ibc.applications.fee.v1.Query.FeeEnabledChannel - */ -export const QueryFeeEnabledChannelService = { - typeName: TYPE_NAME, - method: "FeeEnabledChannel", - Request: QueryFeeEnabledChannelRequest, - Response: QueryFeeEnabledChannelResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_pb.ts deleted file mode 100644 index e46cb70..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/query_pb.ts +++ /dev/null @@ -1,927 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/query.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { IdentifiedPacketFees } from "./fee_pb.js"; -import { PacketId } from "../../../core/channel/v1/channel_pb.js"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; -import { FeeEnabledChannel } from "./genesis_pb.js"; - -/** - * QueryIncentivizedPacketsRequest defines the request type for the IncentivizedPackets rpc - * - * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsRequest - */ -export class QueryIncentivizedPacketsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - /** - * block height at which to query - * - * @generated from field: uint64 query_height = 2; - */ - queryHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - { no: 2, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsRequest { - return new QueryIncentivizedPacketsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsRequest { - return new QueryIncentivizedPacketsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsRequest { - return new QueryIncentivizedPacketsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPacketsRequest | PlainMessage | undefined, b: QueryIncentivizedPacketsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPacketsRequest, a, b); - } -} - -/** - * QueryIncentivizedPacketsResponse defines the response type for the IncentivizedPackets rpc - * - * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsResponse - */ -export class QueryIncentivizedPacketsResponse extends Message { - /** - * list of identified fees for incentivized packets - * - * @generated from field: repeated ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packets = 1; - */ - incentivizedPackets: IdentifiedPacketFees[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "incentivized_packets", kind: "message", T: IdentifiedPacketFees, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsResponse { - return new QueryIncentivizedPacketsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsResponse { - return new QueryIncentivizedPacketsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsResponse { - return new QueryIncentivizedPacketsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPacketsResponse | PlainMessage | undefined, b: QueryIncentivizedPacketsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPacketsResponse, a, b); - } -} - -/** - * QueryIncentivizedPacketRequest defines the request type for the IncentivizedPacket rpc - * - * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketRequest - */ -export class QueryIncentivizedPacketRequest extends Message { - /** - * unique packet identifier comprised of channel ID, port ID and sequence - * - * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; - */ - packetId?: PacketId; - - /** - * block height at which to query - * - * @generated from field: uint64 query_height = 2; - */ - queryHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet_id", kind: "message", T: PacketId }, - { no: 2, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketRequest { - return new QueryIncentivizedPacketRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketRequest { - return new QueryIncentivizedPacketRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketRequest { - return new QueryIncentivizedPacketRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPacketRequest | PlainMessage | undefined, b: QueryIncentivizedPacketRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPacketRequest, a, b); - } -} - -/** - * QueryIncentivizedPacketResponse defines the response type for the IncentivizedPacket rpc - * - * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketResponse - */ -export class QueryIncentivizedPacketResponse extends Message { - /** - * the identified fees for the incentivized packet - * - * @generated from field: ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packet = 1; - */ - incentivizedPacket?: IdentifiedPacketFees; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "incentivized_packet", kind: "message", T: IdentifiedPacketFees }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketResponse { - return new QueryIncentivizedPacketResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketResponse { - return new QueryIncentivizedPacketResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketResponse { - return new QueryIncentivizedPacketResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPacketResponse | PlainMessage | undefined, b: QueryIncentivizedPacketResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPacketResponse, a, b); - } -} - -/** - * QueryIncentivizedPacketsForChannelRequest defines the request type for querying for all incentivized packets - * for a specific channel - * - * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest - */ -export class QueryIncentivizedPacketsForChannelRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - /** - * @generated from field: string port_id = 2; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 3; - */ - channelId = ""; - - /** - * Height to query at - * - * @generated from field: uint64 query_height = 4; - */ - queryHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsForChannelRequest { - return new QueryIncentivizedPacketsForChannelRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsForChannelRequest { - return new QueryIncentivizedPacketsForChannelRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsForChannelRequest { - return new QueryIncentivizedPacketsForChannelRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPacketsForChannelRequest | PlainMessage | undefined, b: QueryIncentivizedPacketsForChannelRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPacketsForChannelRequest, a, b); - } -} - -/** - * QueryIncentivizedPacketsForChannelResponse defines the response type for querying for all incentivized packets - * for a specific channel - * - * @generated from message ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse - */ -export class QueryIncentivizedPacketsForChannelResponse extends Message { - /** - * Map of all incentivized_packets - * - * @generated from field: repeated ibc.applications.fee.v1.IdentifiedPacketFees incentivized_packets = 1; - */ - incentivizedPackets: IdentifiedPacketFees[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "incentivized_packets", kind: "message", T: IdentifiedPacketFees, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPacketsForChannelResponse { - return new QueryIncentivizedPacketsForChannelResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPacketsForChannelResponse { - return new QueryIncentivizedPacketsForChannelResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPacketsForChannelResponse { - return new QueryIncentivizedPacketsForChannelResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPacketsForChannelResponse | PlainMessage | undefined, b: QueryIncentivizedPacketsForChannelResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPacketsForChannelResponse, a, b); - } -} - -/** - * QueryTotalRecvFeesRequest defines the request type for the TotalRecvFees rpc - * - * @generated from message ibc.applications.fee.v1.QueryTotalRecvFeesRequest - */ -export class QueryTotalRecvFeesRequest extends Message { - /** - * the packet identifier for the associated fees - * - * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; - */ - packetId?: PacketId; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryTotalRecvFeesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet_id", kind: "message", T: PacketId }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalRecvFeesRequest { - return new QueryTotalRecvFeesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalRecvFeesRequest { - return new QueryTotalRecvFeesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalRecvFeesRequest { - return new QueryTotalRecvFeesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalRecvFeesRequest | PlainMessage | undefined, b: QueryTotalRecvFeesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalRecvFeesRequest, a, b); - } -} - -/** - * QueryTotalRecvFeesResponse defines the response type for the TotalRecvFees rpc - * - * @generated from message ibc.applications.fee.v1.QueryTotalRecvFeesResponse - */ -export class QueryTotalRecvFeesResponse extends Message { - /** - * the total packet receive fees - * - * @generated from field: repeated cosmos.base.v1beta1.Coin recv_fees = 1; - */ - recvFees: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryTotalRecvFeesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "recv_fees", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalRecvFeesResponse { - return new QueryTotalRecvFeesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalRecvFeesResponse { - return new QueryTotalRecvFeesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalRecvFeesResponse { - return new QueryTotalRecvFeesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalRecvFeesResponse | PlainMessage | undefined, b: QueryTotalRecvFeesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalRecvFeesResponse, a, b); - } -} - -/** - * QueryTotalAckFeesRequest defines the request type for the TotalAckFees rpc - * - * @generated from message ibc.applications.fee.v1.QueryTotalAckFeesRequest - */ -export class QueryTotalAckFeesRequest extends Message { - /** - * the packet identifier for the associated fees - * - * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; - */ - packetId?: PacketId; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryTotalAckFeesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet_id", kind: "message", T: PacketId }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalAckFeesRequest { - return new QueryTotalAckFeesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalAckFeesRequest { - return new QueryTotalAckFeesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalAckFeesRequest { - return new QueryTotalAckFeesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalAckFeesRequest | PlainMessage | undefined, b: QueryTotalAckFeesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalAckFeesRequest, a, b); - } -} - -/** - * QueryTotalAckFeesResponse defines the response type for the TotalAckFees rpc - * - * @generated from message ibc.applications.fee.v1.QueryTotalAckFeesResponse - */ -export class QueryTotalAckFeesResponse extends Message { - /** - * the total packet acknowledgement fees - * - * @generated from field: repeated cosmos.base.v1beta1.Coin ack_fees = 1; - */ - ackFees: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryTotalAckFeesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ack_fees", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalAckFeesResponse { - return new QueryTotalAckFeesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalAckFeesResponse { - return new QueryTotalAckFeesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalAckFeesResponse { - return new QueryTotalAckFeesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalAckFeesResponse | PlainMessage | undefined, b: QueryTotalAckFeesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalAckFeesResponse, a, b); - } -} - -/** - * QueryTotalTimeoutFeesRequest defines the request type for the TotalTimeoutFees rpc - * - * @generated from message ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest - */ -export class QueryTotalTimeoutFeesRequest extends Message { - /** - * the packet identifier for the associated fees - * - * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; - */ - packetId?: PacketId; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet_id", kind: "message", T: PacketId }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalTimeoutFeesRequest { - return new QueryTotalTimeoutFeesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalTimeoutFeesRequest { - return new QueryTotalTimeoutFeesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalTimeoutFeesRequest { - return new QueryTotalTimeoutFeesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalTimeoutFeesRequest | PlainMessage | undefined, b: QueryTotalTimeoutFeesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalTimeoutFeesRequest, a, b); - } -} - -/** - * QueryTotalTimeoutFeesResponse defines the response type for the TotalTimeoutFees rpc - * - * @generated from message ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse - */ -export class QueryTotalTimeoutFeesResponse extends Message { - /** - * the total packet timeout fees - * - * @generated from field: repeated cosmos.base.v1beta1.Coin timeout_fees = 1; - */ - timeoutFees: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "timeout_fees", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalTimeoutFeesResponse { - return new QueryTotalTimeoutFeesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalTimeoutFeesResponse { - return new QueryTotalTimeoutFeesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalTimeoutFeesResponse { - return new QueryTotalTimeoutFeesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalTimeoutFeesResponse | PlainMessage | undefined, b: QueryTotalTimeoutFeesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalTimeoutFeesResponse, a, b); - } -} - -/** - * QueryPayeeRequest defines the request type for the Payee rpc - * - * @generated from message ibc.applications.fee.v1.QueryPayeeRequest - */ -export class QueryPayeeRequest extends Message { - /** - * unique channel identifier - * - * @generated from field: string channel_id = 1; - */ - channelId = ""; - - /** - * the relayer address to which the distribution address is registered - * - * @generated from field: string relayer = 2; - */ - relayer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryPayeeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPayeeRequest { - return new QueryPayeeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPayeeRequest { - return new QueryPayeeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPayeeRequest { - return new QueryPayeeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPayeeRequest | PlainMessage | undefined, b: QueryPayeeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPayeeRequest, a, b); - } -} - -/** - * QueryPayeeResponse defines the response type for the Payee rpc - * - * @generated from message ibc.applications.fee.v1.QueryPayeeResponse - */ -export class QueryPayeeResponse extends Message { - /** - * the payee address to which packet fees are paid out - * - * @generated from field: string payee_address = 1; - */ - payeeAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryPayeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "payee_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPayeeResponse { - return new QueryPayeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPayeeResponse { - return new QueryPayeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPayeeResponse { - return new QueryPayeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPayeeResponse | PlainMessage | undefined, b: QueryPayeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPayeeResponse, a, b); - } -} - -/** - * QueryCounterpartyPayeeRequest defines the request type for the CounterpartyPayee rpc - * - * @generated from message ibc.applications.fee.v1.QueryCounterpartyPayeeRequest - */ -export class QueryCounterpartyPayeeRequest extends Message { - /** - * unique channel identifier - * - * @generated from field: string channel_id = 1; - */ - channelId = ""; - - /** - * the relayer address to which the counterparty is registered - * - * @generated from field: string relayer = 2; - */ - relayer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryCounterpartyPayeeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCounterpartyPayeeRequest { - return new QueryCounterpartyPayeeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCounterpartyPayeeRequest { - return new QueryCounterpartyPayeeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCounterpartyPayeeRequest { - return new QueryCounterpartyPayeeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCounterpartyPayeeRequest | PlainMessage | undefined, b: QueryCounterpartyPayeeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCounterpartyPayeeRequest, a, b); - } -} - -/** - * QueryCounterpartyPayeeResponse defines the response type for the CounterpartyPayee rpc - * - * @generated from message ibc.applications.fee.v1.QueryCounterpartyPayeeResponse - */ -export class QueryCounterpartyPayeeResponse extends Message { - /** - * the counterparty payee address used to compensate forward relaying - * - * @generated from field: string counterparty_payee = 1; - */ - counterpartyPayee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryCounterpartyPayeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "counterparty_payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCounterpartyPayeeResponse { - return new QueryCounterpartyPayeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCounterpartyPayeeResponse { - return new QueryCounterpartyPayeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCounterpartyPayeeResponse { - return new QueryCounterpartyPayeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCounterpartyPayeeResponse | PlainMessage | undefined, b: QueryCounterpartyPayeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCounterpartyPayeeResponse, a, b); - } -} - -/** - * QueryFeeEnabledChannelsRequest defines the request type for the FeeEnabledChannels rpc - * - * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest - */ -export class QueryFeeEnabledChannelsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - /** - * block height at which to query - * - * @generated from field: uint64 query_height = 2; - */ - queryHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - { no: 2, name: "query_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelsRequest { - return new QueryFeeEnabledChannelsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelsRequest { - return new QueryFeeEnabledChannelsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelsRequest { - return new QueryFeeEnabledChannelsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeEnabledChannelsRequest | PlainMessage | undefined, b: QueryFeeEnabledChannelsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeEnabledChannelsRequest, a, b); - } -} - -/** - * QueryFeeEnabledChannelsResponse defines the response type for the FeeEnabledChannels rpc - * - * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse - */ -export class QueryFeeEnabledChannelsResponse extends Message { - /** - * list of fee enabled channels - * - * @generated from field: repeated ibc.applications.fee.v1.FeeEnabledChannel fee_enabled_channels = 1; - */ - feeEnabledChannels: FeeEnabledChannel[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_enabled_channels", kind: "message", T: FeeEnabledChannel, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelsResponse { - return new QueryFeeEnabledChannelsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelsResponse { - return new QueryFeeEnabledChannelsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelsResponse { - return new QueryFeeEnabledChannelsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeEnabledChannelsResponse | PlainMessage | undefined, b: QueryFeeEnabledChannelsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeEnabledChannelsResponse, a, b); - } -} - -/** - * QueryFeeEnabledChannelRequest defines the request type for the FeeEnabledChannel rpc - * - * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelRequest - */ -export class QueryFeeEnabledChannelRequest extends Message { - /** - * unique port identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * unique channel identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelRequest { - return new QueryFeeEnabledChannelRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelRequest { - return new QueryFeeEnabledChannelRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelRequest { - return new QueryFeeEnabledChannelRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeEnabledChannelRequest | PlainMessage | undefined, b: QueryFeeEnabledChannelRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeEnabledChannelRequest, a, b); - } -} - -/** - * QueryFeeEnabledChannelResponse defines the response type for the FeeEnabledChannel rpc - * - * @generated from message ibc.applications.fee.v1.QueryFeeEnabledChannelResponse - */ -export class QueryFeeEnabledChannelResponse extends Message { - /** - * boolean flag representing the fee enabled channel status - * - * @generated from field: bool fee_enabled = 1; - */ - feeEnabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.QueryFeeEnabledChannelResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeEnabledChannelResponse { - return new QueryFeeEnabledChannelResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeEnabledChannelResponse { - return new QueryFeeEnabledChannelResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeEnabledChannelResponse { - return new QueryFeeEnabledChannelResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeEnabledChannelResponse | PlainMessage | undefined, b: QueryFeeEnabledChannelResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeEnabledChannelResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts deleted file mode 100644 index 17882dd..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_cosmes.ts +++ /dev/null @@ -1,71 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/tx.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgPayPacketFee, MsgPayPacketFeeAsync, MsgPayPacketFeeAsyncResponse, MsgPayPacketFeeResponse, MsgRegisterCounterpartyPayee, MsgRegisterCounterpartyPayeeResponse, MsgRegisterPayee, MsgRegisterPayeeResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.applications.fee.v1.Msg"; - -/** - * RegisterPayee defines a rpc handler method for MsgRegisterPayee - * RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional - * payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on - * the source chain from which packets originate as this is where fee distribution takes place. This function may be - * called more than once by a relayer, in which case, the latest payee is always used. - * - * @generated from rpc ibc.applications.fee.v1.Msg.RegisterPayee - */ -export const MsgRegisterPayeeService = { - typeName: TYPE_NAME, - method: "RegisterPayee", - Request: MsgRegisterPayee, - Response: MsgRegisterPayeeResponse, -} as const; - -/** - * RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee - * RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty - * payee address before relaying. This ensures they will be properly compensated for forward relaying since - * the destination chain must include the registered counterparty payee address in the acknowledgement. This function - * may be called more than once by a relayer, in which case, the latest counterparty payee address is always used. - * - * @generated from rpc ibc.applications.fee.v1.Msg.RegisterCounterpartyPayee - */ -export const MsgRegisterCounterpartyPayeeService = { - typeName: TYPE_NAME, - method: "RegisterCounterpartyPayee", - Request: MsgRegisterCounterpartyPayee, - Response: MsgRegisterCounterpartyPayeeResponse, -} as const; - -/** - * PayPacketFee defines a rpc handler method for MsgPayPacketFee - * PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to - * incentivize the relaying of the packet at the next sequence - * NOTE: This method is intended to be used within a multi msg transaction, where the subsequent msg that follows - * initiates the lifecycle of the incentivized packet - * - * @generated from rpc ibc.applications.fee.v1.Msg.PayPacketFee - */ -export const MsgPayPacketFeeService = { - typeName: TYPE_NAME, - method: "PayPacketFee", - Request: MsgPayPacketFee, - Response: MsgPayPacketFeeResponse, -} as const; - -/** - * PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync - * PayPacketFeeAsync is an open callback that may be called by any module/user that wishes to escrow funds in order to - * incentivize the relaying of a known packet (i.e. at a particular sequence) - * - * @generated from rpc ibc.applications.fee.v1.Msg.PayPacketFeeAsync - */ -export const MsgPayPacketFeeAsyncService = { - typeName: TYPE_NAME, - method: "PayPacketFeeAsync", - Request: MsgPayPacketFeeAsync, - Response: MsgPayPacketFeeAsyncResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_pb.ts deleted file mode 100644 index 8c62092..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/fee/v1/tx_pb.ts +++ /dev/null @@ -1,397 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/fee/v1/tx.proto (package ibc.applications.fee.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Fee, PacketFee } from "./fee_pb.js"; -import { PacketId } from "../../../core/channel/v1/channel_pb.js"; - -/** - * MsgRegisterPayee defines the request type for the RegisterPayee rpc - * - * @generated from message ibc.applications.fee.v1.MsgRegisterPayee - */ -export class MsgRegisterPayee extends Message { - /** - * unique port identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * unique channel identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * the relayer address - * - * @generated from field: string relayer = 3; - */ - relayer = ""; - - /** - * the payee address - * - * @generated from field: string payee = 4; - */ - payee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgRegisterPayee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterPayee { - return new MsgRegisterPayee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterPayee { - return new MsgRegisterPayee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterPayee { - return new MsgRegisterPayee().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterPayee | PlainMessage | undefined, b: MsgRegisterPayee | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterPayee, a, b); - } -} - -/** - * MsgRegisterPayeeResponse defines the response type for the RegisterPayee rpc - * - * @generated from message ibc.applications.fee.v1.MsgRegisterPayeeResponse - */ -export class MsgRegisterPayeeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgRegisterPayeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterPayeeResponse { - return new MsgRegisterPayeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterPayeeResponse { - return new MsgRegisterPayeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterPayeeResponse { - return new MsgRegisterPayeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterPayeeResponse | PlainMessage | undefined, b: MsgRegisterPayeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterPayeeResponse, a, b); - } -} - -/** - * MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc - * - * @generated from message ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - */ -export class MsgRegisterCounterpartyPayee extends Message { - /** - * unique port identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * unique channel identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * the relayer address - * - * @generated from field: string relayer = 3; - */ - relayer = ""; - - /** - * the counterparty payee address - * - * @generated from field: string counterparty_payee = 4; - */ - counterpartyPayee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgRegisterCounterpartyPayee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "counterparty_payee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterCounterpartyPayee { - return new MsgRegisterCounterpartyPayee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterCounterpartyPayee { - return new MsgRegisterCounterpartyPayee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterCounterpartyPayee { - return new MsgRegisterCounterpartyPayee().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterCounterpartyPayee | PlainMessage | undefined, b: MsgRegisterCounterpartyPayee | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterCounterpartyPayee, a, b); - } -} - -/** - * MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc - * - * @generated from message ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - */ -export class MsgRegisterCounterpartyPayeeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterCounterpartyPayeeResponse { - return new MsgRegisterCounterpartyPayeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterCounterpartyPayeeResponse { - return new MsgRegisterCounterpartyPayeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterCounterpartyPayeeResponse { - return new MsgRegisterCounterpartyPayeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterCounterpartyPayeeResponse | PlainMessage | undefined, b: MsgRegisterCounterpartyPayeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterCounterpartyPayeeResponse, a, b); - } -} - -/** - * MsgPayPacketFee defines the request type for the PayPacketFee rpc - * This Msg can be used to pay for a packet at the next sequence send & should be combined with the Msg that will be - * paid for - * - * @generated from message ibc.applications.fee.v1.MsgPayPacketFee - */ -export class MsgPayPacketFee extends Message { - /** - * fee encapsulates the recv, ack and timeout fees associated with an IBC packet - * - * @generated from field: ibc.applications.fee.v1.Fee fee = 1; - */ - fee?: Fee; - - /** - * the source port unique identifier - * - * @generated from field: string source_port_id = 2; - */ - sourcePortId = ""; - - /** - * the source channel unique identifier - * - * @generated from field: string source_channel_id = 3; - */ - sourceChannelId = ""; - - /** - * account address to refund fee if necessary - * - * @generated from field: string signer = 4; - */ - signer = ""; - - /** - * optional list of relayers permitted to the receive packet fees - * - * @generated from field: repeated string relayers = 5; - */ - relayers: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee", kind: "message", T: Fee }, - { no: 2, name: "source_port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "source_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "relayers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFee { - return new MsgPayPacketFee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFee { - return new MsgPayPacketFee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFee { - return new MsgPayPacketFee().fromJsonString(jsonString, options); - } - - static equals(a: MsgPayPacketFee | PlainMessage | undefined, b: MsgPayPacketFee | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPayPacketFee, a, b); - } -} - -/** - * MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc - * - * @generated from message ibc.applications.fee.v1.MsgPayPacketFeeResponse - */ -export class MsgPayPacketFeeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFeeResponse { - return new MsgPayPacketFeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFeeResponse { - return new MsgPayPacketFeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFeeResponse { - return new MsgPayPacketFeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgPayPacketFeeResponse | PlainMessage | undefined, b: MsgPayPacketFeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPayPacketFeeResponse, a, b); - } -} - -/** - * MsgPayPacketFeeAsync defines the request type for the PayPacketFeeAsync rpc - * This Msg can be used to pay for a packet at a specified sequence (instead of the next sequence send) - * - * @generated from message ibc.applications.fee.v1.MsgPayPacketFeeAsync - */ -export class MsgPayPacketFeeAsync extends Message { - /** - * unique packet identifier comprised of the channel ID, port ID and sequence - * - * @generated from field: ibc.core.channel.v1.PacketId packet_id = 1; - */ - packetId?: PacketId; - - /** - * the packet fee associated with a particular IBC packet - * - * @generated from field: ibc.applications.fee.v1.PacketFee packet_fee = 2; - */ - packetFee?: PacketFee; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFeeAsync"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet_id", kind: "message", T: PacketId }, - { no: 2, name: "packet_fee", kind: "message", T: PacketFee }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFeeAsync { - return new MsgPayPacketFeeAsync().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFeeAsync { - return new MsgPayPacketFeeAsync().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFeeAsync { - return new MsgPayPacketFeeAsync().fromJsonString(jsonString, options); - } - - static equals(a: MsgPayPacketFeeAsync | PlainMessage | undefined, b: MsgPayPacketFeeAsync | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPayPacketFeeAsync, a, b); - } -} - -/** - * MsgPayPacketFeeAsyncResponse defines the response type for the PayPacketFeeAsync rpc - * - * @generated from message ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - */ -export class MsgPayPacketFeeAsyncResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPayPacketFeeAsyncResponse { - return new MsgPayPacketFeeAsyncResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPayPacketFeeAsyncResponse { - return new MsgPayPacketFeeAsyncResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPayPacketFeeAsyncResponse { - return new MsgPayPacketFeeAsyncResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgPayPacketFeeAsyncResponse | PlainMessage | undefined, b: MsgPayPacketFeeAsyncResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPayPacketFeeAsyncResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts deleted file mode 100644 index 834316b..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/controller_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/controller/v1/controller.proto (package ibc.applications.interchain_accounts.controller.v1, 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 set of on-chain interchain accounts parameters. - * The following parameters may be used to disable the controller submodule. - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.Params - */ -export class Params extends Message { - /** - * controller_enabled enables or disables the controller submodule. - * - * @generated from field: bool controller_enabled = 1; - */ - controllerEnabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts deleted file mode 100644 index ddce328..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/controller/v1/query.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryInterchainAccountRequest, QueryInterchainAccountResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.applications.interchain_accounts.controller.v1.Query"; - -/** - * InterchainAccount returns the interchain account address for a given owner address on a given connection - * - * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccount - */ -export const QueryInterchainAccountService = { - typeName: TYPE_NAME, - method: "InterchainAccount", - Request: QueryInterchainAccountRequest, - Response: QueryInterchainAccountResponse, -} as const; - -/** - * Params queries all parameters of the ICA controller submodule. - * - * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts deleted file mode 100644 index 9b66882..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/query_pb.ts +++ /dev/null @@ -1,167 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/controller/v1/query.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./controller_pb.js"; - -/** - * QueryInterchainAccountRequest is the request type for the Query/InterchainAccount RPC method. - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - */ -export class QueryInterchainAccountRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: string connection_id = 2; - */ - connectionId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterchainAccountRequest { - return new QueryInterchainAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterchainAccountRequest { - return new QueryInterchainAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryInterchainAccountRequest { - return new QueryInterchainAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryInterchainAccountRequest | PlainMessage | undefined, b: QueryInterchainAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryInterchainAccountRequest, a, b); - } -} - -/** - * QueryInterchainAccountResponse the response type for the Query/InterchainAccount RPC method. - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - */ -export class QueryInterchainAccountResponse extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryInterchainAccountResponse { - return new QueryInterchainAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryInterchainAccountResponse { - return new QueryInterchainAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryInterchainAccountResponse { - return new QueryInterchainAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryInterchainAccountResponse | PlainMessage | undefined, b: QueryInterchainAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryInterchainAccountResponse, a, b); - } -} - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts deleted file mode 100644 index 0f84600..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_cosmes.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/controller/v1/tx.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgRegisterInterchainAccount, MsgRegisterInterchainAccountResponse, MsgSendTx, MsgSendTxResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.applications.interchain_accounts.controller.v1.Msg"; - -/** - * RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount. - * - * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.RegisterInterchainAccount - */ -export const MsgRegisterInterchainAccountService = { - typeName: TYPE_NAME, - method: "RegisterInterchainAccount", - Request: MsgRegisterInterchainAccount, - Response: MsgRegisterInterchainAccountResponse, -} as const; - -/** - * SendTx defines a rpc handler for MsgSendTx. - * - * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.SendTx - */ -export const MsgSendTxService = { - typeName: TYPE_NAME, - method: "SendTx", - Request: MsgSendTx, - Response: MsgSendTxResponse, -} as const; - -/** - * UpdateParams defines a rpc handler for MsgUpdateParams. - * - * @generated from rpc ibc.applications.interchain_accounts.controller.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts deleted file mode 100644 index 7aae1e4..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/controller/v1/tx_pb.ts +++ /dev/null @@ -1,296 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/controller/v1/tx.proto (package ibc.applications.interchain_accounts.controller.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Order } from "../../../../core/channel/v1/channel_pb.js"; -import { InterchainAccountPacketData } from "../../v1/packet_pb.js"; -import { Params } from "./controller_pb.js"; - -/** - * MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount - */ -export class MsgRegisterInterchainAccount extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: string connection_id = 2; - */ - connectionId = ""; - - /** - * @generated from field: string version = 3; - */ - version = ""; - - /** - * @generated from field: ibc.core.channel.v1.Order ordering = 4; - */ - ordering = Order.NONE_UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccount { - return new MsgRegisterInterchainAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccount { - return new MsgRegisterInterchainAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccount { - return new MsgRegisterInterchainAccount().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterInterchainAccount | PlainMessage | undefined, b: MsgRegisterInterchainAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterInterchainAccount, a, b); - } -} - -/** - * MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse - */ -export class MsgRegisterInterchainAccountResponse extends Message { - /** - * @generated from field: string channel_id = 1; - */ - channelId = ""; - - /** - * @generated from field: string port_id = 2; - */ - portId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterInterchainAccountResponse { - return new MsgRegisterInterchainAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterInterchainAccountResponse { - return new MsgRegisterInterchainAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterInterchainAccountResponse { - return new MsgRegisterInterchainAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterInterchainAccountResponse | PlainMessage | undefined, b: MsgRegisterInterchainAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterInterchainAccountResponse, a, b); - } -} - -/** - * MsgSendTx defines the payload for Msg/SendTx - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgSendTx - */ -export class MsgSendTx extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: string connection_id = 2; - */ - connectionId = ""; - - /** - * @generated from field: ibc.applications.interchain_accounts.v1.InterchainAccountPacketData packet_data = 3; - */ - packetData?: InterchainAccountPacketData; - - /** - * Relative timeout timestamp provided will be added to the current block time during transaction execution. - * The timeout timestamp must be non-zero. - * - * @generated from field: uint64 relative_timeout = 4; - */ - relativeTimeout = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgSendTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "packet_data", kind: "message", T: InterchainAccountPacketData }, - { no: 4, name: "relative_timeout", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendTx { - return new MsgSendTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendTx { - return new MsgSendTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSendTx { - return new MsgSendTx().fromJsonString(jsonString, options); - } - - static equals(a: MsgSendTx | PlainMessage | undefined, b: MsgSendTx | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSendTx, a, b); - } -} - -/** - * MsgSendTxResponse defines the response for MsgSendTx - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse - */ -export class MsgSendTxResponse extends Message { - /** - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSendTxResponse { - return new MsgSendTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSendTxResponse { - return new MsgSendTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSendTxResponse { - return new MsgSendTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSendTxResponse | PlainMessage | undefined, b: MsgSendTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSendTxResponse, a, b); - } -} - -/** - * MsgUpdateParams defines the payload for Msg/UpdateParams - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * params defines the 27-interchain-accounts/controller parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response for Msg/UpdateParams - * - * @generated from message ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts deleted file mode 100644 index 603afa0..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/genesis/v1/genesis_pb.ts +++ /dev/null @@ -1,278 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/genesis/v1/genesis.proto (package ibc.applications.interchain_accounts.genesis.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "../../controller/v1/controller_pb.js"; -import { Params as Params$1 } from "../../host/v1/host_pb.js"; - -/** - * GenesisState defines the interchain accounts genesis state - * - * @generated from message ibc.applications.interchain_accounts.genesis.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState controller_genesis_state = 1; - */ - controllerGenesisState?: ControllerGenesisState; - - /** - * @generated from field: ibc.applications.interchain_accounts.genesis.v1.HostGenesisState host_genesis_state = 2; - */ - hostGenesisState?: HostGenesisState; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller_genesis_state", kind: "message", T: ControllerGenesisState }, - { no: 2, name: "host_genesis_state", kind: "message", T: HostGenesisState }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * ControllerGenesisState defines the interchain accounts controller genesis state - * - * @generated from message ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState - */ -export class ControllerGenesisState extends Message { - /** - * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.ActiveChannel active_channels = 1; - */ - activeChannels: ActiveChannel[] = []; - - /** - * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount interchain_accounts = 2; - */ - interchainAccounts: RegisteredInterchainAccount[] = []; - - /** - * @generated from field: repeated string ports = 3; - */ - ports: string[] = []; - - /** - * @generated from field: ibc.applications.interchain_accounts.controller.v1.Params params = 4; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "active_channels", kind: "message", T: ActiveChannel, repeated: true }, - { no: 2, name: "interchain_accounts", kind: "message", T: RegisteredInterchainAccount, repeated: true }, - { no: 3, name: "ports", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ControllerGenesisState { - return new ControllerGenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ControllerGenesisState { - return new ControllerGenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ControllerGenesisState { - return new ControllerGenesisState().fromJsonString(jsonString, options); - } - - static equals(a: ControllerGenesisState | PlainMessage | undefined, b: ControllerGenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(ControllerGenesisState, a, b); - } -} - -/** - * HostGenesisState defines the interchain accounts host genesis state - * - * @generated from message ibc.applications.interchain_accounts.genesis.v1.HostGenesisState - */ -export class HostGenesisState extends Message { - /** - * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.ActiveChannel active_channels = 1; - */ - activeChannels: ActiveChannel[] = []; - - /** - * @generated from field: repeated ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount interchain_accounts = 2; - */ - interchainAccounts: RegisteredInterchainAccount[] = []; - - /** - * @generated from field: string port = 3; - */ - port = ""; - - /** - * @generated from field: ibc.applications.interchain_accounts.host.v1.Params params = 4; - */ - params?: Params$1; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.HostGenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "active_channels", kind: "message", T: ActiveChannel, repeated: true }, - { no: 2, name: "interchain_accounts", kind: "message", T: RegisteredInterchainAccount, repeated: true }, - { no: 3, name: "port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "params", kind: "message", T: Params$1 }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HostGenesisState { - return new HostGenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HostGenesisState { - return new HostGenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HostGenesisState { - return new HostGenesisState().fromJsonString(jsonString, options); - } - - static equals(a: HostGenesisState | PlainMessage | undefined, b: HostGenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(HostGenesisState, a, b); - } -} - -/** - * ActiveChannel contains a connection ID, port ID and associated active channel ID, as well as a boolean flag to - * indicate if the channel is middleware enabled - * - * @generated from message ibc.applications.interchain_accounts.genesis.v1.ActiveChannel - */ -export class ActiveChannel extends Message { - /** - * @generated from field: string connection_id = 1; - */ - connectionId = ""; - - /** - * @generated from field: string port_id = 2; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 3; - */ - channelId = ""; - - /** - * @generated from field: bool is_middleware_enabled = 4; - */ - isMiddlewareEnabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.ActiveChannel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "is_middleware_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveChannel { - return new ActiveChannel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveChannel { - return new ActiveChannel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveChannel { - return new ActiveChannel().fromJsonString(jsonString, options); - } - - static equals(a: ActiveChannel | PlainMessage | undefined, b: ActiveChannel | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveChannel, a, b); - } -} - -/** - * RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address - * - * @generated from message ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount - */ -export class RegisteredInterchainAccount extends Message { - /** - * @generated from field: string connection_id = 1; - */ - connectionId = ""; - - /** - * @generated from field: string port_id = 2; - */ - portId = ""; - - /** - * @generated from field: string account_address = 3; - */ - accountAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "account_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredInterchainAccount { - return new RegisteredInterchainAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredInterchainAccount { - return new RegisteredInterchainAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RegisteredInterchainAccount { - return new RegisteredInterchainAccount().fromJsonString(jsonString, options); - } - - static equals(a: RegisteredInterchainAccount | PlainMessage | undefined, b: RegisteredInterchainAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(RegisteredInterchainAccount, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts deleted file mode 100644 index 44daab0..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/host_pb.ts +++ /dev/null @@ -1,110 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/host/v1/host.proto (package ibc.applications.interchain_accounts.host.v1, 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 set of on-chain interchain accounts parameters. - * The following parameters may be used to disable the host submodule. - * - * @generated from message ibc.applications.interchain_accounts.host.v1.Params - */ -export class Params extends Message { - /** - * host_enabled enables or disables the host submodule. - * - * @generated from field: bool host_enabled = 1; - */ - hostEnabled = false; - - /** - * allow_messages defines a list of sdk message typeURLs allowed to be executed on a host chain. - * - * @generated from field: repeated string allow_messages = 2; - */ - allowMessages: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "host_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "allow_messages", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * QueryRequest defines the parameters for a particular query request - * by an interchain account. - * - * @generated from message ibc.applications.interchain_accounts.host.v1.QueryRequest - */ -export class QueryRequest extends Message { - /** - * path defines the path of the query request as defined by ADR-021. - * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing - * - * @generated from field: string path = 1; - */ - path = ""; - - /** - * data defines the payload of the query request as defined by ADR-021. - * https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-021-protobuf-query-encoding.md#custom-query-registration-and-routing - * - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest { - return new QueryRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest { - return new QueryRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRequest { - return new QueryRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRequest, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts deleted file mode 100644 index e002a8a..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_cosmes.ts +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/host/v1/query.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.applications.interchain_accounts.host.v1.Query"; - -/** - * Params queries all parameters of the ICA host submodule. - * - * @generated from rpc ibc.applications.interchain_accounts.host.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts deleted file mode 100644 index 13c0f9d..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/query_pb.ts +++ /dev/null @@ -1,83 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/host/v1/query.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./host_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: ibc.applications.interchain_accounts.host.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts deleted file mode 100644 index 2029486..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/host/v1/tx.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgModuleQuerySafe, MsgModuleQuerySafeResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.applications.interchain_accounts.host.v1.Msg"; - -/** - * UpdateParams defines a rpc handler for MsgUpdateParams. - * - * @generated from rpc ibc.applications.interchain_accounts.host.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * ModuleQuerySafe defines a rpc handler for MsgModuleQuerySafe. - * - * @generated from rpc ibc.applications.interchain_accounts.host.v1.Msg.ModuleQuerySafe - */ -export const MsgModuleQuerySafeService = { - typeName: TYPE_NAME, - method: "ModuleQuerySafe", - Request: MsgModuleQuerySafe, - Response: MsgModuleQuerySafeResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts deleted file mode 100644 index c9014c6..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/host/v1/tx_pb.ts +++ /dev/null @@ -1,191 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/host/v1/tx.proto (package ibc.applications.interchain_accounts.host.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params, QueryRequest } from "./host_pb.js"; - -/** - * MsgUpdateParams defines the payload for Msg/UpdateParams - * - * @generated from message ibc.applications.interchain_accounts.host.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * params defines the 27-interchain-accounts/host parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: ibc.applications.interchain_accounts.host.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response for Msg/UpdateParams - * - * @generated from message ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgModuleQuerySafe defines the payload for Msg/ModuleQuerySafe - * - * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe - */ -export class MsgModuleQuerySafe extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * requests defines the module safe queries to execute. - * - * @generated from field: repeated ibc.applications.interchain_accounts.host.v1.QueryRequest requests = 2; - */ - requests: QueryRequest[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafe"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "requests", kind: "message", T: QueryRequest, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafe { - return new MsgModuleQuerySafe().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafe { - return new MsgModuleQuerySafe().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafe { - return new MsgModuleQuerySafe().fromJsonString(jsonString, options); - } - - static equals(a: MsgModuleQuerySafe | PlainMessage | undefined, b: MsgModuleQuerySafe | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgModuleQuerySafe, a, b); - } -} - -/** - * MsgModuleQuerySafeResponse defines the response for Msg/ModuleQuerySafe - * - * @generated from message ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse - */ -export class MsgModuleQuerySafeResponse extends Message { - /** - * height at which the responses were queried - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - /** - * protobuf encoded responses for each query - * - * @generated from field: repeated bytes responses = 2; - */ - responses: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.host.v1.MsgModuleQuerySafeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "responses", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgModuleQuerySafeResponse { - return new MsgModuleQuerySafeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgModuleQuerySafeResponse { - return new MsgModuleQuerySafeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgModuleQuerySafeResponse { - return new MsgModuleQuerySafeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgModuleQuerySafeResponse | PlainMessage | undefined, b: MsgModuleQuerySafeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgModuleQuerySafeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts deleted file mode 100644 index 02fc1a9..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/account_pb.ts +++ /dev/null @@ -1,54 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/v1/account.proto (package ibc.applications.interchain_accounts.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { BaseAccount } from "../../../../cosmos/auth/v1beta1/auth_pb.js"; - -/** - * An InterchainAccount is defined as a BaseAccount & the address of the account owner on the controller chain - * - * @generated from message ibc.applications.interchain_accounts.v1.InterchainAccount - */ -export class InterchainAccount extends Message { - /** - * @generated from field: cosmos.auth.v1beta1.BaseAccount base_account = 1; - */ - baseAccount?: BaseAccount; - - /** - * @generated from field: string account_owner = 2; - */ - accountOwner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.v1.InterchainAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_account", kind: "message", T: BaseAccount }, - { no: 2, name: "account_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterchainAccount { - return new InterchainAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterchainAccount { - return new InterchainAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterchainAccount { - return new InterchainAccount().fromJsonString(jsonString, options); - } - - static equals(a: InterchainAccount | PlainMessage | undefined, b: InterchainAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(InterchainAccount, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts deleted file mode 100644 index 42873d6..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/metadata_pb.ts +++ /dev/null @@ -1,91 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/v1/metadata.proto (package ibc.applications.interchain_accounts.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Metadata defines a set of protocol specific data encoded into the ICS27 channel version bytestring - * See ICS004: https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#Versioning - * - * @generated from message ibc.applications.interchain_accounts.v1.Metadata - */ -export class Metadata extends Message { - /** - * version defines the ICS27 protocol version - * - * @generated from field: string version = 1; - */ - version = ""; - - /** - * controller_connection_id is the connection identifier associated with the controller chain - * - * @generated from field: string controller_connection_id = 2; - */ - controllerConnectionId = ""; - - /** - * host_connection_id is the connection identifier associated with the host chain - * - * @generated from field: string host_connection_id = 3; - */ - hostConnectionId = ""; - - /** - * address defines the interchain account address to be fulfilled upon the OnChanOpenTry handshake step - * NOTE: the address field is empty on the OnChanOpenInit handshake step - * - * @generated from field: string address = 4; - */ - address = ""; - - /** - * encoding defines the supported codec format - * - * @generated from field: string encoding = 5; - */ - encoding = ""; - - /** - * tx_type defines the type of transactions the interchain account can execute - * - * @generated from field: string tx_type = 6; - */ - txType = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.v1.Metadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "controller_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "host_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "encoding", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "tx_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { - return new Metadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { - return new Metadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Metadata { - return new Metadata().fromJsonString(jsonString, options); - } - - static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { - return proto3.util.equals(Metadata, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts b/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts deleted file mode 100644 index 5a3ac63..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/interchain_accounts/v1/packet_pb.ts +++ /dev/null @@ -1,125 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/interchain_accounts/v1/packet.proto (package ibc.applications.interchain_accounts.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Type defines a classification of message issued from a controller chain to its associated interchain accounts - * host - * - * @generated from enum ibc.applications.interchain_accounts.v1.Type - */ -export enum Type { - /** - * Default zero value enumeration - * - * @generated from enum value: TYPE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * Execute a transaction on an interchain accounts host chain - * - * @generated from enum value: TYPE_EXECUTE_TX = 1; - */ - EXECUTE_TX = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(Type) -proto3.util.setEnumType(Type, "ibc.applications.interchain_accounts.v1.Type", [ - { no: 0, name: "TYPE_UNSPECIFIED" }, - { no: 1, name: "TYPE_EXECUTE_TX" }, -]); - -/** - * InterchainAccountPacketData is comprised of a raw transaction, type of transaction and optional memo field. - * - * @generated from message ibc.applications.interchain_accounts.v1.InterchainAccountPacketData - */ -export class InterchainAccountPacketData extends Message { - /** - * @generated from field: ibc.applications.interchain_accounts.v1.Type type = 1; - */ - type = Type.UNSPECIFIED; - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - /** - * @generated from field: string memo = 3; - */ - memo = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.v1.InterchainAccountPacketData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(Type) }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InterchainAccountPacketData { - return new InterchainAccountPacketData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InterchainAccountPacketData { - return new InterchainAccountPacketData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InterchainAccountPacketData { - return new InterchainAccountPacketData().fromJsonString(jsonString, options); - } - - static equals(a: InterchainAccountPacketData | PlainMessage | undefined, b: InterchainAccountPacketData | PlainMessage | undefined): boolean { - return proto3.util.equals(InterchainAccountPacketData, a, b); - } -} - -/** - * CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to an SDK host chain. - * - * @generated from message ibc.applications.interchain_accounts.v1.CosmosTx - */ -export class CosmosTx extends Message { - /** - * @generated from field: repeated google.protobuf.Any messages = 1; - */ - messages: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.interchain_accounts.v1.CosmosTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "messages", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CosmosTx { - return new CosmosTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CosmosTx { - return new CosmosTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CosmosTx { - return new CosmosTx().fromJsonString(jsonString, options); - } - - static equals(a: CosmosTx | PlainMessage | undefined, b: CosmosTx | PlainMessage | undefined): boolean { - return proto3.util.equals(CosmosTx, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts deleted file mode 100644 index 5f3d4b9..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/authz_pb.ts +++ /dev/null @@ -1,176 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v1/authz.proto (package ibc.applications.transfer.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; -import { Hop } from "./transfer_pb.js"; - -/** - * Allocation defines the spend limit for a particular port and channel - * - * @generated from message ibc.applications.transfer.v1.Allocation - */ -export class Allocation extends Message { - /** - * the port on which the packet will be sent - * - * @generated from field: string source_port = 1; - */ - sourcePort = ""; - - /** - * the channel by which the packet will be sent - * - * @generated from field: string source_channel = 2; - */ - sourceChannel = ""; - - /** - * spend limitation on the channel - * - * @generated from field: repeated cosmos.base.v1beta1.Coin spend_limit = 3; - */ - spendLimit: Coin[] = []; - - /** - * allow list of receivers, an empty allow list permits any receiver address - * - * @generated from field: repeated string allow_list = 4; - */ - allowList: string[] = []; - - /** - * allow list of memo strings, an empty list prohibits all memo strings; - * a list only with "*" permits any memo string - * - * @generated from field: repeated string allowed_packet_data = 5; - */ - allowedPacketData: string[] = []; - - /** - * Forwarding options that are allowed. - * - * @generated from field: repeated ibc.applications.transfer.v1.AllowedForwarding allowed_forwarding = 6; - */ - allowedForwarding: AllowedForwarding[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.Allocation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "source_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "source_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "spend_limit", kind: "message", T: Coin, repeated: true }, - { no: 4, name: "allow_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "allowed_packet_data", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "allowed_forwarding", kind: "message", T: AllowedForwarding, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Allocation { - return new Allocation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Allocation { - return new Allocation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Allocation { - return new Allocation().fromJsonString(jsonString, options); - } - - static equals(a: Allocation | PlainMessage | undefined, b: Allocation | PlainMessage | undefined): boolean { - return proto3.util.equals(Allocation, a, b); - } -} - -/** - * AllowedForwarding defines which options are allowed for forwarding. - * - * @generated from message ibc.applications.transfer.v1.AllowedForwarding - */ -export class AllowedForwarding extends Message { - /** - * a list of allowed source port ID/channel ID pairs through which the packet is allowed to be forwarded until final - * destination - * - * @generated from field: repeated ibc.applications.transfer.v1.Hop hops = 1; - */ - hops: Hop[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.AllowedForwarding"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hops", kind: "message", T: Hop, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllowedForwarding { - return new AllowedForwarding().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllowedForwarding { - return new AllowedForwarding().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllowedForwarding { - return new AllowedForwarding().fromJsonString(jsonString, options); - } - - static equals(a: AllowedForwarding | PlainMessage | undefined, b: AllowedForwarding | PlainMessage | undefined): boolean { - return proto3.util.equals(AllowedForwarding, a, b); - } -} - -/** - * TransferAuthorization allows the grantee to spend up to spend_limit coins from - * the granter's account for ibc transfer on a specific channel - * - * @generated from message ibc.applications.transfer.v1.TransferAuthorization - */ -export class TransferAuthorization extends Message { - /** - * port and channel amounts - * - * @generated from field: repeated ibc.applications.transfer.v1.Allocation allocations = 1; - */ - allocations: Allocation[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.TransferAuthorization"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allocations", kind: "message", T: Allocation, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TransferAuthorization { - return new TransferAuthorization().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TransferAuthorization { - return new TransferAuthorization().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TransferAuthorization { - return new TransferAuthorization().fromJsonString(jsonString, options); - } - - static equals(a: TransferAuthorization | PlainMessage | undefined, b: TransferAuthorization | PlainMessage | undefined): boolean { - return proto3.util.equals(TransferAuthorization, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/denomtrace_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/denomtrace_pb.ts deleted file mode 100644 index 6f3afc4..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/denomtrace_pb.ts +++ /dev/null @@ -1,60 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v1/denomtrace.proto (package ibc.applications.transfer.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * DenomTrace contains the base denomination for ICS20 fungible tokens and the - * source tracing information path. - * - * @generated from message ibc.applications.transfer.v1.DenomTrace - * @deprecated - */ -export class DenomTrace extends Message { - /** - * path defines the chain of port/channel identifiers used for tracing the - * source of the fungible token. - * - * @generated from field: string path = 1; - */ - path = ""; - - /** - * base denomination of the relayed fungible token. - * - * @generated from field: string base_denom = 2; - */ - baseDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.DenomTrace"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DenomTrace { - return new DenomTrace().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DenomTrace { - return new DenomTrace().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DenomTrace { - return new DenomTrace().fromJsonString(jsonString, options); - } - - static equals(a: DenomTrace | PlainMessage | undefined, b: DenomTrace | PlainMessage | undefined): boolean { - return proto3.util.equals(DenomTrace, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts deleted file mode 100644 index 145c4e7..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_cosmes.ts +++ /dev/null @@ -1,57 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v1/query.proto (package ibc.applications.transfer.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryDenomHashRequest, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse, QueryParamsRequest, QueryParamsResponse, QueryTotalEscrowForDenomRequest, QueryTotalEscrowForDenomResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.applications.transfer.v1.Query"; - -/** - * Params queries all parameters of the ibc-transfer module. - * - * @generated from rpc ibc.applications.transfer.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * DenomHash queries a denomination hash information. - * - * @generated from rpc ibc.applications.transfer.v1.Query.DenomHash - */ -export const QueryDenomHashService = { - typeName: TYPE_NAME, - method: "DenomHash", - Request: QueryDenomHashRequest, - Response: QueryDenomHashResponse, -} as const; - -/** - * EscrowAddress returns the escrow address for a particular port and channel id. - * - * @generated from rpc ibc.applications.transfer.v1.Query.EscrowAddress - */ -export const QueryEscrowAddressService = { - typeName: TYPE_NAME, - method: "EscrowAddress", - Request: QueryEscrowAddressRequest, - Response: QueryEscrowAddressResponse, -} as const; - -/** - * TotalEscrowForDenom returns the total amount of tokens in escrow based on the denom. - * - * @generated from rpc ibc.applications.transfer.v1.Query.TotalEscrowForDenom - */ -export const QueryTotalEscrowForDenomService = { - typeName: TYPE_NAME, - method: "TotalEscrowForDenom", - Request: QueryTotalEscrowForDenomRequest, - Response: QueryTotalEscrowForDenomResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_pb.ts deleted file mode 100644 index c225e01..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/query_pb.ts +++ /dev/null @@ -1,336 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v1/query.proto (package ibc.applications.transfer.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./transfer_pb.js"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message ibc.applications.transfer.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message ibc.applications.transfer.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: ibc.applications.transfer.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryDenomHashRequest is the request type for the Query/DenomHash RPC - * method - * - * @generated from message ibc.applications.transfer.v1.QueryDenomHashRequest - */ -export class QueryDenomHashRequest extends Message { - /** - * The denomination trace ([port_id]/[channel_id])+/[denom] - * - * @generated from field: string trace = 1; - */ - trace = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryDenomHashRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "trace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomHashRequest { - return new QueryDenomHashRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomHashRequest { - return new QueryDenomHashRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomHashRequest { - return new QueryDenomHashRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomHashRequest | PlainMessage | undefined, b: QueryDenomHashRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomHashRequest, a, b); - } -} - -/** - * QueryDenomHashResponse is the response type for the Query/DenomHash RPC - * method. - * - * @generated from message ibc.applications.transfer.v1.QueryDenomHashResponse - */ -export class QueryDenomHashResponse extends Message { - /** - * hash (in hex format) of the denomination trace information. - * - * @generated from field: string hash = 1; - */ - hash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryDenomHashResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomHashResponse { - return new QueryDenomHashResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomHashResponse { - return new QueryDenomHashResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomHashResponse { - return new QueryDenomHashResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomHashResponse | PlainMessage | undefined, b: QueryDenomHashResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomHashResponse, a, b); - } -} - -/** - * QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method. - * - * @generated from message ibc.applications.transfer.v1.QueryEscrowAddressRequest - */ -export class QueryEscrowAddressRequest extends Message { - /** - * unique port identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * unique channel identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryEscrowAddressRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEscrowAddressRequest { - return new QueryEscrowAddressRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEscrowAddressRequest { - return new QueryEscrowAddressRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEscrowAddressRequest { - return new QueryEscrowAddressRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEscrowAddressRequest | PlainMessage | undefined, b: QueryEscrowAddressRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEscrowAddressRequest, a, b); - } -} - -/** - * QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method. - * - * @generated from message ibc.applications.transfer.v1.QueryEscrowAddressResponse - */ -export class QueryEscrowAddressResponse extends Message { - /** - * the escrow account address - * - * @generated from field: string escrow_address = 1; - */ - escrowAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryEscrowAddressResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "escrow_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEscrowAddressResponse { - return new QueryEscrowAddressResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEscrowAddressResponse { - return new QueryEscrowAddressResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEscrowAddressResponse { - return new QueryEscrowAddressResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEscrowAddressResponse | PlainMessage | undefined, b: QueryEscrowAddressResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEscrowAddressResponse, a, b); - } -} - -/** - * QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method. - * - * @generated from message ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest - */ -export class QueryTotalEscrowForDenomRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalEscrowForDenomRequest { - return new QueryTotalEscrowForDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalEscrowForDenomRequest { - return new QueryTotalEscrowForDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalEscrowForDenomRequest { - return new QueryTotalEscrowForDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalEscrowForDenomRequest | PlainMessage | undefined, b: QueryTotalEscrowForDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalEscrowForDenomRequest, a, b); - } -} - -/** - * QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method. - * - * @generated from message ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse - */ -export class QueryTotalEscrowForDenomResponse extends Message { - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 1; - */ - amount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalEscrowForDenomResponse { - return new QueryTotalEscrowForDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalEscrowForDenomResponse { - return new QueryTotalEscrowForDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalEscrowForDenomResponse { - return new QueryTotalEscrowForDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalEscrowForDenomResponse | PlainMessage | undefined, b: QueryTotalEscrowForDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalEscrowForDenomResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts deleted file mode 100644 index be10672..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/transfer_pb.ts +++ /dev/null @@ -1,159 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v1/transfer.proto (package ibc.applications.transfer.v1, 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 set of IBC transfer parameters. - * NOTE: To prevent a single token from being transferred, set the - * TransfersEnabled parameter to true and then set the bank module's SendEnabled - * parameter for the denomination to false. - * - * @generated from message ibc.applications.transfer.v1.Params - */ -export class Params extends Message { - /** - * send_enabled enables or disables all cross-chain token transfers from this - * chain. - * - * @generated from field: bool send_enabled = 1; - */ - sendEnabled = false; - - /** - * receive_enabled enables or disables all cross-chain token transfers to this - * chain. - * - * @generated from field: bool receive_enabled = 2; - */ - receiveEnabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "send_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "receive_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * Forwarding defines a list of port ID, channel ID pairs determining the path - * through which a packet must be forwarded, and an unwind boolean indicating if - * the coin should be unwinded to its native chain before forwarding. - * - * @generated from message ibc.applications.transfer.v1.Forwarding - */ -export class Forwarding extends Message { - /** - * optional unwinding for the token transfered - * - * @generated from field: bool unwind = 1; - */ - unwind = false; - - /** - * optional intermediate path through which packet will be forwarded - * - * @generated from field: repeated ibc.applications.transfer.v1.Hop hops = 2; - */ - hops: Hop[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.Forwarding"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unwind", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "hops", kind: "message", T: Hop, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Forwarding { - return new Forwarding().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Forwarding { - return new Forwarding().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Forwarding { - return new Forwarding().fromJsonString(jsonString, options); - } - - static equals(a: Forwarding | PlainMessage | undefined, b: Forwarding | PlainMessage | undefined): boolean { - return proto3.util.equals(Forwarding, a, b); - } -} - -/** - * Hop defines a port ID, channel ID pair specifying where tokens must be forwarded - * next in a multihop transfer. - * - * @generated from message ibc.applications.transfer.v1.Hop - */ -export class Hop extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.Hop"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Hop { - return new Hop().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Hop { - return new Hop().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Hop { - return new Hop().fromJsonString(jsonString, options); - } - - static equals(a: Hop | PlainMessage | undefined, b: Hop | PlainMessage | undefined): boolean { - return proto3.util.equals(Hop, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts deleted file mode 100644 index dcdbc69..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v1/tx.proto (package ibc.applications.transfer.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgTransfer, MsgTransferResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.applications.transfer.v1.Msg"; - -/** - * Transfer defines a rpc handler method for MsgTransfer. - * - * @generated from rpc ibc.applications.transfer.v1.Msg.Transfer - */ -export const MsgTransferService = { - typeName: TYPE_NAME, - method: "Transfer", - Request: MsgTransfer, - Response: MsgTransferResponse, -} as const; - -/** - * UpdateParams defines a rpc handler for MsgUpdateParams. - * - * @generated from rpc ibc.applications.transfer.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts deleted file mode 100644 index 26d9aee..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v1/tx_pb.ts +++ /dev/null @@ -1,255 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v1/tx.proto (package ibc.applications.transfer.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; -import { Height } from "../../../core/client/v1/client_pb.js"; -import { Forwarding, Params } from "./transfer_pb.js"; - -/** - * MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between - * ICS20 enabled chains. See ICS Spec here: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - * - * @generated from message ibc.applications.transfer.v1.MsgTransfer - */ -export class MsgTransfer extends Message { - /** - * the port on which the packet will be sent - * - * @generated from field: string source_port = 1; - */ - sourcePort = ""; - - /** - * the channel by which the packet will be sent - * - * @generated from field: string source_channel = 2; - */ - sourceChannel = ""; - - /** - * the token to be transferred. this field has been replaced by the tokens field. - * - * @generated from field: cosmos.base.v1beta1.Coin token = 3 [deprecated = true]; - * @deprecated - */ - token?: Coin; - - /** - * the sender address - * - * @generated from field: string sender = 4; - */ - sender = ""; - - /** - * the recipient address on the destination chain - * - * @generated from field: string receiver = 5; - */ - receiver = ""; - - /** - * Timeout height relative to the current block height. - * The timeout is disabled when set to 0. - * - * @generated from field: ibc.core.client.v1.Height timeout_height = 6; - */ - timeoutHeight?: Height; - - /** - * Timeout timestamp in absolute nanoseconds since unix epoch. - * The timeout is disabled when set to 0. - * - * @generated from field: uint64 timeout_timestamp = 7; - */ - timeoutTimestamp = protoInt64.zero; - - /** - * optional memo - * - * @generated from field: string memo = 8; - */ - memo = ""; - - /** - * tokens to be transferred - * - * @generated from field: repeated cosmos.base.v1beta1.Coin tokens = 9; - */ - tokens: Coin[] = []; - - /** - * optional forwarding information - * - * @generated from field: ibc.applications.transfer.v1.Forwarding forwarding = 10; - */ - forwarding?: Forwarding; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.MsgTransfer"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "source_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "source_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "token", kind: "message", T: Coin }, - { no: 4, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "timeout_height", kind: "message", T: Height }, - { no: 7, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "tokens", kind: "message", T: Coin, repeated: true }, - { no: 10, name: "forwarding", kind: "message", T: Forwarding }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransfer { - return new MsgTransfer().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransfer { - return new MsgTransfer().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTransfer { - return new MsgTransfer().fromJsonString(jsonString, options); - } - - static equals(a: MsgTransfer | PlainMessage | undefined, b: MsgTransfer | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTransfer, a, b); - } -} - -/** - * MsgTransferResponse defines the Msg/Transfer response type. - * - * @generated from message ibc.applications.transfer.v1.MsgTransferResponse - */ -export class MsgTransferResponse extends Message { - /** - * sequence number of the transfer packet sent - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.MsgTransferResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferResponse { - return new MsgTransferResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferResponse { - return new MsgTransferResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTransferResponse { - return new MsgTransferResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgTransferResponse | PlainMessage | undefined, b: MsgTransferResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTransferResponse, a, b); - } -} - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * @generated from message ibc.applications.transfer.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * params defines the transfer parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: ibc.applications.transfer.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * @generated from message ibc.applications.transfer.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/genesis_pb.ts deleted file mode 100644 index 489a817..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/genesis_pb.ts +++ /dev/null @@ -1,126 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v2/genesis.proto (package ibc.applications.transfer.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Denom } from "./token_pb.js"; -import { Params } from "../v1/transfer_pb.js"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; -import { Packet, PacketId } from "../../../core/channel/v1/channel_pb.js"; - -/** - * GenesisState defines the ibc-transfer genesis state - * - * @generated from message ibc.applications.transfer.v2.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: repeated ibc.applications.transfer.v2.Denom denoms = 2; - */ - denoms: Denom[] = []; - - /** - * @generated from field: ibc.applications.transfer.v1.Params params = 3; - */ - params?: Params; - - /** - * total_escrowed contains the total amount of tokens escrowed - * by the transfer module - * - * @generated from field: repeated cosmos.base.v1beta1.Coin total_escrowed = 4; - */ - totalEscrowed: Coin[] = []; - - /** - * forwarded_packets contains the forwarded packets stored as part of the - * packet forwarding lifecycle - * - * @generated from field: repeated ibc.applications.transfer.v2.ForwardedPacket forwarded_packets = 5; - */ - forwardedPackets: ForwardedPacket[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denoms", kind: "message", T: Denom, repeated: true }, - { no: 3, name: "params", kind: "message", T: Params }, - { no: 4, name: "total_escrowed", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "forwarded_packets", kind: "message", T: ForwardedPacket, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * ForwardedPacket defines the genesis type necessary to retrieve and store forwarded packets. - * - * @generated from message ibc.applications.transfer.v2.ForwardedPacket - */ -export class ForwardedPacket extends Message { - /** - * @generated from field: ibc.core.channel.v1.PacketId forward_key = 1; - */ - forwardKey?: PacketId; - - /** - * @generated from field: ibc.core.channel.v1.Packet packet = 2; - */ - packet?: Packet; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.ForwardedPacket"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "forward_key", kind: "message", T: PacketId }, - { no: 2, name: "packet", kind: "message", T: Packet }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ForwardedPacket { - return new ForwardedPacket().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ForwardedPacket { - return new ForwardedPacket().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ForwardedPacket { - return new ForwardedPacket().fromJsonString(jsonString, options); - } - - static equals(a: ForwardedPacket | PlainMessage | undefined, b: ForwardedPacket | PlainMessage | undefined): boolean { - return proto3.util.equals(ForwardedPacket, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts deleted file mode 100644 index 6d3c19f..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/packet_pb.ts +++ /dev/null @@ -1,211 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v2/packet.proto (package ibc.applications.transfer.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Token } from "./token_pb.js"; -import { Hop } from "../v1/transfer_pb.js"; - -/** - * FungibleTokenPacketData defines a struct for the packet payload - * See FungibleTokenPacketData spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - * - * @generated from message ibc.applications.transfer.v2.FungibleTokenPacketData - */ -export class FungibleTokenPacketData extends Message { - /** - * the token denomination to be transferred - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * the token amount to be transferred - * - * @generated from field: string amount = 2; - */ - amount = ""; - - /** - * the sender address - * - * @generated from field: string sender = 3; - */ - sender = ""; - - /** - * the recipient address on the destination chain - * - * @generated from field: string receiver = 4; - */ - receiver = ""; - - /** - * optional memo - * - * @generated from field: string memo = 5; - */ - memo = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.FungibleTokenPacketData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FungibleTokenPacketData { - return new FungibleTokenPacketData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FungibleTokenPacketData { - return new FungibleTokenPacketData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FungibleTokenPacketData { - return new FungibleTokenPacketData().fromJsonString(jsonString, options); - } - - static equals(a: FungibleTokenPacketData | PlainMessage | undefined, b: FungibleTokenPacketData | PlainMessage | undefined): boolean { - return proto3.util.equals(FungibleTokenPacketData, a, b); - } -} - -/** - * FungibleTokenPacketDataV2 defines a struct for the packet payload - * See FungibleTokenPacketDataV2 spec: - * https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures - * - * @generated from message ibc.applications.transfer.v2.FungibleTokenPacketDataV2 - */ -export class FungibleTokenPacketDataV2 extends Message { - /** - * the tokens to be transferred - * - * @generated from field: repeated ibc.applications.transfer.v2.Token tokens = 1; - */ - tokens: Token[] = []; - - /** - * the sender address - * - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * the recipient address on the destination chain - * - * @generated from field: string receiver = 3; - */ - receiver = ""; - - /** - * optional memo - * - * @generated from field: string memo = 4; - */ - memo = ""; - - /** - * optional forwarding information - * - * @generated from field: ibc.applications.transfer.v2.ForwardingPacketData forwarding = 5; - */ - forwarding?: ForwardingPacketData; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.FungibleTokenPacketDataV2"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tokens", kind: "message", T: Token, repeated: true }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "forwarding", kind: "message", T: ForwardingPacketData }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FungibleTokenPacketDataV2 { - return new FungibleTokenPacketDataV2().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FungibleTokenPacketDataV2 { - return new FungibleTokenPacketDataV2().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FungibleTokenPacketDataV2 { - return new FungibleTokenPacketDataV2().fromJsonString(jsonString, options); - } - - static equals(a: FungibleTokenPacketDataV2 | PlainMessage | undefined, b: FungibleTokenPacketDataV2 | PlainMessage | undefined): boolean { - return proto3.util.equals(FungibleTokenPacketDataV2, a, b); - } -} - -/** - * ForwardingPacketData defines a list of port ID, channel ID pairs determining the path - * through which a packet must be forwarded, and the destination memo string to be used in the - * final destination of the tokens. - * - * @generated from message ibc.applications.transfer.v2.ForwardingPacketData - */ -export class ForwardingPacketData extends Message { - /** - * optional memo consumed by final destination chain - * - * @generated from field: string destination_memo = 1; - */ - destinationMemo = ""; - - /** - * optional intermediate path through which packet will be forwarded. - * - * @generated from field: repeated ibc.applications.transfer.v1.Hop hops = 2; - */ - hops: Hop[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.ForwardingPacketData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "destination_memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "hops", kind: "message", T: Hop, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ForwardingPacketData { - return new ForwardingPacketData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ForwardingPacketData { - return new ForwardingPacketData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ForwardingPacketData { - return new ForwardingPacketData().fromJsonString(jsonString, options); - } - - static equals(a: ForwardingPacketData | PlainMessage | undefined, b: ForwardingPacketData | PlainMessage | undefined): boolean { - return proto3.util.equals(ForwardingPacketData, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_cosmes.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_cosmes.ts deleted file mode 100644 index 910d647..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v2/queryv2.proto (package ibc.applications.transfer.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryDenomRequest, QueryDenomResponse, QueryDenomsRequest, QueryDenomsResponse } from "./queryv2_pb.js"; - -const TYPE_NAME = "ibc.applications.transfer.v2.QueryV2"; - -/** - * Denoms queries all denominations - * - * @generated from rpc ibc.applications.transfer.v2.QueryV2.Denoms - */ -export const QueryV2DenomsService = { - typeName: TYPE_NAME, - method: "Denoms", - Request: QueryDenomsRequest, - Response: QueryDenomsResponse, -} as const; - -/** - * Denom queries a denomination - * - * @generated from rpc ibc.applications.transfer.v2.QueryV2.Denom - */ -export const QueryV2DenomService = { - typeName: TYPE_NAME, - method: "Denom", - Request: QueryDenomRequest, - Response: QueryDenomResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_pb.ts deleted file mode 100644 index f3cfe26..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/queryv2_pb.ts +++ /dev/null @@ -1,186 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v2/queryv2.proto (package ibc.applications.transfer.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Denom } from "./token_pb.js"; -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * QueryDenomRequest is the request type for the Query/Denom RPC - * method - * - * @generated from message ibc.applications.transfer.v2.QueryDenomRequest - */ -export class QueryDenomRequest extends Message { - /** - * hash (in hex format) or denom (full denom with ibc prefix) of the on chain denomination. - * - * @generated from field: string hash = 1; - */ - hash = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.QueryDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomRequest { - return new QueryDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomRequest { - return new QueryDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomRequest { - return new QueryDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomRequest | PlainMessage | undefined, b: QueryDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomRequest, a, b); - } -} - -/** - * QueryDenomResponse is the response type for the Query/Denom RPC - * method. - * - * @generated from message ibc.applications.transfer.v2.QueryDenomResponse - */ -export class QueryDenomResponse extends Message { - /** - * denom returns the requested denomination. - * - * @generated from field: ibc.applications.transfer.v2.Denom denom = 1; - */ - denom?: Denom; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.QueryDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "message", T: Denom }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomResponse { - return new QueryDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomResponse { - return new QueryDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomResponse { - return new QueryDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomResponse | PlainMessage | undefined, b: QueryDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomResponse, a, b); - } -} - -/** - * QueryDenomsRequest is the request type for the Query/Denoms RPC - * method - * - * @generated from message ibc.applications.transfer.v2.QueryDenomsRequest - */ -export class QueryDenomsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.QueryDenomsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsRequest { - return new QueryDenomsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsRequest { - return new QueryDenomsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomsRequest { - return new QueryDenomsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomsRequest | PlainMessage | undefined, b: QueryDenomsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomsRequest, a, b); - } -} - -/** - * QueryDenomsResponse is the response type for the Query/Denoms RPC - * method. - * - * @generated from message ibc.applications.transfer.v2.QueryDenomsResponse - */ -export class QueryDenomsResponse extends Message { - /** - * denoms returns all denominations. - * - * @generated from field: repeated ibc.applications.transfer.v2.Denom denoms = 1; - */ - denoms: Denom[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.QueryDenomsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denoms", kind: "message", T: Denom, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsResponse { - return new QueryDenomsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsResponse { - return new QueryDenomsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomsResponse { - return new QueryDenomsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomsResponse | PlainMessage | undefined, b: QueryDenomsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/token_pb.ts b/libs/es-client/src/protobufs/ibc/applications/transfer/v2/token_pb.ts deleted file mode 100644 index c323641..0000000 --- a/libs/es-client/src/protobufs/ibc/applications/transfer/v2/token_pb.ts +++ /dev/null @@ -1,107 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/applications/transfer/v2/token.proto (package ibc.applications.transfer.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Hop } from "../v1/transfer_pb.js"; - -/** - * Token defines a struct which represents a token to be transferred. - * - * @generated from message ibc.applications.transfer.v2.Token - */ -export class Token extends Message { - /** - * the token denomination - * - * @generated from field: ibc.applications.transfer.v2.Denom denom = 1; - */ - denom?: Denom; - - /** - * the token amount to be transferred - * - * @generated from field: string amount = 2; - */ - amount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.Token"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "message", T: Denom }, - { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Token { - return new Token().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Token { - return new Token().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Token { - return new Token().fromJsonString(jsonString, options); - } - - static equals(a: Token | PlainMessage | undefined, b: Token | PlainMessage | undefined): boolean { - return proto3.util.equals(Token, a, b); - } -} - -/** - * Denom holds the base denom of a Token and a trace of the chains it was sent through. - * - * @generated from message ibc.applications.transfer.v2.Denom - */ -export class Denom extends Message { - /** - * the base token denomination - * - * @generated from field: string base = 1; - */ - base = ""; - - /** - * the trace of the token - * - * @generated from field: repeated ibc.applications.transfer.v1.Hop trace = 3; - */ - trace: Hop[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.applications.transfer.v2.Denom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "trace", kind: "message", T: Hop, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Denom { - return new Denom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Denom { - return new Denom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Denom { - return new Denom().fromJsonString(jsonString, options); - } - - static equals(a: Denom | PlainMessage | undefined, b: Denom | PlainMessage | undefined): boolean { - return proto3.util.equals(Denom, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/channel_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/channel_pb.ts deleted file mode 100644 index 087d41f..0000000 --- a/libs/es-client/src/protobufs/ibc/core/channel/v1/channel_pb.ts +++ /dev/null @@ -1,725 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/channel/v1/channel.proto (package ibc.core.channel.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Height } from "../../client/v1/client_pb.js"; - -/** - * State defines if a channel is in one of the following states: - * CLOSED, INIT, TRYOPEN, OPEN, FLUSHING, FLUSHCOMPLETE or UNINITIALIZED. - * - * @generated from enum ibc.core.channel.v1.State - */ -export enum State { - /** - * Default State - * - * @generated from enum value: STATE_UNINITIALIZED_UNSPECIFIED = 0; - */ - UNINITIALIZED_UNSPECIFIED = 0, - - /** - * A channel has just started the opening handshake. - * - * @generated from enum value: STATE_INIT = 1; - */ - INIT = 1, - - /** - * A channel has acknowledged the handshake step on the counterparty chain. - * - * @generated from enum value: STATE_TRYOPEN = 2; - */ - TRYOPEN = 2, - - /** - * A channel has completed the handshake. Open channels are - * ready to send and receive packets. - * - * @generated from enum value: STATE_OPEN = 3; - */ - OPEN = 3, - - /** - * A channel has been closed and can no longer be used to send or receive - * packets. - * - * @generated from enum value: STATE_CLOSED = 4; - */ - CLOSED = 4, - - /** - * A channel has just accepted the upgrade handshake attempt and is flushing in-flight packets. - * - * @generated from enum value: STATE_FLUSHING = 5; - */ - FLUSHING = 5, - - /** - * A channel has just completed flushing any in-flight packets. - * - * @generated from enum value: STATE_FLUSHCOMPLETE = 6; - */ - FLUSHCOMPLETE = 6, -} -// Retrieve enum metadata with: proto3.getEnumType(State) -proto3.util.setEnumType(State, "ibc.core.channel.v1.State", [ - { no: 0, name: "STATE_UNINITIALIZED_UNSPECIFIED" }, - { no: 1, name: "STATE_INIT" }, - { no: 2, name: "STATE_TRYOPEN" }, - { no: 3, name: "STATE_OPEN" }, - { no: 4, name: "STATE_CLOSED" }, - { no: 5, name: "STATE_FLUSHING" }, - { no: 6, name: "STATE_FLUSHCOMPLETE" }, -]); - -/** - * Order defines if a channel is ORDERED or UNORDERED - * - * @generated from enum ibc.core.channel.v1.Order - */ -export enum Order { - /** - * zero-value for channel ordering - * - * @generated from enum value: ORDER_NONE_UNSPECIFIED = 0; - */ - NONE_UNSPECIFIED = 0, - - /** - * packets can be delivered in any order, which may differ from the order in - * which they were sent. - * - * @generated from enum value: ORDER_UNORDERED = 1; - */ - UNORDERED = 1, - - /** - * packets are delivered exactly in the order which they were sent - * - * @generated from enum value: ORDER_ORDERED = 2; - */ - ORDERED = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(Order) -proto3.util.setEnumType(Order, "ibc.core.channel.v1.Order", [ - { no: 0, name: "ORDER_NONE_UNSPECIFIED" }, - { no: 1, name: "ORDER_UNORDERED" }, - { no: 2, name: "ORDER_ORDERED" }, -]); - -/** - * Channel defines pipeline for exactly-once packet delivery between specific - * modules on separate blockchains, which has at least one end capable of - * sending packets and one end capable of receiving packets. - * - * @generated from message ibc.core.channel.v1.Channel - */ -export class Channel extends Message { - /** - * current state of the channel end - * - * @generated from field: ibc.core.channel.v1.State state = 1; - */ - state = State.UNINITIALIZED_UNSPECIFIED; - - /** - * whether the channel is ordered or unordered - * - * @generated from field: ibc.core.channel.v1.Order ordering = 2; - */ - ordering = Order.NONE_UNSPECIFIED; - - /** - * counterparty channel end - * - * @generated from field: ibc.core.channel.v1.Counterparty counterparty = 3; - */ - counterparty?: Counterparty; - - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - * - * @generated from field: repeated string connection_hops = 4; - */ - connectionHops: string[] = []; - - /** - * opaque channel version, which is agreed upon during the handshake - * - * @generated from field: string version = 5; - */ - version = ""; - - /** - * upgrade sequence indicates the latest upgrade attempt performed by this channel - * the value of 0 indicates the channel has never been upgraded - * - * @generated from field: uint64 upgrade_sequence = 6; - */ - upgradeSequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.Channel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 2, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, - { no: 3, name: "counterparty", kind: "message", T: Counterparty }, - { no: 4, name: "connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Channel { - return new Channel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Channel { - return new Channel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Channel { - return new Channel().fromJsonString(jsonString, options); - } - - static equals(a: Channel | PlainMessage | undefined, b: Channel | PlainMessage | undefined): boolean { - return proto3.util.equals(Channel, a, b); - } -} - -/** - * IdentifiedChannel defines a channel with additional port and channel - * identifier fields. - * - * @generated from message ibc.core.channel.v1.IdentifiedChannel - */ -export class IdentifiedChannel extends Message { - /** - * current state of the channel end - * - * @generated from field: ibc.core.channel.v1.State state = 1; - */ - state = State.UNINITIALIZED_UNSPECIFIED; - - /** - * whether the channel is ordered or unordered - * - * @generated from field: ibc.core.channel.v1.Order ordering = 2; - */ - ordering = Order.NONE_UNSPECIFIED; - - /** - * counterparty channel end - * - * @generated from field: ibc.core.channel.v1.Counterparty counterparty = 3; - */ - counterparty?: Counterparty; - - /** - * list of connection identifiers, in order, along which packets sent on - * this channel will travel - * - * @generated from field: repeated string connection_hops = 4; - */ - connectionHops: string[] = []; - - /** - * opaque channel version, which is agreed upon during the handshake - * - * @generated from field: string version = 5; - */ - version = ""; - - /** - * port identifier - * - * @generated from field: string port_id = 6; - */ - portId = ""; - - /** - * channel identifier - * - * @generated from field: string channel_id = 7; - */ - channelId = ""; - - /** - * upgrade sequence indicates the latest upgrade attempt performed by this channel - * the value of 0 indicates the channel has never been upgraded - * - * @generated from field: uint64 upgrade_sequence = 8; - */ - upgradeSequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.IdentifiedChannel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 2, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, - { no: 3, name: "counterparty", kind: "message", T: Counterparty }, - { no: 4, name: "connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedChannel { - return new IdentifiedChannel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedChannel { - return new IdentifiedChannel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IdentifiedChannel { - return new IdentifiedChannel().fromJsonString(jsonString, options); - } - - static equals(a: IdentifiedChannel | PlainMessage | undefined, b: IdentifiedChannel | PlainMessage | undefined): boolean { - return proto3.util.equals(IdentifiedChannel, a, b); - } -} - -/** - * Counterparty defines a channel end counterparty - * - * @generated from message ibc.core.channel.v1.Counterparty - */ -export class Counterparty extends Message { - /** - * port on the counterparty chain which owns the other end of the channel. - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel end on the counterparty chain - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.Counterparty"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Counterparty { - return new Counterparty().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Counterparty { - return new Counterparty().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Counterparty { - return new Counterparty().fromJsonString(jsonString, options); - } - - static equals(a: Counterparty | PlainMessage | undefined, b: Counterparty | PlainMessage | undefined): boolean { - return proto3.util.equals(Counterparty, a, b); - } -} - -/** - * Packet defines a type that carries data across different chains through IBC - * - * @generated from message ibc.core.channel.v1.Packet - */ -export class Packet extends Message { - /** - * number corresponds to the order of sends and receives, where a Packet - * with an earlier sequence number must be sent and received before a Packet - * with a later sequence number. - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * identifies the port on the sending chain. - * - * @generated from field: string source_port = 2; - */ - sourcePort = ""; - - /** - * identifies the channel end on the sending chain. - * - * @generated from field: string source_channel = 3; - */ - sourceChannel = ""; - - /** - * identifies the port on the receiving chain. - * - * @generated from field: string destination_port = 4; - */ - destinationPort = ""; - - /** - * identifies the channel end on the receiving chain. - * - * @generated from field: string destination_channel = 5; - */ - destinationChannel = ""; - - /** - * actual opaque bytes transferred directly to the application module - * - * @generated from field: bytes data = 6; - */ - data = new Uint8Array(0); - - /** - * block height after which the packet times out - * - * @generated from field: ibc.core.client.v1.Height timeout_height = 7; - */ - timeoutHeight?: Height; - - /** - * block timestamp (in nanoseconds) after which the packet times out - * - * @generated from field: uint64 timeout_timestamp = 8; - */ - timeoutTimestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.Packet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "source_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "source_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "destination_port", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "destination_channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "timeout_height", kind: "message", T: Height }, - { no: 8, name: "timeout_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Packet { - return new Packet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Packet { - return new Packet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Packet { - return new Packet().fromJsonString(jsonString, options); - } - - static equals(a: Packet | PlainMessage | undefined, b: Packet | PlainMessage | undefined): boolean { - return proto3.util.equals(Packet, a, b); - } -} - -/** - * PacketState defines the generic type necessary to retrieve and store - * packet commitments, acknowledgements, and receipts. - * Caller is responsible for knowing the context necessary to interpret this - * state as a commitment, acknowledgement, or a receipt. - * - * @generated from message ibc.core.channel.v1.PacketState - */ -export class PacketState extends Message { - /** - * channel port identifier. - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier. - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * packet sequence. - * - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - /** - * embedded data that represents packet state. - * - * @generated from field: bytes data = 4; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.PacketState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketState { - return new PacketState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketState { - return new PacketState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketState { - return new PacketState().fromJsonString(jsonString, options); - } - - static equals(a: PacketState | PlainMessage | undefined, b: PacketState | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketState, a, b); - } -} - -/** - * PacketId is an identifier for a unique Packet - * Source chains refer to packets by source port/channel - * Destination chains refer to packets by destination port/channel - * - * @generated from message ibc.core.channel.v1.PacketId - */ -export class PacketId extends Message { - /** - * channel port identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * packet sequence - * - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.PacketId"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketId { - return new PacketId().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketId { - return new PacketId().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketId { - return new PacketId().fromJsonString(jsonString, options); - } - - static equals(a: PacketId | PlainMessage | undefined, b: PacketId | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketId, a, b); - } -} - -/** - * Acknowledgement is the recommended acknowledgement format to be used by - * app-specific protocols. - * NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental - * conflicts with other protobuf message formats used for acknowledgements. - * The first byte of any message with this format will be the non-ASCII values - * `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: - * https://github.com/cosmos/ibc/tree/master/spec/core/ics-004-channel-and-packet-semantics#acknowledgement-envelope - * - * @generated from message ibc.core.channel.v1.Acknowledgement - */ -export class Acknowledgement extends Message { - /** - * response contains either a result or an error and must be non-empty - * - * @generated from oneof ibc.core.channel.v1.Acknowledgement.response - */ - response: { - /** - * @generated from field: bytes result = 21; - */ - value: Uint8Array; - case: "result"; - } | { - /** - * @generated from field: string error = 22; - */ - value: string; - case: "error"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.Acknowledgement"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 21, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "response" }, - { no: 22, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "response" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Acknowledgement { - return new Acknowledgement().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Acknowledgement { - return new Acknowledgement().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Acknowledgement { - return new Acknowledgement().fromJsonString(jsonString, options); - } - - static equals(a: Acknowledgement | PlainMessage | undefined, b: Acknowledgement | PlainMessage | undefined): boolean { - return proto3.util.equals(Acknowledgement, a, b); - } -} - -/** - * Timeout defines an execution deadline structure for 04-channel handlers. - * This includes packet lifecycle handlers as well as the upgrade handshake handlers. - * A valid Timeout contains either one or both of a timestamp and block height (sequence). - * - * @generated from message ibc.core.channel.v1.Timeout - */ -export class Timeout extends Message { - /** - * block height after which the packet or upgrade times out - * - * @generated from field: ibc.core.client.v1.Height height = 1; - */ - height?: Height; - - /** - * block timestamp (in nanoseconds) after which the packet or upgrade times out - * - * @generated from field: uint64 timestamp = 2; - */ - timestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.Timeout"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "message", T: Height }, - { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Timeout { - return new Timeout().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Timeout { - return new Timeout().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Timeout { - return new Timeout().fromJsonString(jsonString, options); - } - - static equals(a: Timeout | PlainMessage | undefined, b: Timeout | PlainMessage | undefined): boolean { - return proto3.util.equals(Timeout, a, b); - } -} - -/** - * Params defines the set of IBC channel parameters. - * - * @generated from message ibc.core.channel.v1.Params - */ -export class Params extends Message { - /** - * the relative timeout after which channel upgrades will time out. - * - * @generated from field: ibc.core.channel.v1.Timeout upgrade_timeout = 1; - */ - upgradeTimeout?: Timeout; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upgrade_timeout", kind: "message", T: Timeout }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/genesis_pb.ts deleted file mode 100644 index 9e962cb..0000000 --- a/libs/es-client/src/protobufs/ibc/core/channel/v1/genesis_pb.ts +++ /dev/null @@ -1,150 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/channel/v1/genesis.proto (package ibc.core.channel.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { IdentifiedChannel, PacketState, Params } from "./channel_pb.js"; - -/** - * GenesisState defines the ibc channel submodule's genesis state. - * - * @generated from message ibc.core.channel.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - channels: IdentifiedChannel[] = []; - - /** - * @generated from field: repeated ibc.core.channel.v1.PacketState acknowledgements = 2; - */ - acknowledgements: PacketState[] = []; - - /** - * @generated from field: repeated ibc.core.channel.v1.PacketState commitments = 3; - */ - commitments: PacketState[] = []; - - /** - * @generated from field: repeated ibc.core.channel.v1.PacketState receipts = 4; - */ - receipts: PacketState[] = []; - - /** - * @generated from field: repeated ibc.core.channel.v1.PacketSequence send_sequences = 5; - */ - sendSequences: PacketSequence[] = []; - - /** - * @generated from field: repeated ibc.core.channel.v1.PacketSequence recv_sequences = 6; - */ - recvSequences: PacketSequence[] = []; - - /** - * @generated from field: repeated ibc.core.channel.v1.PacketSequence ack_sequences = 7; - */ - ackSequences: PacketSequence[] = []; - - /** - * the sequence for the next generated channel identifier - * - * @generated from field: uint64 next_channel_sequence = 8; - */ - nextChannelSequence = protoInt64.zero; - - /** - * @generated from field: ibc.core.channel.v1.Params params = 9; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channels", kind: "message", T: IdentifiedChannel, repeated: true }, - { no: 2, name: "acknowledgements", kind: "message", T: PacketState, repeated: true }, - { no: 3, name: "commitments", kind: "message", T: PacketState, repeated: true }, - { no: 4, name: "receipts", kind: "message", T: PacketState, repeated: true }, - { no: 5, name: "send_sequences", kind: "message", T: PacketSequence, repeated: true }, - { no: 6, name: "recv_sequences", kind: "message", T: PacketSequence, repeated: true }, - { no: 7, name: "ack_sequences", kind: "message", T: PacketSequence, repeated: true }, - { no: 8, name: "next_channel_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 9, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * PacketSequence defines the genesis type necessary to retrieve and store - * next send and receive sequences. - * - * @generated from message ibc.core.channel.v1.PacketSequence - */ -export class PacketSequence extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.PacketSequence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketSequence { - return new PacketSequence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketSequence { - return new PacketSequence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketSequence { - return new PacketSequence().fromJsonString(jsonString, options); - } - - static equals(a: PacketSequence | PlainMessage | undefined, b: PacketSequence | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketSequence, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/query_cosmes.ts deleted file mode 100644 index e741b47..0000000 --- a/libs/es-client/src/protobufs/ibc/core/channel/v1/query_cosmes.ts +++ /dev/null @@ -1,221 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/core/channel/v1/query.proto (package ibc.core.channel.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryChannelClientStateRequest, QueryChannelClientStateResponse, QueryChannelConsensusStateRequest, QueryChannelConsensusStateResponse, QueryChannelParamsRequest, QueryChannelParamsResponse, QueryChannelRequest, QueryChannelResponse, QueryChannelsRequest, QueryChannelsResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveResponse, QueryNextSequenceSendRequest, QueryNextSequenceSendResponse, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryPacketCommitmentRequest, QueryPacketCommitmentResponse, QueryPacketCommitmentsRequest, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketReceiptResponse, QueryUnreceivedAcksRequest, QueryUnreceivedAcksResponse, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsResponse, QueryUpgradeErrorRequest, QueryUpgradeErrorResponse, QueryUpgradeRequest, QueryUpgradeResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.core.channel.v1.Query"; - -/** - * Channel queries an IBC Channel. - * - * @generated from rpc ibc.core.channel.v1.Query.Channel - */ -export const QueryChannelService = { - typeName: TYPE_NAME, - method: "Channel", - Request: QueryChannelRequest, - Response: QueryChannelResponse, -} as const; - -/** - * Channels queries all the IBC channels of a chain. - * - * @generated from rpc ibc.core.channel.v1.Query.Channels - */ -export const QueryChannelsService = { - typeName: TYPE_NAME, - method: "Channels", - Request: QueryChannelsRequest, - Response: QueryChannelsResponse, -} as const; - -/** - * ConnectionChannels queries all the channels associated with a connection - * end. - * - * @generated from rpc ibc.core.channel.v1.Query.ConnectionChannels - */ -export const QueryConnectionChannelsService = { - typeName: TYPE_NAME, - method: "ConnectionChannels", - Request: QueryConnectionChannelsRequest, - Response: QueryConnectionChannelsResponse, -} as const; - -/** - * ChannelClientState queries for the client state for the channel associated - * with the provided channel identifiers. - * - * @generated from rpc ibc.core.channel.v1.Query.ChannelClientState - */ -export const QueryChannelClientStateService = { - typeName: TYPE_NAME, - method: "ChannelClientState", - Request: QueryChannelClientStateRequest, - Response: QueryChannelClientStateResponse, -} as const; - -/** - * ChannelConsensusState queries for the consensus state for the channel - * associated with the provided channel identifiers. - * - * @generated from rpc ibc.core.channel.v1.Query.ChannelConsensusState - */ -export const QueryChannelConsensusStateService = { - typeName: TYPE_NAME, - method: "ChannelConsensusState", - Request: QueryChannelConsensusStateRequest, - Response: QueryChannelConsensusStateResponse, -} as const; - -/** - * PacketCommitment queries a stored packet commitment hash. - * - * @generated from rpc ibc.core.channel.v1.Query.PacketCommitment - */ -export const QueryPacketCommitmentService = { - typeName: TYPE_NAME, - method: "PacketCommitment", - Request: QueryPacketCommitmentRequest, - Response: QueryPacketCommitmentResponse, -} as const; - -/** - * PacketCommitments returns all the packet commitments hashes associated - * with a channel. - * - * @generated from rpc ibc.core.channel.v1.Query.PacketCommitments - */ -export const QueryPacketCommitmentsService = { - typeName: TYPE_NAME, - method: "PacketCommitments", - Request: QueryPacketCommitmentsRequest, - Response: QueryPacketCommitmentsResponse, -} as const; - -/** - * PacketReceipt queries if a given packet sequence has been received on the - * queried chain - * - * @generated from rpc ibc.core.channel.v1.Query.PacketReceipt - */ -export const QueryPacketReceiptService = { - typeName: TYPE_NAME, - method: "PacketReceipt", - Request: QueryPacketReceiptRequest, - Response: QueryPacketReceiptResponse, -} as const; - -/** - * PacketAcknowledgement queries a stored packet acknowledgement hash. - * - * @generated from rpc ibc.core.channel.v1.Query.PacketAcknowledgement - */ -export const QueryPacketAcknowledgementService = { - typeName: TYPE_NAME, - method: "PacketAcknowledgement", - Request: QueryPacketAcknowledgementRequest, - Response: QueryPacketAcknowledgementResponse, -} as const; - -/** - * PacketAcknowledgements returns all the packet acknowledgements associated - * with a channel. - * - * @generated from rpc ibc.core.channel.v1.Query.PacketAcknowledgements - */ -export const QueryPacketAcknowledgementsService = { - typeName: TYPE_NAME, - method: "PacketAcknowledgements", - Request: QueryPacketAcknowledgementsRequest, - Response: QueryPacketAcknowledgementsResponse, -} as const; - -/** - * UnreceivedPackets returns all the unreceived IBC packets associated with a - * channel and sequences. - * - * @generated from rpc ibc.core.channel.v1.Query.UnreceivedPackets - */ -export const QueryUnreceivedPacketsService = { - typeName: TYPE_NAME, - method: "UnreceivedPackets", - Request: QueryUnreceivedPacketsRequest, - Response: QueryUnreceivedPacketsResponse, -} as const; - -/** - * UnreceivedAcks returns all the unreceived IBC acknowledgements associated - * with a channel and sequences. - * - * @generated from rpc ibc.core.channel.v1.Query.UnreceivedAcks - */ -export const QueryUnreceivedAcksService = { - typeName: TYPE_NAME, - method: "UnreceivedAcks", - Request: QueryUnreceivedAcksRequest, - Response: QueryUnreceivedAcksResponse, -} as const; - -/** - * NextSequenceReceive returns the next receive sequence for a given channel. - * - * @generated from rpc ibc.core.channel.v1.Query.NextSequenceReceive - */ -export const QueryNextSequenceReceiveService = { - typeName: TYPE_NAME, - method: "NextSequenceReceive", - Request: QueryNextSequenceReceiveRequest, - Response: QueryNextSequenceReceiveResponse, -} as const; - -/** - * NextSequenceSend returns the next send sequence for a given channel. - * - * @generated from rpc ibc.core.channel.v1.Query.NextSequenceSend - */ -export const QueryNextSequenceSendService = { - typeName: TYPE_NAME, - method: "NextSequenceSend", - Request: QueryNextSequenceSendRequest, - Response: QueryNextSequenceSendResponse, -} as const; - -/** - * UpgradeError returns the error receipt if the upgrade handshake failed. - * - * @generated from rpc ibc.core.channel.v1.Query.UpgradeError - */ -export const QueryUpgradeErrorService = { - typeName: TYPE_NAME, - method: "UpgradeError", - Request: QueryUpgradeErrorRequest, - Response: QueryUpgradeErrorResponse, -} as const; - -/** - * Upgrade returns the upgrade for a given port and channel id. - * - * @generated from rpc ibc.core.channel.v1.Query.Upgrade - */ -export const QueryUpgradeService = { - typeName: TYPE_NAME, - method: "Upgrade", - Request: QueryUpgradeRequest, - Response: QueryUpgradeResponse, -} as const; - -/** - * ChannelParams queries all parameters of the ibc channel submodule. - * - * @generated from rpc ibc.core.channel.v1.Query.ChannelParams - */ -export const QueryChannelParamsService = { - typeName: TYPE_NAME, - method: "ChannelParams", - Request: QueryChannelParamsRequest, - Response: QueryChannelParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/query_pb.ts deleted file mode 100644 index 9d13e1e..0000000 --- a/libs/es-client/src/protobufs/ibc/core/channel/v1/query_pb.ts +++ /dev/null @@ -1,1859 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/channel/v1/query.proto (package ibc.core.channel.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Channel, IdentifiedChannel, PacketState, Params } from "./channel_pb.js"; -import { Height, IdentifiedClientState } from "../../client/v1/client_pb.js"; -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { ErrorReceipt, Upgrade } from "./upgrade_pb.js"; - -/** - * QueryChannelRequest is the request type for the Query/Channel RPC method - * - * @generated from message ibc.core.channel.v1.QueryChannelRequest - */ -export class QueryChannelRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelRequest { - return new QueryChannelRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelRequest { - return new QueryChannelRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelRequest { - return new QueryChannelRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelRequest | PlainMessage | undefined, b: QueryChannelRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelRequest, a, b); - } -} - -/** - * QueryChannelResponse is the response type for the Query/Channel RPC method. - * Besides the Channel end, it includes a proof and the height from which the - * proof was retrieved. - * - * @generated from message ibc.core.channel.v1.QueryChannelResponse - */ -export class QueryChannelResponse extends Message { - /** - * channel associated with the request identifiers - * - * @generated from field: ibc.core.channel.v1.Channel channel = 1; - */ - channel?: Channel; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channel", kind: "message", T: Channel }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelResponse { - return new QueryChannelResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelResponse { - return new QueryChannelResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelResponse { - return new QueryChannelResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelResponse | PlainMessage | undefined, b: QueryChannelResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelResponse, a, b); - } -} - -/** - * QueryChannelsRequest is the request type for the Query/Channels RPC method - * - * @generated from message ibc.core.channel.v1.QueryChannelsRequest - */ -export class QueryChannelsRequest extends Message { - /** - * pagination request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelsRequest { - return new QueryChannelsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelsRequest { - return new QueryChannelsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelsRequest { - return new QueryChannelsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelsRequest | PlainMessage | undefined, b: QueryChannelsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelsRequest, a, b); - } -} - -/** - * QueryChannelsResponse is the response type for the Query/Channels RPC method. - * - * @generated from message ibc.core.channel.v1.QueryChannelsResponse - */ -export class QueryChannelsResponse extends Message { - /** - * list of stored channels of the chain. - * - * @generated from field: repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - channels: IdentifiedChannel[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - /** - * query block height - * - * @generated from field: ibc.core.client.v1.Height height = 3; - */ - height?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channels", kind: "message", T: IdentifiedChannel, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - { no: 3, name: "height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelsResponse { - return new QueryChannelsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelsResponse { - return new QueryChannelsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelsResponse { - return new QueryChannelsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelsResponse | PlainMessage | undefined, b: QueryChannelsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelsResponse, a, b); - } -} - -/** - * QueryConnectionChannelsRequest is the request type for the - * Query/QueryConnectionChannels RPC method - * - * @generated from message ibc.core.channel.v1.QueryConnectionChannelsRequest - */ -export class QueryConnectionChannelsRequest extends Message { - /** - * connection unique identifier - * - * @generated from field: string connection = 1; - */ - connection = ""; - - /** - * pagination request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryConnectionChannelsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionChannelsRequest { - return new QueryConnectionChannelsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionChannelsRequest { - return new QueryConnectionChannelsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionChannelsRequest { - return new QueryConnectionChannelsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionChannelsRequest | PlainMessage | undefined, b: QueryConnectionChannelsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionChannelsRequest, a, b); - } -} - -/** - * QueryConnectionChannelsResponse is the Response type for the - * Query/QueryConnectionChannels RPC method - * - * @generated from message ibc.core.channel.v1.QueryConnectionChannelsResponse - */ -export class QueryConnectionChannelsResponse extends Message { - /** - * list of channels associated with a connection. - * - * @generated from field: repeated ibc.core.channel.v1.IdentifiedChannel channels = 1; - */ - channels: IdentifiedChannel[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - /** - * query block height - * - * @generated from field: ibc.core.client.v1.Height height = 3; - */ - height?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryConnectionChannelsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channels", kind: "message", T: IdentifiedChannel, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - { no: 3, name: "height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionChannelsResponse { - return new QueryConnectionChannelsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionChannelsResponse { - return new QueryConnectionChannelsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionChannelsResponse { - return new QueryConnectionChannelsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionChannelsResponse | PlainMessage | undefined, b: QueryConnectionChannelsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionChannelsResponse, a, b); - } -} - -/** - * QueryChannelClientStateRequest is the request type for the Query/ClientState - * RPC method - * - * @generated from message ibc.core.channel.v1.QueryChannelClientStateRequest - */ -export class QueryChannelClientStateRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelClientStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelClientStateRequest { - return new QueryChannelClientStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelClientStateRequest { - return new QueryChannelClientStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelClientStateRequest { - return new QueryChannelClientStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelClientStateRequest | PlainMessage | undefined, b: QueryChannelClientStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelClientStateRequest, a, b); - } -} - -/** - * QueryChannelClientStateResponse is the Response type for the - * Query/QueryChannelClientState RPC method - * - * @generated from message ibc.core.channel.v1.QueryChannelClientStateResponse - */ -export class QueryChannelClientStateResponse extends Message { - /** - * client state associated with the channel - * - * @generated from field: ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - identifiedClientState?: IdentifiedClientState; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelClientStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "identified_client_state", kind: "message", T: IdentifiedClientState }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelClientStateResponse { - return new QueryChannelClientStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelClientStateResponse { - return new QueryChannelClientStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelClientStateResponse { - return new QueryChannelClientStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelClientStateResponse | PlainMessage | undefined, b: QueryChannelClientStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelClientStateResponse, a, b); - } -} - -/** - * QueryChannelConsensusStateRequest is the request type for the - * Query/ConsensusState RPC method - * - * @generated from message ibc.core.channel.v1.QueryChannelConsensusStateRequest - */ -export class QueryChannelConsensusStateRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * revision number of the consensus state - * - * @generated from field: uint64 revision_number = 3; - */ - revisionNumber = protoInt64.zero; - - /** - * revision height of the consensus state - * - * @generated from field: uint64 revision_height = 4; - */ - revisionHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelConsensusStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelConsensusStateRequest { - return new QueryChannelConsensusStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelConsensusStateRequest { - return new QueryChannelConsensusStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelConsensusStateRequest { - return new QueryChannelConsensusStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelConsensusStateRequest | PlainMessage | undefined, b: QueryChannelConsensusStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelConsensusStateRequest, a, b); - } -} - -/** - * QueryChannelClientStateResponse is the Response type for the - * Query/QueryChannelClientState RPC method - * - * @generated from message ibc.core.channel.v1.QueryChannelConsensusStateResponse - */ -export class QueryChannelConsensusStateResponse extends Message { - /** - * consensus state associated with the channel - * - * @generated from field: google.protobuf.Any consensus_state = 1; - */ - consensusState?: Any; - - /** - * client ID associated with the consensus state - * - * @generated from field: string client_id = 2; - */ - clientId = ""; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 3; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 4; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelConsensusStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "consensus_state", kind: "message", T: Any }, - { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelConsensusStateResponse { - return new QueryChannelConsensusStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelConsensusStateResponse { - return new QueryChannelConsensusStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelConsensusStateResponse { - return new QueryChannelConsensusStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelConsensusStateResponse | PlainMessage | undefined, b: QueryChannelConsensusStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelConsensusStateResponse, a, b); - } -} - -/** - * QueryPacketCommitmentRequest is the request type for the - * Query/PacketCommitment RPC method - * - * @generated from message ibc.core.channel.v1.QueryPacketCommitmentRequest - */ -export class QueryPacketCommitmentRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * packet sequence - * - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentRequest { - return new QueryPacketCommitmentRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentRequest { - return new QueryPacketCommitmentRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentRequest { - return new QueryPacketCommitmentRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketCommitmentRequest | PlainMessage | undefined, b: QueryPacketCommitmentRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketCommitmentRequest, a, b); - } -} - -/** - * QueryPacketCommitmentResponse defines the client query response for a packet - * which also includes a proof and the height from which the proof was - * retrieved - * - * @generated from message ibc.core.channel.v1.QueryPacketCommitmentResponse - */ -export class QueryPacketCommitmentResponse extends Message { - /** - * packet associated with the request fields - * - * @generated from field: bytes commitment = 1; - */ - commitment = new Uint8Array(0); - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "commitment", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentResponse { - return new QueryPacketCommitmentResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentResponse { - return new QueryPacketCommitmentResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentResponse { - return new QueryPacketCommitmentResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketCommitmentResponse | PlainMessage | undefined, b: QueryPacketCommitmentResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketCommitmentResponse, a, b); - } -} - -/** - * QueryPacketCommitmentsRequest is the request type for the - * Query/QueryPacketCommitments RPC method - * - * @generated from message ibc.core.channel.v1.QueryPacketCommitmentsRequest - */ -export class QueryPacketCommitmentsRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * pagination request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentsRequest { - return new QueryPacketCommitmentsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentsRequest { - return new QueryPacketCommitmentsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentsRequest { - return new QueryPacketCommitmentsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketCommitmentsRequest | PlainMessage | undefined, b: QueryPacketCommitmentsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketCommitmentsRequest, a, b); - } -} - -/** - * QueryPacketCommitmentsResponse is the request type for the - * Query/QueryPacketCommitments RPC method - * - * @generated from message ibc.core.channel.v1.QueryPacketCommitmentsResponse - */ -export class QueryPacketCommitmentsResponse extends Message { - /** - * @generated from field: repeated ibc.core.channel.v1.PacketState commitments = 1; - */ - commitments: PacketState[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - /** - * query block height - * - * @generated from field: ibc.core.client.v1.Height height = 3; - */ - height?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketCommitmentsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "commitments", kind: "message", T: PacketState, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - { no: 3, name: "height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketCommitmentsResponse { - return new QueryPacketCommitmentsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketCommitmentsResponse { - return new QueryPacketCommitmentsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketCommitmentsResponse { - return new QueryPacketCommitmentsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketCommitmentsResponse | PlainMessage | undefined, b: QueryPacketCommitmentsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketCommitmentsResponse, a, b); - } -} - -/** - * QueryPacketReceiptRequest is the request type for the - * Query/PacketReceipt RPC method - * - * @generated from message ibc.core.channel.v1.QueryPacketReceiptRequest - */ -export class QueryPacketReceiptRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * packet sequence - * - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketReceiptRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketReceiptRequest { - return new QueryPacketReceiptRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketReceiptRequest { - return new QueryPacketReceiptRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketReceiptRequest { - return new QueryPacketReceiptRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketReceiptRequest | PlainMessage | undefined, b: QueryPacketReceiptRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketReceiptRequest, a, b); - } -} - -/** - * QueryPacketReceiptResponse defines the client query response for a packet - * receipt which also includes a proof, and the height from which the proof was - * retrieved - * - * @generated from message ibc.core.channel.v1.QueryPacketReceiptResponse - */ -export class QueryPacketReceiptResponse extends Message { - /** - * success flag for if receipt exists - * - * @generated from field: bool received = 2; - */ - received = false; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 3; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 4; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketReceiptResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "received", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketReceiptResponse { - return new QueryPacketReceiptResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketReceiptResponse { - return new QueryPacketReceiptResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketReceiptResponse { - return new QueryPacketReceiptResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketReceiptResponse | PlainMessage | undefined, b: QueryPacketReceiptResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketReceiptResponse, a, b); - } -} - -/** - * QueryPacketAcknowledgementRequest is the request type for the - * Query/PacketAcknowledgement RPC method - * - * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementRequest - */ -export class QueryPacketAcknowledgementRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * packet sequence - * - * @generated from field: uint64 sequence = 3; - */ - sequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementRequest { - return new QueryPacketAcknowledgementRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementRequest { - return new QueryPacketAcknowledgementRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementRequest { - return new QueryPacketAcknowledgementRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketAcknowledgementRequest | PlainMessage | undefined, b: QueryPacketAcknowledgementRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketAcknowledgementRequest, a, b); - } -} - -/** - * QueryPacketAcknowledgementResponse defines the client query response for a - * packet which also includes a proof and the height from which the - * proof was retrieved - * - * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementResponse - */ -export class QueryPacketAcknowledgementResponse extends Message { - /** - * packet associated with the request fields - * - * @generated from field: bytes acknowledgement = 1; - */ - acknowledgement = new Uint8Array(0); - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementResponse { - return new QueryPacketAcknowledgementResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementResponse { - return new QueryPacketAcknowledgementResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementResponse { - return new QueryPacketAcknowledgementResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketAcknowledgementResponse | PlainMessage | undefined, b: QueryPacketAcknowledgementResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketAcknowledgementResponse, a, b); - } -} - -/** - * QueryPacketAcknowledgementsRequest is the request type for the - * Query/QueryPacketCommitments RPC method - * - * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - */ -export class QueryPacketAcknowledgementsRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * pagination request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - pagination?: PageRequest; - - /** - * list of packet sequences - * - * @generated from field: repeated uint64 packet_commitment_sequences = 4; - */ - packetCommitmentSequences: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pagination", kind: "message", T: PageRequest }, - { no: 4, name: "packet_commitment_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementsRequest { - return new QueryPacketAcknowledgementsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementsRequest { - return new QueryPacketAcknowledgementsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementsRequest { - return new QueryPacketAcknowledgementsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketAcknowledgementsRequest | PlainMessage | undefined, b: QueryPacketAcknowledgementsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketAcknowledgementsRequest, a, b); - } -} - -/** - * QueryPacketAcknowledgemetsResponse is the request type for the - * Query/QueryPacketAcknowledgements RPC method - * - * @generated from message ibc.core.channel.v1.QueryPacketAcknowledgementsResponse - */ -export class QueryPacketAcknowledgementsResponse extends Message { - /** - * @generated from field: repeated ibc.core.channel.v1.PacketState acknowledgements = 1; - */ - acknowledgements: PacketState[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - /** - * query block height - * - * @generated from field: ibc.core.client.v1.Height height = 3; - */ - height?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryPacketAcknowledgementsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "acknowledgements", kind: "message", T: PacketState, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - { no: 3, name: "height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPacketAcknowledgementsResponse { - return new QueryPacketAcknowledgementsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPacketAcknowledgementsResponse { - return new QueryPacketAcknowledgementsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPacketAcknowledgementsResponse { - return new QueryPacketAcknowledgementsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPacketAcknowledgementsResponse | PlainMessage | undefined, b: QueryPacketAcknowledgementsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPacketAcknowledgementsResponse, a, b); - } -} - -/** - * QueryUnreceivedPacketsRequest is the request type for the - * Query/UnreceivedPackets RPC method - * - * @generated from message ibc.core.channel.v1.QueryUnreceivedPacketsRequest - */ -export class QueryUnreceivedPacketsRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * list of packet sequences - * - * @generated from field: repeated uint64 packet_commitment_sequences = 3; - */ - packetCommitmentSequences: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedPacketsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "packet_commitment_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedPacketsRequest { - return new QueryUnreceivedPacketsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedPacketsRequest { - return new QueryUnreceivedPacketsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedPacketsRequest { - return new QueryUnreceivedPacketsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnreceivedPacketsRequest | PlainMessage | undefined, b: QueryUnreceivedPacketsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnreceivedPacketsRequest, a, b); - } -} - -/** - * QueryUnreceivedPacketsResponse is the response type for the - * Query/UnreceivedPacketCommitments RPC method - * - * @generated from message ibc.core.channel.v1.QueryUnreceivedPacketsResponse - */ -export class QueryUnreceivedPacketsResponse extends Message { - /** - * list of unreceived packet sequences - * - * @generated from field: repeated uint64 sequences = 1; - */ - sequences: bigint[] = []; - - /** - * query block height - * - * @generated from field: ibc.core.client.v1.Height height = 2; - */ - height?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedPacketsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedPacketsResponse { - return new QueryUnreceivedPacketsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedPacketsResponse { - return new QueryUnreceivedPacketsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedPacketsResponse { - return new QueryUnreceivedPacketsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnreceivedPacketsResponse | PlainMessage | undefined, b: QueryUnreceivedPacketsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnreceivedPacketsResponse, a, b); - } -} - -/** - * QueryUnreceivedAcks is the request type for the - * Query/UnreceivedAcks RPC method - * - * @generated from message ibc.core.channel.v1.QueryUnreceivedAcksRequest - */ -export class QueryUnreceivedAcksRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * list of acknowledgement sequences - * - * @generated from field: repeated uint64 packet_ack_sequences = 3; - */ - packetAckSequences: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedAcksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "packet_ack_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedAcksRequest { - return new QueryUnreceivedAcksRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedAcksRequest { - return new QueryUnreceivedAcksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedAcksRequest { - return new QueryUnreceivedAcksRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnreceivedAcksRequest | PlainMessage | undefined, b: QueryUnreceivedAcksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnreceivedAcksRequest, a, b); - } -} - -/** - * QueryUnreceivedAcksResponse is the response type for the - * Query/UnreceivedAcks RPC method - * - * @generated from message ibc.core.channel.v1.QueryUnreceivedAcksResponse - */ -export class QueryUnreceivedAcksResponse extends Message { - /** - * list of unreceived acknowledgement sequences - * - * @generated from field: repeated uint64 sequences = 1; - */ - sequences: bigint[] = []; - - /** - * query block height - * - * @generated from field: ibc.core.client.v1.Height height = 2; - */ - height?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUnreceivedAcksResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnreceivedAcksResponse { - return new QueryUnreceivedAcksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnreceivedAcksResponse { - return new QueryUnreceivedAcksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnreceivedAcksResponse { - return new QueryUnreceivedAcksResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnreceivedAcksResponse | PlainMessage | undefined, b: QueryUnreceivedAcksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnreceivedAcksResponse, a, b); - } -} - -/** - * QueryNextSequenceReceiveRequest is the request type for the - * Query/QueryNextSequenceReceiveRequest RPC method - * - * @generated from message ibc.core.channel.v1.QueryNextSequenceReceiveRequest - */ -export class QueryNextSequenceReceiveRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceReceiveRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceReceiveRequest { - return new QueryNextSequenceReceiveRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceReceiveRequest { - return new QueryNextSequenceReceiveRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceReceiveRequest { - return new QueryNextSequenceReceiveRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryNextSequenceReceiveRequest | PlainMessage | undefined, b: QueryNextSequenceReceiveRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNextSequenceReceiveRequest, a, b); - } -} - -/** - * QuerySequenceResponse is the response type for the - * Query/QueryNextSequenceReceiveResponse RPC method - * - * @generated from message ibc.core.channel.v1.QueryNextSequenceReceiveResponse - */ -export class QueryNextSequenceReceiveResponse extends Message { - /** - * next sequence receive number - * - * @generated from field: uint64 next_sequence_receive = 1; - */ - nextSequenceReceive = protoInt64.zero; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceReceiveResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "next_sequence_receive", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceReceiveResponse { - return new QueryNextSequenceReceiveResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceReceiveResponse { - return new QueryNextSequenceReceiveResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceReceiveResponse { - return new QueryNextSequenceReceiveResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryNextSequenceReceiveResponse | PlainMessage | undefined, b: QueryNextSequenceReceiveResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNextSequenceReceiveResponse, a, b); - } -} - -/** - * QueryNextSequenceSendRequest is the request type for the - * Query/QueryNextSequenceSend RPC method - * - * @generated from message ibc.core.channel.v1.QueryNextSequenceSendRequest - */ -export class QueryNextSequenceSendRequest extends Message { - /** - * port unique identifier - * - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * channel unique identifier - * - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceSendRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceSendRequest { - return new QueryNextSequenceSendRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceSendRequest { - return new QueryNextSequenceSendRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceSendRequest { - return new QueryNextSequenceSendRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryNextSequenceSendRequest | PlainMessage | undefined, b: QueryNextSequenceSendRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNextSequenceSendRequest, a, b); - } -} - -/** - * QueryNextSequenceSendResponse is the request type for the - * Query/QueryNextSequenceSend RPC method - * - * @generated from message ibc.core.channel.v1.QueryNextSequenceSendResponse - */ -export class QueryNextSequenceSendResponse extends Message { - /** - * next sequence send number - * - * @generated from field: uint64 next_sequence_send = 1; - */ - nextSequenceSend = protoInt64.zero; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryNextSequenceSendResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "next_sequence_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNextSequenceSendResponse { - return new QueryNextSequenceSendResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNextSequenceSendResponse { - return new QueryNextSequenceSendResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNextSequenceSendResponse { - return new QueryNextSequenceSendResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryNextSequenceSendResponse | PlainMessage | undefined, b: QueryNextSequenceSendResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNextSequenceSendResponse, a, b); - } -} - -/** - * QueryUpgradeErrorRequest is the request type for the Query/QueryUpgradeError RPC method - * - * @generated from message ibc.core.channel.v1.QueryUpgradeErrorRequest - */ -export class QueryUpgradeErrorRequest extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUpgradeErrorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradeErrorRequest { - return new QueryUpgradeErrorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeErrorRequest { - return new QueryUpgradeErrorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeErrorRequest { - return new QueryUpgradeErrorRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradeErrorRequest | PlainMessage | undefined, b: QueryUpgradeErrorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradeErrorRequest, a, b); - } -} - -/** - * QueryUpgradeErrorResponse is the response type for the Query/QueryUpgradeError RPC method - * - * @generated from message ibc.core.channel.v1.QueryUpgradeErrorResponse - */ -export class QueryUpgradeErrorResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.ErrorReceipt error_receipt = 1; - */ - errorReceipt?: ErrorReceipt; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUpgradeErrorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "error_receipt", kind: "message", T: ErrorReceipt }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradeErrorResponse { - return new QueryUpgradeErrorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeErrorResponse { - return new QueryUpgradeErrorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeErrorResponse { - return new QueryUpgradeErrorResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradeErrorResponse | PlainMessage | undefined, b: QueryUpgradeErrorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradeErrorResponse, a, b); - } -} - -/** - * QueryUpgradeRequest is the request type for the QueryUpgradeRequest RPC method - * - * @generated from message ibc.core.channel.v1.QueryUpgradeRequest - */ -export class QueryUpgradeRequest extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUpgradeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradeRequest { - return new QueryUpgradeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeRequest { - return new QueryUpgradeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeRequest { - return new QueryUpgradeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradeRequest | PlainMessage | undefined, b: QueryUpgradeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradeRequest, a, b); - } -} - -/** - * QueryUpgradeResponse is the response type for the QueryUpgradeResponse RPC method - * - * @generated from message ibc.core.channel.v1.QueryUpgradeResponse - */ -export class QueryUpgradeResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.Upgrade upgrade = 1; - */ - upgrade?: Upgrade; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryUpgradeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upgrade", kind: "message", T: Upgrade }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradeResponse { - return new QueryUpgradeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradeResponse { - return new QueryUpgradeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradeResponse { - return new QueryUpgradeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradeResponse | PlainMessage | undefined, b: QueryUpgradeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradeResponse, a, b); - } -} - -/** - * QueryChannelParamsRequest is the request type for the Query/ChannelParams RPC method. - * - * @generated from message ibc.core.channel.v1.QueryChannelParamsRequest - */ -export class QueryChannelParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelParamsRequest { - return new QueryChannelParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelParamsRequest { - return new QueryChannelParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelParamsRequest { - return new QueryChannelParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelParamsRequest | PlainMessage | undefined, b: QueryChannelParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelParamsRequest, a, b); - } -} - -/** - * QueryChannelParamsResponse is the response type for the Query/ChannelParams RPC method. - * - * @generated from message ibc.core.channel.v1.QueryChannelParamsResponse - */ -export class QueryChannelParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: ibc.core.channel.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.QueryChannelParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChannelParamsResponse { - return new QueryChannelParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChannelParamsResponse { - return new QueryChannelParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChannelParamsResponse { - return new QueryChannelParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChannelParamsResponse | PlainMessage | undefined, b: QueryChannelParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChannelParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts deleted file mode 100644 index 030bec3..0000000 --- a/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_cosmes.ts +++ /dev/null @@ -1,238 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/core/channel/v1/tx.proto (package ibc.core.channel.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAcknowledgement, MsgAcknowledgementResponse, MsgChannelCloseConfirm, MsgChannelCloseConfirmResponse, MsgChannelCloseInit, MsgChannelCloseInitResponse, MsgChannelOpenAck, MsgChannelOpenAckResponse, MsgChannelOpenConfirm, MsgChannelOpenConfirmResponse, MsgChannelOpenInit, MsgChannelOpenInitResponse, MsgChannelOpenTry, MsgChannelOpenTryResponse, MsgChannelUpgradeAck, MsgChannelUpgradeAckResponse, MsgChannelUpgradeCancel, MsgChannelUpgradeCancelResponse, MsgChannelUpgradeConfirm, MsgChannelUpgradeConfirmResponse, MsgChannelUpgradeInit, MsgChannelUpgradeInitResponse, MsgChannelUpgradeOpen, MsgChannelUpgradeOpenResponse, MsgChannelUpgradeTimeout, MsgChannelUpgradeTimeoutResponse, MsgChannelUpgradeTry, MsgChannelUpgradeTryResponse, MsgPruneAcknowledgements, MsgPruneAcknowledgementsResponse, MsgRecvPacket, MsgRecvPacketResponse, MsgTimeout, MsgTimeoutOnClose, MsgTimeoutOnCloseResponse, MsgTimeoutResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.core.channel.v1.Msg"; - -/** - * ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenInit - */ -export const MsgChannelOpenInitService = { - typeName: TYPE_NAME, - method: "ChannelOpenInit", - Request: MsgChannelOpenInit, - Response: MsgChannelOpenInitResponse, -} as const; - -/** - * ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenTry - */ -export const MsgChannelOpenTryService = { - typeName: TYPE_NAME, - method: "ChannelOpenTry", - Request: MsgChannelOpenTry, - Response: MsgChannelOpenTryResponse, -} as const; - -/** - * ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenAck - */ -export const MsgChannelOpenAckService = { - typeName: TYPE_NAME, - method: "ChannelOpenAck", - Request: MsgChannelOpenAck, - Response: MsgChannelOpenAckResponse, -} as const; - -/** - * ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelOpenConfirm - */ -export const MsgChannelOpenConfirmService = { - typeName: TYPE_NAME, - method: "ChannelOpenConfirm", - Request: MsgChannelOpenConfirm, - Response: MsgChannelOpenConfirmResponse, -} as const; - -/** - * ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelCloseInit - */ -export const MsgChannelCloseInitService = { - typeName: TYPE_NAME, - method: "ChannelCloseInit", - Request: MsgChannelCloseInit, - Response: MsgChannelCloseInitResponse, -} as const; - -/** - * ChannelCloseConfirm defines a rpc handler method for - * MsgChannelCloseConfirm. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelCloseConfirm - */ -export const MsgChannelCloseConfirmService = { - typeName: TYPE_NAME, - method: "ChannelCloseConfirm", - Request: MsgChannelCloseConfirm, - Response: MsgChannelCloseConfirmResponse, -} as const; - -/** - * RecvPacket defines a rpc handler method for MsgRecvPacket. - * - * @generated from rpc ibc.core.channel.v1.Msg.RecvPacket - */ -export const MsgRecvPacketService = { - typeName: TYPE_NAME, - method: "RecvPacket", - Request: MsgRecvPacket, - Response: MsgRecvPacketResponse, -} as const; - -/** - * Timeout defines a rpc handler method for MsgTimeout. - * - * @generated from rpc ibc.core.channel.v1.Msg.Timeout - */ -export const MsgTimeoutService = { - typeName: TYPE_NAME, - method: "Timeout", - Request: MsgTimeout, - Response: MsgTimeoutResponse, -} as const; - -/** - * TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. - * - * @generated from rpc ibc.core.channel.v1.Msg.TimeoutOnClose - */ -export const MsgTimeoutOnCloseService = { - typeName: TYPE_NAME, - method: "TimeoutOnClose", - Request: MsgTimeoutOnClose, - Response: MsgTimeoutOnCloseResponse, -} as const; - -/** - * Acknowledgement defines a rpc handler method for MsgAcknowledgement. - * - * @generated from rpc ibc.core.channel.v1.Msg.Acknowledgement - */ -export const MsgAcknowledgementService = { - typeName: TYPE_NAME, - method: "Acknowledgement", - Request: MsgAcknowledgement, - Response: MsgAcknowledgementResponse, -} as const; - -/** - * ChannelUpgradeInit defines a rpc handler method for MsgChannelUpgradeInit. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeInit - */ -export const MsgChannelUpgradeInitService = { - typeName: TYPE_NAME, - method: "ChannelUpgradeInit", - Request: MsgChannelUpgradeInit, - Response: MsgChannelUpgradeInitResponse, -} as const; - -/** - * ChannelUpgradeTry defines a rpc handler method for MsgChannelUpgradeTry. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeTry - */ -export const MsgChannelUpgradeTryService = { - typeName: TYPE_NAME, - method: "ChannelUpgradeTry", - Request: MsgChannelUpgradeTry, - Response: MsgChannelUpgradeTryResponse, -} as const; - -/** - * ChannelUpgradeAck defines a rpc handler method for MsgChannelUpgradeAck. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeAck - */ -export const MsgChannelUpgradeAckService = { - typeName: TYPE_NAME, - method: "ChannelUpgradeAck", - Request: MsgChannelUpgradeAck, - Response: MsgChannelUpgradeAckResponse, -} as const; - -/** - * ChannelUpgradeConfirm defines a rpc handler method for MsgChannelUpgradeConfirm. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeConfirm - */ -export const MsgChannelUpgradeConfirmService = { - typeName: TYPE_NAME, - method: "ChannelUpgradeConfirm", - Request: MsgChannelUpgradeConfirm, - Response: MsgChannelUpgradeConfirmResponse, -} as const; - -/** - * ChannelUpgradeOpen defines a rpc handler method for MsgChannelUpgradeOpen. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeOpen - */ -export const MsgChannelUpgradeOpenService = { - typeName: TYPE_NAME, - method: "ChannelUpgradeOpen", - Request: MsgChannelUpgradeOpen, - Response: MsgChannelUpgradeOpenResponse, -} as const; - -/** - * ChannelUpgradeTimeout defines a rpc handler method for MsgChannelUpgradeTimeout. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeTimeout - */ -export const MsgChannelUpgradeTimeoutService = { - typeName: TYPE_NAME, - method: "ChannelUpgradeTimeout", - Request: MsgChannelUpgradeTimeout, - Response: MsgChannelUpgradeTimeoutResponse, -} as const; - -/** - * ChannelUpgradeCancel defines a rpc handler method for MsgChannelUpgradeCancel. - * - * @generated from rpc ibc.core.channel.v1.Msg.ChannelUpgradeCancel - */ -export const MsgChannelUpgradeCancelService = { - typeName: TYPE_NAME, - method: "ChannelUpgradeCancel", - Request: MsgChannelUpgradeCancel, - Response: MsgChannelUpgradeCancelResponse, -} as const; - -/** - * UpdateChannelParams defines a rpc handler method for MsgUpdateParams. - * - * @generated from rpc ibc.core.channel.v1.Msg.UpdateChannelParams - */ -export const MsgUpdateChannelParamsService = { - typeName: TYPE_NAME, - method: "UpdateChannelParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * PruneAcknowledgements defines a rpc handler method for MsgPruneAcknowledgements. - * - * @generated from rpc ibc.core.channel.v1.Msg.PruneAcknowledgements - */ -export const MsgPruneAcknowledgementsService = { - typeName: TYPE_NAME, - method: "PruneAcknowledgements", - Request: MsgPruneAcknowledgements, - Response: MsgPruneAcknowledgementsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_pb.ts deleted file mode 100644 index a92ae68..0000000 --- a/libs/es-client/src/protobufs/ibc/core/channel/v1/tx_pb.ts +++ /dev/null @@ -1,2068 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/channel/v1/tx.proto (package ibc.core.channel.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Channel, Packet, Params, State } from "./channel_pb.js"; -import { Height } from "../../client/v1/client_pb.js"; -import { ErrorReceipt, Upgrade, UpgradeFields } from "./upgrade_pb.js"; - -/** - * ResponseResultType defines the possible outcomes of the execution of a message - * - * @generated from enum ibc.core.channel.v1.ResponseResultType - */ -export enum ResponseResultType { - /** - * Default zero value enumeration - * - * @generated from enum value: RESPONSE_RESULT_TYPE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) - * - * @generated from enum value: RESPONSE_RESULT_TYPE_NOOP = 1; - */ - NOOP = 1, - - /** - * The message was executed successfully - * - * @generated from enum value: RESPONSE_RESULT_TYPE_SUCCESS = 2; - */ - SUCCESS = 2, - - /** - * The message was executed unsuccessfully - * - * @generated from enum value: RESPONSE_RESULT_TYPE_FAILURE = 3; - */ - FAILURE = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(ResponseResultType) -proto3.util.setEnumType(ResponseResultType, "ibc.core.channel.v1.ResponseResultType", [ - { no: 0, name: "RESPONSE_RESULT_TYPE_UNSPECIFIED" }, - { no: 1, name: "RESPONSE_RESULT_TYPE_NOOP" }, - { no: 2, name: "RESPONSE_RESULT_TYPE_SUCCESS" }, - { no: 3, name: "RESPONSE_RESULT_TYPE_FAILURE" }, -]); - -/** - * MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It - * is called by a relayer on Chain A. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenInit - */ -export class MsgChannelOpenInit extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: ibc.core.channel.v1.Channel channel = 2; - */ - channel?: Channel; - - /** - * @generated from field: string signer = 3; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenInit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel", kind: "message", T: Channel }, - { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenInit { - return new MsgChannelOpenInit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenInit { - return new MsgChannelOpenInit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenInit { - return new MsgChannelOpenInit().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenInit | PlainMessage | undefined, b: MsgChannelOpenInit | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenInit, a, b); - } -} - -/** - * MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenInitResponse - */ -export class MsgChannelOpenInitResponse extends Message { - /** - * @generated from field: string channel_id = 1; - */ - channelId = ""; - - /** - * @generated from field: string version = 2; - */ - version = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenInitResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenInitResponse { - return new MsgChannelOpenInitResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenInitResponse { - return new MsgChannelOpenInitResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenInitResponse { - return new MsgChannelOpenInitResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenInitResponse | PlainMessage | undefined, b: MsgChannelOpenInitResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenInitResponse, a, b); - } -} - -/** - * MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel - * on Chain B. The version field within the Channel field has been deprecated. Its - * value will be ignored by core IBC. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenTry - */ -export class MsgChannelOpenTry extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * Deprecated: this field is unused. Crossing hello's are no longer supported in core IBC. - * - * @generated from field: string previous_channel_id = 2 [deprecated = true]; - * @deprecated - */ - previousChannelId = ""; - - /** - * NOTE: the version field within the channel has been deprecated. Its value will be ignored by core IBC. - * - * @generated from field: ibc.core.channel.v1.Channel channel = 3; - */ - channel?: Channel; - - /** - * @generated from field: string counterparty_version = 4; - */ - counterpartyVersion = ""; - - /** - * @generated from field: bytes proof_init = 5; - */ - proofInit = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 6; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 7; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenTry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "previous_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "channel", kind: "message", T: Channel }, - { no: 4, name: "counterparty_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "proof_init", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "proof_height", kind: "message", T: Height }, - { no: 7, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenTry { - return new MsgChannelOpenTry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenTry { - return new MsgChannelOpenTry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenTry { - return new MsgChannelOpenTry().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenTry | PlainMessage | undefined, b: MsgChannelOpenTry | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenTry, a, b); - } -} - -/** - * MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenTryResponse - */ -export class MsgChannelOpenTryResponse extends Message { - /** - * @generated from field: string version = 1; - */ - version = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenTryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenTryResponse { - return new MsgChannelOpenTryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenTryResponse { - return new MsgChannelOpenTryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenTryResponse { - return new MsgChannelOpenTryResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenTryResponse | PlainMessage | undefined, b: MsgChannelOpenTryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenTryResponse, a, b); - } -} - -/** - * MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge - * the change of channel state to TRYOPEN on Chain B. - * WARNING: a channel upgrade MUST NOT initialize an upgrade for this channel - * in the same block as executing this message otherwise the counterparty will - * be incapable of opening. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenAck - */ -export class MsgChannelOpenAck extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: string counterparty_channel_id = 3; - */ - counterpartyChannelId = ""; - - /** - * @generated from field: string counterparty_version = 4; - */ - counterpartyVersion = ""; - - /** - * @generated from field: bytes proof_try = 5; - */ - proofTry = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 6; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 7; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenAck"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "counterparty_channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "counterparty_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "proof_try", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "proof_height", kind: "message", T: Height }, - { no: 7, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenAck { - return new MsgChannelOpenAck().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenAck { - return new MsgChannelOpenAck().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenAck { - return new MsgChannelOpenAck().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenAck | PlainMessage | undefined, b: MsgChannelOpenAck | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenAck, a, b); - } -} - -/** - * MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenAckResponse - */ -export class MsgChannelOpenAckResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenAckResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenAckResponse { - return new MsgChannelOpenAckResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenAckResponse { - return new MsgChannelOpenAckResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenAckResponse { - return new MsgChannelOpenAckResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenAckResponse | PlainMessage | undefined, b: MsgChannelOpenAckResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenAckResponse, a, b); - } -} - -/** - * MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of channel state to OPEN on Chain A. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenConfirm - */ -export class MsgChannelOpenConfirm extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: bytes proof_ack = 3; - */ - proofAck = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 4; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 5; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenConfirm"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "proof_ack", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "proof_height", kind: "message", T: Height }, - { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenConfirm { - return new MsgChannelOpenConfirm().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenConfirm { - return new MsgChannelOpenConfirm().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenConfirm { - return new MsgChannelOpenConfirm().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenConfirm | PlainMessage | undefined, b: MsgChannelOpenConfirm | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenConfirm, a, b); - } -} - -/** - * MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response - * type. - * - * @generated from message ibc.core.channel.v1.MsgChannelOpenConfirmResponse - */ -export class MsgChannelOpenConfirmResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelOpenConfirmResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelOpenConfirmResponse { - return new MsgChannelOpenConfirmResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelOpenConfirmResponse { - return new MsgChannelOpenConfirmResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelOpenConfirmResponse { - return new MsgChannelOpenConfirmResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelOpenConfirmResponse | PlainMessage | undefined, b: MsgChannelOpenConfirmResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelOpenConfirmResponse, a, b); - } -} - -/** - * MsgChannelCloseInit defines a msg sent by a Relayer to Chain A - * to close a channel with Chain B. - * - * @generated from message ibc.core.channel.v1.MsgChannelCloseInit - */ -export class MsgChannelCloseInit extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: string signer = 3; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseInit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseInit { - return new MsgChannelCloseInit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseInit { - return new MsgChannelCloseInit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseInit { - return new MsgChannelCloseInit().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelCloseInit | PlainMessage | undefined, b: MsgChannelCloseInit | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelCloseInit, a, b); - } -} - -/** - * MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. - * - * @generated from message ibc.core.channel.v1.MsgChannelCloseInitResponse - */ -export class MsgChannelCloseInitResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseInitResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseInitResponse { - return new MsgChannelCloseInitResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseInitResponse { - return new MsgChannelCloseInitResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseInitResponse { - return new MsgChannelCloseInitResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelCloseInitResponse | PlainMessage | undefined, b: MsgChannelCloseInitResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelCloseInitResponse, a, b); - } -} - -/** - * MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B - * to acknowledge the change of channel state to CLOSED on Chain A. - * - * @generated from message ibc.core.channel.v1.MsgChannelCloseConfirm - */ -export class MsgChannelCloseConfirm extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: bytes proof_init = 3; - */ - proofInit = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 4; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 5; - */ - signer = ""; - - /** - * @generated from field: uint64 counterparty_upgrade_sequence = 6; - */ - counterpartyUpgradeSequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseConfirm"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "proof_init", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "proof_height", kind: "message", T: Height }, - { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseConfirm { - return new MsgChannelCloseConfirm().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseConfirm { - return new MsgChannelCloseConfirm().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseConfirm { - return new MsgChannelCloseConfirm().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelCloseConfirm | PlainMessage | undefined, b: MsgChannelCloseConfirm | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelCloseConfirm, a, b); - } -} - -/** - * MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response - * type. - * - * @generated from message ibc.core.channel.v1.MsgChannelCloseConfirmResponse - */ -export class MsgChannelCloseConfirmResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelCloseConfirmResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelCloseConfirmResponse { - return new MsgChannelCloseConfirmResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelCloseConfirmResponse { - return new MsgChannelCloseConfirmResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelCloseConfirmResponse { - return new MsgChannelCloseConfirmResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelCloseConfirmResponse | PlainMessage | undefined, b: MsgChannelCloseConfirmResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelCloseConfirmResponse, a, b); - } -} - -/** - * MsgRecvPacket receives incoming IBC packet - * - * @generated from message ibc.core.channel.v1.MsgRecvPacket - */ -export class MsgRecvPacket extends Message { - /** - * @generated from field: ibc.core.channel.v1.Packet packet = 1; - */ - packet?: Packet; - - /** - * @generated from field: bytes proof_commitment = 2; - */ - proofCommitment = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 4; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgRecvPacket"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet", kind: "message", T: Packet }, - { no: 2, name: "proof_commitment", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecvPacket { - return new MsgRecvPacket().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecvPacket { - return new MsgRecvPacket().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRecvPacket { - return new MsgRecvPacket().fromJsonString(jsonString, options); - } - - static equals(a: MsgRecvPacket | PlainMessage | undefined, b: MsgRecvPacket | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRecvPacket, a, b); - } -} - -/** - * MsgRecvPacketResponse defines the Msg/RecvPacket response type. - * - * @generated from message ibc.core.channel.v1.MsgRecvPacketResponse - */ -export class MsgRecvPacketResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; - */ - result = ResponseResultType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgRecvPacketResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecvPacketResponse { - return new MsgRecvPacketResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecvPacketResponse { - return new MsgRecvPacketResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRecvPacketResponse { - return new MsgRecvPacketResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRecvPacketResponse | PlainMessage | undefined, b: MsgRecvPacketResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRecvPacketResponse, a, b); - } -} - -/** - * MsgTimeout receives timed-out packet - * - * @generated from message ibc.core.channel.v1.MsgTimeout - */ -export class MsgTimeout extends Message { - /** - * @generated from field: ibc.core.channel.v1.Packet packet = 1; - */ - packet?: Packet; - - /** - * @generated from field: bytes proof_unreceived = 2; - */ - proofUnreceived = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - /** - * @generated from field: uint64 next_sequence_recv = 4; - */ - nextSequenceRecv = protoInt64.zero; - - /** - * @generated from field: string signer = 5; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgTimeout"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet", kind: "message", T: Packet }, - { no: 2, name: "proof_unreceived", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - { no: 4, name: "next_sequence_recv", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeout { - return new MsgTimeout().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeout { - return new MsgTimeout().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTimeout { - return new MsgTimeout().fromJsonString(jsonString, options); - } - - static equals(a: MsgTimeout | PlainMessage | undefined, b: MsgTimeout | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTimeout, a, b); - } -} - -/** - * MsgTimeoutResponse defines the Msg/Timeout response type. - * - * @generated from message ibc.core.channel.v1.MsgTimeoutResponse - */ -export class MsgTimeoutResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; - */ - result = ResponseResultType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgTimeoutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeoutResponse { - return new MsgTimeoutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeoutResponse { - return new MsgTimeoutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTimeoutResponse { - return new MsgTimeoutResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgTimeoutResponse | PlainMessage | undefined, b: MsgTimeoutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTimeoutResponse, a, b); - } -} - -/** - * MsgTimeoutOnClose timed-out packet upon counterparty channel closure. - * - * @generated from message ibc.core.channel.v1.MsgTimeoutOnClose - */ -export class MsgTimeoutOnClose extends Message { - /** - * @generated from field: ibc.core.channel.v1.Packet packet = 1; - */ - packet?: Packet; - - /** - * @generated from field: bytes proof_unreceived = 2; - */ - proofUnreceived = new Uint8Array(0); - - /** - * @generated from field: bytes proof_close = 3; - */ - proofClose = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 4; - */ - proofHeight?: Height; - - /** - * @generated from field: uint64 next_sequence_recv = 5; - */ - nextSequenceRecv = protoInt64.zero; - - /** - * @generated from field: string signer = 6; - */ - signer = ""; - - /** - * @generated from field: uint64 counterparty_upgrade_sequence = 7; - */ - counterpartyUpgradeSequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgTimeoutOnClose"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet", kind: "message", T: Packet }, - { no: 2, name: "proof_unreceived", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_close", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "proof_height", kind: "message", T: Height }, - { no: 5, name: "next_sequence_recv", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeoutOnClose { - return new MsgTimeoutOnClose().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeoutOnClose { - return new MsgTimeoutOnClose().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTimeoutOnClose { - return new MsgTimeoutOnClose().fromJsonString(jsonString, options); - } - - static equals(a: MsgTimeoutOnClose | PlainMessage | undefined, b: MsgTimeoutOnClose | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTimeoutOnClose, a, b); - } -} - -/** - * MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. - * - * @generated from message ibc.core.channel.v1.MsgTimeoutOnCloseResponse - */ -export class MsgTimeoutOnCloseResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; - */ - result = ResponseResultType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgTimeoutOnCloseResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTimeoutOnCloseResponse { - return new MsgTimeoutOnCloseResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTimeoutOnCloseResponse { - return new MsgTimeoutOnCloseResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTimeoutOnCloseResponse { - return new MsgTimeoutOnCloseResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgTimeoutOnCloseResponse | PlainMessage | undefined, b: MsgTimeoutOnCloseResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTimeoutOnCloseResponse, a, b); - } -} - -/** - * MsgAcknowledgement receives incoming IBC acknowledgement - * - * @generated from message ibc.core.channel.v1.MsgAcknowledgement - */ -export class MsgAcknowledgement extends Message { - /** - * @generated from field: ibc.core.channel.v1.Packet packet = 1; - */ - packet?: Packet; - - /** - * @generated from field: bytes acknowledgement = 2; - */ - acknowledgement = new Uint8Array(0); - - /** - * @generated from field: bytes proof_acked = 3; - */ - proofAcked = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 4; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 5; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgAcknowledgement"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "packet", kind: "message", T: Packet }, - { no: 2, name: "acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_acked", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "proof_height", kind: "message", T: Height }, - { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAcknowledgement { - return new MsgAcknowledgement().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAcknowledgement { - return new MsgAcknowledgement().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAcknowledgement { - return new MsgAcknowledgement().fromJsonString(jsonString, options); - } - - static equals(a: MsgAcknowledgement | PlainMessage | undefined, b: MsgAcknowledgement | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAcknowledgement, a, b); - } -} - -/** - * MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. - * - * @generated from message ibc.core.channel.v1.MsgAcknowledgementResponse - */ -export class MsgAcknowledgementResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; - */ - result = ResponseResultType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgAcknowledgementResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAcknowledgementResponse { - return new MsgAcknowledgementResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAcknowledgementResponse { - return new MsgAcknowledgementResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAcknowledgementResponse { - return new MsgAcknowledgementResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAcknowledgementResponse | PlainMessage | undefined, b: MsgAcknowledgementResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAcknowledgementResponse, a, b); - } -} - -/** - * MsgChannelUpgradeInit defines the request type for the ChannelUpgradeInit rpc - * WARNING: Initializing a channel upgrade in the same block as opening the channel - * may result in the counterparty being incapable of opening. - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeInit - */ -export class MsgChannelUpgradeInit extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: ibc.core.channel.v1.UpgradeFields fields = 3; - */ - fields?: UpgradeFields; - - /** - * @generated from field: string signer = 4; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeInit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "fields", kind: "message", T: UpgradeFields }, - { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeInit { - return new MsgChannelUpgradeInit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeInit { - return new MsgChannelUpgradeInit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeInit { - return new MsgChannelUpgradeInit().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeInit | PlainMessage | undefined, b: MsgChannelUpgradeInit | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeInit, a, b); - } -} - -/** - * MsgChannelUpgradeInitResponse defines the MsgChannelUpgradeInit response type - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeInitResponse - */ -export class MsgChannelUpgradeInitResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.Upgrade upgrade = 1; - */ - upgrade?: Upgrade; - - /** - * @generated from field: uint64 upgrade_sequence = 2; - */ - upgradeSequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeInitResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upgrade", kind: "message", T: Upgrade }, - { no: 2, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeInitResponse { - return new MsgChannelUpgradeInitResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeInitResponse { - return new MsgChannelUpgradeInitResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeInitResponse { - return new MsgChannelUpgradeInitResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeInitResponse | PlainMessage | undefined, b: MsgChannelUpgradeInitResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeInitResponse, a, b); - } -} - -/** - * MsgChannelUpgradeTry defines the request type for the ChannelUpgradeTry rpc - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTry - */ -export class MsgChannelUpgradeTry extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: repeated string proposed_upgrade_connection_hops = 3; - */ - proposedUpgradeConnectionHops: string[] = []; - - /** - * @generated from field: ibc.core.channel.v1.UpgradeFields counterparty_upgrade_fields = 4; - */ - counterpartyUpgradeFields?: UpgradeFields; - - /** - * @generated from field: uint64 counterparty_upgrade_sequence = 5; - */ - counterpartyUpgradeSequence = protoInt64.zero; - - /** - * @generated from field: bytes proof_channel = 6; - */ - proofChannel = new Uint8Array(0); - - /** - * @generated from field: bytes proof_upgrade = 7; - */ - proofUpgrade = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 8; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 9; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeTry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "proposed_upgrade_connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "counterparty_upgrade_fields", kind: "message", T: UpgradeFields }, - { no: 5, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "proof_upgrade", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proof_height", kind: "message", T: Height }, - { no: 9, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTry { - return new MsgChannelUpgradeTry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTry { - return new MsgChannelUpgradeTry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTry { - return new MsgChannelUpgradeTry().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeTry | PlainMessage | undefined, b: MsgChannelUpgradeTry | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeTry, a, b); - } -} - -/** - * MsgChannelUpgradeTryResponse defines the MsgChannelUpgradeTry response type - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTryResponse - */ -export class MsgChannelUpgradeTryResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.Upgrade upgrade = 1; - */ - upgrade?: Upgrade; - - /** - * @generated from field: uint64 upgrade_sequence = 2; - */ - upgradeSequence = protoInt64.zero; - - /** - * @generated from field: ibc.core.channel.v1.ResponseResultType result = 3; - */ - result = ResponseResultType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeTryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upgrade", kind: "message", T: Upgrade }, - { no: 2, name: "upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTryResponse { - return new MsgChannelUpgradeTryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTryResponse { - return new MsgChannelUpgradeTryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTryResponse { - return new MsgChannelUpgradeTryResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeTryResponse | PlainMessage | undefined, b: MsgChannelUpgradeTryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeTryResponse, a, b); - } -} - -/** - * MsgChannelUpgradeAck defines the request type for the ChannelUpgradeAck rpc - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeAck - */ -export class MsgChannelUpgradeAck extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: ibc.core.channel.v1.Upgrade counterparty_upgrade = 3; - */ - counterpartyUpgrade?: Upgrade; - - /** - * @generated from field: bytes proof_channel = 4; - */ - proofChannel = new Uint8Array(0); - - /** - * @generated from field: bytes proof_upgrade = 5; - */ - proofUpgrade = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 6; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 7; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeAck"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "counterparty_upgrade", kind: "message", T: Upgrade }, - { no: 4, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "proof_upgrade", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "proof_height", kind: "message", T: Height }, - { no: 7, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeAck { - return new MsgChannelUpgradeAck().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeAck { - return new MsgChannelUpgradeAck().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeAck { - return new MsgChannelUpgradeAck().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeAck | PlainMessage | undefined, b: MsgChannelUpgradeAck | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeAck, a, b); - } -} - -/** - * MsgChannelUpgradeAckResponse defines MsgChannelUpgradeAck response type - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeAckResponse - */ -export class MsgChannelUpgradeAckResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; - */ - result = ResponseResultType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeAckResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeAckResponse { - return new MsgChannelUpgradeAckResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeAckResponse { - return new MsgChannelUpgradeAckResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeAckResponse { - return new MsgChannelUpgradeAckResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeAckResponse | PlainMessage | undefined, b: MsgChannelUpgradeAckResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeAckResponse, a, b); - } -} - -/** - * MsgChannelUpgradeConfirm defines the request type for the ChannelUpgradeConfirm rpc - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeConfirm - */ -export class MsgChannelUpgradeConfirm extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: ibc.core.channel.v1.State counterparty_channel_state = 3; - */ - counterpartyChannelState = State.UNINITIALIZED_UNSPECIFIED; - - /** - * @generated from field: ibc.core.channel.v1.Upgrade counterparty_upgrade = 4; - */ - counterpartyUpgrade?: Upgrade; - - /** - * @generated from field: bytes proof_channel = 5; - */ - proofChannel = new Uint8Array(0); - - /** - * @generated from field: bytes proof_upgrade = 6; - */ - proofUpgrade = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 7; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 8; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeConfirm"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "counterparty_channel_state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 4, name: "counterparty_upgrade", kind: "message", T: Upgrade }, - { no: 5, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "proof_upgrade", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "proof_height", kind: "message", T: Height }, - { no: 8, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeConfirm { - return new MsgChannelUpgradeConfirm().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeConfirm { - return new MsgChannelUpgradeConfirm().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeConfirm { - return new MsgChannelUpgradeConfirm().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeConfirm | PlainMessage | undefined, b: MsgChannelUpgradeConfirm | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeConfirm, a, b); - } -} - -/** - * MsgChannelUpgradeConfirmResponse defines MsgChannelUpgradeConfirm response type - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse - */ -export class MsgChannelUpgradeConfirmResponse extends Message { - /** - * @generated from field: ibc.core.channel.v1.ResponseResultType result = 1; - */ - result = ResponseResultType.UNSPECIFIED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseResultType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeConfirmResponse { - return new MsgChannelUpgradeConfirmResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeConfirmResponse { - return new MsgChannelUpgradeConfirmResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeConfirmResponse { - return new MsgChannelUpgradeConfirmResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeConfirmResponse | PlainMessage | undefined, b: MsgChannelUpgradeConfirmResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeConfirmResponse, a, b); - } -} - -/** - * MsgChannelUpgradeOpen defines the request type for the ChannelUpgradeOpen rpc - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeOpen - */ -export class MsgChannelUpgradeOpen extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: ibc.core.channel.v1.State counterparty_channel_state = 3; - */ - counterpartyChannelState = State.UNINITIALIZED_UNSPECIFIED; - - /** - * @generated from field: uint64 counterparty_upgrade_sequence = 4; - */ - counterpartyUpgradeSequence = protoInt64.zero; - - /** - * @generated from field: bytes proof_channel = 5; - */ - proofChannel = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 6; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 7; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeOpen"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "counterparty_channel_state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 4, name: "counterparty_upgrade_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "proof_height", kind: "message", T: Height }, - { no: 7, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeOpen { - return new MsgChannelUpgradeOpen().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeOpen { - return new MsgChannelUpgradeOpen().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeOpen { - return new MsgChannelUpgradeOpen().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeOpen | PlainMessage | undefined, b: MsgChannelUpgradeOpen | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeOpen, a, b); - } -} - -/** - * MsgChannelUpgradeOpenResponse defines the MsgChannelUpgradeOpen response type - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeOpenResponse - */ -export class MsgChannelUpgradeOpenResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeOpenResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeOpenResponse { - return new MsgChannelUpgradeOpenResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeOpenResponse { - return new MsgChannelUpgradeOpenResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeOpenResponse { - return new MsgChannelUpgradeOpenResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeOpenResponse | PlainMessage | undefined, b: MsgChannelUpgradeOpenResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeOpenResponse, a, b); - } -} - -/** - * MsgChannelUpgradeTimeout defines the request type for the ChannelUpgradeTimeout rpc - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTimeout - */ -export class MsgChannelUpgradeTimeout extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: ibc.core.channel.v1.Channel counterparty_channel = 3; - */ - counterpartyChannel?: Channel; - - /** - * @generated from field: bytes proof_channel = 4; - */ - proofChannel = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 5; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 6; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeTimeout"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "counterparty_channel", kind: "message", T: Channel }, - { no: 4, name: "proof_channel", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "proof_height", kind: "message", T: Height }, - { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTimeout { - return new MsgChannelUpgradeTimeout().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTimeout { - return new MsgChannelUpgradeTimeout().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTimeout { - return new MsgChannelUpgradeTimeout().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeTimeout | PlainMessage | undefined, b: MsgChannelUpgradeTimeout | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeTimeout, a, b); - } -} - -/** - * MsgChannelUpgradeTimeoutResponse defines the MsgChannelUpgradeTimeout response type - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse - */ -export class MsgChannelUpgradeTimeoutResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeTimeoutResponse { - return new MsgChannelUpgradeTimeoutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeTimeoutResponse { - return new MsgChannelUpgradeTimeoutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeTimeoutResponse { - return new MsgChannelUpgradeTimeoutResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeTimeoutResponse | PlainMessage | undefined, b: MsgChannelUpgradeTimeoutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeTimeoutResponse, a, b); - } -} - -/** - * MsgChannelUpgradeCancel defines the request type for the ChannelUpgradeCancel rpc - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeCancel - */ -export class MsgChannelUpgradeCancel extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: ibc.core.channel.v1.ErrorReceipt error_receipt = 3; - */ - errorReceipt?: ErrorReceipt; - - /** - * @generated from field: bytes proof_error_receipt = 4; - */ - proofErrorReceipt = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 5; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 6; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeCancel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "error_receipt", kind: "message", T: ErrorReceipt }, - { no: 4, name: "proof_error_receipt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "proof_height", kind: "message", T: Height }, - { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeCancel { - return new MsgChannelUpgradeCancel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeCancel { - return new MsgChannelUpgradeCancel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeCancel { - return new MsgChannelUpgradeCancel().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeCancel | PlainMessage | undefined, b: MsgChannelUpgradeCancel | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeCancel, a, b); - } -} - -/** - * MsgChannelUpgradeCancelResponse defines the MsgChannelUpgradeCancel response type - * - * @generated from message ibc.core.channel.v1.MsgChannelUpgradeCancelResponse - */ -export class MsgChannelUpgradeCancelResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgChannelUpgradeCancelResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChannelUpgradeCancelResponse { - return new MsgChannelUpgradeCancelResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChannelUpgradeCancelResponse { - return new MsgChannelUpgradeCancelResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChannelUpgradeCancelResponse { - return new MsgChannelUpgradeCancelResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChannelUpgradeCancelResponse | PlainMessage | undefined, b: MsgChannelUpgradeCancelResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChannelUpgradeCancelResponse, a, b); - } -} - -/** - * MsgUpdateParams is the MsgUpdateParams request type. - * - * @generated from message ibc.core.channel.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address that controls the module (defaults to x/gov unless overwritten). - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the channel parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: ibc.core.channel.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the MsgUpdateParams response type. - * - * @generated from message ibc.core.channel.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgPruneAcknowledgements defines the request type for the PruneAcknowledgements rpc. - * - * @generated from message ibc.core.channel.v1.MsgPruneAcknowledgements - */ -export class MsgPruneAcknowledgements extends Message { - /** - * @generated from field: string port_id = 1; - */ - portId = ""; - - /** - * @generated from field: string channel_id = 2; - */ - channelId = ""; - - /** - * @generated from field: uint64 limit = 3; - */ - limit = protoInt64.zero; - - /** - * @generated from field: string signer = 4; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgPruneAcknowledgements"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "port_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "channel_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAcknowledgements { - return new MsgPruneAcknowledgements().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAcknowledgements { - return new MsgPruneAcknowledgements().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPruneAcknowledgements { - return new MsgPruneAcknowledgements().fromJsonString(jsonString, options); - } - - static equals(a: MsgPruneAcknowledgements | PlainMessage | undefined, b: MsgPruneAcknowledgements | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPruneAcknowledgements, a, b); - } -} - -/** - * MsgPruneAcknowledgementsResponse defines the response type for the PruneAcknowledgements rpc. - * - * @generated from message ibc.core.channel.v1.MsgPruneAcknowledgementsResponse - */ -export class MsgPruneAcknowledgementsResponse extends Message { - /** - * Number of sequences pruned (includes both packet acknowledgements and packet receipts where appropriate). - * - * @generated from field: uint64 total_pruned_sequences = 1; - */ - totalPrunedSequences = protoInt64.zero; - - /** - * Number of sequences left after pruning. - * - * @generated from field: uint64 total_remaining_sequences = 2; - */ - totalRemainingSequences = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.MsgPruneAcknowledgementsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_pruned_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "total_remaining_sequences", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgPruneAcknowledgementsResponse { - return new MsgPruneAcknowledgementsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgPruneAcknowledgementsResponse { - return new MsgPruneAcknowledgementsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgPruneAcknowledgementsResponse { - return new MsgPruneAcknowledgementsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgPruneAcknowledgementsResponse | PlainMessage | undefined, b: MsgPruneAcknowledgementsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgPruneAcknowledgementsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/channel/v1/upgrade_pb.ts b/libs/es-client/src/protobufs/ibc/core/channel/v1/upgrade_pb.ts deleted file mode 100644 index bc8bedb..0000000 --- a/libs/es-client/src/protobufs/ibc/core/channel/v1/upgrade_pb.ts +++ /dev/null @@ -1,167 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/channel/v1/upgrade.proto (package ibc.core.channel.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Order, Timeout } from "./channel_pb.js"; - -/** - * Upgrade is a verifiable type which contains the relevant information - * for an attempted upgrade. It provides the proposed changes to the channel - * end, the timeout for this upgrade attempt and the next packet sequence - * which allows the counterparty to efficiently know the highest sequence it has received. - * The next sequence send is used for pruning and upgrading from unordered to ordered channels. - * - * @generated from message ibc.core.channel.v1.Upgrade - */ -export class Upgrade extends Message { - /** - * @generated from field: ibc.core.channel.v1.UpgradeFields fields = 1; - */ - fields?: UpgradeFields; - - /** - * @generated from field: ibc.core.channel.v1.Timeout timeout = 2; - */ - timeout?: Timeout; - - /** - * @generated from field: uint64 next_sequence_send = 3; - */ - nextSequenceSend = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.Upgrade"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fields", kind: "message", T: UpgradeFields }, - { no: 2, name: "timeout", kind: "message", T: Timeout }, - { no: 3, name: "next_sequence_send", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Upgrade { - return new Upgrade().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Upgrade { - return new Upgrade().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Upgrade { - return new Upgrade().fromJsonString(jsonString, options); - } - - static equals(a: Upgrade | PlainMessage | undefined, b: Upgrade | PlainMessage | undefined): boolean { - return proto3.util.equals(Upgrade, a, b); - } -} - -/** - * UpgradeFields are the fields in a channel end which may be changed - * during a channel upgrade. - * - * @generated from message ibc.core.channel.v1.UpgradeFields - */ -export class UpgradeFields extends Message { - /** - * @generated from field: ibc.core.channel.v1.Order ordering = 1; - */ - ordering = Order.NONE_UNSPECIFIED; - - /** - * @generated from field: repeated string connection_hops = 2; - */ - connectionHops: string[] = []; - - /** - * @generated from field: string version = 3; - */ - version = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.UpgradeFields"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ordering", kind: "enum", T: proto3.getEnumType(Order) }, - { no: 2, name: "connection_hops", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpgradeFields { - return new UpgradeFields().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpgradeFields { - return new UpgradeFields().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpgradeFields { - return new UpgradeFields().fromJsonString(jsonString, options); - } - - static equals(a: UpgradeFields | PlainMessage | undefined, b: UpgradeFields | PlainMessage | undefined): boolean { - return proto3.util.equals(UpgradeFields, a, b); - } -} - -/** - * ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the - * upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the - * next sequence. - * - * @generated from message ibc.core.channel.v1.ErrorReceipt - */ -export class ErrorReceipt extends Message { - /** - * the channel upgrade sequence - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * the error message detailing the cause of failure - * - * @generated from field: string message = 2; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.channel.v1.ErrorReceipt"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ErrorReceipt { - return new ErrorReceipt().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ErrorReceipt { - return new ErrorReceipt().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ErrorReceipt { - return new ErrorReceipt().fromJsonString(jsonString, options); - } - - static equals(a: ErrorReceipt | PlainMessage | undefined, b: ErrorReceipt | PlainMessage | undefined): boolean { - return proto3.util.equals(ErrorReceipt, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/client_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/client_pb.ts deleted file mode 100644 index fa39309..0000000 --- a/libs/es-client/src/protobufs/ibc/core/client/v1/client_pb.ts +++ /dev/null @@ -1,262 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/client/v1/client.proto (package ibc.core.client.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * IdentifiedClientState defines a client state with an additional client - * identifier field. - * - * @generated from message ibc.core.client.v1.IdentifiedClientState - */ -export class IdentifiedClientState extends Message { - /** - * client identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * client state - * - * @generated from field: google.protobuf.Any client_state = 2; - */ - clientState?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.IdentifiedClientState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "client_state", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedClientState { - return new IdentifiedClientState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedClientState { - return new IdentifiedClientState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IdentifiedClientState { - return new IdentifiedClientState().fromJsonString(jsonString, options); - } - - static equals(a: IdentifiedClientState | PlainMessage | undefined, b: IdentifiedClientState | PlainMessage | undefined): boolean { - return proto3.util.equals(IdentifiedClientState, a, b); - } -} - -/** - * ConsensusStateWithHeight defines a consensus state with an additional height - * field. - * - * @generated from message ibc.core.client.v1.ConsensusStateWithHeight - */ -export class ConsensusStateWithHeight extends Message { - /** - * consensus state height - * - * @generated from field: ibc.core.client.v1.Height height = 1; - */ - height?: Height; - - /** - * consensus state - * - * @generated from field: google.protobuf.Any consensus_state = 2; - */ - consensusState?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.ConsensusStateWithHeight"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "message", T: Height }, - { no: 2, name: "consensus_state", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusStateWithHeight { - return new ConsensusStateWithHeight().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusStateWithHeight { - return new ConsensusStateWithHeight().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConsensusStateWithHeight { - return new ConsensusStateWithHeight().fromJsonString(jsonString, options); - } - - static equals(a: ConsensusStateWithHeight | PlainMessage | undefined, b: ConsensusStateWithHeight | PlainMessage | undefined): boolean { - return proto3.util.equals(ConsensusStateWithHeight, a, b); - } -} - -/** - * ClientConsensusStates defines all the stored consensus states for a given - * client. - * - * @generated from message ibc.core.client.v1.ClientConsensusStates - */ -export class ClientConsensusStates extends Message { - /** - * client identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * consensus states and their heights associated with the client - * - * @generated from field: repeated ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 2; - */ - consensusStates: ConsensusStateWithHeight[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.ClientConsensusStates"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "consensus_states", kind: "message", T: ConsensusStateWithHeight, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientConsensusStates { - return new ClientConsensusStates().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientConsensusStates { - return new ClientConsensusStates().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientConsensusStates { - return new ClientConsensusStates().fromJsonString(jsonString, options); - } - - static equals(a: ClientConsensusStates | PlainMessage | undefined, b: ClientConsensusStates | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientConsensusStates, a, b); - } -} - -/** - * Height is a monotonically increasing data type - * that can be compared against another Height for the purposes of updating and - * freezing clients - * - * Normally the RevisionHeight is incremented at each height while keeping - * RevisionNumber the same. However some consensus algorithms may choose to - * reset the height in certain conditions e.g. hard forks, state-machine - * breaking changes In these cases, the RevisionNumber is incremented so that - * height continues to be monitonically increasing even as the RevisionHeight - * gets reset - * - * Please note that json tags for generated Go code are overridden to explicitly exclude the omitempty jsontag. - * This enforces the Go json marshaller to always emit zero values for both revision_number and revision_height. - * - * @generated from message ibc.core.client.v1.Height - */ -export class Height extends Message { - /** - * the revision that the client is currently on - * - * @generated from field: uint64 revision_number = 1; - */ - revisionNumber = protoInt64.zero; - - /** - * the height within the given revision - * - * @generated from field: uint64 revision_height = 2; - */ - revisionHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.Height"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Height { - return new Height().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Height { - return new Height().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Height { - return new Height().fromJsonString(jsonString, options); - } - - static equals(a: Height | PlainMessage | undefined, b: Height | PlainMessage | undefined): boolean { - return proto3.util.equals(Height, a, b); - } -} - -/** - * Params defines the set of IBC light client parameters. - * - * @generated from message ibc.core.client.v1.Params - */ -export class Params extends Message { - /** - * allowed_clients defines the list of allowed client state types which can be created - * and interacted with. If a client type is removed from the allowed clients list, usage - * of this client will be disabled until it is added again to the list. - * - * @generated from field: repeated string allowed_clients = 1; - */ - allowedClients: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowed_clients", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/genesis_pb.ts deleted file mode 100644 index 90b738e..0000000 --- a/libs/es-client/src/protobufs/ibc/core/client/v1/genesis_pb.ts +++ /dev/null @@ -1,186 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/client/v1/genesis.proto (package ibc.core.client.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ClientConsensusStates, IdentifiedClientState, Params } from "./client_pb.js"; - -/** - * GenesisState defines the ibc client submodule's genesis state. - * - * @generated from message ibc.core.client.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * client states with their corresponding identifiers - * - * @generated from field: repeated ibc.core.client.v1.IdentifiedClientState clients = 1; - */ - clients: IdentifiedClientState[] = []; - - /** - * consensus states from each client - * - * @generated from field: repeated ibc.core.client.v1.ClientConsensusStates clients_consensus = 2; - */ - clientsConsensus: ClientConsensusStates[] = []; - - /** - * metadata from each client - * - * @generated from field: repeated ibc.core.client.v1.IdentifiedGenesisMetadata clients_metadata = 3; - */ - clientsMetadata: IdentifiedGenesisMetadata[] = []; - - /** - * @generated from field: ibc.core.client.v1.Params params = 4; - */ - params?: Params; - - /** - * Deprecated: create_localhost has been deprecated. - * The localhost client is automatically created at genesis. - * - * @generated from field: bool create_localhost = 5 [deprecated = true]; - * @deprecated - */ - createLocalhost = false; - - /** - * the sequence for the next generated client identifier - * - * @generated from field: uint64 next_client_sequence = 6; - */ - nextClientSequence = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "clients", kind: "message", T: IdentifiedClientState, repeated: true }, - { no: 2, name: "clients_consensus", kind: "message", T: ClientConsensusStates, repeated: true }, - { no: 3, name: "clients_metadata", kind: "message", T: IdentifiedGenesisMetadata, repeated: true }, - { no: 4, name: "params", kind: "message", T: Params }, - { no: 5, name: "create_localhost", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 6, name: "next_client_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * GenesisMetadata defines the genesis type for metadata that will be used - * to export all client store keys that are not client or consensus states. - * - * @generated from message ibc.core.client.v1.GenesisMetadata - */ -export class GenesisMetadata extends Message { - /** - * store key of metadata without clientID-prefix - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * metadata value - * - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.GenesisMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisMetadata { - return new GenesisMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisMetadata { - return new GenesisMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisMetadata { - return new GenesisMetadata().fromJsonString(jsonString, options); - } - - static equals(a: GenesisMetadata | PlainMessage | undefined, b: GenesisMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisMetadata, a, b); - } -} - -/** - * IdentifiedGenesisMetadata has the client metadata with the corresponding - * client id. - * - * @generated from message ibc.core.client.v1.IdentifiedGenesisMetadata - */ -export class IdentifiedGenesisMetadata extends Message { - /** - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * @generated from field: repeated ibc.core.client.v1.GenesisMetadata client_metadata = 2; - */ - clientMetadata: GenesisMetadata[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.IdentifiedGenesisMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "client_metadata", kind: "message", T: GenesisMetadata, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedGenesisMetadata { - return new IdentifiedGenesisMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedGenesisMetadata { - return new IdentifiedGenesisMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IdentifiedGenesisMetadata { - return new IdentifiedGenesisMetadata().fromJsonString(jsonString, options); - } - - static equals(a: IdentifiedGenesisMetadata | PlainMessage | undefined, b: IdentifiedGenesisMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(IdentifiedGenesisMetadata, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/query_cosmes.ts deleted file mode 100644 index ac4322f..0000000 --- a/libs/es-client/src/protobufs/ibc/core/client/v1/query_cosmes.ts +++ /dev/null @@ -1,131 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/core/client/v1/query.proto (package ibc.core.client.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryClientParamsRequest, QueryClientParamsResponse, QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryVerifyMembershipRequest, QueryVerifyMembershipResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.core.client.v1.Query"; - -/** - * ClientState queries an IBC light client. - * - * @generated from rpc ibc.core.client.v1.Query.ClientState - */ -export const QueryClientStateService = { - typeName: TYPE_NAME, - method: "ClientState", - Request: QueryClientStateRequest, - Response: QueryClientStateResponse, -} as const; - -/** - * ClientStates queries all the IBC light clients of a chain. - * - * @generated from rpc ibc.core.client.v1.Query.ClientStates - */ -export const QueryClientStatesService = { - typeName: TYPE_NAME, - method: "ClientStates", - Request: QueryClientStatesRequest, - Response: QueryClientStatesResponse, -} as const; - -/** - * ConsensusState queries a consensus state associated with a client state at - * a given height. - * - * @generated from rpc ibc.core.client.v1.Query.ConsensusState - */ -export const QueryConsensusStateService = { - typeName: TYPE_NAME, - method: "ConsensusState", - Request: QueryConsensusStateRequest, - Response: QueryConsensusStateResponse, -} as const; - -/** - * ConsensusStates queries all the consensus state associated with a given - * client. - * - * @generated from rpc ibc.core.client.v1.Query.ConsensusStates - */ -export const QueryConsensusStatesService = { - typeName: TYPE_NAME, - method: "ConsensusStates", - Request: QueryConsensusStatesRequest, - Response: QueryConsensusStatesResponse, -} as const; - -/** - * ConsensusStateHeights queries the height of every consensus states associated with a given client. - * - * @generated from rpc ibc.core.client.v1.Query.ConsensusStateHeights - */ -export const QueryConsensusStateHeightsService = { - typeName: TYPE_NAME, - method: "ConsensusStateHeights", - Request: QueryConsensusStateHeightsRequest, - Response: QueryConsensusStateHeightsResponse, -} as const; - -/** - * Status queries the status of an IBC client. - * - * @generated from rpc ibc.core.client.v1.Query.ClientStatus - */ -export const QueryClientStatusService = { - typeName: TYPE_NAME, - method: "ClientStatus", - Request: QueryClientStatusRequest, - Response: QueryClientStatusResponse, -} as const; - -/** - * ClientParams queries all parameters of the ibc client submodule. - * - * @generated from rpc ibc.core.client.v1.Query.ClientParams - */ -export const QueryClientParamsService = { - typeName: TYPE_NAME, - method: "ClientParams", - Request: QueryClientParamsRequest, - Response: QueryClientParamsResponse, -} as const; - -/** - * UpgradedClientState queries an Upgraded IBC light client. - * - * @generated from rpc ibc.core.client.v1.Query.UpgradedClientState - */ -export const QueryUpgradedClientStateService = { - typeName: TYPE_NAME, - method: "UpgradedClientState", - Request: QueryUpgradedClientStateRequest, - Response: QueryUpgradedClientStateResponse, -} as const; - -/** - * UpgradedConsensusState queries an Upgraded IBC consensus state. - * - * @generated from rpc ibc.core.client.v1.Query.UpgradedConsensusState - */ -export const QueryUpgradedConsensusStateService = { - typeName: TYPE_NAME, - method: "UpgradedConsensusState", - Request: QueryUpgradedConsensusStateRequest, - Response: QueryUpgradedConsensusStateResponse, -} as const; - -/** - * VerifyMembership queries an IBC light client for proof verification of a value at a given key path. - * - * @generated from rpc ibc.core.client.v1.Query.VerifyMembership - */ -export const QueryVerifyMembershipService = { - typeName: TYPE_NAME, - method: "VerifyMembership", - Request: QueryVerifyMembershipRequest, - Response: QueryVerifyMembershipResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/query_pb.ts deleted file mode 100644 index 29b7f48..0000000 --- a/libs/es-client/src/protobufs/ibc/core/client/v1/query_pb.ts +++ /dev/null @@ -1,970 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/client/v1/query.proto (package ibc.core.client.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client_pb.js"; -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { MerklePath } from "../../commitment/v2/commitment_pb.js"; - -/** - * QueryClientStateRequest is the request type for the Query/ClientState RPC - * method - * - * @generated from message ibc.core.client.v1.QueryClientStateRequest - */ -export class QueryClientStateRequest extends Message { - /** - * client state unique identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStateRequest { - return new QueryClientStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStateRequest { - return new QueryClientStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientStateRequest { - return new QueryClientStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientStateRequest | PlainMessage | undefined, b: QueryClientStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientStateRequest, a, b); - } -} - -/** - * QueryClientStateResponse is the response type for the Query/ClientState RPC - * method. Besides the client state, it includes a proof and the height from - * which the proof was retrieved. - * - * @generated from message ibc.core.client.v1.QueryClientStateResponse - */ -export class QueryClientStateResponse extends Message { - /** - * client state associated with the request identifier - * - * @generated from field: google.protobuf.Any client_state = 1; - */ - clientState?: Any; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_state", kind: "message", T: Any }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStateResponse { - return new QueryClientStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStateResponse { - return new QueryClientStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientStateResponse { - return new QueryClientStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientStateResponse | PlainMessage | undefined, b: QueryClientStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientStateResponse, a, b); - } -} - -/** - * QueryClientStatesRequest is the request type for the Query/ClientStates RPC - * method - * - * @generated from message ibc.core.client.v1.QueryClientStatesRequest - */ -export class QueryClientStatesRequest extends Message { - /** - * pagination request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientStatesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatesRequest { - return new QueryClientStatesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatesRequest { - return new QueryClientStatesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientStatesRequest { - return new QueryClientStatesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientStatesRequest | PlainMessage | undefined, b: QueryClientStatesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientStatesRequest, a, b); - } -} - -/** - * QueryClientStatesResponse is the response type for the Query/ClientStates RPC - * method. - * - * @generated from message ibc.core.client.v1.QueryClientStatesResponse - */ -export class QueryClientStatesResponse extends Message { - /** - * list of stored ClientStates of the chain. - * - * @generated from field: repeated ibc.core.client.v1.IdentifiedClientState client_states = 1; - */ - clientStates: IdentifiedClientState[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientStatesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_states", kind: "message", T: IdentifiedClientState, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatesResponse { - return new QueryClientStatesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatesResponse { - return new QueryClientStatesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientStatesResponse { - return new QueryClientStatesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientStatesResponse | PlainMessage | undefined, b: QueryClientStatesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientStatesResponse, a, b); - } -} - -/** - * QueryConsensusStateRequest is the request type for the Query/ConsensusState - * RPC method. Besides the consensus state, it includes a proof and the height - * from which the proof was retrieved. - * - * @generated from message ibc.core.client.v1.QueryConsensusStateRequest - */ -export class QueryConsensusStateRequest extends Message { - /** - * client identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * consensus state revision number - * - * @generated from field: uint64 revision_number = 2; - */ - revisionNumber = protoInt64.zero; - - /** - * consensus state revision height - * - * @generated from field: uint64 revision_height = 3; - */ - revisionHeight = protoInt64.zero; - - /** - * latest_height overrides the height field and queries the latest stored - * ConsensusState - * - * @generated from field: bool latest_height = 4; - */ - latestHeight = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryConsensusStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "latest_height", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateRequest { - return new QueryConsensusStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateRequest { - return new QueryConsensusStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateRequest { - return new QueryConsensusStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConsensusStateRequest | PlainMessage | undefined, b: QueryConsensusStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConsensusStateRequest, a, b); - } -} - -/** - * QueryConsensusStateResponse is the response type for the Query/ConsensusState - * RPC method - * - * @generated from message ibc.core.client.v1.QueryConsensusStateResponse - */ -export class QueryConsensusStateResponse extends Message { - /** - * consensus state associated with the client identifier at the given height - * - * @generated from field: google.protobuf.Any consensus_state = 1; - */ - consensusState?: Any; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryConsensusStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "consensus_state", kind: "message", T: Any }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateResponse { - return new QueryConsensusStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateResponse { - return new QueryConsensusStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateResponse { - return new QueryConsensusStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConsensusStateResponse | PlainMessage | undefined, b: QueryConsensusStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConsensusStateResponse, a, b); - } -} - -/** - * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates - * RPC method. - * - * @generated from message ibc.core.client.v1.QueryConsensusStatesRequest - */ -export class QueryConsensusStatesRequest extends Message { - /** - * client identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * pagination request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryConsensusStatesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStatesRequest { - return new QueryConsensusStatesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStatesRequest { - return new QueryConsensusStatesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStatesRequest { - return new QueryConsensusStatesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConsensusStatesRequest | PlainMessage | undefined, b: QueryConsensusStatesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConsensusStatesRequest, a, b); - } -} - -/** - * QueryConsensusStatesResponse is the response type for the - * Query/ConsensusStates RPC method - * - * @generated from message ibc.core.client.v1.QueryConsensusStatesResponse - */ -export class QueryConsensusStatesResponse extends Message { - /** - * consensus states associated with the identifier - * - * @generated from field: repeated ibc.core.client.v1.ConsensusStateWithHeight consensus_states = 1; - */ - consensusStates: ConsensusStateWithHeight[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryConsensusStatesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "consensus_states", kind: "message", T: ConsensusStateWithHeight, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStatesResponse { - return new QueryConsensusStatesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStatesResponse { - return new QueryConsensusStatesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStatesResponse { - return new QueryConsensusStatesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConsensusStatesResponse | PlainMessage | undefined, b: QueryConsensusStatesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConsensusStatesResponse, a, b); - } -} - -/** - * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights - * RPC method. - * - * @generated from message ibc.core.client.v1.QueryConsensusStateHeightsRequest - */ -export class QueryConsensusStateHeightsRequest extends Message { - /** - * client identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * pagination request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryConsensusStateHeightsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateHeightsRequest { - return new QueryConsensusStateHeightsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateHeightsRequest { - return new QueryConsensusStateHeightsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateHeightsRequest { - return new QueryConsensusStateHeightsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConsensusStateHeightsRequest | PlainMessage | undefined, b: QueryConsensusStateHeightsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConsensusStateHeightsRequest, a, b); - } -} - -/** - * QueryConsensusStateHeightsResponse is the response type for the - * Query/ConsensusStateHeights RPC method - * - * @generated from message ibc.core.client.v1.QueryConsensusStateHeightsResponse - */ -export class QueryConsensusStateHeightsResponse extends Message { - /** - * consensus state heights - * - * @generated from field: repeated ibc.core.client.v1.Height consensus_state_heights = 1; - */ - consensusStateHeights: Height[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryConsensusStateHeightsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "consensus_state_heights", kind: "message", T: Height, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConsensusStateHeightsResponse { - return new QueryConsensusStateHeightsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConsensusStateHeightsResponse { - return new QueryConsensusStateHeightsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConsensusStateHeightsResponse { - return new QueryConsensusStateHeightsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConsensusStateHeightsResponse | PlainMessage | undefined, b: QueryConsensusStateHeightsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConsensusStateHeightsResponse, a, b); - } -} - -/** - * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC - * method - * - * @generated from message ibc.core.client.v1.QueryClientStatusRequest - */ -export class QueryClientStatusRequest extends Message { - /** - * client unique identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientStatusRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatusRequest { - return new QueryClientStatusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatusRequest { - return new QueryClientStatusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientStatusRequest { - return new QueryClientStatusRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientStatusRequest | PlainMessage | undefined, b: QueryClientStatusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientStatusRequest, a, b); - } -} - -/** - * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC - * method. It returns the current status of the IBC client. - * - * @generated from message ibc.core.client.v1.QueryClientStatusResponse - */ -export class QueryClientStatusResponse extends Message { - /** - * @generated from field: string status = 1; - */ - status = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientStatusResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientStatusResponse { - return new QueryClientStatusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientStatusResponse { - return new QueryClientStatusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientStatusResponse { - return new QueryClientStatusResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientStatusResponse | PlainMessage | undefined, b: QueryClientStatusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientStatusResponse, a, b); - } -} - -/** - * QueryClientParamsRequest is the request type for the Query/ClientParams RPC - * method. - * - * @generated from message ibc.core.client.v1.QueryClientParamsRequest - */ -export class QueryClientParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientParamsRequest { - return new QueryClientParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientParamsRequest { - return new QueryClientParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientParamsRequest { - return new QueryClientParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientParamsRequest | PlainMessage | undefined, b: QueryClientParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientParamsRequest, a, b); - } -} - -/** - * QueryClientParamsResponse is the response type for the Query/ClientParams RPC - * method. - * - * @generated from message ibc.core.client.v1.QueryClientParamsResponse - */ -export class QueryClientParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: ibc.core.client.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryClientParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientParamsResponse { - return new QueryClientParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientParamsResponse { - return new QueryClientParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientParamsResponse { - return new QueryClientParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientParamsResponse | PlainMessage | undefined, b: QueryClientParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientParamsResponse, a, b); - } -} - -/** - * QueryUpgradedClientStateRequest is the request type for the - * Query/UpgradedClientState RPC method - * - * @generated from message ibc.core.client.v1.QueryUpgradedClientStateRequest - */ -export class QueryUpgradedClientStateRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryUpgradedClientStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedClientStateRequest { - return new QueryUpgradedClientStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedClientStateRequest { - return new QueryUpgradedClientStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedClientStateRequest { - return new QueryUpgradedClientStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradedClientStateRequest | PlainMessage | undefined, b: QueryUpgradedClientStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradedClientStateRequest, a, b); - } -} - -/** - * QueryUpgradedClientStateResponse is the response type for the - * Query/UpgradedClientState RPC method. - * - * @generated from message ibc.core.client.v1.QueryUpgradedClientStateResponse - */ -export class QueryUpgradedClientStateResponse extends Message { - /** - * client state associated with the request identifier - * - * @generated from field: google.protobuf.Any upgraded_client_state = 1; - */ - upgradedClientState?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryUpgradedClientStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upgraded_client_state", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedClientStateResponse { - return new QueryUpgradedClientStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedClientStateResponse { - return new QueryUpgradedClientStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedClientStateResponse { - return new QueryUpgradedClientStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradedClientStateResponse | PlainMessage | undefined, b: QueryUpgradedClientStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradedClientStateResponse, a, b); - } -} - -/** - * QueryUpgradedConsensusStateRequest is the request type for the - * Query/UpgradedConsensusState RPC method - * - * @generated from message ibc.core.client.v1.QueryUpgradedConsensusStateRequest - */ -export class QueryUpgradedConsensusStateRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryUpgradedConsensusStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateRequest { - return new QueryUpgradedConsensusStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateRequest { - return new QueryUpgradedConsensusStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateRequest { - return new QueryUpgradedConsensusStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradedConsensusStateRequest | PlainMessage | undefined, b: QueryUpgradedConsensusStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradedConsensusStateRequest, a, b); - } -} - -/** - * QueryUpgradedConsensusStateResponse is the response type for the - * Query/UpgradedConsensusState RPC method. - * - * @generated from message ibc.core.client.v1.QueryUpgradedConsensusStateResponse - */ -export class QueryUpgradedConsensusStateResponse extends Message { - /** - * Consensus state associated with the request identifier - * - * @generated from field: google.protobuf.Any upgraded_consensus_state = 1; - */ - upgradedConsensusState?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryUpgradedConsensusStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upgraded_consensus_state", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUpgradedConsensusStateResponse { - return new QueryUpgradedConsensusStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUpgradedConsensusStateResponse { - return new QueryUpgradedConsensusStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUpgradedConsensusStateResponse { - return new QueryUpgradedConsensusStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUpgradedConsensusStateResponse | PlainMessage | undefined, b: QueryUpgradedConsensusStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUpgradedConsensusStateResponse, a, b); - } -} - -/** - * QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method - * - * @generated from message ibc.core.client.v1.QueryVerifyMembershipRequest - */ -export class QueryVerifyMembershipRequest extends Message { - /** - * client unique identifier. - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * the proof to be verified by the client. - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * the height of the commitment root at which the proof is verified. - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - /** - * the value which is proven. - * - * @generated from field: bytes value = 5; - */ - value = new Uint8Array(0); - - /** - * optional time delay - * - * @generated from field: uint64 time_delay = 6; - */ - timeDelay = protoInt64.zero; - - /** - * optional block delay - * - * @generated from field: uint64 block_delay = 7; - */ - blockDelay = protoInt64.zero; - - /** - * the commitment key path. - * - * @generated from field: ibc.core.commitment.v2.MerklePath merkle_path = 8; - */ - merklePath?: MerklePath; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryVerifyMembershipRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - { no: 5, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "time_delay", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "block_delay", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "merkle_path", kind: "message", T: MerklePath }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyMembershipRequest { - return new QueryVerifyMembershipRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyMembershipRequest { - return new QueryVerifyMembershipRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVerifyMembershipRequest { - return new QueryVerifyMembershipRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryVerifyMembershipRequest | PlainMessage | undefined, b: QueryVerifyMembershipRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVerifyMembershipRequest, a, b); - } -} - -/** - * QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method - * - * @generated from message ibc.core.client.v1.QueryVerifyMembershipResponse - */ -export class QueryVerifyMembershipResponse extends Message { - /** - * boolean indicating success or failure of proof verification. - * - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.QueryVerifyMembershipResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryVerifyMembershipResponse { - return new QueryVerifyMembershipResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryVerifyMembershipResponse { - return new QueryVerifyMembershipResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryVerifyMembershipResponse { - return new QueryVerifyMembershipResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryVerifyMembershipResponse | PlainMessage | undefined, b: QueryVerifyMembershipResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryVerifyMembershipResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/tx_cosmes.ts deleted file mode 100644 index 9683846..0000000 --- a/libs/es-client/src/protobufs/ibc/core/client/v1/tx_cosmes.ts +++ /dev/null @@ -1,93 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/core/client/v1/tx.proto (package ibc.core.client.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCreateClient, MsgCreateClientResponse, MsgIBCSoftwareUpgrade, MsgIBCSoftwareUpgradeResponse, MsgRecoverClient, MsgRecoverClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgUpgradeClient, MsgUpgradeClientResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.core.client.v1.Msg"; - -/** - * CreateClient defines a rpc handler method for MsgCreateClient. - * - * @generated from rpc ibc.core.client.v1.Msg.CreateClient - */ -export const MsgCreateClientService = { - typeName: TYPE_NAME, - method: "CreateClient", - Request: MsgCreateClient, - Response: MsgCreateClientResponse, -} as const; - -/** - * UpdateClient defines a rpc handler method for MsgUpdateClient. - * - * @generated from rpc ibc.core.client.v1.Msg.UpdateClient - */ -export const MsgUpdateClientService = { - typeName: TYPE_NAME, - method: "UpdateClient", - Request: MsgUpdateClient, - Response: MsgUpdateClientResponse, -} as const; - -/** - * UpgradeClient defines a rpc handler method for MsgUpgradeClient. - * - * @generated from rpc ibc.core.client.v1.Msg.UpgradeClient - */ -export const MsgUpgradeClientService = { - typeName: TYPE_NAME, - method: "UpgradeClient", - Request: MsgUpgradeClient, - Response: MsgUpgradeClientResponse, -} as const; - -/** - * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. - * - * @generated from rpc ibc.core.client.v1.Msg.SubmitMisbehaviour - */ -export const MsgSubmitMisbehaviourService = { - typeName: TYPE_NAME, - method: "SubmitMisbehaviour", - Request: MsgSubmitMisbehaviour, - Response: MsgSubmitMisbehaviourResponse, -} as const; - -/** - * RecoverClient defines a rpc handler method for MsgRecoverClient. - * - * @generated from rpc ibc.core.client.v1.Msg.RecoverClient - */ -export const MsgRecoverClientService = { - typeName: TYPE_NAME, - method: "RecoverClient", - Request: MsgRecoverClient, - Response: MsgRecoverClientResponse, -} as const; - -/** - * IBCSoftwareUpgrade defines a rpc handler method for MsgIBCSoftwareUpgrade. - * - * @generated from rpc ibc.core.client.v1.Msg.IBCSoftwareUpgrade - */ -export const MsgIBCSoftwareUpgradeService = { - typeName: TYPE_NAME, - method: "IBCSoftwareUpgrade", - Request: MsgIBCSoftwareUpgrade, - Response: MsgIBCSoftwareUpgradeResponse, -} as const; - -/** - * UpdateClientParams defines a rpc handler method for MsgUpdateParams. - * - * @generated from rpc ibc.core.client.v1.Msg.UpdateClientParams - */ -export const MsgUpdateClientParamsService = { - typeName: TYPE_NAME, - method: "UpdateClientParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/core/client/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/core/client/v1/tx_pb.ts deleted file mode 100644 index 8662b6d..0000000 --- a/libs/es-client/src/protobufs/ibc/core/client/v1/tx_pb.ts +++ /dev/null @@ -1,678 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/client/v1/tx.proto (package ibc.core.client.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; -import { Plan } from "../../../../cosmos/upgrade/v1beta1/upgrade_pb.js"; -import { Params } from "./client_pb.js"; - -/** - * MsgCreateClient defines a message to create an IBC client - * - * @generated from message ibc.core.client.v1.MsgCreateClient - */ -export class MsgCreateClient extends Message { - /** - * light client state - * - * @generated from field: google.protobuf.Any client_state = 1; - */ - clientState?: Any; - - /** - * consensus state associated with the client that corresponds to a given - * height. - * - * @generated from field: google.protobuf.Any consensus_state = 2; - */ - consensusState?: Any; - - /** - * signer address - * - * @generated from field: string signer = 3; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgCreateClient"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_state", kind: "message", T: Any }, - { no: 2, name: "consensus_state", kind: "message", T: Any }, - { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClient { - return new MsgCreateClient().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClient { - return new MsgCreateClient().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateClient { - return new MsgCreateClient().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateClient | PlainMessage | undefined, b: MsgCreateClient | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateClient, a, b); - } -} - -/** - * MsgCreateClientResponse defines the Msg/CreateClient response type. - * - * @generated from message ibc.core.client.v1.MsgCreateClientResponse - */ -export class MsgCreateClientResponse extends Message { - /** - * @generated from field: string client_id = 1; - */ - clientId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgCreateClientResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateClientResponse { - return new MsgCreateClientResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateClientResponse { - return new MsgCreateClientResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateClientResponse { - return new MsgCreateClientResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateClientResponse | PlainMessage | undefined, b: MsgCreateClientResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateClientResponse, a, b); - } -} - -/** - * MsgUpdateClient defines an sdk.Msg to update a IBC client state using - * the given client message. - * - * @generated from message ibc.core.client.v1.MsgUpdateClient - */ -export class MsgUpdateClient extends Message { - /** - * client unique identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * client message to update the light client - * - * @generated from field: google.protobuf.Any client_message = 2; - */ - clientMessage?: Any; - - /** - * signer address - * - * @generated from field: string signer = 3; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgUpdateClient"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "client_message", kind: "message", T: Any }, - { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateClient { - return new MsgUpdateClient().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateClient { - return new MsgUpdateClient().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateClient { - return new MsgUpdateClient().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateClient | PlainMessage | undefined, b: MsgUpdateClient | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateClient, a, b); - } -} - -/** - * MsgUpdateClientResponse defines the Msg/UpdateClient response type. - * - * @generated from message ibc.core.client.v1.MsgUpdateClientResponse - */ -export class MsgUpdateClientResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgUpdateClientResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateClientResponse { - return new MsgUpdateClientResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateClientResponse { - return new MsgUpdateClientResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateClientResponse { - return new MsgUpdateClientResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateClientResponse | PlainMessage | undefined, b: MsgUpdateClientResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateClientResponse, a, b); - } -} - -/** - * MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client - * state - * - * @generated from message ibc.core.client.v1.MsgUpgradeClient - */ -export class MsgUpgradeClient extends Message { - /** - * client unique identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * upgraded client state - * - * @generated from field: google.protobuf.Any client_state = 2; - */ - clientState?: Any; - - /** - * upgraded consensus state, only contains enough information to serve as a - * basis of trust in update logic - * - * @generated from field: google.protobuf.Any consensus_state = 3; - */ - consensusState?: Any; - - /** - * proof that old chain committed to new client - * - * @generated from field: bytes proof_upgrade_client = 4; - */ - proofUpgradeClient = new Uint8Array(0); - - /** - * proof that old chain committed to new consensus state - * - * @generated from field: bytes proof_upgrade_consensus_state = 5; - */ - proofUpgradeConsensusState = new Uint8Array(0); - - /** - * signer address - * - * @generated from field: string signer = 6; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgUpgradeClient"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "client_state", kind: "message", T: Any }, - { no: 3, name: "consensus_state", kind: "message", T: Any }, - { no: 4, name: "proof_upgrade_client", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "proof_upgrade_consensus_state", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpgradeClient { - return new MsgUpgradeClient().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpgradeClient { - return new MsgUpgradeClient().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpgradeClient { - return new MsgUpgradeClient().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpgradeClient | PlainMessage | undefined, b: MsgUpgradeClient | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpgradeClient, a, b); - } -} - -/** - * MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. - * - * @generated from message ibc.core.client.v1.MsgUpgradeClientResponse - */ -export class MsgUpgradeClientResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgUpgradeClientResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpgradeClientResponse { - return new MsgUpgradeClientResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpgradeClientResponse { - return new MsgUpgradeClientResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpgradeClientResponse { - return new MsgUpgradeClientResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpgradeClientResponse | PlainMessage | undefined, b: MsgUpgradeClientResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpgradeClientResponse, a, b); - } -} - -/** - * MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for - * light client misbehaviour. - * This message has been deprecated. Use MsgUpdateClient instead. - * - * @generated from message ibc.core.client.v1.MsgSubmitMisbehaviour - * @deprecated - */ -export class MsgSubmitMisbehaviour extends Message { - /** - * client unique identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * misbehaviour used for freezing the light client - * - * @generated from field: google.protobuf.Any misbehaviour = 2; - */ - misbehaviour?: Any; - - /** - * signer address - * - * @generated from field: string signer = 3; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgSubmitMisbehaviour"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "misbehaviour", kind: "message", T: Any }, - { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitMisbehaviour { - return new MsgSubmitMisbehaviour().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitMisbehaviour { - return new MsgSubmitMisbehaviour().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitMisbehaviour { - return new MsgSubmitMisbehaviour().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitMisbehaviour | PlainMessage | undefined, b: MsgSubmitMisbehaviour | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitMisbehaviour, a, b); - } -} - -/** - * MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response - * type. - * - * @generated from message ibc.core.client.v1.MsgSubmitMisbehaviourResponse - */ -export class MsgSubmitMisbehaviourResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgSubmitMisbehaviourResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSubmitMisbehaviourResponse { - return new MsgSubmitMisbehaviourResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSubmitMisbehaviourResponse { - return new MsgSubmitMisbehaviourResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSubmitMisbehaviourResponse { - return new MsgSubmitMisbehaviourResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSubmitMisbehaviourResponse | PlainMessage | undefined, b: MsgSubmitMisbehaviourResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSubmitMisbehaviourResponse, a, b); - } -} - -/** - * MsgRecoverClient defines the message used to recover a frozen or expired client. - * - * @generated from message ibc.core.client.v1.MsgRecoverClient - */ -export class MsgRecoverClient extends Message { - /** - * the client identifier for the client to be updated if the proposal passes - * - * @generated from field: string subject_client_id = 1; - */ - subjectClientId = ""; - - /** - * the substitute client identifier for the client which will replace the subject - * client - * - * @generated from field: string substitute_client_id = 2; - */ - substituteClientId = ""; - - /** - * signer address - * - * @generated from field: string signer = 3; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgRecoverClient"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subject_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "substitute_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoverClient { - return new MsgRecoverClient().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoverClient { - return new MsgRecoverClient().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRecoverClient { - return new MsgRecoverClient().fromJsonString(jsonString, options); - } - - static equals(a: MsgRecoverClient | PlainMessage | undefined, b: MsgRecoverClient | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRecoverClient, a, b); - } -} - -/** - * MsgRecoverClientResponse defines the Msg/RecoverClient response type. - * - * @generated from message ibc.core.client.v1.MsgRecoverClientResponse - */ -export class MsgRecoverClientResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgRecoverClientResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecoverClientResponse { - return new MsgRecoverClientResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecoverClientResponse { - return new MsgRecoverClientResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRecoverClientResponse { - return new MsgRecoverClientResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRecoverClientResponse | PlainMessage | undefined, b: MsgRecoverClientResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRecoverClientResponse, a, b); - } -} - -/** - * MsgIBCSoftwareUpgrade defines the message used to schedule an upgrade of an IBC client using a v1 governance proposal - * - * @generated from message ibc.core.client.v1.MsgIBCSoftwareUpgrade - */ -export class MsgIBCSoftwareUpgrade extends Message { - /** - * @generated from field: cosmos.upgrade.v1beta1.Plan plan = 1; - */ - plan?: Plan; - - /** - * An UpgradedClientState must be provided to perform an IBC breaking upgrade. - * This will make the chain commit to the correct upgraded (self) client state - * before the upgrade occurs, so that connecting chains can verify that the - * new upgraded client is valid by verifying a proof on the previous version - * of the chain. This will allow IBC connections to persist smoothly across - * planned chain upgrades. Correspondingly, the UpgradedClientState field has been - * deprecated in the Cosmos SDK to allow for this logic to exist solely in - * the 02-client module. - * - * @generated from field: google.protobuf.Any upgraded_client_state = 2; - */ - upgradedClientState?: Any; - - /** - * signer address - * - * @generated from field: string signer = 3; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgIBCSoftwareUpgrade"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "plan", kind: "message", T: Plan }, - { no: 2, name: "upgraded_client_state", kind: "message", T: Any }, - { no: 3, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSoftwareUpgrade { - return new MsgIBCSoftwareUpgrade().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSoftwareUpgrade { - return new MsgIBCSoftwareUpgrade().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgIBCSoftwareUpgrade { - return new MsgIBCSoftwareUpgrade().fromJsonString(jsonString, options); - } - - static equals(a: MsgIBCSoftwareUpgrade | PlainMessage | undefined, b: MsgIBCSoftwareUpgrade | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgIBCSoftwareUpgrade, a, b); - } -} - -/** - * MsgIBCSoftwareUpgradeResponse defines the Msg/IBCSoftwareUpgrade response type. - * - * @generated from message ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse - */ -export class MsgIBCSoftwareUpgradeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgIBCSoftwareUpgradeResponse { - return new MsgIBCSoftwareUpgradeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgIBCSoftwareUpgradeResponse { - return new MsgIBCSoftwareUpgradeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgIBCSoftwareUpgradeResponse { - return new MsgIBCSoftwareUpgradeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgIBCSoftwareUpgradeResponse | PlainMessage | undefined, b: MsgIBCSoftwareUpgradeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgIBCSoftwareUpgradeResponse, a, b); - } -} - -/** - * MsgUpdateParams defines the sdk.Msg type to update the client parameters. - * - * @generated from message ibc.core.client.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * params defines the client parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: ibc.core.client.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the MsgUpdateParams response type. - * - * @generated from message ibc.core.client.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.client.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts b/libs/es-client/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts deleted file mode 100644 index 7261f96..0000000 --- a/libs/es-client/src/protobufs/ibc/core/commitment/v1/commitment_pb.ts +++ /dev/null @@ -1,133 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/commitment/v1/commitment.proto (package ibc.core.commitment.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { CommitmentProof } from "../../../../cosmos/ics23/v1/proofs_pb.js"; - -/** - * MerkleRoot defines a merkle root hash. - * In the Cosmos SDK, the AppHash of a block header becomes the root. - * - * @generated from message ibc.core.commitment.v1.MerkleRoot - */ -export class MerkleRoot extends Message { - /** - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.commitment.v1.MerkleRoot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MerkleRoot { - return new MerkleRoot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MerkleRoot { - return new MerkleRoot().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MerkleRoot { - return new MerkleRoot().fromJsonString(jsonString, options); - } - - static equals(a: MerkleRoot | PlainMessage | undefined, b: MerkleRoot | PlainMessage | undefined): boolean { - return proto3.util.equals(MerkleRoot, a, b); - } -} - -/** - * MerklePrefix is merkle path prefixed to the key. - * The constructed key from the Path and the key will be append(Path.KeyPath, - * append(Path.KeyPrefix, key...)) - * - * @generated from message ibc.core.commitment.v1.MerklePrefix - */ -export class MerklePrefix extends Message { - /** - * @generated from field: bytes key_prefix = 1; - */ - keyPrefix = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.commitment.v1.MerklePrefix"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key_prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MerklePrefix { - return new MerklePrefix().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MerklePrefix { - return new MerklePrefix().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MerklePrefix { - return new MerklePrefix().fromJsonString(jsonString, options); - } - - static equals(a: MerklePrefix | PlainMessage | undefined, b: MerklePrefix | PlainMessage | undefined): boolean { - return proto3.util.equals(MerklePrefix, a, b); - } -} - -/** - * MerkleProof is a wrapper type over a chain of CommitmentProofs. - * It demonstrates membership or non-membership for an element or set of - * elements, verifiable in conjunction with a known commitment root. Proofs - * should be succinct. - * MerkleProofs are ordered from leaf-to-root - * - * @generated from message ibc.core.commitment.v1.MerkleProof - */ -export class MerkleProof extends Message { - /** - * @generated from field: repeated cosmos.ics23.v1.CommitmentProof proofs = 1; - */ - proofs: CommitmentProof[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.commitment.v1.MerkleProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "proofs", kind: "message", T: CommitmentProof, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MerkleProof { - return new MerkleProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MerkleProof { - return new MerkleProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MerkleProof { - return new MerkleProof().fromJsonString(jsonString, options); - } - - static equals(a: MerkleProof | PlainMessage | undefined, b: MerkleProof | PlainMessage | undefined): boolean { - return proto3.util.equals(MerkleProof, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/commitment/v2/commitment_pb.ts b/libs/es-client/src/protobufs/ibc/core/commitment/v2/commitment_pb.ts deleted file mode 100644 index 5156a6b..0000000 --- a/libs/es-client/src/protobufs/ibc/core/commitment/v2/commitment_pb.ts +++ /dev/null @@ -1,49 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/commitment/v2/commitment.proto (package ibc.core.commitment.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * MerklePath is the path used to verify commitment proofs, which can be an - * arbitrary structured object (defined by a commitment type). - * MerklePath is represented from root-to-leaf - * - * @generated from message ibc.core.commitment.v2.MerklePath - */ -export class MerklePath extends Message { - /** - * @generated from field: repeated bytes key_path = 1; - */ - keyPath: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.commitment.v2.MerklePath"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key_path", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MerklePath { - return new MerklePath().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MerklePath { - return new MerklePath().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MerklePath { - return new MerklePath().fromJsonString(jsonString, options); - } - - static equals(a: MerklePath | PlainMessage | undefined, b: MerklePath | PlainMessage | undefined): boolean { - return proto3.util.equals(MerklePath, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/connection/v1/connection_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/connection_pb.ts deleted file mode 100644 index dd19dd6..0000000 --- a/libs/es-client/src/protobufs/ibc/core/connection/v1/connection_pb.ts +++ /dev/null @@ -1,457 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/connection/v1/connection.proto (package ibc.core.connection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { MerklePrefix } from "../../commitment/v1/commitment_pb.js"; - -/** - * State defines if a connection is in one of the following states: - * INIT, TRYOPEN, OPEN or UNINITIALIZED. - * - * @generated from enum ibc.core.connection.v1.State - */ -export enum State { - /** - * Default State - * - * @generated from enum value: STATE_UNINITIALIZED_UNSPECIFIED = 0; - */ - UNINITIALIZED_UNSPECIFIED = 0, - - /** - * A connection end has just started the opening handshake. - * - * @generated from enum value: STATE_INIT = 1; - */ - INIT = 1, - - /** - * A connection end has acknowledged the handshake step on the counterparty - * chain. - * - * @generated from enum value: STATE_TRYOPEN = 2; - */ - TRYOPEN = 2, - - /** - * A connection end has completed the handshake. - * - * @generated from enum value: STATE_OPEN = 3; - */ - OPEN = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(State) -proto3.util.setEnumType(State, "ibc.core.connection.v1.State", [ - { no: 0, name: "STATE_UNINITIALIZED_UNSPECIFIED" }, - { no: 1, name: "STATE_INIT" }, - { no: 2, name: "STATE_TRYOPEN" }, - { no: 3, name: "STATE_OPEN" }, -]); - -/** - * ConnectionEnd defines a stateful object on a chain connected to another - * separate one. - * NOTE: there must only be 2 defined ConnectionEnds to establish - * a connection between two chains. - * - * @generated from message ibc.core.connection.v1.ConnectionEnd - */ -export class ConnectionEnd extends Message { - /** - * client associated with this connection. - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection. - * - * @generated from field: repeated ibc.core.connection.v1.Version versions = 2; - */ - versions: Version[] = []; - - /** - * current state of the connection end. - * - * @generated from field: ibc.core.connection.v1.State state = 3; - */ - state = State.UNINITIALIZED_UNSPECIFIED; - - /** - * counterparty chain associated with this connection. - * - * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 4; - */ - counterparty?: Counterparty; - - /** - * delay period that must pass before a consensus state can be used for - * packet-verification NOTE: delay period logic is only implemented by some - * clients. - * - * @generated from field: uint64 delay_period = 5; - */ - delayPeriod = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.ConnectionEnd"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "versions", kind: "message", T: Version, repeated: true }, - { no: 3, name: "state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 4, name: "counterparty", kind: "message", T: Counterparty }, - { no: 5, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionEnd { - return new ConnectionEnd().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionEnd { - return new ConnectionEnd().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConnectionEnd { - return new ConnectionEnd().fromJsonString(jsonString, options); - } - - static equals(a: ConnectionEnd | PlainMessage | undefined, b: ConnectionEnd | PlainMessage | undefined): boolean { - return proto3.util.equals(ConnectionEnd, a, b); - } -} - -/** - * IdentifiedConnection defines a connection with additional connection - * identifier field. - * - * @generated from message ibc.core.connection.v1.IdentifiedConnection - */ -export class IdentifiedConnection extends Message { - /** - * connection identifier. - * - * @generated from field: string id = 1; - */ - id = ""; - - /** - * client associated with this connection. - * - * @generated from field: string client_id = 2; - */ - clientId = ""; - - /** - * IBC version which can be utilised to determine encodings or protocols for - * channels or packets utilising this connection - * - * @generated from field: repeated ibc.core.connection.v1.Version versions = 3; - */ - versions: Version[] = []; - - /** - * current state of the connection end. - * - * @generated from field: ibc.core.connection.v1.State state = 4; - */ - state = State.UNINITIALIZED_UNSPECIFIED; - - /** - * counterparty chain associated with this connection. - * - * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 5; - */ - counterparty?: Counterparty; - - /** - * delay period associated with this connection. - * - * @generated from field: uint64 delay_period = 6; - */ - delayPeriod = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.IdentifiedConnection"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "versions", kind: "message", T: Version, repeated: true }, - { no: 4, name: "state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 5, name: "counterparty", kind: "message", T: Counterparty }, - { no: 6, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IdentifiedConnection { - return new IdentifiedConnection().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IdentifiedConnection { - return new IdentifiedConnection().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IdentifiedConnection { - return new IdentifiedConnection().fromJsonString(jsonString, options); - } - - static equals(a: IdentifiedConnection | PlainMessage | undefined, b: IdentifiedConnection | PlainMessage | undefined): boolean { - return proto3.util.equals(IdentifiedConnection, a, b); - } -} - -/** - * Counterparty defines the counterparty chain associated with a connection end. - * - * @generated from message ibc.core.connection.v1.Counterparty - */ -export class Counterparty extends Message { - /** - * identifies the client on the counterparty chain associated with a given - * connection. - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * identifies the connection end on the counterparty chain associated with a - * given connection. - * - * @generated from field: string connection_id = 2; - */ - connectionId = ""; - - /** - * commitment merkle prefix of the counterparty chain. - * - * @generated from field: ibc.core.commitment.v1.MerklePrefix prefix = 3; - */ - prefix?: MerklePrefix; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.Counterparty"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "prefix", kind: "message", T: MerklePrefix }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Counterparty { - return new Counterparty().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Counterparty { - return new Counterparty().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Counterparty { - return new Counterparty().fromJsonString(jsonString, options); - } - - static equals(a: Counterparty | PlainMessage | undefined, b: Counterparty | PlainMessage | undefined): boolean { - return proto3.util.equals(Counterparty, a, b); - } -} - -/** - * ClientPaths define all the connection paths for a client state. - * - * @generated from message ibc.core.connection.v1.ClientPaths - */ -export class ClientPaths extends Message { - /** - * list of connection paths - * - * @generated from field: repeated string paths = 1; - */ - paths: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.ClientPaths"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientPaths { - return new ClientPaths().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientPaths { - return new ClientPaths().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientPaths { - return new ClientPaths().fromJsonString(jsonString, options); - } - - static equals(a: ClientPaths | PlainMessage | undefined, b: ClientPaths | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientPaths, a, b); - } -} - -/** - * ConnectionPaths define all the connection paths for a given client state. - * - * @generated from message ibc.core.connection.v1.ConnectionPaths - */ -export class ConnectionPaths extends Message { - /** - * client state unique identifier - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * list of connection paths - * - * @generated from field: repeated string paths = 2; - */ - paths: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.ConnectionPaths"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionPaths { - return new ConnectionPaths().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionPaths { - return new ConnectionPaths().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConnectionPaths { - return new ConnectionPaths().fromJsonString(jsonString, options); - } - - static equals(a: ConnectionPaths | PlainMessage | undefined, b: ConnectionPaths | PlainMessage | undefined): boolean { - return proto3.util.equals(ConnectionPaths, a, b); - } -} - -/** - * Version defines the versioning scheme used to negotiate the IBC version in - * the connection handshake. - * - * @generated from message ibc.core.connection.v1.Version - */ -export class Version extends Message { - /** - * unique version identifier - * - * @generated from field: string identifier = 1; - */ - identifier = ""; - - /** - * list of features compatible with the specified identifier - * - * @generated from field: repeated string features = 2; - */ - features: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.Version"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "features", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Version { - return new Version().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Version { - return new Version().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Version { - return new Version().fromJsonString(jsonString, options); - } - - static equals(a: Version | PlainMessage | undefined, b: Version | PlainMessage | undefined): boolean { - return proto3.util.equals(Version, a, b); - } -} - -/** - * Params defines the set of Connection parameters. - * - * @generated from message ibc.core.connection.v1.Params - */ -export class Params extends Message { - /** - * maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the - * largest amount of time that the chain might reasonably take to produce the next block under normal operating - * conditions. A safe choice is 3-5x the expected time per block. - * - * @generated from field: uint64 max_expected_time_per_block = 1; - */ - maxExpectedTimePerBlock = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_expected_time_per_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/connection/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/genesis_pb.ts deleted file mode 100644 index 8a47988..0000000 --- a/libs/es-client/src/protobufs/ibc/core/connection/v1/genesis_pb.ts +++ /dev/null @@ -1,68 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/connection/v1/genesis.proto (package ibc.core.connection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ConnectionPaths, IdentifiedConnection, Params } from "./connection_pb.js"; - -/** - * GenesisState defines the ibc connection submodule's genesis state. - * - * @generated from message ibc.core.connection.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - connections: IdentifiedConnection[] = []; - - /** - * @generated from field: repeated ibc.core.connection.v1.ConnectionPaths client_connection_paths = 2; - */ - clientConnectionPaths: ConnectionPaths[] = []; - - /** - * the sequence for the next generated connection identifier - * - * @generated from field: uint64 next_connection_sequence = 3; - */ - nextConnectionSequence = protoInt64.zero; - - /** - * @generated from field: ibc.core.connection.v1.Params params = 4; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connections", kind: "message", T: IdentifiedConnection, repeated: true }, - { no: 2, name: "client_connection_paths", kind: "message", T: ConnectionPaths, repeated: true }, - { no: 3, name: "next_connection_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/connection/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/query_cosmes.ts deleted file mode 100644 index eb45d56..0000000 --- a/libs/es-client/src/protobufs/ibc/core/connection/v1/query_cosmes.ts +++ /dev/null @@ -1,84 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/core/connection/v1/query.proto (package ibc.core.connection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryClientConnectionsRequest, QueryClientConnectionsResponse, QueryConnectionClientStateRequest, QueryConnectionClientStateResponse, QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateResponse, QueryConnectionParamsRequest, QueryConnectionParamsResponse, QueryConnectionRequest, QueryConnectionResponse, QueryConnectionsRequest, QueryConnectionsResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.core.connection.v1.Query"; - -/** - * Connection queries an IBC connection end. - * - * @generated from rpc ibc.core.connection.v1.Query.Connection - */ -export const QueryConnectionService = { - typeName: TYPE_NAME, - method: "Connection", - Request: QueryConnectionRequest, - Response: QueryConnectionResponse, -} as const; - -/** - * Connections queries all the IBC connections of a chain. - * - * @generated from rpc ibc.core.connection.v1.Query.Connections - */ -export const QueryConnectionsService = { - typeName: TYPE_NAME, - method: "Connections", - Request: QueryConnectionsRequest, - Response: QueryConnectionsResponse, -} as const; - -/** - * ClientConnections queries the connection paths associated with a client - * state. - * - * @generated from rpc ibc.core.connection.v1.Query.ClientConnections - */ -export const QueryClientConnectionsService = { - typeName: TYPE_NAME, - method: "ClientConnections", - Request: QueryClientConnectionsRequest, - Response: QueryClientConnectionsResponse, -} as const; - -/** - * ConnectionClientState queries the client state associated with the - * connection. - * - * @generated from rpc ibc.core.connection.v1.Query.ConnectionClientState - */ -export const QueryConnectionClientStateService = { - typeName: TYPE_NAME, - method: "ConnectionClientState", - Request: QueryConnectionClientStateRequest, - Response: QueryConnectionClientStateResponse, -} as const; - -/** - * ConnectionConsensusState queries the consensus state associated with the - * connection. - * - * @generated from rpc ibc.core.connection.v1.Query.ConnectionConsensusState - */ -export const QueryConnectionConsensusStateService = { - typeName: TYPE_NAME, - method: "ConnectionConsensusState", - Request: QueryConnectionConsensusStateRequest, - Response: QueryConnectionConsensusStateResponse, -} as const; - -/** - * ConnectionParams queries all parameters of the ibc connection submodule. - * - * @generated from rpc ibc.core.connection.v1.Query.ConnectionParams - */ -export const QueryConnectionParamsService = { - typeName: TYPE_NAME, - method: "ConnectionParams", - Request: QueryConnectionParamsRequest, - Response: QueryConnectionParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/core/connection/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/query_pb.ts deleted file mode 100644 index 82330dc..0000000 --- a/libs/es-client/src/protobufs/ibc/core/connection/v1/query_pb.ts +++ /dev/null @@ -1,604 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/connection/v1/query.proto (package ibc.core.connection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ConnectionEnd, IdentifiedConnection, Params } from "./connection_pb.js"; -import { Height, IdentifiedClientState } from "../../client/v1/client_pb.js"; -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * QueryConnectionRequest is the request type for the Query/Connection RPC - * method - * - * @generated from message ibc.core.connection.v1.QueryConnectionRequest - */ -export class QueryConnectionRequest extends Message { - /** - * connection unique identifier - * - * @generated from field: string connection_id = 1; - */ - connectionId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionRequest { - return new QueryConnectionRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionRequest { - return new QueryConnectionRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionRequest { - return new QueryConnectionRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionRequest | PlainMessage | undefined, b: QueryConnectionRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionRequest, a, b); - } -} - -/** - * QueryConnectionResponse is the response type for the Query/Connection RPC - * method. Besides the connection end, it includes a proof and the height from - * which the proof was retrieved. - * - * @generated from message ibc.core.connection.v1.QueryConnectionResponse - */ -export class QueryConnectionResponse extends Message { - /** - * connection associated with the request identifier - * - * @generated from field: ibc.core.connection.v1.ConnectionEnd connection = 1; - */ - connection?: ConnectionEnd; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection", kind: "message", T: ConnectionEnd }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionResponse { - return new QueryConnectionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionResponse { - return new QueryConnectionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionResponse { - return new QueryConnectionResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionResponse | PlainMessage | undefined, b: QueryConnectionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionResponse, a, b); - } -} - -/** - * QueryConnectionsRequest is the request type for the Query/Connections RPC - * method - * - * @generated from message ibc.core.connection.v1.QueryConnectionsRequest - */ -export class QueryConnectionsRequest extends Message { - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionsRequest { - return new QueryConnectionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionsRequest { - return new QueryConnectionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionsRequest { - return new QueryConnectionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionsRequest | PlainMessage | undefined, b: QueryConnectionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionsRequest, a, b); - } -} - -/** - * QueryConnectionsResponse is the response type for the Query/Connections RPC - * method. - * - * @generated from message ibc.core.connection.v1.QueryConnectionsResponse - */ -export class QueryConnectionsResponse extends Message { - /** - * list of stored connections of the chain. - * - * @generated from field: repeated ibc.core.connection.v1.IdentifiedConnection connections = 1; - */ - connections: IdentifiedConnection[] = []; - - /** - * pagination response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - /** - * query block height - * - * @generated from field: ibc.core.client.v1.Height height = 3; - */ - height?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connections", kind: "message", T: IdentifiedConnection, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - { no: 3, name: "height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionsResponse { - return new QueryConnectionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionsResponse { - return new QueryConnectionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionsResponse { - return new QueryConnectionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionsResponse | PlainMessage | undefined, b: QueryConnectionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionsResponse, a, b); - } -} - -/** - * QueryClientConnectionsRequest is the request type for the - * Query/ClientConnections RPC method - * - * @generated from message ibc.core.connection.v1.QueryClientConnectionsRequest - */ -export class QueryClientConnectionsRequest extends Message { - /** - * client identifier associated with a connection - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryClientConnectionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientConnectionsRequest { - return new QueryClientConnectionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientConnectionsRequest { - return new QueryClientConnectionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientConnectionsRequest { - return new QueryClientConnectionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientConnectionsRequest | PlainMessage | undefined, b: QueryClientConnectionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientConnectionsRequest, a, b); - } -} - -/** - * QueryClientConnectionsResponse is the response type for the - * Query/ClientConnections RPC method - * - * @generated from message ibc.core.connection.v1.QueryClientConnectionsResponse - */ -export class QueryClientConnectionsResponse extends Message { - /** - * slice of all the connection paths associated with a client. - * - * @generated from field: repeated string connection_paths = 1; - */ - connectionPaths: string[] = []; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was generated - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryClientConnectionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_paths", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryClientConnectionsResponse { - return new QueryClientConnectionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryClientConnectionsResponse { - return new QueryClientConnectionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryClientConnectionsResponse { - return new QueryClientConnectionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryClientConnectionsResponse | PlainMessage | undefined, b: QueryClientConnectionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryClientConnectionsResponse, a, b); - } -} - -/** - * QueryConnectionClientStateRequest is the request type for the - * Query/ConnectionClientState RPC method - * - * @generated from message ibc.core.connection.v1.QueryConnectionClientStateRequest - */ -export class QueryConnectionClientStateRequest extends Message { - /** - * connection identifier - * - * @generated from field: string connection_id = 1; - */ - connectionId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionClientStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionClientStateRequest { - return new QueryConnectionClientStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionClientStateRequest { - return new QueryConnectionClientStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionClientStateRequest { - return new QueryConnectionClientStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionClientStateRequest | PlainMessage | undefined, b: QueryConnectionClientStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionClientStateRequest, a, b); - } -} - -/** - * QueryConnectionClientStateResponse is the response type for the - * Query/ConnectionClientState RPC method - * - * @generated from message ibc.core.connection.v1.QueryConnectionClientStateResponse - */ -export class QueryConnectionClientStateResponse extends Message { - /** - * client state associated with the channel - * - * @generated from field: ibc.core.client.v1.IdentifiedClientState identified_client_state = 1; - */ - identifiedClientState?: IdentifiedClientState; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 2; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionClientStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "identified_client_state", kind: "message", T: IdentifiedClientState }, - { no: 2, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionClientStateResponse { - return new QueryConnectionClientStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionClientStateResponse { - return new QueryConnectionClientStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionClientStateResponse { - return new QueryConnectionClientStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionClientStateResponse | PlainMessage | undefined, b: QueryConnectionClientStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionClientStateResponse, a, b); - } -} - -/** - * QueryConnectionConsensusStateRequest is the request type for the - * Query/ConnectionConsensusState RPC method - * - * @generated from message ibc.core.connection.v1.QueryConnectionConsensusStateRequest - */ -export class QueryConnectionConsensusStateRequest extends Message { - /** - * connection identifier - * - * @generated from field: string connection_id = 1; - */ - connectionId = ""; - - /** - * @generated from field: uint64 revision_number = 2; - */ - revisionNumber = protoInt64.zero; - - /** - * @generated from field: uint64 revision_height = 3; - */ - revisionHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionConsensusStateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "revision_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "revision_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionConsensusStateRequest { - return new QueryConnectionConsensusStateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionConsensusStateRequest { - return new QueryConnectionConsensusStateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionConsensusStateRequest { - return new QueryConnectionConsensusStateRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionConsensusStateRequest | PlainMessage | undefined, b: QueryConnectionConsensusStateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionConsensusStateRequest, a, b); - } -} - -/** - * QueryConnectionConsensusStateResponse is the response type for the - * Query/ConnectionConsensusState RPC method - * - * @generated from message ibc.core.connection.v1.QueryConnectionConsensusStateResponse - */ -export class QueryConnectionConsensusStateResponse extends Message { - /** - * consensus state associated with the channel - * - * @generated from field: google.protobuf.Any consensus_state = 1; - */ - consensusState?: Any; - - /** - * client ID associated with the consensus state - * - * @generated from field: string client_id = 2; - */ - clientId = ""; - - /** - * merkle proof of existence - * - * @generated from field: bytes proof = 3; - */ - proof = new Uint8Array(0); - - /** - * height at which the proof was retrieved - * - * @generated from field: ibc.core.client.v1.Height proof_height = 4; - */ - proofHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionConsensusStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "consensus_state", kind: "message", T: Any }, - { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "proof_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionConsensusStateResponse { - return new QueryConnectionConsensusStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionConsensusStateResponse { - return new QueryConnectionConsensusStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionConsensusStateResponse { - return new QueryConnectionConsensusStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionConsensusStateResponse | PlainMessage | undefined, b: QueryConnectionConsensusStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionConsensusStateResponse, a, b); - } -} - -/** - * QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. - * - * @generated from message ibc.core.connection.v1.QueryConnectionParamsRequest - */ -export class QueryConnectionParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionParamsRequest { - return new QueryConnectionParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionParamsRequest { - return new QueryConnectionParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionParamsRequest { - return new QueryConnectionParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionParamsRequest | PlainMessage | undefined, b: QueryConnectionParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionParamsRequest, a, b); - } -} - -/** - * QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. - * - * @generated from message ibc.core.connection.v1.QueryConnectionParamsResponse - */ -export class QueryConnectionParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: ibc.core.connection.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.QueryConnectionParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConnectionParamsResponse { - return new QueryConnectionParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConnectionParamsResponse { - return new QueryConnectionParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConnectionParamsResponse { - return new QueryConnectionParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConnectionParamsResponse | PlainMessage | undefined, b: QueryConnectionParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConnectionParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts deleted file mode 100644 index 9cbd362..0000000 --- a/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_cosmes.ts +++ /dev/null @@ -1,71 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/core/connection/v1/tx.proto (package ibc.core.connection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgConnectionOpenAck, MsgConnectionOpenAckResponse, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse, MsgConnectionOpenInit, MsgConnectionOpenInitResponse, MsgConnectionOpenTry, MsgConnectionOpenTryResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.core.connection.v1.Msg"; - -/** - * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. - * - * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenInit - */ -export const MsgConnectionOpenInitService = { - typeName: TYPE_NAME, - method: "ConnectionOpenInit", - Request: MsgConnectionOpenInit, - Response: MsgConnectionOpenInitResponse, -} as const; - -/** - * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. - * - * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenTry - */ -export const MsgConnectionOpenTryService = { - typeName: TYPE_NAME, - method: "ConnectionOpenTry", - Request: MsgConnectionOpenTry, - Response: MsgConnectionOpenTryResponse, -} as const; - -/** - * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. - * - * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenAck - */ -export const MsgConnectionOpenAckService = { - typeName: TYPE_NAME, - method: "ConnectionOpenAck", - Request: MsgConnectionOpenAck, - Response: MsgConnectionOpenAckResponse, -} as const; - -/** - * ConnectionOpenConfirm defines a rpc handler method for - * MsgConnectionOpenConfirm. - * - * @generated from rpc ibc.core.connection.v1.Msg.ConnectionOpenConfirm - */ -export const MsgConnectionOpenConfirmService = { - typeName: TYPE_NAME, - method: "ConnectionOpenConfirm", - Request: MsgConnectionOpenConfirm, - Response: MsgConnectionOpenConfirmResponse, -} as const; - -/** - * UpdateConnectionParams defines a rpc handler method for - * MsgUpdateParams. - * - * @generated from rpc ibc.core.connection.v1.Msg.UpdateConnectionParams - */ -export const MsgUpdateConnectionParamsService = { - typeName: TYPE_NAME, - method: "UpdateConnectionParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_pb.ts deleted file mode 100644 index c6085e5..0000000 --- a/libs/es-client/src/protobufs/ibc/core/connection/v1/tx_pb.ts +++ /dev/null @@ -1,603 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/connection/v1/tx.proto (package ibc.core.connection.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Counterparty, Params, Version } from "./connection_pb.js"; -import { Height } from "../../client/v1/client_pb.js"; - -/** - * MsgConnectionOpenInit defines the msg sent by an account on Chain A to - * initialize a connection with Chain B. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenInit - */ -export class MsgConnectionOpenInit extends Message { - /** - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 2; - */ - counterparty?: Counterparty; - - /** - * @generated from field: ibc.core.connection.v1.Version version = 3; - */ - version?: Version; - - /** - * @generated from field: uint64 delay_period = 4; - */ - delayPeriod = protoInt64.zero; - - /** - * @generated from field: string signer = 5; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenInit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "counterparty", kind: "message", T: Counterparty }, - { no: 3, name: "version", kind: "message", T: Version }, - { no: 4, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenInit { - return new MsgConnectionOpenInit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenInit { - return new MsgConnectionOpenInit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenInit { - return new MsgConnectionOpenInit().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenInit | PlainMessage | undefined, b: MsgConnectionOpenInit | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenInit, a, b); - } -} - -/** - * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response - * type. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenInitResponse - */ -export class MsgConnectionOpenInitResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenInitResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenInitResponse { - return new MsgConnectionOpenInitResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenInitResponse { - return new MsgConnectionOpenInitResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenInitResponse { - return new MsgConnectionOpenInitResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenInitResponse | PlainMessage | undefined, b: MsgConnectionOpenInitResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenInitResponse, a, b); - } -} - -/** - * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a - * connection on Chain B. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenTry - */ -export class MsgConnectionOpenTry extends Message { - /** - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * Deprecated: this field is unused. Crossing hellos are no longer supported in core IBC. - * - * @generated from field: string previous_connection_id = 2 [deprecated = true]; - * @deprecated - */ - previousConnectionId = ""; - - /** - * Deprecated: this field is unused. - * - * @generated from field: google.protobuf.Any client_state = 3 [deprecated = true]; - * @deprecated - */ - clientState?: Any; - - /** - * @generated from field: ibc.core.connection.v1.Counterparty counterparty = 4; - */ - counterparty?: Counterparty; - - /** - * @generated from field: uint64 delay_period = 5; - */ - delayPeriod = protoInt64.zero; - - /** - * @generated from field: repeated ibc.core.connection.v1.Version counterparty_versions = 6; - */ - counterpartyVersions: Version[] = []; - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 7; - */ - proofHeight?: Height; - - /** - * proof of the initialization the connection on Chain A: `UNINITIALIZED -> - * INIT` - * - * @generated from field: bytes proof_init = 8; - */ - proofInit = new Uint8Array(0); - - /** - * Deprecated: this field is unused. - * - * @generated from field: bytes proof_client = 9 [deprecated = true]; - * @deprecated - */ - proofClient = new Uint8Array(0); - - /** - * Deprecated: this field is unused. - * - * @generated from field: bytes proof_consensus = 10 [deprecated = true]; - * @deprecated - */ - proofConsensus = new Uint8Array(0); - - /** - * Deprecated: this field is unused. - * - * @generated from field: ibc.core.client.v1.Height consensus_height = 11 [deprecated = true]; - * @deprecated - */ - consensusHeight?: Height; - - /** - * @generated from field: string signer = 12; - */ - signer = ""; - - /** - * Deprecated: this field is unused. - * - * @generated from field: bytes host_consensus_state_proof = 13 [deprecated = true]; - * @deprecated - */ - hostConsensusStateProof = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenTry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "previous_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "client_state", kind: "message", T: Any }, - { no: 4, name: "counterparty", kind: "message", T: Counterparty }, - { no: 5, name: "delay_period", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "counterparty_versions", kind: "message", T: Version, repeated: true }, - { no: 7, name: "proof_height", kind: "message", T: Height }, - { no: 8, name: "proof_init", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "proof_client", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "proof_consensus", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "consensus_height", kind: "message", T: Height }, - { no: 12, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "host_consensus_state_proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenTry { - return new MsgConnectionOpenTry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenTry { - return new MsgConnectionOpenTry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenTry { - return new MsgConnectionOpenTry().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenTry | PlainMessage | undefined, b: MsgConnectionOpenTry | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenTry, a, b); - } -} - -/** - * MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenTryResponse - */ -export class MsgConnectionOpenTryResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenTryResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenTryResponse { - return new MsgConnectionOpenTryResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenTryResponse { - return new MsgConnectionOpenTryResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenTryResponse { - return new MsgConnectionOpenTryResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenTryResponse | PlainMessage | undefined, b: MsgConnectionOpenTryResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenTryResponse, a, b); - } -} - -/** - * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to - * acknowledge the change of connection state to TRYOPEN on Chain B. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenAck - */ -export class MsgConnectionOpenAck extends Message { - /** - * @generated from field: string connection_id = 1; - */ - connectionId = ""; - - /** - * @generated from field: string counterparty_connection_id = 2; - */ - counterpartyConnectionId = ""; - - /** - * @generated from field: ibc.core.connection.v1.Version version = 3; - */ - version?: Version; - - /** - * Deprecated: this field is unused. - * - * @generated from field: google.protobuf.Any client_state = 4 [deprecated = true]; - * @deprecated - */ - clientState?: Any; - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 5; - */ - proofHeight?: Height; - - /** - * proof of the initialization the connection on Chain B: `UNINITIALIZED -> - * TRYOPEN` - * - * @generated from field: bytes proof_try = 6; - */ - proofTry = new Uint8Array(0); - - /** - * Deprecated: this field is unused. - * - * @generated from field: bytes proof_client = 7 [deprecated = true]; - * @deprecated - */ - proofClient = new Uint8Array(0); - - /** - * Deprecated: this field is unused. - * - * @generated from field: bytes proof_consensus = 8 [deprecated = true]; - * @deprecated - */ - proofConsensus = new Uint8Array(0); - - /** - * Deprecated: this field is unused. - * - * @generated from field: ibc.core.client.v1.Height consensus_height = 9 [deprecated = true]; - * @deprecated - */ - consensusHeight?: Height; - - /** - * @generated from field: string signer = 10; - */ - signer = ""; - - /** - * Deprecated: this field is unused. - * - * @generated from field: bytes host_consensus_state_proof = 11 [deprecated = true]; - * @deprecated - */ - hostConsensusStateProof = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenAck"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "counterparty_connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "version", kind: "message", T: Version }, - { no: 4, name: "client_state", kind: "message", T: Any }, - { no: 5, name: "proof_height", kind: "message", T: Height }, - { no: 6, name: "proof_try", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "proof_client", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proof_consensus", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "consensus_height", kind: "message", T: Height }, - { no: 10, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "host_consensus_state_proof", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenAck { - return new MsgConnectionOpenAck().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenAck { - return new MsgConnectionOpenAck().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenAck { - return new MsgConnectionOpenAck().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenAck | PlainMessage | undefined, b: MsgConnectionOpenAck | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenAck, a, b); - } -} - -/** - * MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenAckResponse - */ -export class MsgConnectionOpenAckResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenAckResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenAckResponse { - return new MsgConnectionOpenAckResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenAckResponse { - return new MsgConnectionOpenAckResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenAckResponse { - return new MsgConnectionOpenAckResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenAckResponse | PlainMessage | undefined, b: MsgConnectionOpenAckResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenAckResponse, a, b); - } -} - -/** - * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to - * acknowledge the change of connection state to OPEN on Chain A. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenConfirm - */ -export class MsgConnectionOpenConfirm extends Message { - /** - * @generated from field: string connection_id = 1; - */ - connectionId = ""; - - /** - * proof for the change of the connection state on Chain A: `INIT -> OPEN` - * - * @generated from field: bytes proof_ack = 2; - */ - proofAck = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height proof_height = 3; - */ - proofHeight?: Height; - - /** - * @generated from field: string signer = 4; - */ - signer = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenConfirm"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "proof_ack", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof_height", kind: "message", T: Height }, - { no: 4, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenConfirm { - return new MsgConnectionOpenConfirm().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenConfirm { - return new MsgConnectionOpenConfirm().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenConfirm { - return new MsgConnectionOpenConfirm().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenConfirm | PlainMessage | undefined, b: MsgConnectionOpenConfirm | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenConfirm, a, b); - } -} - -/** - * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm - * response type. - * - * @generated from message ibc.core.connection.v1.MsgConnectionOpenConfirmResponse - */ -export class MsgConnectionOpenConfirmResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgConnectionOpenConfirmResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgConnectionOpenConfirmResponse { - return new MsgConnectionOpenConfirmResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgConnectionOpenConfirmResponse { - return new MsgConnectionOpenConfirmResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgConnectionOpenConfirmResponse { - return new MsgConnectionOpenConfirmResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgConnectionOpenConfirmResponse | PlainMessage | undefined, b: MsgConnectionOpenConfirmResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgConnectionOpenConfirmResponse, a, b); - } -} - -/** - * MsgUpdateParams defines the sdk.Msg type to update the connection parameters. - * - * @generated from message ibc.core.connection.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * params defines the connection parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: ibc.core.connection.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the MsgUpdateParams response type. - * - * @generated from message ibc.core.connection.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.connection.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/core/types/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/core/types/v1/genesis_pb.ts deleted file mode 100644 index 50f8307..0000000 --- a/libs/es-client/src/protobufs/ibc/core/types/v1/genesis_pb.ts +++ /dev/null @@ -1,68 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/core/types/v1/genesis.proto (package ibc.core.types.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { GenesisState as GenesisState$1 } from "../../client/v1/genesis_pb.js"; -import { GenesisState as GenesisState$2 } from "../../connection/v1/genesis_pb.js"; -import { GenesisState as GenesisState$3 } from "../../channel/v1/genesis_pb.js"; - -/** - * GenesisState defines the ibc module's genesis state. - * - * @generated from message ibc.core.types.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * ICS002 - Clients genesis state - * - * @generated from field: ibc.core.client.v1.GenesisState client_genesis = 1; - */ - clientGenesis?: GenesisState$1; - - /** - * ICS003 - Connections genesis state - * - * @generated from field: ibc.core.connection.v1.GenesisState connection_genesis = 2; - */ - connectionGenesis?: GenesisState$2; - - /** - * ICS004 - Channel genesis state - * - * @generated from field: ibc.core.channel.v1.GenesisState channel_genesis = 3; - */ - channelGenesis?: GenesisState$3; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.core.types.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_genesis", kind: "message", T: GenesisState$1 }, - { no: 2, name: "connection_genesis", kind: "message", T: GenesisState$2 }, - { no: 3, name: "channel_genesis", kind: "message", T: GenesisState$3 }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts deleted file mode 100644 index c242e2f..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v2/solomachine_pb.ts +++ /dev/null @@ -1,929 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/lightclients/solomachine/v2/solomachine.proto (package ibc.lightclients.solomachine.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ConnectionEnd } from "../../../core/connection/v1/connection_pb.js"; -import { Channel } from "../../../core/channel/v1/channel_pb.js"; - -/** - * DataType defines the type of solo machine proof being created. This is done - * to preserve uniqueness of different data sign byte encodings. - * - * @generated from enum ibc.lightclients.solomachine.v2.DataType - */ -export enum DataType { - /** - * Default State - * - * @generated from enum value: DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0; - */ - UNINITIALIZED_UNSPECIFIED = 0, - - /** - * Data type for client state verification - * - * @generated from enum value: DATA_TYPE_CLIENT_STATE = 1; - */ - CLIENT_STATE = 1, - - /** - * Data type for consensus state verification - * - * @generated from enum value: DATA_TYPE_CONSENSUS_STATE = 2; - */ - CONSENSUS_STATE = 2, - - /** - * Data type for connection state verification - * - * @generated from enum value: DATA_TYPE_CONNECTION_STATE = 3; - */ - CONNECTION_STATE = 3, - - /** - * Data type for channel state verification - * - * @generated from enum value: DATA_TYPE_CHANNEL_STATE = 4; - */ - CHANNEL_STATE = 4, - - /** - * Data type for packet commitment verification - * - * @generated from enum value: DATA_TYPE_PACKET_COMMITMENT = 5; - */ - PACKET_COMMITMENT = 5, - - /** - * Data type for packet acknowledgement verification - * - * @generated from enum value: DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6; - */ - PACKET_ACKNOWLEDGEMENT = 6, - - /** - * Data type for packet receipt absence verification - * - * @generated from enum value: DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7; - */ - PACKET_RECEIPT_ABSENCE = 7, - - /** - * Data type for next sequence recv verification - * - * @generated from enum value: DATA_TYPE_NEXT_SEQUENCE_RECV = 8; - */ - NEXT_SEQUENCE_RECV = 8, - - /** - * Data type for header verification - * - * @generated from enum value: DATA_TYPE_HEADER = 9; - */ - HEADER = 9, -} -// Retrieve enum metadata with: proto3.getEnumType(DataType) -proto3.util.setEnumType(DataType, "ibc.lightclients.solomachine.v2.DataType", [ - { no: 0, name: "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" }, - { no: 1, name: "DATA_TYPE_CLIENT_STATE" }, - { no: 2, name: "DATA_TYPE_CONSENSUS_STATE" }, - { no: 3, name: "DATA_TYPE_CONNECTION_STATE" }, - { no: 4, name: "DATA_TYPE_CHANNEL_STATE" }, - { no: 5, name: "DATA_TYPE_PACKET_COMMITMENT" }, - { no: 6, name: "DATA_TYPE_PACKET_ACKNOWLEDGEMENT" }, - { no: 7, name: "DATA_TYPE_PACKET_RECEIPT_ABSENCE" }, - { no: 8, name: "DATA_TYPE_NEXT_SEQUENCE_RECV" }, - { no: 9, name: "DATA_TYPE_HEADER" }, -]); - -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - * - * @generated from message ibc.lightclients.solomachine.v2.ClientState - */ -export class ClientState extends Message { - /** - * latest sequence of the client state - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * frozen sequence of the solo machine - * - * @generated from field: bool is_frozen = 2; - */ - isFrozen = false; - - /** - * @generated from field: ibc.lightclients.solomachine.v2.ConsensusState consensus_state = 3; - */ - consensusState?: ConsensusState; - - /** - * when set to true, will allow governance to update a solo machine client. - * The client will be unfrozen if it is frozen. - * - * @generated from field: bool allow_update_after_proposal = 4; - */ - allowUpdateAfterProposal = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.ClientState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "is_frozen", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "consensus_state", kind: "message", T: ConsensusState }, - { no: 4, name: "allow_update_after_proposal", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { - return new ClientState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { - return new ClientState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientState { - return new ClientState().fromJsonString(jsonString, options); - } - - static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientState, a, b); - } -} - -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - * - * @generated from message ibc.lightclients.solomachine.v2.ConsensusState - */ -export class ConsensusState extends Message { - /** - * public key of the solo machine - * - * @generated from field: google.protobuf.Any public_key = 1; - */ - publicKey?: Any; - - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - * - * @generated from field: string diversifier = 2; - */ - diversifier = ""; - - /** - * @generated from field: uint64 timestamp = 3; - */ - timestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.ConsensusState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "public_key", kind: "message", T: Any }, - { no: 2, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { - return new ConsensusState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { - return new ConsensusState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConsensusState { - return new ConsensusState().fromJsonString(jsonString, options); - } - - static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { - return proto3.util.equals(ConsensusState, a, b); - } -} - -/** - * Header defines a solo machine consensus header - * - * @generated from message ibc.lightclients.solomachine.v2.Header - */ -export class Header extends Message
{ - /** - * sequence to update solo machine public key at - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * @generated from field: uint64 timestamp = 2; - */ - timestamp = protoInt64.zero; - - /** - * @generated from field: bytes signature = 3; - */ - signature = new Uint8Array(0); - - /** - * @generated from field: google.protobuf.Any new_public_key = 4; - */ - newPublicKey?: Any; - - /** - * @generated from field: string new_diversifier = 5; - */ - newDiversifier = ""; - - constructor(data?: PartialMessage
) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.Header"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "new_public_key", kind: "message", T: Any }, - { no: 5, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Header { - return new Header().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Header { - return new Header().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Header { - return new Header().fromJsonString(jsonString, options); - } - - static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { - return proto3.util.equals(Header, a, b); - } -} - -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - * - * @generated from message ibc.lightclients.solomachine.v2.Misbehaviour - */ -export class Misbehaviour extends Message { - /** - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * @generated from field: uint64 sequence = 2; - */ - sequence = protoInt64.zero; - - /** - * @generated from field: ibc.lightclients.solomachine.v2.SignatureAndData signature_one = 3; - */ - signatureOne?: SignatureAndData; - - /** - * @generated from field: ibc.lightclients.solomachine.v2.SignatureAndData signature_two = 4; - */ - signatureTwo?: SignatureAndData; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.Misbehaviour"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "signature_one", kind: "message", T: SignatureAndData }, - { no: 4, name: "signature_two", kind: "message", T: SignatureAndData }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Misbehaviour { - return new Misbehaviour().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Misbehaviour { - return new Misbehaviour().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Misbehaviour { - return new Misbehaviour().fromJsonString(jsonString, options); - } - - static equals(a: Misbehaviour | PlainMessage | undefined, b: Misbehaviour | PlainMessage | undefined): boolean { - return proto3.util.equals(Misbehaviour, a, b); - } -} - -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - * - * @generated from message ibc.lightclients.solomachine.v2.SignatureAndData - */ -export class SignatureAndData extends Message { - /** - * @generated from field: bytes signature = 1; - */ - signature = new Uint8Array(0); - - /** - * @generated from field: ibc.lightclients.solomachine.v2.DataType data_type = 2; - */ - dataType = DataType.UNINITIALIZED_UNSPECIFIED; - - /** - * @generated from field: bytes data = 3; - */ - data = new Uint8Array(0); - - /** - * @generated from field: uint64 timestamp = 4; - */ - timestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.SignatureAndData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "data_type", kind: "enum", T: proto3.getEnumType(DataType) }, - { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureAndData { - return new SignatureAndData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureAndData { - return new SignatureAndData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureAndData { - return new SignatureAndData().fromJsonString(jsonString, options); - } - - static equals(a: SignatureAndData | PlainMessage | undefined, b: SignatureAndData | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureAndData, a, b); - } -} - -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - * - * @generated from message ibc.lightclients.solomachine.v2.TimestampedSignatureData - */ -export class TimestampedSignatureData extends Message { - /** - * @generated from field: bytes signature_data = 1; - */ - signatureData = new Uint8Array(0); - - /** - * @generated from field: uint64 timestamp = 2; - */ - timestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.TimestampedSignatureData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signature_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TimestampedSignatureData { - return new TimestampedSignatureData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TimestampedSignatureData { - return new TimestampedSignatureData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TimestampedSignatureData { - return new TimestampedSignatureData().fromJsonString(jsonString, options); - } - - static equals(a: TimestampedSignatureData | PlainMessage | undefined, b: TimestampedSignatureData | PlainMessage | undefined): boolean { - return proto3.util.equals(TimestampedSignatureData, a, b); - } -} - -/** - * SignBytes defines the signed bytes used for signature verification. - * - * @generated from message ibc.lightclients.solomachine.v2.SignBytes - */ -export class SignBytes extends Message { - /** - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * @generated from field: uint64 timestamp = 2; - */ - timestamp = protoInt64.zero; - - /** - * @generated from field: string diversifier = 3; - */ - diversifier = ""; - - /** - * type of the data used - * - * @generated from field: ibc.lightclients.solomachine.v2.DataType data_type = 4; - */ - dataType = DataType.UNINITIALIZED_UNSPECIFIED; - - /** - * marshaled data - * - * @generated from field: bytes data = 5; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.SignBytes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "data_type", kind: "enum", T: proto3.getEnumType(DataType) }, - { no: 5, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignBytes { - return new SignBytes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignBytes { - return new SignBytes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignBytes { - return new SignBytes().fromJsonString(jsonString, options); - } - - static equals(a: SignBytes | PlainMessage | undefined, b: SignBytes | PlainMessage | undefined): boolean { - return proto3.util.equals(SignBytes, a, b); - } -} - -/** - * HeaderData returns the SignBytes data for update verification. - * - * @generated from message ibc.lightclients.solomachine.v2.HeaderData - */ -export class HeaderData extends Message { - /** - * header public key - * - * @generated from field: google.protobuf.Any new_pub_key = 1; - */ - newPubKey?: Any; - - /** - * header diversifier - * - * @generated from field: string new_diversifier = 2; - */ - newDiversifier = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.HeaderData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "new_pub_key", kind: "message", T: Any }, - { no: 2, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HeaderData { - return new HeaderData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HeaderData { - return new HeaderData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HeaderData { - return new HeaderData().fromJsonString(jsonString, options); - } - - static equals(a: HeaderData | PlainMessage | undefined, b: HeaderData | PlainMessage | undefined): boolean { - return proto3.util.equals(HeaderData, a, b); - } -} - -/** - * ClientStateData returns the SignBytes data for client state verification. - * - * @generated from message ibc.lightclients.solomachine.v2.ClientStateData - */ -export class ClientStateData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - /** - * @generated from field: google.protobuf.Any client_state = 2; - */ - clientState?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.ClientStateData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "client_state", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientStateData { - return new ClientStateData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientStateData { - return new ClientStateData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientStateData { - return new ClientStateData().fromJsonString(jsonString, options); - } - - static equals(a: ClientStateData | PlainMessage | undefined, b: ClientStateData | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientStateData, a, b); - } -} - -/** - * ConsensusStateData returns the SignBytes data for consensus state - * verification. - * - * @generated from message ibc.lightclients.solomachine.v2.ConsensusStateData - */ -export class ConsensusStateData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - /** - * @generated from field: google.protobuf.Any consensus_state = 2; - */ - consensusState?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.ConsensusStateData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "consensus_state", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusStateData { - return new ConsensusStateData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusStateData { - return new ConsensusStateData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConsensusStateData { - return new ConsensusStateData().fromJsonString(jsonString, options); - } - - static equals(a: ConsensusStateData | PlainMessage | undefined, b: ConsensusStateData | PlainMessage | undefined): boolean { - return proto3.util.equals(ConsensusStateData, a, b); - } -} - -/** - * ConnectionStateData returns the SignBytes data for connection state - * verification. - * - * @generated from message ibc.lightclients.solomachine.v2.ConnectionStateData - */ -export class ConnectionStateData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - /** - * @generated from field: ibc.core.connection.v1.ConnectionEnd connection = 2; - */ - connection?: ConnectionEnd; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.ConnectionStateData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "connection", kind: "message", T: ConnectionEnd }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionStateData { - return new ConnectionStateData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionStateData { - return new ConnectionStateData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConnectionStateData { - return new ConnectionStateData().fromJsonString(jsonString, options); - } - - static equals(a: ConnectionStateData | PlainMessage | undefined, b: ConnectionStateData | PlainMessage | undefined): boolean { - return proto3.util.equals(ConnectionStateData, a, b); - } -} - -/** - * ChannelStateData returns the SignBytes data for channel state - * verification. - * - * @generated from message ibc.lightclients.solomachine.v2.ChannelStateData - */ -export class ChannelStateData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - /** - * @generated from field: ibc.core.channel.v1.Channel channel = 2; - */ - channel?: Channel; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.ChannelStateData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "channel", kind: "message", T: Channel }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ChannelStateData { - return new ChannelStateData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ChannelStateData { - return new ChannelStateData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ChannelStateData { - return new ChannelStateData().fromJsonString(jsonString, options); - } - - static equals(a: ChannelStateData | PlainMessage | undefined, b: ChannelStateData | PlainMessage | undefined): boolean { - return proto3.util.equals(ChannelStateData, a, b); - } -} - -/** - * PacketCommitmentData returns the SignBytes data for packet commitment - * verification. - * - * @generated from message ibc.lightclients.solomachine.v2.PacketCommitmentData - */ -export class PacketCommitmentData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - /** - * @generated from field: bytes commitment = 2; - */ - commitment = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.PacketCommitmentData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "commitment", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketCommitmentData { - return new PacketCommitmentData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketCommitmentData { - return new PacketCommitmentData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketCommitmentData { - return new PacketCommitmentData().fromJsonString(jsonString, options); - } - - static equals(a: PacketCommitmentData | PlainMessage | undefined, b: PacketCommitmentData | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketCommitmentData, a, b); - } -} - -/** - * PacketAcknowledgementData returns the SignBytes data for acknowledgement - * verification. - * - * @generated from message ibc.lightclients.solomachine.v2.PacketAcknowledgementData - */ -export class PacketAcknowledgementData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - /** - * @generated from field: bytes acknowledgement = 2; - */ - acknowledgement = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.PacketAcknowledgementData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "acknowledgement", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketAcknowledgementData { - return new PacketAcknowledgementData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketAcknowledgementData { - return new PacketAcknowledgementData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketAcknowledgementData { - return new PacketAcknowledgementData().fromJsonString(jsonString, options); - } - - static equals(a: PacketAcknowledgementData | PlainMessage | undefined, b: PacketAcknowledgementData | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketAcknowledgementData, a, b); - } -} - -/** - * PacketReceiptAbsenceData returns the SignBytes data for - * packet receipt absence verification. - * - * @generated from message ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData - */ -export class PacketReceiptAbsenceData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PacketReceiptAbsenceData { - return new PacketReceiptAbsenceData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PacketReceiptAbsenceData { - return new PacketReceiptAbsenceData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PacketReceiptAbsenceData { - return new PacketReceiptAbsenceData().fromJsonString(jsonString, options); - } - - static equals(a: PacketReceiptAbsenceData | PlainMessage | undefined, b: PacketReceiptAbsenceData | PlainMessage | undefined): boolean { - return proto3.util.equals(PacketReceiptAbsenceData, a, b); - } -} - -/** - * NextSequenceRecvData returns the SignBytes data for verification of the next - * sequence to be received. - * - * @generated from message ibc.lightclients.solomachine.v2.NextSequenceRecvData - */ -export class NextSequenceRecvData extends Message { - /** - * @generated from field: bytes path = 1; - */ - path = new Uint8Array(0); - - /** - * @generated from field: uint64 next_seq_recv = 2; - */ - nextSeqRecv = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v2.NextSequenceRecvData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "next_seq_recv", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NextSequenceRecvData { - return new NextSequenceRecvData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NextSequenceRecvData { - return new NextSequenceRecvData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NextSequenceRecvData { - return new NextSequenceRecvData().fromJsonString(jsonString, options); - } - - static equals(a: NextSequenceRecvData | PlainMessage | undefined, b: NextSequenceRecvData | PlainMessage | undefined): boolean { - return proto3.util.equals(NextSequenceRecvData, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts deleted file mode 100644 index 2cbd7ae..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/solomachine/v3/solomachine_pb.ts +++ /dev/null @@ -1,458 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/lightclients/solomachine/v3/solomachine.proto (package ibc.lightclients.solomachine.v3, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * ClientState defines a solo machine client that tracks the current consensus - * state and if the client is frozen. - * - * @generated from message ibc.lightclients.solomachine.v3.ClientState - */ -export class ClientState extends Message { - /** - * latest sequence of the client state - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * frozen sequence of the solo machine - * - * @generated from field: bool is_frozen = 2; - */ - isFrozen = false; - - /** - * @generated from field: ibc.lightclients.solomachine.v3.ConsensusState consensus_state = 3; - */ - consensusState?: ConsensusState; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.ClientState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "is_frozen", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "consensus_state", kind: "message", T: ConsensusState }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { - return new ClientState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { - return new ClientState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientState { - return new ClientState().fromJsonString(jsonString, options); - } - - static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientState, a, b); - } -} - -/** - * ConsensusState defines a solo machine consensus state. The sequence of a - * consensus state is contained in the "height" key used in storing the - * consensus state. - * - * @generated from message ibc.lightclients.solomachine.v3.ConsensusState - */ -export class ConsensusState extends Message { - /** - * public key of the solo machine - * - * @generated from field: google.protobuf.Any public_key = 1; - */ - publicKey?: Any; - - /** - * diversifier allows the same public key to be re-used across different solo - * machine clients (potentially on different chains) without being considered - * misbehaviour. - * - * @generated from field: string diversifier = 2; - */ - diversifier = ""; - - /** - * @generated from field: uint64 timestamp = 3; - */ - timestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.ConsensusState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "public_key", kind: "message", T: Any }, - { no: 2, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { - return new ConsensusState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { - return new ConsensusState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConsensusState { - return new ConsensusState().fromJsonString(jsonString, options); - } - - static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { - return proto3.util.equals(ConsensusState, a, b); - } -} - -/** - * Header defines a solo machine consensus header - * - * @generated from message ibc.lightclients.solomachine.v3.Header - */ -export class Header extends Message
{ - /** - * @generated from field: uint64 timestamp = 1; - */ - timestamp = protoInt64.zero; - - /** - * @generated from field: bytes signature = 2; - */ - signature = new Uint8Array(0); - - /** - * @generated from field: google.protobuf.Any new_public_key = 3; - */ - newPublicKey?: Any; - - /** - * @generated from field: string new_diversifier = 4; - */ - newDiversifier = ""; - - constructor(data?: PartialMessage
) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.Header"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "new_public_key", kind: "message", T: Any }, - { no: 4, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Header { - return new Header().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Header { - return new Header().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Header { - return new Header().fromJsonString(jsonString, options); - } - - static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { - return proto3.util.equals(Header, a, b); - } -} - -/** - * Misbehaviour defines misbehaviour for a solo machine which consists - * of a sequence and two signatures over different messages at that sequence. - * - * @generated from message ibc.lightclients.solomachine.v3.Misbehaviour - */ -export class Misbehaviour extends Message { - /** - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * @generated from field: ibc.lightclients.solomachine.v3.SignatureAndData signature_one = 2; - */ - signatureOne?: SignatureAndData; - - /** - * @generated from field: ibc.lightclients.solomachine.v3.SignatureAndData signature_two = 3; - */ - signatureTwo?: SignatureAndData; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.Misbehaviour"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "signature_one", kind: "message", T: SignatureAndData }, - { no: 3, name: "signature_two", kind: "message", T: SignatureAndData }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Misbehaviour { - return new Misbehaviour().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Misbehaviour { - return new Misbehaviour().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Misbehaviour { - return new Misbehaviour().fromJsonString(jsonString, options); - } - - static equals(a: Misbehaviour | PlainMessage | undefined, b: Misbehaviour | PlainMessage | undefined): boolean { - return proto3.util.equals(Misbehaviour, a, b); - } -} - -/** - * SignatureAndData contains a signature and the data signed over to create that - * signature. - * - * @generated from message ibc.lightclients.solomachine.v3.SignatureAndData - */ -export class SignatureAndData extends Message { - /** - * @generated from field: bytes signature = 1; - */ - signature = new Uint8Array(0); - - /** - * @generated from field: bytes path = 2; - */ - path = new Uint8Array(0); - - /** - * @generated from field: bytes data = 3; - */ - data = new Uint8Array(0); - - /** - * @generated from field: uint64 timestamp = 4; - */ - timestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.SignatureAndData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignatureAndData { - return new SignatureAndData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignatureAndData { - return new SignatureAndData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignatureAndData { - return new SignatureAndData().fromJsonString(jsonString, options); - } - - static equals(a: SignatureAndData | PlainMessage | undefined, b: SignatureAndData | PlainMessage | undefined): boolean { - return proto3.util.equals(SignatureAndData, a, b); - } -} - -/** - * TimestampedSignatureData contains the signature data and the timestamp of the - * signature. - * - * @generated from message ibc.lightclients.solomachine.v3.TimestampedSignatureData - */ -export class TimestampedSignatureData extends Message { - /** - * @generated from field: bytes signature_data = 1; - */ - signatureData = new Uint8Array(0); - - /** - * @generated from field: uint64 timestamp = 2; - */ - timestamp = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.TimestampedSignatureData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signature_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TimestampedSignatureData { - return new TimestampedSignatureData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TimestampedSignatureData { - return new TimestampedSignatureData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TimestampedSignatureData { - return new TimestampedSignatureData().fromJsonString(jsonString, options); - } - - static equals(a: TimestampedSignatureData | PlainMessage | undefined, b: TimestampedSignatureData | PlainMessage | undefined): boolean { - return proto3.util.equals(TimestampedSignatureData, a, b); - } -} - -/** - * SignBytes defines the signed bytes used for signature verification. - * - * @generated from message ibc.lightclients.solomachine.v3.SignBytes - */ -export class SignBytes extends Message { - /** - * the sequence number - * - * @generated from field: uint64 sequence = 1; - */ - sequence = protoInt64.zero; - - /** - * the proof timestamp - * - * @generated from field: uint64 timestamp = 2; - */ - timestamp = protoInt64.zero; - - /** - * the public key diversifier - * - * @generated from field: string diversifier = 3; - */ - diversifier = ""; - - /** - * the standardised path bytes - * - * @generated from field: bytes path = 4; - */ - path = new Uint8Array(0); - - /** - * the marshaled data bytes - * - * @generated from field: bytes data = 5; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.SignBytes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "path", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignBytes { - return new SignBytes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignBytes { - return new SignBytes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignBytes { - return new SignBytes().fromJsonString(jsonString, options); - } - - static equals(a: SignBytes | PlainMessage | undefined, b: SignBytes | PlainMessage | undefined): boolean { - return proto3.util.equals(SignBytes, a, b); - } -} - -/** - * HeaderData returns the SignBytes data for update verification. - * - * @generated from message ibc.lightclients.solomachine.v3.HeaderData - */ -export class HeaderData extends Message { - /** - * header public key - * - * @generated from field: google.protobuf.Any new_pub_key = 1; - */ - newPubKey?: Any; - - /** - * header diversifier - * - * @generated from field: string new_diversifier = 2; - */ - newDiversifier = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.solomachine.v3.HeaderData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "new_pub_key", kind: "message", T: Any }, - { no: 2, name: "new_diversifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HeaderData { - return new HeaderData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HeaderData { - return new HeaderData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HeaderData { - return new HeaderData().fromJsonString(jsonString, options); - } - - static equals(a: HeaderData | PlainMessage | undefined, b: HeaderData | PlainMessage | undefined): boolean { - return proto3.util.equals(HeaderData, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts deleted file mode 100644 index daf2ceb..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/tendermint/v1/tendermint_pb.ts +++ /dev/null @@ -1,365 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/lightclients/tendermint/v1/tendermint.proto (package ibc.lightclients.tendermint.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Height } from "../../../core/client/v1/client_pb.js"; -import { ProofSpec } from "../../../../cosmos/ics23/v1/proofs_pb.js"; -import { MerkleRoot } from "../../../core/commitment/v1/commitment_pb.js"; -import { SignedHeader } from "../../../../tendermint/types/types_pb.js"; -import { ValidatorSet } from "../../../../tendermint/types/validator_pb.js"; - -/** - * ClientState from Tendermint tracks the current validator set, latest height, - * and a possible frozen height. - * - * @generated from message ibc.lightclients.tendermint.v1.ClientState - */ -export class ClientState extends Message { - /** - * @generated from field: string chain_id = 1; - */ - chainId = ""; - - /** - * @generated from field: ibc.lightclients.tendermint.v1.Fraction trust_level = 2; - */ - trustLevel?: Fraction; - - /** - * duration of the period since the LatestTimestamp during which the - * submitted headers are valid for upgrade - * - * @generated from field: google.protobuf.Duration trusting_period = 3; - */ - trustingPeriod?: Duration; - - /** - * duration of the staking unbonding period - * - * @generated from field: google.protobuf.Duration unbonding_period = 4; - */ - unbondingPeriod?: Duration; - - /** - * defines how much new (untrusted) header's Time can drift into the future. - * - * @generated from field: google.protobuf.Duration max_clock_drift = 5; - */ - maxClockDrift?: Duration; - - /** - * Block height when the client was frozen due to a misbehaviour - * - * @generated from field: ibc.core.client.v1.Height frozen_height = 6; - */ - frozenHeight?: Height; - - /** - * Latest height the client was updated to - * - * @generated from field: ibc.core.client.v1.Height latest_height = 7; - */ - latestHeight?: Height; - - /** - * Proof specifications used in verifying counterparty state - * - * @generated from field: repeated cosmos.ics23.v1.ProofSpec proof_specs = 8; - */ - proofSpecs: ProofSpec[] = []; - - /** - * Path at which next upgraded client will be committed. - * Each element corresponds to the key for a single CommitmentProof in the - * chained proof. NOTE: ClientState must stored under - * `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored - * under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using - * the default upgrade module, upgrade_path should be []string{"upgrade", - * "upgradedIBCState"}` - * - * @generated from field: repeated string upgrade_path = 9; - */ - upgradePath: string[] = []; - - /** - * allow_update_after_expiry is deprecated - * - * @generated from field: bool allow_update_after_expiry = 10 [deprecated = true]; - * @deprecated - */ - allowUpdateAfterExpiry = false; - - /** - * allow_update_after_misbehaviour is deprecated - * - * @generated from field: bool allow_update_after_misbehaviour = 11 [deprecated = true]; - * @deprecated - */ - allowUpdateAfterMisbehaviour = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.tendermint.v1.ClientState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "trust_level", kind: "message", T: Fraction }, - { no: 3, name: "trusting_period", kind: "message", T: Duration }, - { no: 4, name: "unbonding_period", kind: "message", T: Duration }, - { no: 5, name: "max_clock_drift", kind: "message", T: Duration }, - { no: 6, name: "frozen_height", kind: "message", T: Height }, - { no: 7, name: "latest_height", kind: "message", T: Height }, - { no: 8, name: "proof_specs", kind: "message", T: ProofSpec, repeated: true }, - { no: 9, name: "upgrade_path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 10, name: "allow_update_after_expiry", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 11, name: "allow_update_after_misbehaviour", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { - return new ClientState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { - return new ClientState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientState { - return new ClientState().fromJsonString(jsonString, options); - } - - static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientState, a, b); - } -} - -/** - * ConsensusState defines the consensus state from Tendermint. - * - * @generated from message ibc.lightclients.tendermint.v1.ConsensusState - */ -export class ConsensusState extends Message { - /** - * timestamp that corresponds to the block height in which the ConsensusState - * was stored. - * - * @generated from field: google.protobuf.Timestamp timestamp = 1; - */ - timestamp?: Timestamp; - - /** - * commitment root (i.e app hash) - * - * @generated from field: ibc.core.commitment.v1.MerkleRoot root = 2; - */ - root?: MerkleRoot; - - /** - * @generated from field: bytes next_validators_hash = 3; - */ - nextValidatorsHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.tendermint.v1.ConsensusState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "timestamp", kind: "message", T: Timestamp }, - { no: 2, name: "root", kind: "message", T: MerkleRoot }, - { no: 3, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { - return new ConsensusState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { - return new ConsensusState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConsensusState { - return new ConsensusState().fromJsonString(jsonString, options); - } - - static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { - return proto3.util.equals(ConsensusState, a, b); - } -} - -/** - * Misbehaviour is a wrapper over two conflicting Headers - * that implements Misbehaviour interface expected by ICS-02 - * - * @generated from message ibc.lightclients.tendermint.v1.Misbehaviour - */ -export class Misbehaviour extends Message { - /** - * ClientID is deprecated - * - * @generated from field: string client_id = 1 [deprecated = true]; - * @deprecated - */ - clientId = ""; - - /** - * @generated from field: ibc.lightclients.tendermint.v1.Header header_1 = 2; - */ - header1?: Header; - - /** - * @generated from field: ibc.lightclients.tendermint.v1.Header header_2 = 3; - */ - header2?: Header; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.tendermint.v1.Misbehaviour"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "header_1", kind: "message", T: Header }, - { no: 3, name: "header_2", kind: "message", T: Header }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Misbehaviour { - return new Misbehaviour().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Misbehaviour { - return new Misbehaviour().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Misbehaviour { - return new Misbehaviour().fromJsonString(jsonString, options); - } - - static equals(a: Misbehaviour | PlainMessage | undefined, b: Misbehaviour | PlainMessage | undefined): boolean { - return proto3.util.equals(Misbehaviour, a, b); - } -} - -/** - * Header defines the Tendermint client consensus Header. - * It encapsulates all the information necessary to update from a trusted - * Tendermint ConsensusState. The inclusion of TrustedHeight and - * TrustedValidators allows this update to process correctly, so long as the - * ConsensusState for the TrustedHeight exists, this removes race conditions - * among relayers The SignedHeader and ValidatorSet are the new untrusted update - * fields for the client. The TrustedHeight is the height of a stored - * ConsensusState on the client that will be used to verify the new untrusted - * header. The Trusted ConsensusState must be within the unbonding period of - * current time in order to correctly verify, and the TrustedValidators must - * hash to TrustedConsensusState.NextValidatorsHash since that is the last - * trusted validator set at the TrustedHeight. - * - * @generated from message ibc.lightclients.tendermint.v1.Header - */ -export class Header extends Message
{ - /** - * @generated from field: tendermint.types.SignedHeader signed_header = 1; - */ - signedHeader?: SignedHeader; - - /** - * @generated from field: tendermint.types.ValidatorSet validator_set = 2; - */ - validatorSet?: ValidatorSet; - - /** - * @generated from field: ibc.core.client.v1.Height trusted_height = 3; - */ - trustedHeight?: Height; - - /** - * @generated from field: tendermint.types.ValidatorSet trusted_validators = 4; - */ - trustedValidators?: ValidatorSet; - - constructor(data?: PartialMessage
) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.tendermint.v1.Header"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signed_header", kind: "message", T: SignedHeader }, - { no: 2, name: "validator_set", kind: "message", T: ValidatorSet }, - { no: 3, name: "trusted_height", kind: "message", T: Height }, - { no: 4, name: "trusted_validators", kind: "message", T: ValidatorSet }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Header { - return new Header().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Header { - return new Header().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Header { - return new Header().fromJsonString(jsonString, options); - } - - static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { - return proto3.util.equals(Header, a, b); - } -} - -/** - * Fraction defines the protobuf message type for tmmath.Fraction that only - * supports positive values. - * - * @generated from message ibc.lightclients.tendermint.v1.Fraction - */ -export class Fraction extends Message { - /** - * @generated from field: uint64 numerator = 1; - */ - numerator = protoInt64.zero; - - /** - * @generated from field: uint64 denominator = 2; - */ - denominator = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.tendermint.v1.Fraction"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "numerator", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "denominator", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Fraction { - return new Fraction().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Fraction { - return new Fraction().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Fraction { - return new Fraction().fromJsonString(jsonString, options); - } - - static equals(a: Fraction | PlainMessage | undefined, b: Fraction | PlainMessage | undefined): boolean { - return proto3.util.equals(Fraction, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/genesis_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/genesis_pb.ts deleted file mode 100644 index 28664cb..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/genesis_pb.ts +++ /dev/null @@ -1,90 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/lightclients/wasm/v1/genesis.proto (package ibc.lightclients.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * GenesisState defines 08-wasm's keeper genesis state - * - * @generated from message ibc.lightclients.wasm.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * uploaded light client wasm contracts - * - * @generated from field: repeated ibc.lightclients.wasm.v1.Contract contracts = 1; - */ - contracts: Contract[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contracts", kind: "message", T: Contract, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * Contract stores contract code - * - * @generated from message ibc.lightclients.wasm.v1.Contract - */ -export class Contract extends Message { - /** - * contract byte code - * - * @generated from field: bytes code_bytes = 1; - */ - codeBytes = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.Contract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Contract { - return new Contract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Contract { - return new Contract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Contract { - return new Contract().fromJsonString(jsonString, options); - } - - static equals(a: Contract | PlainMessage | undefined, b: Contract | PlainMessage | undefined): boolean { - return proto3.util.equals(Contract, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_cosmes.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_cosmes.ts deleted file mode 100644 index 799850e..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/lightclients/wasm/v1/query.proto (package ibc.lightclients.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryChecksumsRequest, QueryChecksumsResponse, QueryCodeRequest, QueryCodeResponse } from "./query_pb.js"; - -const TYPE_NAME = "ibc.lightclients.wasm.v1.Query"; - -/** - * Get all Wasm checksums - * - * @generated from rpc ibc.lightclients.wasm.v1.Query.Checksums - */ -export const QueryChecksumsService = { - typeName: TYPE_NAME, - method: "Checksums", - Request: QueryChecksumsRequest, - Response: QueryChecksumsResponse, -} as const; - -/** - * Get Wasm code for given checksum - * - * @generated from rpc ibc.lightclients.wasm.v1.Query.Code - */ -export const QueryCodeService = { - typeName: TYPE_NAME, - method: "Code", - Request: QueryCodeRequest, - Response: QueryCodeResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_pb.ts deleted file mode 100644 index e4ddae6..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/query_pb.ts +++ /dev/null @@ -1,179 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/lightclients/wasm/v1/query.proto (package ibc.lightclients.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * QueryChecksumsRequest is the request type for the Query/Checksums RPC method. - * - * @generated from message ibc.lightclients.wasm.v1.QueryChecksumsRequest - */ -export class QueryChecksumsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.QueryChecksumsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChecksumsRequest { - return new QueryChecksumsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChecksumsRequest { - return new QueryChecksumsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChecksumsRequest { - return new QueryChecksumsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryChecksumsRequest | PlainMessage | undefined, b: QueryChecksumsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChecksumsRequest, a, b); - } -} - -/** - * QueryChecksumsResponse is the response type for the Query/Checksums RPC method. - * - * @generated from message ibc.lightclients.wasm.v1.QueryChecksumsResponse - */ -export class QueryChecksumsResponse extends Message { - /** - * checksums is a list of the hex encoded checksums of all wasm codes stored. - * - * @generated from field: repeated string checksums = 1; - */ - checksums: string[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.QueryChecksumsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checksums", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryChecksumsResponse { - return new QueryChecksumsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryChecksumsResponse { - return new QueryChecksumsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryChecksumsResponse { - return new QueryChecksumsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryChecksumsResponse | PlainMessage | undefined, b: QueryChecksumsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryChecksumsResponse, a, b); - } -} - -/** - * QueryCodeRequest is the request type for the Query/Code RPC method. - * - * @generated from message ibc.lightclients.wasm.v1.QueryCodeRequest - */ -export class QueryCodeRequest extends Message { - /** - * checksum is a hex encoded string of the code stored. - * - * @generated from field: string checksum = 1; - */ - checksum = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.QueryCodeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checksum", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { - return new QueryCodeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeRequest, a, b); - } -} - -/** - * QueryCodeResponse is the response type for the Query/Code RPC method. - * - * @generated from message ibc.lightclients.wasm.v1.QueryCodeResponse - */ -export class QueryCodeResponse extends Message { - /** - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.QueryCodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { - return new QueryCodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCodeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_cosmes.ts deleted file mode 100644 index 7879bf6..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_cosmes.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file ibc/lightclients/wasm/v1/tx.proto (package ibc.lightclients.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgMigrateContract, MsgMigrateContractResponse, MsgRemoveChecksum, MsgRemoveChecksumResponse, MsgStoreCode, MsgStoreCodeResponse } from "./tx_pb.js"; - -const TYPE_NAME = "ibc.lightclients.wasm.v1.Msg"; - -/** - * StoreCode defines a rpc handler method for MsgStoreCode. - * - * @generated from rpc ibc.lightclients.wasm.v1.Msg.StoreCode - */ -export const MsgStoreCodeService = { - typeName: TYPE_NAME, - method: "StoreCode", - Request: MsgStoreCode, - Response: MsgStoreCodeResponse, -} as const; - -/** - * RemoveChecksum defines a rpc handler method for MsgRemoveChecksum. - * - * @generated from rpc ibc.lightclients.wasm.v1.Msg.RemoveChecksum - */ -export const MsgRemoveChecksumService = { - typeName: TYPE_NAME, - method: "RemoveChecksum", - Request: MsgRemoveChecksum, - Response: MsgRemoveChecksumResponse, -} as const; - -/** - * MigrateContract defines a rpc handler method for MsgMigrateContract. - * - * @generated from rpc ibc.lightclients.wasm.v1.Msg.MigrateContract - */ -export const MsgMigrateContractService = { - typeName: TYPE_NAME, - method: "MigrateContract", - Request: MsgMigrateContract, - Response: MsgMigrateContractResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_pb.ts deleted file mode 100644 index 50a5cff..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/tx_pb.ts +++ /dev/null @@ -1,278 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/lightclients/wasm/v1/tx.proto (package ibc.lightclients.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * MsgStoreCode defines the request type for the StoreCode rpc. - * - * @generated from message ibc.lightclients.wasm.v1.MsgStoreCode - */ -export class MsgStoreCode extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * wasm byte code of light client contract. It can be raw or gzip compressed - * - * @generated from field: bytes wasm_byte_code = 2; - */ - wasmByteCode = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.MsgStoreCode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCode { - return new MsgStoreCode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCode { - return new MsgStoreCode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreCode { - return new MsgStoreCode().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreCode | PlainMessage | undefined, b: MsgStoreCode | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreCode, a, b); - } -} - -/** - * MsgStoreCodeResponse defines the response type for the StoreCode rpc - * - * @generated from message ibc.lightclients.wasm.v1.MsgStoreCodeResponse - */ -export class MsgStoreCodeResponse extends Message { - /** - * checksum is the sha256 hash of the stored code - * - * @generated from field: bytes checksum = 1; - */ - checksum = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.MsgStoreCodeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCodeResponse { - return new MsgStoreCodeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCodeResponse { - return new MsgStoreCodeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStoreCodeResponse { - return new MsgStoreCodeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgStoreCodeResponse | PlainMessage | undefined, b: MsgStoreCodeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStoreCodeResponse, a, b); - } -} - -/** - * MsgRemoveChecksum defines the request type for the MsgRemoveChecksum rpc. - * - * @generated from message ibc.lightclients.wasm.v1.MsgRemoveChecksum - */ -export class MsgRemoveChecksum extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * checksum is the sha256 hash to be removed from the store - * - * @generated from field: bytes checksum = 2; - */ - checksum = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.MsgRemoveChecksum"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveChecksum { - return new MsgRemoveChecksum().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveChecksum { - return new MsgRemoveChecksum().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRemoveChecksum { - return new MsgRemoveChecksum().fromJsonString(jsonString, options); - } - - static equals(a: MsgRemoveChecksum | PlainMessage | undefined, b: MsgRemoveChecksum | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRemoveChecksum, a, b); - } -} - -/** - * MsgStoreChecksumResponse defines the response type for the StoreCode rpc - * - * @generated from message ibc.lightclients.wasm.v1.MsgRemoveChecksumResponse - */ -export class MsgRemoveChecksumResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.MsgRemoveChecksumResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveChecksumResponse { - return new MsgRemoveChecksumResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveChecksumResponse { - return new MsgRemoveChecksumResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRemoveChecksumResponse { - return new MsgRemoveChecksumResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRemoveChecksumResponse | PlainMessage | undefined, b: MsgRemoveChecksumResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRemoveChecksumResponse, a, b); - } -} - -/** - * MsgMigrateContract defines the request type for the MigrateContract rpc. - * - * @generated from message ibc.lightclients.wasm.v1.MsgMigrateContract - */ -export class MsgMigrateContract extends Message { - /** - * signer address - * - * @generated from field: string signer = 1; - */ - signer = ""; - - /** - * the client id of the contract - * - * @generated from field: string client_id = 2; - */ - clientId = ""; - - /** - * checksum is the sha256 hash of the new wasm byte code for the contract - * - * @generated from field: bytes checksum = 3; - */ - checksum = new Uint8Array(0); - - /** - * the json encoded message to be passed to the contract on migration - * - * @generated from field: bytes msg = 4; - */ - msg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.MsgMigrateContract"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContract { - return new MsgMigrateContract().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContract { - return new MsgMigrateContract().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContract { - return new MsgMigrateContract().fromJsonString(jsonString, options); - } - - static equals(a: MsgMigrateContract | PlainMessage | undefined, b: MsgMigrateContract | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMigrateContract, a, b); - } -} - -/** - * MsgMigrateContractResponse defines the response type for the MigrateContract rpc - * - * @generated from message ibc.lightclients.wasm.v1.MsgMigrateContractResponse - */ -export class MsgMigrateContractResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.MsgMigrateContractResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContractResponse { - return new MsgMigrateContractResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContractResponse { - return new MsgMigrateContractResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContractResponse { - return new MsgMigrateContractResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgMigrateContractResponse | PlainMessage | undefined, b: MsgMigrateContractResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMigrateContractResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/wasm_pb.ts b/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/wasm_pb.ts deleted file mode 100644 index 7ae7e59..0000000 --- a/libs/es-client/src/protobufs/ibc/lightclients/wasm/v1/wasm_pb.ts +++ /dev/null @@ -1,187 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file ibc/lightclients/wasm/v1/wasm.proto (package ibc.lightclients.wasm.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Height } from "../../../core/client/v1/client_pb.js"; - -/** - * Wasm light client's Client state - * - * @generated from message ibc.lightclients.wasm.v1.ClientState - */ -export class ClientState extends Message { - /** - * bytes encoding the client state of the underlying light client - * implemented as a Wasm contract. - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - /** - * @generated from field: bytes checksum = 2; - */ - checksum = new Uint8Array(0); - - /** - * @generated from field: ibc.core.client.v1.Height latest_height = 3; - */ - latestHeight?: Height; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.ClientState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "latest_height", kind: "message", T: Height }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientState { - return new ClientState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientState { - return new ClientState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientState { - return new ClientState().fromJsonString(jsonString, options); - } - - static equals(a: ClientState | PlainMessage | undefined, b: ClientState | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientState, a, b); - } -} - -/** - * Wasm light client's ConsensusState - * - * @generated from message ibc.lightclients.wasm.v1.ConsensusState - */ -export class ConsensusState extends Message { - /** - * bytes encoding the consensus state of the underlying light client - * implemented as a Wasm contract. - * - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.ConsensusState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusState { - return new ConsensusState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusState { - return new ConsensusState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConsensusState { - return new ConsensusState().fromJsonString(jsonString, options); - } - - static equals(a: ConsensusState | PlainMessage | undefined, b: ConsensusState | PlainMessage | undefined): boolean { - return proto3.util.equals(ConsensusState, a, b); - } -} - -/** - * Wasm light client message (either header(s) or misbehaviour) - * - * @generated from message ibc.lightclients.wasm.v1.ClientMessage - */ -export class ClientMessage extends Message { - /** - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.ClientMessage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClientMessage { - return new ClientMessage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClientMessage { - return new ClientMessage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClientMessage { - return new ClientMessage().fromJsonString(jsonString, options); - } - - static equals(a: ClientMessage | PlainMessage | undefined, b: ClientMessage | PlainMessage | undefined): boolean { - return proto3.util.equals(ClientMessage, a, b); - } -} - -/** - * Checksums defines a list of all checksums that are stored - * - * Deprecated: This message is deprecated in favor of storing the checksums - * using a Collections.KeySet. - * - * @generated from message ibc.lightclients.wasm.v1.Checksums - * @deprecated - */ -export class Checksums extends Message { - /** - * @generated from field: repeated bytes checksums = 1; - */ - checksums: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "ibc.lightclients.wasm.v1.Checksums"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "checksums", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Checksums { - return new Checksums().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Checksums { - return new Checksums().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Checksums { - return new Checksums().fromJsonString(jsonString, options); - } - - static equals(a: Checksums | PlainMessage | undefined, b: Checksums | PlainMessage | undefined): boolean { - return proto3.util.equals(Checksums, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/index.ts b/libs/es-client/src/protobufs/index.ts deleted file mode 100644 index e5b7305..0000000 --- a/libs/es-client/src/protobufs/index.ts +++ /dev/null @@ -1,4060 +0,0 @@ -/** This file is generated by gen-protobufs.mjs. Do not edit. */ - -export { - App as TendermintVersionApp, - Consensus as TendermintVersionConsensus, -} from "./tendermint/version/types_pb.js"; -export { - BlockIDFlag as TendermintTypesBlockIDFlag, - ValidatorSet as TendermintTypesValidatorSet, - Validator as TendermintTypesValidator, - SimpleValidator as TendermintTypesSimpleValidator, -} from "./tendermint/types/validator_pb.js"; -export { - SignedMsgType as TendermintTypesSignedMsgType, - PartSetHeader as TendermintTypesPartSetHeader, - Part as TendermintTypesPart, - BlockID as TendermintTypesBlockID, - Header as TendermintTypesHeader, - Data as TendermintTypesData, - Vote as TendermintTypesVote, - Commit as TendermintTypesCommit, - CommitSig as TendermintTypesCommitSig, - ExtendedCommit as TendermintTypesExtendedCommit, - ExtendedCommitSig as TendermintTypesExtendedCommitSig, - Proposal as TendermintTypesProposal, - SignedHeader as TendermintTypesSignedHeader, - LightBlock as TendermintTypesLightBlock, - BlockMeta as TendermintTypesBlockMeta, - TxProof as TendermintTypesTxProof, -} from "./tendermint/types/types_pb.js"; -export { - ConsensusParams as TendermintTypesConsensusParams, - BlockParams as TendermintTypesBlockParams, - EvidenceParams as TendermintTypesEvidenceParams, - ValidatorParams as TendermintTypesValidatorParams, - VersionParams as TendermintTypesVersionParams, - HashedParams as TendermintTypesHashedParams, - ABCIParams as TendermintTypesABCIParams, -} from "./tendermint/types/params_pb.js"; -export { - Evidence as TendermintTypesEvidence, - DuplicateVoteEvidence as TendermintTypesDuplicateVoteEvidence, - LightClientAttackEvidence as TendermintTypesLightClientAttackEvidence, - EvidenceList as TendermintTypesEvidenceList, -} from "./tendermint/types/evidence_pb.js"; -export { - Block as TendermintTypesBlock, -} from "./tendermint/types/block_pb.js"; -export { - NetAddress as TendermintP2pNetAddress, - ProtocolVersion as TendermintP2pProtocolVersion, - DefaultNodeInfo as TendermintP2pDefaultNodeInfo, - DefaultNodeInfoOther as TendermintP2pDefaultNodeInfoOther, -} from "./tendermint/p2p/types_pb.js"; -export { - BitArray as TendermintLibsBitsBitArray, -} from "./tendermint/libs/bits/types_pb.js"; -export { - Proof as TendermintCryptoProof, - ValueOp as TendermintCryptoValueOp, - DominoOp as TendermintCryptoDominoOp, - ProofOp as TendermintCryptoProofOp, - ProofOps as TendermintCryptoProofOps, -} from "./tendermint/crypto/proof_pb.js"; -export { - PublicKey as TendermintCryptoPublicKey, -} from "./tendermint/crypto/keys_pb.js"; -export { - CheckTxType as TendermintAbciCheckTxType, - MisbehaviorType as TendermintAbciMisbehaviorType, - Request as TendermintAbciRequest, - RequestEcho as TendermintAbciRequestEcho, - RequestFlush as TendermintAbciRequestFlush, - RequestInfo as TendermintAbciRequestInfo, - RequestInitChain as TendermintAbciRequestInitChain, - RequestQuery as TendermintAbciRequestQuery, - RequestCheckTx as TendermintAbciRequestCheckTx, - RequestCommit as TendermintAbciRequestCommit, - RequestListSnapshots as TendermintAbciRequestListSnapshots, - RequestOfferSnapshot as TendermintAbciRequestOfferSnapshot, - RequestLoadSnapshotChunk as TendermintAbciRequestLoadSnapshotChunk, - RequestApplySnapshotChunk as TendermintAbciRequestApplySnapshotChunk, - RequestPrepareProposal as TendermintAbciRequestPrepareProposal, - RequestProcessProposal as TendermintAbciRequestProcessProposal, - RequestExtendVote as TendermintAbciRequestExtendVote, - RequestVerifyVoteExtension as TendermintAbciRequestVerifyVoteExtension, - RequestFinalizeBlock as TendermintAbciRequestFinalizeBlock, - Response as TendermintAbciResponse, - ResponseException as TendermintAbciResponseException, - ResponseEcho as TendermintAbciResponseEcho, - ResponseFlush as TendermintAbciResponseFlush, - ResponseInfo as TendermintAbciResponseInfo, - ResponseInitChain as TendermintAbciResponseInitChain, - ResponseQuery as TendermintAbciResponseQuery, - ResponseCheckTx as TendermintAbciResponseCheckTx, - ResponseCommit as TendermintAbciResponseCommit, - ResponseListSnapshots as TendermintAbciResponseListSnapshots, - ResponseOfferSnapshot as TendermintAbciResponseOfferSnapshot, - ResponseOfferSnapshot_Result as TendermintAbciResponseOfferSnapshot_Result, - ResponseLoadSnapshotChunk as TendermintAbciResponseLoadSnapshotChunk, - ResponseApplySnapshotChunk as TendermintAbciResponseApplySnapshotChunk, - ResponseApplySnapshotChunk_Result as TendermintAbciResponseApplySnapshotChunk_Result, - ResponsePrepareProposal as TendermintAbciResponsePrepareProposal, - ResponseProcessProposal as TendermintAbciResponseProcessProposal, - ResponseProcessProposal_ProposalStatus as TendermintAbciResponseProcessProposal_ProposalStatus, - ResponseExtendVote as TendermintAbciResponseExtendVote, - ResponseVerifyVoteExtension as TendermintAbciResponseVerifyVoteExtension, - ResponseVerifyVoteExtension_VerifyStatus as TendermintAbciResponseVerifyVoteExtension_VerifyStatus, - ResponseFinalizeBlock as TendermintAbciResponseFinalizeBlock, - CommitInfo as TendermintAbciCommitInfo, - ExtendedCommitInfo as TendermintAbciExtendedCommitInfo, - Event as TendermintAbciEvent, - EventAttribute as TendermintAbciEventAttribute, - ExecTxResult as TendermintAbciExecTxResult, - TxResult as TendermintAbciTxResult, - Validator as TendermintAbciValidator, - ValidatorUpdate as TendermintAbciValidatorUpdate, - VoteInfo as TendermintAbciVoteInfo, - ExtendedVoteInfo as TendermintAbciExtendedVoteInfo, - Misbehavior as TendermintAbciMisbehavior, - Snapshot as TendermintAbciSnapshot, -} from "./tendermint/abci/types_pb.js"; -export { - ABCIEchoService as TendermintAbciABCIEchoService, - ABCIFlushService as TendermintAbciABCIFlushService, - ABCIInfoService as TendermintAbciABCIInfoService, - ABCICheckTxService as TendermintAbciABCICheckTxService, - ABCIQueryService as TendermintAbciABCIQueryService, - ABCICommitService as TendermintAbciABCICommitService, - ABCIInitChainService as TendermintAbciABCIInitChainService, - ABCIListSnapshotsService as TendermintAbciABCIListSnapshotsService, - ABCIOfferSnapshotService as TendermintAbciABCIOfferSnapshotService, - ABCILoadSnapshotChunkService as TendermintAbciABCILoadSnapshotChunkService, - ABCIApplySnapshotChunkService as TendermintAbciABCIApplySnapshotChunkService, - ABCIPrepareProposalService as TendermintAbciABCIPrepareProposalService, - ABCIProcessProposalService as TendermintAbciABCIProcessProposalService, - ABCIExtendVoteService as TendermintAbciABCIExtendVoteService, - ABCIVerifyVoteExtensionService as TendermintAbciABCIVerifyVoteExtensionService, - ABCIFinalizeBlockService as TendermintAbciABCIFinalizeBlockService, -} from "./tendermint/abci/types_@onsonr/es.js"; -export { - MsgUpdateParams as SvcV1MsgUpdateParams, - MsgUpdateParamsResponse as SvcV1MsgUpdateParamsResponse, - MsgRegisterService as SvcV1MsgRegisterService, - MsgRegisterServiceResponse as SvcV1MsgRegisterServiceResponse, -} from "./svc/v1/tx_pb.js"; -export { - MsgUpdateParamsService as SvcV1MsgUpdateParamsService, - MsgRegisterServiceService as SvcV1MsgRegisterServiceService, -} from "./svc/v1/tx_@onsonr/es.js"; -export { - Domain as SvcV1Domain, - Metadata as SvcV1Metadata, -} from "./svc/v1/state_pb.js"; -export { - QueryParamsRequest as SvcV1QueryParamsRequest, - QueryParamsResponse as SvcV1QueryParamsResponse, -} from "./svc/v1/query_pb.js"; -export { - QueryParamsService as SvcV1QueryParamsService, -} from "./svc/v1/query_@onsonr/es.js"; -export { - GenesisState as SvcV1GenesisState, - Params as SvcV1Params, - ServiceCategories as SvcV1ServiceCategories, - ServiceTypes as SvcV1ServiceTypes, - Service as SvcV1Service, -} from "./svc/v1/genesis_pb.js"; -export { - Module as SvcModuleV1Module, -} from "./svc/module/v1/module_pb.js"; -export { - MsgSetValidatorSetPreference as OsmosisValsetprefV1beta1MsgSetValidatorSetPreference, - MsgSetValidatorSetPreferenceResponse as OsmosisValsetprefV1beta1MsgSetValidatorSetPreferenceResponse, - MsgDelegateToValidatorSet as OsmosisValsetprefV1beta1MsgDelegateToValidatorSet, - MsgDelegateToValidatorSetResponse as OsmosisValsetprefV1beta1MsgDelegateToValidatorSetResponse, - MsgUndelegateFromValidatorSet as OsmosisValsetprefV1beta1MsgUndelegateFromValidatorSet, - MsgUndelegateFromValidatorSetResponse as OsmosisValsetprefV1beta1MsgUndelegateFromValidatorSetResponse, - MsgUndelegateFromRebalancedValidatorSet as OsmosisValsetprefV1beta1MsgUndelegateFromRebalancedValidatorSet, - MsgUndelegateFromRebalancedValidatorSetResponse as OsmosisValsetprefV1beta1MsgUndelegateFromRebalancedValidatorSetResponse, - MsgRedelegateValidatorSet as OsmosisValsetprefV1beta1MsgRedelegateValidatorSet, - MsgRedelegateValidatorSetResponse as OsmosisValsetprefV1beta1MsgRedelegateValidatorSetResponse, - MsgWithdrawDelegationRewards as OsmosisValsetprefV1beta1MsgWithdrawDelegationRewards, - MsgWithdrawDelegationRewardsResponse as OsmosisValsetprefV1beta1MsgWithdrawDelegationRewardsResponse, - MsgDelegateBondedTokens as OsmosisValsetprefV1beta1MsgDelegateBondedTokens, - MsgDelegateBondedTokensResponse as OsmosisValsetprefV1beta1MsgDelegateBondedTokensResponse, -} from "./osmosis/valsetpref/v1beta1/tx_pb.js"; -export { - MsgSetValidatorSetPreferenceService as OsmosisValsetprefV1beta1MsgSetValidatorSetPreferenceService, - MsgDelegateToValidatorSetService as OsmosisValsetprefV1beta1MsgDelegateToValidatorSetService, - MsgUndelegateFromValidatorSetService as OsmosisValsetprefV1beta1MsgUndelegateFromValidatorSetService, - MsgUndelegateFromRebalancedValidatorSetService as OsmosisValsetprefV1beta1MsgUndelegateFromRebalancedValidatorSetService, - MsgRedelegateValidatorSetService as OsmosisValsetprefV1beta1MsgRedelegateValidatorSetService, - MsgWithdrawDelegationRewardsService as OsmosisValsetprefV1beta1MsgWithdrawDelegationRewardsService, - MsgDelegateBondedTokensService as OsmosisValsetprefV1beta1MsgDelegateBondedTokensService, -} from "./osmosis/valsetpref/v1beta1/tx_@onsonr/es.js"; -export { - ValidatorPreference as OsmosisValsetprefV1beta1ValidatorPreference, - ValidatorSetPreferences as OsmosisValsetprefV1beta1ValidatorSetPreferences, -} from "./osmosis/valsetpref/v1beta1/state_pb.js"; -export { - UserValidatorPreferencesRequest as OsmosisValsetprefV1beta1UserValidatorPreferencesRequest, - UserValidatorPreferencesResponse as OsmosisValsetprefV1beta1UserValidatorPreferencesResponse, -} from "./osmosis/valsetpref/v1beta1/query_pb.js"; -export { - QueryUserValidatorPreferencesService as OsmosisValsetprefV1beta1QueryUserValidatorPreferencesService, -} from "./osmosis/valsetpref/v1beta1/query_@onsonr/es.js"; -export { - MsgSetFeeTokens as OsmosisTxfeesV1beta1MsgSetFeeTokens, - MsgSetFeeTokensResponse as OsmosisTxfeesV1beta1MsgSetFeeTokensResponse, -} from "./osmosis/txfees/v1beta1/tx_pb.js"; -export { - MsgSetFeeTokensService as OsmosisTxfeesV1beta1MsgSetFeeTokensService, -} from "./osmosis/txfees/v1beta1/tx_@onsonr/es.js"; -export { - QueryFeeTokensRequest as OsmosisTxfeesV1beta1QueryFeeTokensRequest, - QueryFeeTokensResponse as OsmosisTxfeesV1beta1QueryFeeTokensResponse, - QueryDenomSpotPriceRequest as OsmosisTxfeesV1beta1QueryDenomSpotPriceRequest, - QueryDenomSpotPriceResponse as OsmosisTxfeesV1beta1QueryDenomSpotPriceResponse, - QueryDenomPoolIdRequest as OsmosisTxfeesV1beta1QueryDenomPoolIdRequest, - QueryDenomPoolIdResponse as OsmosisTxfeesV1beta1QueryDenomPoolIdResponse, - QueryBaseDenomRequest as OsmosisTxfeesV1beta1QueryBaseDenomRequest, - QueryBaseDenomResponse as OsmosisTxfeesV1beta1QueryBaseDenomResponse, - QueryEipBaseFeeRequest as OsmosisTxfeesV1beta1QueryEipBaseFeeRequest, - QueryEipBaseFeeResponse as OsmosisTxfeesV1beta1QueryEipBaseFeeResponse, -} from "./osmosis/txfees/v1beta1/query_pb.js"; -export { - QueryFeeTokensService as OsmosisTxfeesV1beta1QueryFeeTokensService, - QueryDenomSpotPriceService as OsmosisTxfeesV1beta1QueryDenomSpotPriceService, - QueryDenomPoolIdService as OsmosisTxfeesV1beta1QueryDenomPoolIdService, - QueryBaseDenomService as OsmosisTxfeesV1beta1QueryBaseDenomService, - QueryGetEipBaseFeeService as OsmosisTxfeesV1beta1QueryGetEipBaseFeeService, -} from "./osmosis/txfees/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisTxfeesV1beta1Params, -} from "./osmosis/txfees/v1beta1/params_pb.js"; -export { - UpdateFeeTokenProposal as OsmosisTxfeesV1beta1UpdateFeeTokenProposal, -} from "./osmosis/txfees/v1beta1/gov_pb.js"; -export { - GenesisState as OsmosisTxfeesV1beta1GenesisState, - TxFeesTracker as OsmosisTxfeesV1beta1TxFeesTracker, -} from "./osmosis/txfees/v1beta1/genesis_pb.js"; -export { - FeeToken as OsmosisTxfeesV1beta1FeeToken, -} from "./osmosis/txfees/v1beta1/feetoken_pb.js"; -export { - TwapRecord as OsmosisTwapV1beta1TwapRecord, - PruningState as OsmosisTwapV1beta1PruningState, -} from "./osmosis/twap/v1beta1/twap_record_pb.js"; -export { - ArithmeticTwapRequest as OsmosisTwapV1beta1ArithmeticTwapRequest, - ArithmeticTwapResponse as OsmosisTwapV1beta1ArithmeticTwapResponse, - ArithmeticTwapToNowRequest as OsmosisTwapV1beta1ArithmeticTwapToNowRequest, - ArithmeticTwapToNowResponse as OsmosisTwapV1beta1ArithmeticTwapToNowResponse, - GeometricTwapRequest as OsmosisTwapV1beta1GeometricTwapRequest, - GeometricTwapResponse as OsmosisTwapV1beta1GeometricTwapResponse, - GeometricTwapToNowRequest as OsmosisTwapV1beta1GeometricTwapToNowRequest, - GeometricTwapToNowResponse as OsmosisTwapV1beta1GeometricTwapToNowResponse, - ParamsRequest as OsmosisTwapV1beta1ParamsRequest, - ParamsResponse as OsmosisTwapV1beta1ParamsResponse, -} from "./osmosis/twap/v1beta1/query_pb.js"; -export { - QueryParamsService as OsmosisTwapV1beta1QueryParamsService, - QueryArithmeticTwapService as OsmosisTwapV1beta1QueryArithmeticTwapService, - QueryArithmeticTwapToNowService as OsmosisTwapV1beta1QueryArithmeticTwapToNowService, - QueryGeometricTwapService as OsmosisTwapV1beta1QueryGeometricTwapService, - QueryGeometricTwapToNowService as OsmosisTwapV1beta1QueryGeometricTwapToNowService, -} from "./osmosis/twap/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisTwapV1beta1Params, - GenesisState as OsmosisTwapV1beta1GenesisState, -} from "./osmosis/twap/v1beta1/genesis_pb.js"; -export { - MsgCreateDenom as OsmosisTokenfactoryV1beta1MsgCreateDenom, - MsgCreateDenomResponse as OsmosisTokenfactoryV1beta1MsgCreateDenomResponse, - MsgMint as OsmosisTokenfactoryV1beta1MsgMint, - MsgMintResponse as OsmosisTokenfactoryV1beta1MsgMintResponse, - MsgBurn as OsmosisTokenfactoryV1beta1MsgBurn, - MsgBurnResponse as OsmosisTokenfactoryV1beta1MsgBurnResponse, - MsgChangeAdmin as OsmosisTokenfactoryV1beta1MsgChangeAdmin, - MsgChangeAdminResponse as OsmosisTokenfactoryV1beta1MsgChangeAdminResponse, - MsgSetBeforeSendHook as OsmosisTokenfactoryV1beta1MsgSetBeforeSendHook, - MsgSetBeforeSendHookResponse as OsmosisTokenfactoryV1beta1MsgSetBeforeSendHookResponse, - MsgSetDenomMetadata as OsmosisTokenfactoryV1beta1MsgSetDenomMetadata, - MsgSetDenomMetadataResponse as OsmosisTokenfactoryV1beta1MsgSetDenomMetadataResponse, - MsgForceTransfer as OsmosisTokenfactoryV1beta1MsgForceTransfer, - MsgForceTransferResponse as OsmosisTokenfactoryV1beta1MsgForceTransferResponse, -} from "./osmosis/tokenfactory/v1beta1/tx_pb.js"; -export { - MsgCreateDenomService as OsmosisTokenfactoryV1beta1MsgCreateDenomService, - MsgMintService as OsmosisTokenfactoryV1beta1MsgMintService, - MsgBurnService as OsmosisTokenfactoryV1beta1MsgBurnService, - MsgChangeAdminService as OsmosisTokenfactoryV1beta1MsgChangeAdminService, - MsgSetDenomMetadataService as OsmosisTokenfactoryV1beta1MsgSetDenomMetadataService, - MsgSetBeforeSendHookService as OsmosisTokenfactoryV1beta1MsgSetBeforeSendHookService, - MsgForceTransferService as OsmosisTokenfactoryV1beta1MsgForceTransferService, -} from "./osmosis/tokenfactory/v1beta1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as OsmosisTokenfactoryV1beta1QueryParamsRequest, - QueryParamsResponse as OsmosisTokenfactoryV1beta1QueryParamsResponse, - QueryDenomAuthorityMetadataRequest as OsmosisTokenfactoryV1beta1QueryDenomAuthorityMetadataRequest, - QueryDenomAuthorityMetadataResponse as OsmosisTokenfactoryV1beta1QueryDenomAuthorityMetadataResponse, - QueryDenomsFromCreatorRequest as OsmosisTokenfactoryV1beta1QueryDenomsFromCreatorRequest, - QueryDenomsFromCreatorResponse as OsmosisTokenfactoryV1beta1QueryDenomsFromCreatorResponse, - QueryBeforeSendHookAddressRequest as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressRequest, - QueryBeforeSendHookAddressResponse as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressResponse, - QueryAllBeforeSendHooksAddressesRequest as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesRequest, - QueryAllBeforeSendHooksAddressesResponse as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesResponse, -} from "./osmosis/tokenfactory/v1beta1/query_pb.js"; -export { - QueryParamsService as OsmosisTokenfactoryV1beta1QueryParamsService, - QueryDenomAuthorityMetadataService as OsmosisTokenfactoryV1beta1QueryDenomAuthorityMetadataService, - QueryDenomsFromCreatorService as OsmosisTokenfactoryV1beta1QueryDenomsFromCreatorService, - QueryBeforeSendHookAddressService as OsmosisTokenfactoryV1beta1QueryBeforeSendHookAddressService, - QueryAllBeforeSendHooksAddressesService as OsmosisTokenfactoryV1beta1QueryAllBeforeSendHooksAddressesService, -} from "./osmosis/tokenfactory/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisTokenfactoryV1beta1Params, -} from "./osmosis/tokenfactory/v1beta1/params_pb.js"; -export { - GenesisState as OsmosisTokenfactoryV1beta1GenesisState, - GenesisDenom as OsmosisTokenfactoryV1beta1GenesisDenom, -} from "./osmosis/tokenfactory/v1beta1/genesis_pb.js"; -export { - DenomAuthorityMetadata as OsmosisTokenfactoryV1beta1DenomAuthorityMetadata, -} from "./osmosis/tokenfactory/v1beta1/authorityMetadata_pb.js"; -export { - MsgSuperfluidDelegate as OsmosisSuperfluidMsgSuperfluidDelegate, - MsgSuperfluidDelegateResponse as OsmosisSuperfluidMsgSuperfluidDelegateResponse, - MsgSuperfluidUndelegate as OsmosisSuperfluidMsgSuperfluidUndelegate, - MsgSuperfluidUndelegateResponse as OsmosisSuperfluidMsgSuperfluidUndelegateResponse, - MsgSuperfluidUnbondLock as OsmosisSuperfluidMsgSuperfluidUnbondLock, - MsgSuperfluidUnbondLockResponse as OsmosisSuperfluidMsgSuperfluidUnbondLockResponse, - MsgSuperfluidUndelegateAndUnbondLock as OsmosisSuperfluidMsgSuperfluidUndelegateAndUnbondLock, - MsgSuperfluidUndelegateAndUnbondLockResponse as OsmosisSuperfluidMsgSuperfluidUndelegateAndUnbondLockResponse, - MsgLockAndSuperfluidDelegate as OsmosisSuperfluidMsgLockAndSuperfluidDelegate, - MsgLockAndSuperfluidDelegateResponse as OsmosisSuperfluidMsgLockAndSuperfluidDelegateResponse, - MsgCreateFullRangePositionAndSuperfluidDelegate as OsmosisSuperfluidMsgCreateFullRangePositionAndSuperfluidDelegate, - MsgCreateFullRangePositionAndSuperfluidDelegateResponse as OsmosisSuperfluidMsgCreateFullRangePositionAndSuperfluidDelegateResponse, - MsgUnPoolWhitelistedPool as OsmosisSuperfluidMsgUnPoolWhitelistedPool, - MsgUnPoolWhitelistedPoolResponse as OsmosisSuperfluidMsgUnPoolWhitelistedPoolResponse, - MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition as OsmosisSuperfluidMsgUnlockAndMigrateSharesToFullRangeConcentratedPosition, - MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse as OsmosisSuperfluidMsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse, - MsgAddToConcentratedLiquiditySuperfluidPosition as OsmosisSuperfluidMsgAddToConcentratedLiquiditySuperfluidPosition, - MsgAddToConcentratedLiquiditySuperfluidPositionResponse as OsmosisSuperfluidMsgAddToConcentratedLiquiditySuperfluidPositionResponse, - MsgUnbondConvertAndStake as OsmosisSuperfluidMsgUnbondConvertAndStake, - MsgUnbondConvertAndStakeResponse as OsmosisSuperfluidMsgUnbondConvertAndStakeResponse, -} from "./osmosis/superfluid/tx_pb.js"; -export { - MsgSuperfluidDelegateService as OsmosisSuperfluidMsgSuperfluidDelegateService, - MsgSuperfluidUndelegateService as OsmosisSuperfluidMsgSuperfluidUndelegateService, - MsgSuperfluidUnbondLockService as OsmosisSuperfluidMsgSuperfluidUnbondLockService, - MsgSuperfluidUndelegateAndUnbondLockService as OsmosisSuperfluidMsgSuperfluidUndelegateAndUnbondLockService, - MsgLockAndSuperfluidDelegateService as OsmosisSuperfluidMsgLockAndSuperfluidDelegateService, - MsgCreateFullRangePositionAndSuperfluidDelegateService as OsmosisSuperfluidMsgCreateFullRangePositionAndSuperfluidDelegateService, - MsgUnPoolWhitelistedPoolService as OsmosisSuperfluidMsgUnPoolWhitelistedPoolService, - MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionService as OsmosisSuperfluidMsgUnlockAndMigrateSharesToFullRangeConcentratedPositionService, - MsgAddToConcentratedLiquiditySuperfluidPositionService as OsmosisSuperfluidMsgAddToConcentratedLiquiditySuperfluidPositionService, - MsgUnbondConvertAndStakeService as OsmosisSuperfluidMsgUnbondConvertAndStakeService, -} from "./osmosis/superfluid/tx_@onsonr/es.js"; -export { - SuperfluidAssetType as OsmosisSuperfluidSuperfluidAssetType, - SuperfluidAsset as OsmosisSuperfluidSuperfluidAsset, - SuperfluidIntermediaryAccount as OsmosisSuperfluidSuperfluidIntermediaryAccount, - OsmoEquivalentMultiplierRecord as OsmosisSuperfluidOsmoEquivalentMultiplierRecord, - SuperfluidDelegationRecord as OsmosisSuperfluidSuperfluidDelegationRecord, - LockIdIntermediaryAccountConnection as OsmosisSuperfluidLockIdIntermediaryAccountConnection, - UnpoolWhitelistedPools as OsmosisSuperfluidUnpoolWhitelistedPools, - ConcentratedPoolUserPositionRecord as OsmosisSuperfluidConcentratedPoolUserPositionRecord, -} from "./osmosis/superfluid/superfluid_pb.js"; -export { - QueryParamsRequest as OsmosisSuperfluidQueryParamsRequest, - QueryParamsResponse as OsmosisSuperfluidQueryParamsResponse, - AssetTypeRequest as OsmosisSuperfluidAssetTypeRequest, - AssetTypeResponse as OsmosisSuperfluidAssetTypeResponse, - AllAssetsRequest as OsmosisSuperfluidAllAssetsRequest, - AllAssetsResponse as OsmosisSuperfluidAllAssetsResponse, - AssetMultiplierRequest as OsmosisSuperfluidAssetMultiplierRequest, - AssetMultiplierResponse as OsmosisSuperfluidAssetMultiplierResponse, - SuperfluidIntermediaryAccountInfo as OsmosisSuperfluidSuperfluidIntermediaryAccountInfo, - AllIntermediaryAccountsRequest as OsmosisSuperfluidAllIntermediaryAccountsRequest, - AllIntermediaryAccountsResponse as OsmosisSuperfluidAllIntermediaryAccountsResponse, - ConnectedIntermediaryAccountRequest as OsmosisSuperfluidConnectedIntermediaryAccountRequest, - ConnectedIntermediaryAccountResponse as OsmosisSuperfluidConnectedIntermediaryAccountResponse, - QueryTotalDelegationByValidatorForDenomRequest as OsmosisSuperfluidQueryTotalDelegationByValidatorForDenomRequest, - QueryTotalDelegationByValidatorForDenomResponse as OsmosisSuperfluidQueryTotalDelegationByValidatorForDenomResponse, - Delegations as OsmosisSuperfluidDelegations, - TotalSuperfluidDelegationsRequest as OsmosisSuperfluidTotalSuperfluidDelegationsRequest, - TotalSuperfluidDelegationsResponse as OsmosisSuperfluidTotalSuperfluidDelegationsResponse, - SuperfluidDelegationAmountRequest as OsmosisSuperfluidSuperfluidDelegationAmountRequest, - SuperfluidDelegationAmountResponse as OsmosisSuperfluidSuperfluidDelegationAmountResponse, - SuperfluidDelegationsByDelegatorRequest as OsmosisSuperfluidSuperfluidDelegationsByDelegatorRequest, - SuperfluidDelegationsByDelegatorResponse as OsmosisSuperfluidSuperfluidDelegationsByDelegatorResponse, - SuperfluidUndelegationsByDelegatorRequest as OsmosisSuperfluidSuperfluidUndelegationsByDelegatorRequest, - SuperfluidUndelegationsByDelegatorResponse as OsmosisSuperfluidSuperfluidUndelegationsByDelegatorResponse, - SuperfluidDelegationsByValidatorDenomRequest as OsmosisSuperfluidSuperfluidDelegationsByValidatorDenomRequest, - SuperfluidDelegationsByValidatorDenomResponse as OsmosisSuperfluidSuperfluidDelegationsByValidatorDenomResponse, - EstimateSuperfluidDelegatedAmountByValidatorDenomRequest as OsmosisSuperfluidEstimateSuperfluidDelegatedAmountByValidatorDenomRequest, - EstimateSuperfluidDelegatedAmountByValidatorDenomResponse as OsmosisSuperfluidEstimateSuperfluidDelegatedAmountByValidatorDenomResponse, - QueryTotalDelegationByDelegatorRequest as OsmosisSuperfluidQueryTotalDelegationByDelegatorRequest, - QueryTotalDelegationByDelegatorResponse as OsmosisSuperfluidQueryTotalDelegationByDelegatorResponse, - QueryUnpoolWhitelistRequest as OsmosisSuperfluidQueryUnpoolWhitelistRequest, - QueryUnpoolWhitelistResponse as OsmosisSuperfluidQueryUnpoolWhitelistResponse, - UserConcentratedSuperfluidPositionsDelegatedRequest as OsmosisSuperfluidUserConcentratedSuperfluidPositionsDelegatedRequest, - UserConcentratedSuperfluidPositionsDelegatedResponse as OsmosisSuperfluidUserConcentratedSuperfluidPositionsDelegatedResponse, - UserConcentratedSuperfluidPositionsUndelegatingRequest as OsmosisSuperfluidUserConcentratedSuperfluidPositionsUndelegatingRequest, - UserConcentratedSuperfluidPositionsUndelegatingResponse as OsmosisSuperfluidUserConcentratedSuperfluidPositionsUndelegatingResponse, - QueryRestSupplyRequest as OsmosisSuperfluidQueryRestSupplyRequest, - QueryRestSupplyResponse as OsmosisSuperfluidQueryRestSupplyResponse, -} from "./osmosis/superfluid/query_pb.js"; -export { - QueryParamsService as OsmosisSuperfluidQueryParamsService, - QueryAssetTypeService as OsmosisSuperfluidQueryAssetTypeService, - QueryAllAssetsService as OsmosisSuperfluidQueryAllAssetsService, - QueryAssetMultiplierService as OsmosisSuperfluidQueryAssetMultiplierService, - QueryAllIntermediaryAccountsService as OsmosisSuperfluidQueryAllIntermediaryAccountsService, - QueryConnectedIntermediaryAccountService as OsmosisSuperfluidQueryConnectedIntermediaryAccountService, - QueryTotalDelegationByValidatorForDenomService as OsmosisSuperfluidQueryTotalDelegationByValidatorForDenomService, - QueryTotalSuperfluidDelegationsService as OsmosisSuperfluidQueryTotalSuperfluidDelegationsService, - QuerySuperfluidDelegationAmountService as OsmosisSuperfluidQuerySuperfluidDelegationAmountService, - QuerySuperfluidDelegationsByDelegatorService as OsmosisSuperfluidQuerySuperfluidDelegationsByDelegatorService, - QuerySuperfluidUndelegationsByDelegatorService as OsmosisSuperfluidQuerySuperfluidUndelegationsByDelegatorService, - QuerySuperfluidDelegationsByValidatorDenomService as OsmosisSuperfluidQuerySuperfluidDelegationsByValidatorDenomService, - QueryEstimateSuperfluidDelegatedAmountByValidatorDenomService as OsmosisSuperfluidQueryEstimateSuperfluidDelegatedAmountByValidatorDenomService, - QueryTotalDelegationByDelegatorService as OsmosisSuperfluidQueryTotalDelegationByDelegatorService, - QueryUnpoolWhitelistService as OsmosisSuperfluidQueryUnpoolWhitelistService, - QueryUserConcentratedSuperfluidPositionsDelegatedService as OsmosisSuperfluidQueryUserConcentratedSuperfluidPositionsDelegatedService, - QueryUserConcentratedSuperfluidPositionsUndelegatingService as OsmosisSuperfluidQueryUserConcentratedSuperfluidPositionsUndelegatingService, - QueryRestSupplyService as OsmosisSuperfluidQueryRestSupplyService, -} from "./osmosis/superfluid/query_@onsonr/es.js"; -export { - Params as OsmosisSuperfluidParams, -} from "./osmosis/superfluid/params_pb.js"; -export { - GenesisState as OsmosisSuperfluidGenesisState, -} from "./osmosis/superfluid/genesis_pb.js"; -export { - SetSuperfluidAssetsProposal as OsmosisSuperfluidV1beta1SetSuperfluidAssetsProposal, - RemoveSuperfluidAssetsProposal as OsmosisSuperfluidV1beta1RemoveSuperfluidAssetsProposal, - UpdateUnpoolWhiteListProposal as OsmosisSuperfluidV1beta1UpdateUnpoolWhiteListProposal, -} from "./osmosis/superfluid/v1beta1/gov_pb.js"; -export { - Node as OsmosisStoreV1beta1Node, - Child as OsmosisStoreV1beta1Child, - Leaf as OsmosisStoreV1beta1Leaf, -} from "./osmosis/store/v1beta1/tree_pb.js"; -export { - MsgAddAuthenticator as OsmosisSmartaccountV1beta1MsgAddAuthenticator, - MsgAddAuthenticatorResponse as OsmosisSmartaccountV1beta1MsgAddAuthenticatorResponse, - MsgRemoveAuthenticator as OsmosisSmartaccountV1beta1MsgRemoveAuthenticator, - MsgRemoveAuthenticatorResponse as OsmosisSmartaccountV1beta1MsgRemoveAuthenticatorResponse, - MsgSetActiveState as OsmosisSmartaccountV1beta1MsgSetActiveState, - MsgSetActiveStateResponse as OsmosisSmartaccountV1beta1MsgSetActiveStateResponse, - TxExtension as OsmosisSmartaccountV1beta1TxExtension, -} from "./osmosis/smartaccount/v1beta1/tx_pb.js"; -export { - MsgAddAuthenticatorService as OsmosisSmartaccountV1beta1MsgAddAuthenticatorService, - MsgRemoveAuthenticatorService as OsmosisSmartaccountV1beta1MsgRemoveAuthenticatorService, - MsgSetActiveStateService as OsmosisSmartaccountV1beta1MsgSetActiveStateService, -} from "./osmosis/smartaccount/v1beta1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as OsmosisSmartaccountV1beta1QueryParamsRequest, - QueryParamsResponse as OsmosisSmartaccountV1beta1QueryParamsResponse, - GetAuthenticatorsRequest as OsmosisSmartaccountV1beta1GetAuthenticatorsRequest, - GetAuthenticatorsResponse as OsmosisSmartaccountV1beta1GetAuthenticatorsResponse, - GetAuthenticatorRequest as OsmosisSmartaccountV1beta1GetAuthenticatorRequest, - GetAuthenticatorResponse as OsmosisSmartaccountV1beta1GetAuthenticatorResponse, -} from "./osmosis/smartaccount/v1beta1/query_pb.js"; -export { - QueryParamsService as OsmosisSmartaccountV1beta1QueryParamsService, - QueryGetAuthenticatorService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorService, - QueryGetAuthenticatorsService as OsmosisSmartaccountV1beta1QueryGetAuthenticatorsService, -} from "./osmosis/smartaccount/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisSmartaccountV1beta1Params, -} from "./osmosis/smartaccount/v1beta1/params_pb.js"; -export { - AccountAuthenticator as OsmosisSmartaccountV1beta1AccountAuthenticator, -} from "./osmosis/smartaccount/v1beta1/models_pb.js"; -export { - AuthenticatorData as OsmosisSmartaccountV1beta1AuthenticatorData, - GenesisState as OsmosisSmartaccountV1beta1GenesisState, -} from "./osmosis/smartaccount/v1beta1/genesis_pb.js"; -export { - MsgSetHotRoutes as OsmosisProtorevV1beta1MsgSetHotRoutes, - MsgSetHotRoutesResponse as OsmosisProtorevV1beta1MsgSetHotRoutesResponse, - MsgSetDeveloperAccount as OsmosisProtorevV1beta1MsgSetDeveloperAccount, - MsgSetDeveloperAccountResponse as OsmosisProtorevV1beta1MsgSetDeveloperAccountResponse, - MsgSetInfoByPoolType as OsmosisProtorevV1beta1MsgSetInfoByPoolType, - MsgSetInfoByPoolTypeResponse as OsmosisProtorevV1beta1MsgSetInfoByPoolTypeResponse, - MsgSetMaxPoolPointsPerTx as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerTx, - MsgSetMaxPoolPointsPerTxResponse as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerTxResponse, - MsgSetMaxPoolPointsPerBlock as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerBlock, - MsgSetMaxPoolPointsPerBlockResponse as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerBlockResponse, - MsgSetBaseDenoms as OsmosisProtorevV1beta1MsgSetBaseDenoms, - MsgSetBaseDenomsResponse as OsmosisProtorevV1beta1MsgSetBaseDenomsResponse, - MsgSetPoolWeights as OsmosisProtorevV1beta1MsgSetPoolWeights, -} from "./osmosis/protorev/v1beta1/tx_pb.js"; -export { - MsgSetHotRoutesService as OsmosisProtorevV1beta1MsgSetHotRoutesService, - MsgSetDeveloperAccountService as OsmosisProtorevV1beta1MsgSetDeveloperAccountService, - MsgSetMaxPoolPointsPerTxService as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerTxService, - MsgSetMaxPoolPointsPerBlockService as OsmosisProtorevV1beta1MsgSetMaxPoolPointsPerBlockService, - MsgSetInfoByPoolTypeService as OsmosisProtorevV1beta1MsgSetInfoByPoolTypeService, - MsgSetBaseDenomsService as OsmosisProtorevV1beta1MsgSetBaseDenomsService, -} from "./osmosis/protorev/v1beta1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as OsmosisProtorevV1beta1QueryParamsRequest, - QueryParamsResponse as OsmosisProtorevV1beta1QueryParamsResponse, - QueryGetProtoRevNumberOfTradesRequest as OsmosisProtorevV1beta1QueryGetProtoRevNumberOfTradesRequest, - QueryGetProtoRevNumberOfTradesResponse as OsmosisProtorevV1beta1QueryGetProtoRevNumberOfTradesResponse, - QueryGetProtoRevProfitsByDenomRequest as OsmosisProtorevV1beta1QueryGetProtoRevProfitsByDenomRequest, - QueryGetProtoRevProfitsByDenomResponse as OsmosisProtorevV1beta1QueryGetProtoRevProfitsByDenomResponse, - QueryGetProtoRevAllProfitsRequest as OsmosisProtorevV1beta1QueryGetProtoRevAllProfitsRequest, - QueryGetProtoRevAllProfitsResponse as OsmosisProtorevV1beta1QueryGetProtoRevAllProfitsResponse, - QueryGetProtoRevStatisticsByRouteRequest as OsmosisProtorevV1beta1QueryGetProtoRevStatisticsByRouteRequest, - QueryGetProtoRevStatisticsByRouteResponse as OsmosisProtorevV1beta1QueryGetProtoRevStatisticsByRouteResponse, - QueryGetProtoRevAllRouteStatisticsRequest as OsmosisProtorevV1beta1QueryGetProtoRevAllRouteStatisticsRequest, - QueryGetProtoRevAllRouteStatisticsResponse as OsmosisProtorevV1beta1QueryGetProtoRevAllRouteStatisticsResponse, - QueryGetProtoRevTokenPairArbRoutesRequest as OsmosisProtorevV1beta1QueryGetProtoRevTokenPairArbRoutesRequest, - QueryGetProtoRevTokenPairArbRoutesResponse as OsmosisProtorevV1beta1QueryGetProtoRevTokenPairArbRoutesResponse, - QueryGetProtoRevAdminAccountRequest as OsmosisProtorevV1beta1QueryGetProtoRevAdminAccountRequest, - QueryGetProtoRevAdminAccountResponse as OsmosisProtorevV1beta1QueryGetProtoRevAdminAccountResponse, - QueryGetProtoRevDeveloperAccountRequest as OsmosisProtorevV1beta1QueryGetProtoRevDeveloperAccountRequest, - QueryGetProtoRevDeveloperAccountResponse as OsmosisProtorevV1beta1QueryGetProtoRevDeveloperAccountResponse, - QueryGetProtoRevInfoByPoolTypeRequest as OsmosisProtorevV1beta1QueryGetProtoRevInfoByPoolTypeRequest, - QueryGetProtoRevInfoByPoolTypeResponse as OsmosisProtorevV1beta1QueryGetProtoRevInfoByPoolTypeResponse, - QueryGetProtoRevMaxPoolPointsPerBlockRequest as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerBlockRequest, - QueryGetProtoRevMaxPoolPointsPerBlockResponse as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerBlockResponse, - QueryGetProtoRevMaxPoolPointsPerTxRequest as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerTxRequest, - QueryGetProtoRevMaxPoolPointsPerTxResponse as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerTxResponse, - QueryGetProtoRevBaseDenomsRequest as OsmosisProtorevV1beta1QueryGetProtoRevBaseDenomsRequest, - QueryGetProtoRevBaseDenomsResponse as OsmosisProtorevV1beta1QueryGetProtoRevBaseDenomsResponse, - QueryGetProtoRevEnabledRequest as OsmosisProtorevV1beta1QueryGetProtoRevEnabledRequest, - QueryGetProtoRevEnabledResponse as OsmosisProtorevV1beta1QueryGetProtoRevEnabledResponse, - QueryGetProtoRevPoolRequest as OsmosisProtorevV1beta1QueryGetProtoRevPoolRequest, - QueryGetProtoRevPoolResponse as OsmosisProtorevV1beta1QueryGetProtoRevPoolResponse, - QueryGetAllProtocolRevenueRequest as OsmosisProtorevV1beta1QueryGetAllProtocolRevenueRequest, - QueryGetAllProtocolRevenueResponse as OsmosisProtorevV1beta1QueryGetAllProtocolRevenueResponse, -} from "./osmosis/protorev/v1beta1/query_pb.js"; -export { - QueryParamsService as OsmosisProtorevV1beta1QueryParamsService, - QueryGetProtoRevNumberOfTradesService as OsmosisProtorevV1beta1QueryGetProtoRevNumberOfTradesService, - QueryGetProtoRevProfitsByDenomService as OsmosisProtorevV1beta1QueryGetProtoRevProfitsByDenomService, - QueryGetProtoRevAllProfitsService as OsmosisProtorevV1beta1QueryGetProtoRevAllProfitsService, - QueryGetProtoRevStatisticsByRouteService as OsmosisProtorevV1beta1QueryGetProtoRevStatisticsByRouteService, - QueryGetProtoRevAllRouteStatisticsService as OsmosisProtorevV1beta1QueryGetProtoRevAllRouteStatisticsService, - QueryGetProtoRevTokenPairArbRoutesService as OsmosisProtorevV1beta1QueryGetProtoRevTokenPairArbRoutesService, - QueryGetProtoRevAdminAccountService as OsmosisProtorevV1beta1QueryGetProtoRevAdminAccountService, - QueryGetProtoRevDeveloperAccountService as OsmosisProtorevV1beta1QueryGetProtoRevDeveloperAccountService, - QueryGetProtoRevInfoByPoolTypeService as OsmosisProtorevV1beta1QueryGetProtoRevInfoByPoolTypeService, - QueryGetProtoRevMaxPoolPointsPerTxService as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerTxService, - QueryGetProtoRevMaxPoolPointsPerBlockService as OsmosisProtorevV1beta1QueryGetProtoRevMaxPoolPointsPerBlockService, - QueryGetProtoRevBaseDenomsService as OsmosisProtorevV1beta1QueryGetProtoRevBaseDenomsService, - QueryGetProtoRevEnabledService as OsmosisProtorevV1beta1QueryGetProtoRevEnabledService, - QueryGetProtoRevPoolService as OsmosisProtorevV1beta1QueryGetProtoRevPoolService, - QueryGetAllProtocolRevenueService as OsmosisProtorevV1beta1QueryGetAllProtocolRevenueService, -} from "./osmosis/protorev/v1beta1/query_@onsonr/es.js"; -export { - TokenPairArbRoutes as OsmosisProtorevV1beta1TokenPairArbRoutes, - Route as OsmosisProtorevV1beta1Route, - Trade as OsmosisProtorevV1beta1Trade, - RouteStatistics as OsmosisProtorevV1beta1RouteStatistics, - PoolWeights as OsmosisProtorevV1beta1PoolWeights, - InfoByPoolType as OsmosisProtorevV1beta1InfoByPoolType, - StablePoolInfo as OsmosisProtorevV1beta1StablePoolInfo, - BalancerPoolInfo as OsmosisProtorevV1beta1BalancerPoolInfo, - ConcentratedPoolInfo as OsmosisProtorevV1beta1ConcentratedPoolInfo, - CosmwasmPoolInfo as OsmosisProtorevV1beta1CosmwasmPoolInfo, - WeightMap as OsmosisProtorevV1beta1WeightMap, - BaseDenom as OsmosisProtorevV1beta1BaseDenom, - BaseDenoms as OsmosisProtorevV1beta1BaseDenoms, - AllProtocolRevenue as OsmosisProtorevV1beta1AllProtocolRevenue, - CyclicArbTracker as OsmosisProtorevV1beta1CyclicArbTracker, -} from "./osmosis/protorev/v1beta1/protorev_pb.js"; -export { - Params as OsmosisProtorevV1beta1Params, -} from "./osmosis/protorev/v1beta1/params_pb.js"; -export { - SetProtoRevEnabledProposal as OsmosisProtorevV1beta1SetProtoRevEnabledProposal, - SetProtoRevAdminAccountProposal as OsmosisProtorevV1beta1SetProtoRevAdminAccountProposal, -} from "./osmosis/protorev/v1beta1/gov_pb.js"; -export { - GenesisState as OsmosisProtorevV1beta1GenesisState, -} from "./osmosis/protorev/v1beta1/genesis_pb.js"; -export { - SpotPriceRequest as OsmosisPoolmanagerV2SpotPriceRequest, - SpotPriceResponse as OsmosisPoolmanagerV2SpotPriceResponse, -} from "./osmosis/poolmanager/v2/query_pb.js"; -export { - QuerySpotPriceV2Service as OsmosisPoolmanagerV2QuerySpotPriceV2Service, -} from "./osmosis/poolmanager/v2/query_@onsonr/es.js"; -export { - MsgSwapExactAmountIn as OsmosisPoolmanagerV1beta1MsgSwapExactAmountIn, - MsgSwapExactAmountInResponse as OsmosisPoolmanagerV1beta1MsgSwapExactAmountInResponse, - MsgSplitRouteSwapExactAmountIn as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountIn, - MsgSplitRouteSwapExactAmountInResponse as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountInResponse, - MsgSwapExactAmountOut as OsmosisPoolmanagerV1beta1MsgSwapExactAmountOut, - MsgSwapExactAmountOutResponse as OsmosisPoolmanagerV1beta1MsgSwapExactAmountOutResponse, - MsgSplitRouteSwapExactAmountOut as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountOut, - MsgSplitRouteSwapExactAmountOutResponse as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountOutResponse, - MsgSetDenomPairTakerFee as OsmosisPoolmanagerV1beta1MsgSetDenomPairTakerFee, - MsgSetDenomPairTakerFeeResponse as OsmosisPoolmanagerV1beta1MsgSetDenomPairTakerFeeResponse, - MsgSetTakerFeeShareAgreementForDenom as OsmosisPoolmanagerV1beta1MsgSetTakerFeeShareAgreementForDenom, - MsgSetTakerFeeShareAgreementForDenomResponse as OsmosisPoolmanagerV1beta1MsgSetTakerFeeShareAgreementForDenomResponse, - MsgSetRegisteredAlloyedPool as OsmosisPoolmanagerV1beta1MsgSetRegisteredAlloyedPool, - MsgSetRegisteredAlloyedPoolResponse as OsmosisPoolmanagerV1beta1MsgSetRegisteredAlloyedPoolResponse, - DenomPairTakerFee as OsmosisPoolmanagerV1beta1DenomPairTakerFee, -} from "./osmosis/poolmanager/v1beta1/tx_pb.js"; -export { - MsgSwapExactAmountInService as OsmosisPoolmanagerV1beta1MsgSwapExactAmountInService, - MsgSwapExactAmountOutService as OsmosisPoolmanagerV1beta1MsgSwapExactAmountOutService, - MsgSplitRouteSwapExactAmountInService as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountInService, - MsgSplitRouteSwapExactAmountOutService as OsmosisPoolmanagerV1beta1MsgSplitRouteSwapExactAmountOutService, - MsgSetDenomPairTakerFeeService as OsmosisPoolmanagerV1beta1MsgSetDenomPairTakerFeeService, - MsgSetTakerFeeShareAgreementForDenomService as OsmosisPoolmanagerV1beta1MsgSetTakerFeeShareAgreementForDenomService, - MsgSetRegisteredAlloyedPoolService as OsmosisPoolmanagerV1beta1MsgSetRegisteredAlloyedPoolService, -} from "./osmosis/poolmanager/v1beta1/tx_@onsonr/es.js"; -export { - TrackedVolume as OsmosisPoolmanagerV1beta1TrackedVolume, -} from "./osmosis/poolmanager/v1beta1/tracked_volume_pb.js"; -export { - TakerFeeShareAgreement as OsmosisPoolmanagerV1beta1TakerFeeShareAgreement, - TakerFeeSkimAccumulator as OsmosisPoolmanagerV1beta1TakerFeeSkimAccumulator, - AlloyContractTakerFeeShareState as OsmosisPoolmanagerV1beta1AlloyContractTakerFeeShareState, -} from "./osmosis/poolmanager/v1beta1/taker_fee_share_pb.js"; -export { - SwapAmountInRoute as OsmosisPoolmanagerV1beta1SwapAmountInRoute, - SwapAmountOutRoute as OsmosisPoolmanagerV1beta1SwapAmountOutRoute, - SwapAmountInSplitRoute as OsmosisPoolmanagerV1beta1SwapAmountInSplitRoute, - SwapAmountOutSplitRoute as OsmosisPoolmanagerV1beta1SwapAmountOutSplitRoute, -} from "./osmosis/poolmanager/v1beta1/swap_route_pb.js"; -export { - ParamsRequest as OsmosisPoolmanagerV1beta1ParamsRequest, - ParamsResponse as OsmosisPoolmanagerV1beta1ParamsResponse, - EstimateSwapExactAmountInRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountInRequest, - EstimateSwapExactAmountInWithPrimitiveTypesRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountInWithPrimitiveTypesRequest, - EstimateSinglePoolSwapExactAmountInRequest as OsmosisPoolmanagerV1beta1EstimateSinglePoolSwapExactAmountInRequest, - EstimateSwapExactAmountInResponse as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountInResponse, - EstimateSwapExactAmountOutRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountOutRequest, - EstimateSwapExactAmountOutWithPrimitiveTypesRequest as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountOutWithPrimitiveTypesRequest, - EstimateSinglePoolSwapExactAmountOutRequest as OsmosisPoolmanagerV1beta1EstimateSinglePoolSwapExactAmountOutRequest, - EstimateSwapExactAmountOutResponse as OsmosisPoolmanagerV1beta1EstimateSwapExactAmountOutResponse, - NumPoolsRequest as OsmosisPoolmanagerV1beta1NumPoolsRequest, - NumPoolsResponse as OsmosisPoolmanagerV1beta1NumPoolsResponse, - PoolRequest as OsmosisPoolmanagerV1beta1PoolRequest, - PoolResponse as OsmosisPoolmanagerV1beta1PoolResponse, - AllPoolsRequest as OsmosisPoolmanagerV1beta1AllPoolsRequest, - AllPoolsResponse as OsmosisPoolmanagerV1beta1AllPoolsResponse, - ListPoolsByDenomRequest as OsmosisPoolmanagerV1beta1ListPoolsByDenomRequest, - ListPoolsByDenomResponse as OsmosisPoolmanagerV1beta1ListPoolsByDenomResponse, - SpotPriceRequest as OsmosisPoolmanagerV1beta1SpotPriceRequest, - SpotPriceResponse as OsmosisPoolmanagerV1beta1SpotPriceResponse, - TotalPoolLiquidityRequest as OsmosisPoolmanagerV1beta1TotalPoolLiquidityRequest, - TotalPoolLiquidityResponse as OsmosisPoolmanagerV1beta1TotalPoolLiquidityResponse, - TotalLiquidityRequest as OsmosisPoolmanagerV1beta1TotalLiquidityRequest, - TotalLiquidityResponse as OsmosisPoolmanagerV1beta1TotalLiquidityResponse, - TotalVolumeForPoolRequest as OsmosisPoolmanagerV1beta1TotalVolumeForPoolRequest, - TotalVolumeForPoolResponse as OsmosisPoolmanagerV1beta1TotalVolumeForPoolResponse, - TradingPairTakerFeeRequest as OsmosisPoolmanagerV1beta1TradingPairTakerFeeRequest, - TradingPairTakerFeeResponse as OsmosisPoolmanagerV1beta1TradingPairTakerFeeResponse, - EstimateTradeBasedOnPriceImpactRequest as OsmosisPoolmanagerV1beta1EstimateTradeBasedOnPriceImpactRequest, - EstimateTradeBasedOnPriceImpactResponse as OsmosisPoolmanagerV1beta1EstimateTradeBasedOnPriceImpactResponse, - AllTakerFeeShareAgreementsRequest as OsmosisPoolmanagerV1beta1AllTakerFeeShareAgreementsRequest, - AllTakerFeeShareAgreementsResponse as OsmosisPoolmanagerV1beta1AllTakerFeeShareAgreementsResponse, - TakerFeeShareAgreementFromDenomRequest as OsmosisPoolmanagerV1beta1TakerFeeShareAgreementFromDenomRequest, - TakerFeeShareAgreementFromDenomResponse as OsmosisPoolmanagerV1beta1TakerFeeShareAgreementFromDenomResponse, - TakerFeeShareDenomsToAccruedValueRequest as OsmosisPoolmanagerV1beta1TakerFeeShareDenomsToAccruedValueRequest, - TakerFeeShareDenomsToAccruedValueResponse as OsmosisPoolmanagerV1beta1TakerFeeShareDenomsToAccruedValueResponse, - AllTakerFeeShareAccumulatorsRequest as OsmosisPoolmanagerV1beta1AllTakerFeeShareAccumulatorsRequest, - AllTakerFeeShareAccumulatorsResponse as OsmosisPoolmanagerV1beta1AllTakerFeeShareAccumulatorsResponse, - RegisteredAlloyedPoolFromDenomRequest as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromDenomRequest, - RegisteredAlloyedPoolFromDenomResponse as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromDenomResponse, - RegisteredAlloyedPoolFromPoolIdRequest as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromPoolIdRequest, - RegisteredAlloyedPoolFromPoolIdResponse as OsmosisPoolmanagerV1beta1RegisteredAlloyedPoolFromPoolIdResponse, - AllRegisteredAlloyedPoolsRequest as OsmosisPoolmanagerV1beta1AllRegisteredAlloyedPoolsRequest, - AllRegisteredAlloyedPoolsResponse as OsmosisPoolmanagerV1beta1AllRegisteredAlloyedPoolsResponse, -} from "./osmosis/poolmanager/v1beta1/query_pb.js"; -export { - QueryParamsService as OsmosisPoolmanagerV1beta1QueryParamsService, - QueryEstimateSwapExactAmountInService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountInService, - QueryEstimateSwapExactAmountInWithPrimitiveTypesService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountInWithPrimitiveTypesService, - QueryEstimateSinglePoolSwapExactAmountInService as OsmosisPoolmanagerV1beta1QueryEstimateSinglePoolSwapExactAmountInService, - QueryEstimateSwapExactAmountOutService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountOutService, - QueryEstimateSwapExactAmountOutWithPrimitiveTypesService as OsmosisPoolmanagerV1beta1QueryEstimateSwapExactAmountOutWithPrimitiveTypesService, - QueryEstimateSinglePoolSwapExactAmountOutService as OsmosisPoolmanagerV1beta1QueryEstimateSinglePoolSwapExactAmountOutService, - QueryNumPoolsService as OsmosisPoolmanagerV1beta1QueryNumPoolsService, - QueryPoolService as OsmosisPoolmanagerV1beta1QueryPoolService, - QueryAllPoolsService as OsmosisPoolmanagerV1beta1QueryAllPoolsService, - QueryListPoolsByDenomService as OsmosisPoolmanagerV1beta1QueryListPoolsByDenomService, - QuerySpotPriceService as OsmosisPoolmanagerV1beta1QuerySpotPriceService, - QueryTotalPoolLiquidityService as OsmosisPoolmanagerV1beta1QueryTotalPoolLiquidityService, - QueryTotalLiquidityService as OsmosisPoolmanagerV1beta1QueryTotalLiquidityService, - QueryTotalVolumeForPoolService as OsmosisPoolmanagerV1beta1QueryTotalVolumeForPoolService, - QueryTradingPairTakerFeeService as OsmosisPoolmanagerV1beta1QueryTradingPairTakerFeeService, - QueryEstimateTradeBasedOnPriceImpactService as OsmosisPoolmanagerV1beta1QueryEstimateTradeBasedOnPriceImpactService, - QueryAllTakerFeeShareAgreementsService as OsmosisPoolmanagerV1beta1QueryAllTakerFeeShareAgreementsService, - QueryTakerFeeShareAgreementFromDenomService as OsmosisPoolmanagerV1beta1QueryTakerFeeShareAgreementFromDenomService, - QueryTakerFeeShareDenomsToAccruedValueService as OsmosisPoolmanagerV1beta1QueryTakerFeeShareDenomsToAccruedValueService, - QueryAllTakerFeeShareAccumulatorsService as OsmosisPoolmanagerV1beta1QueryAllTakerFeeShareAccumulatorsService, - QueryRegisteredAlloyedPoolFromDenomService as OsmosisPoolmanagerV1beta1QueryRegisteredAlloyedPoolFromDenomService, - QueryRegisteredAlloyedPoolFromPoolIdService as OsmosisPoolmanagerV1beta1QueryRegisteredAlloyedPoolFromPoolIdService, - QueryAllRegisteredAlloyedPoolsService as OsmosisPoolmanagerV1beta1QueryAllRegisteredAlloyedPoolsService, -} from "./osmosis/poolmanager/v1beta1/query_@onsonr/es.js"; -export { - PoolType as OsmosisPoolmanagerV1beta1PoolType, - ModuleRoute as OsmosisPoolmanagerV1beta1ModuleRoute, -} from "./osmosis/poolmanager/v1beta1/module_route_pb.js"; -export { - DenomPairTakerFeeProposal as OsmosisPoolmanagerV1beta1DenomPairTakerFeeProposal, -} from "./osmosis/poolmanager/v1beta1/gov_pb.js"; -export { - Params as OsmosisPoolmanagerV1beta1Params, - GenesisState as OsmosisPoolmanagerV1beta1GenesisState, - TakerFeeParams as OsmosisPoolmanagerV1beta1TakerFeeParams, - TakerFeeDistributionPercentage as OsmosisPoolmanagerV1beta1TakerFeeDistributionPercentage, - TakerFeesTracker as OsmosisPoolmanagerV1beta1TakerFeesTracker, - PoolVolume as OsmosisPoolmanagerV1beta1PoolVolume, -} from "./osmosis/poolmanager/v1beta1/genesis_pb.js"; -export { - MigrationRecords as OsmosisPoolincentivesV1beta1MigrationRecords, - BalancerToConcentratedPoolLink as OsmosisPoolincentivesV1beta1BalancerToConcentratedPoolLink, -} from "./osmosis/poolincentives/v1beta1/shared_pb.js"; -export { - QueryGaugeIdsRequest as OsmosisPoolincentivesV1beta1QueryGaugeIdsRequest, - QueryGaugeIdsResponse as OsmosisPoolincentivesV1beta1QueryGaugeIdsResponse, - QueryGaugeIdsResponse_GaugeIdWithDuration as OsmosisPoolincentivesV1beta1QueryGaugeIdsResponse_GaugeIdWithDuration, - QueryDistrInfoRequest as OsmosisPoolincentivesV1beta1QueryDistrInfoRequest, - QueryDistrInfoResponse as OsmosisPoolincentivesV1beta1QueryDistrInfoResponse, - QueryParamsRequest as OsmosisPoolincentivesV1beta1QueryParamsRequest, - QueryParamsResponse as OsmosisPoolincentivesV1beta1QueryParamsResponse, - QueryLockableDurationsRequest as OsmosisPoolincentivesV1beta1QueryLockableDurationsRequest, - QueryLockableDurationsResponse as OsmosisPoolincentivesV1beta1QueryLockableDurationsResponse, - QueryIncentivizedPoolsRequest as OsmosisPoolincentivesV1beta1QueryIncentivizedPoolsRequest, - IncentivizedPool as OsmosisPoolincentivesV1beta1IncentivizedPool, - QueryIncentivizedPoolsResponse as OsmosisPoolincentivesV1beta1QueryIncentivizedPoolsResponse, - QueryExternalIncentiveGaugesRequest as OsmosisPoolincentivesV1beta1QueryExternalIncentiveGaugesRequest, - QueryExternalIncentiveGaugesResponse as OsmosisPoolincentivesV1beta1QueryExternalIncentiveGaugesResponse, -} from "./osmosis/poolincentives/v1beta1/query_pb.js"; -export { - QueryGaugeIdsService as OsmosisPoolincentivesV1beta1QueryGaugeIdsService, - QueryDistrInfoService as OsmosisPoolincentivesV1beta1QueryDistrInfoService, - QueryParamsService as OsmosisPoolincentivesV1beta1QueryParamsService, - QueryLockableDurationsService as OsmosisPoolincentivesV1beta1QueryLockableDurationsService, - QueryIncentivizedPoolsService as OsmosisPoolincentivesV1beta1QueryIncentivizedPoolsService, - QueryExternalIncentiveGaugesService as OsmosisPoolincentivesV1beta1QueryExternalIncentiveGaugesService, -} from "./osmosis/poolincentives/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisPoolincentivesV1beta1Params, - LockableDurationsInfo as OsmosisPoolincentivesV1beta1LockableDurationsInfo, - DistrInfo as OsmosisPoolincentivesV1beta1DistrInfo, - DistrRecord as OsmosisPoolincentivesV1beta1DistrRecord, - PoolToGauge as OsmosisPoolincentivesV1beta1PoolToGauge, - AnyPoolToInternalGauges as OsmosisPoolincentivesV1beta1AnyPoolToInternalGauges, - ConcentratedPoolToNoLockGauges as OsmosisPoolincentivesV1beta1ConcentratedPoolToNoLockGauges, -} from "./osmosis/poolincentives/v1beta1/incentives_pb.js"; -export { - ReplacePoolIncentivesProposal as OsmosisPoolincentivesV1beta1ReplacePoolIncentivesProposal, - UpdatePoolIncentivesProposal as OsmosisPoolincentivesV1beta1UpdatePoolIncentivesProposal, -} from "./osmosis/poolincentives/v1beta1/gov_pb.js"; -export { - GenesisState as OsmosisPoolincentivesV1beta1GenesisState, -} from "./osmosis/poolincentives/v1beta1/genesis_pb.js"; -export { - QueryParamsRequest as OsmosisMintV1beta1QueryParamsRequest, - QueryParamsResponse as OsmosisMintV1beta1QueryParamsResponse, - QueryEpochProvisionsRequest as OsmosisMintV1beta1QueryEpochProvisionsRequest, - QueryEpochProvisionsResponse as OsmosisMintV1beta1QueryEpochProvisionsResponse, -} from "./osmosis/mint/v1beta1/query_pb.js"; -export { - QueryParamsService as OsmosisMintV1beta1QueryParamsService, - QueryEpochProvisionsService as OsmosisMintV1beta1QueryEpochProvisionsService, -} from "./osmosis/mint/v1beta1/query_@onsonr/es.js"; -export { - Minter as OsmosisMintV1beta1Minter, - WeightedAddress as OsmosisMintV1beta1WeightedAddress, - DistributionProportions as OsmosisMintV1beta1DistributionProportions, - Params as OsmosisMintV1beta1Params, -} from "./osmosis/mint/v1beta1/mint_pb.js"; -export { - GenesisState as OsmosisMintV1beta1GenesisState, -} from "./osmosis/mint/v1beta1/genesis_pb.js"; -export { - MsgLockTokens as OsmosisLockupMsgLockTokens, - MsgLockTokensResponse as OsmosisLockupMsgLockTokensResponse, - MsgBeginUnlockingAll as OsmosisLockupMsgBeginUnlockingAll, - MsgBeginUnlockingAllResponse as OsmosisLockupMsgBeginUnlockingAllResponse, - MsgBeginUnlocking as OsmosisLockupMsgBeginUnlocking, - MsgBeginUnlockingResponse as OsmosisLockupMsgBeginUnlockingResponse, - MsgExtendLockup as OsmosisLockupMsgExtendLockup, - MsgExtendLockupResponse as OsmosisLockupMsgExtendLockupResponse, - MsgForceUnlock as OsmosisLockupMsgForceUnlock, - MsgForceUnlockResponse as OsmosisLockupMsgForceUnlockResponse, - MsgSetRewardReceiverAddress as OsmosisLockupMsgSetRewardReceiverAddress, - MsgSetRewardReceiverAddressResponse as OsmosisLockupMsgSetRewardReceiverAddressResponse, - MsgUnlockPeriodLock as OsmosisLockupMsgUnlockPeriodLock, - MsgUnlockTokens as OsmosisLockupMsgUnlockTokens, -} from "./osmosis/lockup/tx_pb.js"; -export { - MsgLockTokensService as OsmosisLockupMsgLockTokensService, - MsgBeginUnlockingAllService as OsmosisLockupMsgBeginUnlockingAllService, - MsgBeginUnlockingService as OsmosisLockupMsgBeginUnlockingService, - MsgExtendLockupService as OsmosisLockupMsgExtendLockupService, - MsgForceUnlockService as OsmosisLockupMsgForceUnlockService, - MsgSetRewardReceiverAddressService as OsmosisLockupMsgSetRewardReceiverAddressService, -} from "./osmosis/lockup/tx_@onsonr/es.js"; -export { - ModuleBalanceRequest as OsmosisLockupModuleBalanceRequest, - ModuleBalanceResponse as OsmosisLockupModuleBalanceResponse, - ModuleLockedAmountRequest as OsmosisLockupModuleLockedAmountRequest, - ModuleLockedAmountResponse as OsmosisLockupModuleLockedAmountResponse, - AccountUnlockableCoinsRequest as OsmosisLockupAccountUnlockableCoinsRequest, - AccountUnlockableCoinsResponse as OsmosisLockupAccountUnlockableCoinsResponse, - AccountUnlockingCoinsRequest as OsmosisLockupAccountUnlockingCoinsRequest, - AccountUnlockingCoinsResponse as OsmosisLockupAccountUnlockingCoinsResponse, - AccountLockedCoinsRequest as OsmosisLockupAccountLockedCoinsRequest, - AccountLockedCoinsResponse as OsmosisLockupAccountLockedCoinsResponse, - AccountLockedPastTimeRequest as OsmosisLockupAccountLockedPastTimeRequest, - AccountLockedPastTimeResponse as OsmosisLockupAccountLockedPastTimeResponse, - AccountLockedPastTimeNotUnlockingOnlyRequest as OsmosisLockupAccountLockedPastTimeNotUnlockingOnlyRequest, - AccountLockedPastTimeNotUnlockingOnlyResponse as OsmosisLockupAccountLockedPastTimeNotUnlockingOnlyResponse, - AccountUnlockedBeforeTimeRequest as OsmosisLockupAccountUnlockedBeforeTimeRequest, - AccountUnlockedBeforeTimeResponse as OsmosisLockupAccountUnlockedBeforeTimeResponse, - AccountLockedPastTimeDenomRequest as OsmosisLockupAccountLockedPastTimeDenomRequest, - AccountLockedPastTimeDenomResponse as OsmosisLockupAccountLockedPastTimeDenomResponse, - LockedDenomRequest as OsmosisLockupLockedDenomRequest, - LockedDenomResponse as OsmosisLockupLockedDenomResponse, - LockedRequest as OsmosisLockupLockedRequest, - LockedResponse as OsmosisLockupLockedResponse, - LockRewardReceiverRequest as OsmosisLockupLockRewardReceiverRequest, - LockRewardReceiverResponse as OsmosisLockupLockRewardReceiverResponse, - NextLockIDRequest as OsmosisLockupNextLockIDRequest, - NextLockIDResponse as OsmosisLockupNextLockIDResponse, - SyntheticLockupsByLockupIDRequest as OsmosisLockupSyntheticLockupsByLockupIDRequest, - SyntheticLockupsByLockupIDResponse as OsmosisLockupSyntheticLockupsByLockupIDResponse, - SyntheticLockupByLockupIDRequest as OsmosisLockupSyntheticLockupByLockupIDRequest, - SyntheticLockupByLockupIDResponse as OsmosisLockupSyntheticLockupByLockupIDResponse, - AccountLockedLongerDurationRequest as OsmosisLockupAccountLockedLongerDurationRequest, - AccountLockedLongerDurationResponse as OsmosisLockupAccountLockedLongerDurationResponse, - AccountLockedDurationRequest as OsmosisLockupAccountLockedDurationRequest, - AccountLockedDurationResponse as OsmosisLockupAccountLockedDurationResponse, - AccountLockedLongerDurationNotUnlockingOnlyRequest as OsmosisLockupAccountLockedLongerDurationNotUnlockingOnlyRequest, - AccountLockedLongerDurationNotUnlockingOnlyResponse as OsmosisLockupAccountLockedLongerDurationNotUnlockingOnlyResponse, - AccountLockedLongerDurationDenomRequest as OsmosisLockupAccountLockedLongerDurationDenomRequest, - AccountLockedLongerDurationDenomResponse as OsmosisLockupAccountLockedLongerDurationDenomResponse, - QueryParamsRequest as OsmosisLockupQueryParamsRequest, - QueryParamsResponse as OsmosisLockupQueryParamsResponse, -} from "./osmosis/lockup/query_pb.js"; -export { - QueryModuleBalanceService as OsmosisLockupQueryModuleBalanceService, - QueryModuleLockedAmountService as OsmosisLockupQueryModuleLockedAmountService, - QueryAccountUnlockableCoinsService as OsmosisLockupQueryAccountUnlockableCoinsService, - QueryAccountUnlockingCoinsService as OsmosisLockupQueryAccountUnlockingCoinsService, - QueryAccountLockedCoinsService as OsmosisLockupQueryAccountLockedCoinsService, - QueryAccountLockedPastTimeService as OsmosisLockupQueryAccountLockedPastTimeService, - QueryAccountLockedPastTimeNotUnlockingOnlyService as OsmosisLockupQueryAccountLockedPastTimeNotUnlockingOnlyService, - QueryAccountUnlockedBeforeTimeService as OsmosisLockupQueryAccountUnlockedBeforeTimeService, - QueryAccountLockedPastTimeDenomService as OsmosisLockupQueryAccountLockedPastTimeDenomService, - QueryLockedDenomService as OsmosisLockupQueryLockedDenomService, - QueryLockedByIDService as OsmosisLockupQueryLockedByIDService, - QueryLockRewardReceiverService as OsmosisLockupQueryLockRewardReceiverService, - QueryNextLockIDService as OsmosisLockupQueryNextLockIDService, - QuerySyntheticLockupsByLockupIDService as OsmosisLockupQuerySyntheticLockupsByLockupIDService, - QuerySyntheticLockupByLockupIDService as OsmosisLockupQuerySyntheticLockupByLockupIDService, - QueryAccountLockedLongerDurationService as OsmosisLockupQueryAccountLockedLongerDurationService, - QueryAccountLockedDurationService as OsmosisLockupQueryAccountLockedDurationService, - QueryAccountLockedLongerDurationNotUnlockingOnlyService as OsmosisLockupQueryAccountLockedLongerDurationNotUnlockingOnlyService, - QueryAccountLockedLongerDurationDenomService as OsmosisLockupQueryAccountLockedLongerDurationDenomService, - QueryParamsService as OsmosisLockupQueryParamsService, -} from "./osmosis/lockup/query_@onsonr/es.js"; -export { - Params as OsmosisLockupParams, -} from "./osmosis/lockup/params_pb.js"; -export { - LockQueryType as OsmosisLockupLockQueryType, - PeriodLock as OsmosisLockupPeriodLock, - QueryCondition as OsmosisLockupQueryCondition, - SyntheticLock as OsmosisLockupSyntheticLock, -} from "./osmosis/lockup/lock_pb.js"; -export { - GenesisState as OsmosisLockupGenesisState, -} from "./osmosis/lockup/genesis_pb.js"; -export { - MsgCreateGauge as OsmosisIncentivesMsgCreateGauge, - MsgCreateGaugeResponse as OsmosisIncentivesMsgCreateGaugeResponse, - MsgAddToGauge as OsmosisIncentivesMsgAddToGauge, - MsgAddToGaugeResponse as OsmosisIncentivesMsgAddToGaugeResponse, - MsgCreateGroup as OsmosisIncentivesMsgCreateGroup, - MsgCreateGroupResponse as OsmosisIncentivesMsgCreateGroupResponse, -} from "./osmosis/incentives/tx_pb.js"; -export { - MsgCreateGaugeService as OsmosisIncentivesMsgCreateGaugeService, - MsgAddToGaugeService as OsmosisIncentivesMsgAddToGaugeService, - MsgCreateGroupService as OsmosisIncentivesMsgCreateGroupService, -} from "./osmosis/incentives/tx_@onsonr/es.js"; -export { - ModuleToDistributeCoinsRequest as OsmosisIncentivesModuleToDistributeCoinsRequest, - ModuleToDistributeCoinsResponse as OsmosisIncentivesModuleToDistributeCoinsResponse, - GaugeByIDRequest as OsmosisIncentivesGaugeByIDRequest, - GaugeByIDResponse as OsmosisIncentivesGaugeByIDResponse, - GaugesRequest as OsmosisIncentivesGaugesRequest, - GaugesResponse as OsmosisIncentivesGaugesResponse, - ActiveGaugesRequest as OsmosisIncentivesActiveGaugesRequest, - ActiveGaugesResponse as OsmosisIncentivesActiveGaugesResponse, - ActiveGaugesPerDenomRequest as OsmosisIncentivesActiveGaugesPerDenomRequest, - ActiveGaugesPerDenomResponse as OsmosisIncentivesActiveGaugesPerDenomResponse, - UpcomingGaugesRequest as OsmosisIncentivesUpcomingGaugesRequest, - UpcomingGaugesResponse as OsmosisIncentivesUpcomingGaugesResponse, - UpcomingGaugesPerDenomRequest as OsmosisIncentivesUpcomingGaugesPerDenomRequest, - UpcomingGaugesPerDenomResponse as OsmosisIncentivesUpcomingGaugesPerDenomResponse, - RewardsEstRequest as OsmosisIncentivesRewardsEstRequest, - RewardsEstResponse as OsmosisIncentivesRewardsEstResponse, - QueryLockableDurationsRequest as OsmosisIncentivesQueryLockableDurationsRequest, - QueryLockableDurationsResponse as OsmosisIncentivesQueryLockableDurationsResponse, - QueryAllGroupsRequest as OsmosisIncentivesQueryAllGroupsRequest, - QueryAllGroupsResponse as OsmosisIncentivesQueryAllGroupsResponse, - QueryAllGroupsGaugesRequest as OsmosisIncentivesQueryAllGroupsGaugesRequest, - QueryAllGroupsGaugesResponse as OsmosisIncentivesQueryAllGroupsGaugesResponse, - QueryAllGroupsWithGaugeRequest as OsmosisIncentivesQueryAllGroupsWithGaugeRequest, - QueryAllGroupsWithGaugeResponse as OsmosisIncentivesQueryAllGroupsWithGaugeResponse, - QueryGroupByGroupGaugeIDRequest as OsmosisIncentivesQueryGroupByGroupGaugeIDRequest, - QueryGroupByGroupGaugeIDResponse as OsmosisIncentivesQueryGroupByGroupGaugeIDResponse, - QueryCurrentWeightByGroupGaugeIDRequest as OsmosisIncentivesQueryCurrentWeightByGroupGaugeIDRequest, - QueryCurrentWeightByGroupGaugeIDResponse as OsmosisIncentivesQueryCurrentWeightByGroupGaugeIDResponse, - GaugeWeight as OsmosisIncentivesGaugeWeight, - QueryInternalGaugesRequest as OsmosisIncentivesQueryInternalGaugesRequest, - QueryInternalGaugesResponse as OsmosisIncentivesQueryInternalGaugesResponse, - QueryExternalGaugesRequest as OsmosisIncentivesQueryExternalGaugesRequest, - QueryExternalGaugesResponse as OsmosisIncentivesQueryExternalGaugesResponse, - QueryGaugesByPoolIDRequest as OsmosisIncentivesQueryGaugesByPoolIDRequest, - QueryGaugesByPoolIDResponse as OsmosisIncentivesQueryGaugesByPoolIDResponse, - ParamsRequest as OsmosisIncentivesParamsRequest, - ParamsResponse as OsmosisIncentivesParamsResponse, -} from "./osmosis/incentives/query_pb.js"; -export { - QueryModuleToDistributeCoinsService as OsmosisIncentivesQueryModuleToDistributeCoinsService, - QueryGaugeByIDService as OsmosisIncentivesQueryGaugeByIDService, - QueryGaugesService as OsmosisIncentivesQueryGaugesService, - QueryActiveGaugesService as OsmosisIncentivesQueryActiveGaugesService, - QueryActiveGaugesPerDenomService as OsmosisIncentivesQueryActiveGaugesPerDenomService, - QueryUpcomingGaugesService as OsmosisIncentivesQueryUpcomingGaugesService, - QueryUpcomingGaugesPerDenomService as OsmosisIncentivesQueryUpcomingGaugesPerDenomService, - QueryRewardsEstService as OsmosisIncentivesQueryRewardsEstService, - QueryLockableDurationsService as OsmosisIncentivesQueryLockableDurationsService, - QueryAllGroupsService as OsmosisIncentivesQueryAllGroupsService, - QueryAllGroupsGaugesService as OsmosisIncentivesQueryAllGroupsGaugesService, - QueryAllGroupsWithGaugeService as OsmosisIncentivesQueryAllGroupsWithGaugeService, - QueryGroupByGroupGaugeIDService as OsmosisIncentivesQueryGroupByGroupGaugeIDService, - QueryCurrentWeightByGroupGaugeIDService as OsmosisIncentivesQueryCurrentWeightByGroupGaugeIDService, - QueryInternalGaugesService as OsmosisIncentivesQueryInternalGaugesService, - QueryExternalGaugesService as OsmosisIncentivesQueryExternalGaugesService, - QueryGaugesByPoolIDService as OsmosisIncentivesQueryGaugesByPoolIDService, - QueryParamsService as OsmosisIncentivesQueryParamsService, -} from "./osmosis/incentives/query_@onsonr/es.js"; -export { - Params as OsmosisIncentivesParams, -} from "./osmosis/incentives/params_pb.js"; -export { - SplittingPolicy as OsmosisIncentivesSplittingPolicy, - InternalGaugeInfo as OsmosisIncentivesInternalGaugeInfo, - InternalGaugeRecord as OsmosisIncentivesInternalGaugeRecord, - Group as OsmosisIncentivesGroup, - CreateGroup as OsmosisIncentivesCreateGroup, - GroupsWithGauge as OsmosisIncentivesGroupsWithGauge, -} from "./osmosis/incentives/group_pb.js"; -export { - CreateGroupsProposal as OsmosisIncentivesCreateGroupsProposal, -} from "./osmosis/incentives/gov_pb.js"; -export { - GenesisState as OsmosisIncentivesGenesisState, -} from "./osmosis/incentives/genesis_pb.js"; -export { - Gauge as OsmosisIncentivesGauge, - LockableDurationsInfo as OsmosisIncentivesLockableDurationsInfo, -} from "./osmosis/incentives/gauge_pb.js"; -export { - ParamsRequest as OsmosisIbcratelimitV1beta1ParamsRequest, - ParamsResponse as OsmosisIbcratelimitV1beta1ParamsResponse, -} from "./osmosis/ibcratelimit/v1beta1/query_pb.js"; -export { - QueryParamsService as OsmosisIbcratelimitV1beta1QueryParamsService, -} from "./osmosis/ibcratelimit/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisIbcratelimitV1beta1Params, -} from "./osmosis/ibcratelimit/v1beta1/params_pb.js"; -export { - GenesisState as OsmosisIbcratelimitV1beta1GenesisState, -} from "./osmosis/ibcratelimit/v1beta1/genesis_pb.js"; -export { - MsgEmitIBCAck as OsmosisIbchooksMsgEmitIBCAck, - MsgEmitIBCAckResponse as OsmosisIbchooksMsgEmitIBCAckResponse, -} from "./osmosis/ibchooks/tx_pb.js"; -export { - MsgEmitIBCAckService as OsmosisIbchooksMsgEmitIBCAckService, -} from "./osmosis/ibchooks/tx_@onsonr/es.js"; -export { - Params as OsmosisIbchooksParams, -} from "./osmosis/ibchooks/params_pb.js"; -export { - GenesisState as OsmosisIbchooksGenesisState, -} from "./osmosis/ibchooks/genesis_pb.js"; -export { - QuerySpotPriceRequest as OsmosisGammV2QuerySpotPriceRequest, - QuerySpotPriceResponse as OsmosisGammV2QuerySpotPriceResponse, -} from "./osmosis/gamm/v2/query_pb.js"; -export { - QuerySpotPriceService as OsmosisGammV2QuerySpotPriceService, -} from "./osmosis/gamm/v2/query_@onsonr/es.js"; -export { - MsgJoinPool as OsmosisGammV1beta1MsgJoinPool, - MsgJoinPoolResponse as OsmosisGammV1beta1MsgJoinPoolResponse, - MsgExitPool as OsmosisGammV1beta1MsgExitPool, - MsgExitPoolResponse as OsmosisGammV1beta1MsgExitPoolResponse, - MsgSwapExactAmountIn as OsmosisGammV1beta1MsgSwapExactAmountIn, - MsgSwapExactAmountInResponse as OsmosisGammV1beta1MsgSwapExactAmountInResponse, - MsgSwapExactAmountOut as OsmosisGammV1beta1MsgSwapExactAmountOut, - MsgSwapExactAmountOutResponse as OsmosisGammV1beta1MsgSwapExactAmountOutResponse, - MsgJoinSwapExternAmountIn as OsmosisGammV1beta1MsgJoinSwapExternAmountIn, - MsgJoinSwapExternAmountInResponse as OsmosisGammV1beta1MsgJoinSwapExternAmountInResponse, - MsgJoinSwapShareAmountOut as OsmosisGammV1beta1MsgJoinSwapShareAmountOut, - MsgJoinSwapShareAmountOutResponse as OsmosisGammV1beta1MsgJoinSwapShareAmountOutResponse, - MsgExitSwapShareAmountIn as OsmosisGammV1beta1MsgExitSwapShareAmountIn, - MsgExitSwapShareAmountInResponse as OsmosisGammV1beta1MsgExitSwapShareAmountInResponse, - MsgExitSwapExternAmountOut as OsmosisGammV1beta1MsgExitSwapExternAmountOut, - MsgExitSwapExternAmountOutResponse as OsmosisGammV1beta1MsgExitSwapExternAmountOutResponse, -} from "./osmosis/gamm/v1beta1/tx_pb.js"; -export { - MsgJoinPoolService as OsmosisGammV1beta1MsgJoinPoolService, - MsgExitPoolService as OsmosisGammV1beta1MsgExitPoolService, - MsgSwapExactAmountInService as OsmosisGammV1beta1MsgSwapExactAmountInService, - MsgSwapExactAmountOutService as OsmosisGammV1beta1MsgSwapExactAmountOutService, - MsgJoinSwapExternAmountInService as OsmosisGammV1beta1MsgJoinSwapExternAmountInService, - MsgJoinSwapShareAmountOutService as OsmosisGammV1beta1MsgJoinSwapShareAmountOutService, - MsgExitSwapExternAmountOutService as OsmosisGammV1beta1MsgExitSwapExternAmountOutService, - MsgExitSwapShareAmountInService as OsmosisGammV1beta1MsgExitSwapShareAmountInService, -} from "./osmosis/gamm/v1beta1/tx_@onsonr/es.js"; -export { - MigrationRecords as OsmosisGammV1beta1MigrationRecords, - BalancerToConcentratedPoolLink as OsmosisGammV1beta1BalancerToConcentratedPoolLink, -} from "./osmosis/gamm/v1beta1/shared_pb.js"; -export { - ParamsRequest as OsmosisGammV1beta1ParamsRequest, - ParamsResponse as OsmosisGammV1beta1ParamsResponse, - QueryPoolRequest as OsmosisGammV1beta1QueryPoolRequest, - QueryPoolResponse as OsmosisGammV1beta1QueryPoolResponse, - QueryPoolsRequest as OsmosisGammV1beta1QueryPoolsRequest, - QueryPoolsResponse as OsmosisGammV1beta1QueryPoolsResponse, - QueryNumPoolsRequest as OsmosisGammV1beta1QueryNumPoolsRequest, - QueryNumPoolsResponse as OsmosisGammV1beta1QueryNumPoolsResponse, - QueryPoolTypeRequest as OsmosisGammV1beta1QueryPoolTypeRequest, - QueryPoolTypeResponse as OsmosisGammV1beta1QueryPoolTypeResponse, - QueryCalcJoinPoolSharesRequest as OsmosisGammV1beta1QueryCalcJoinPoolSharesRequest, - QueryCalcJoinPoolSharesResponse as OsmosisGammV1beta1QueryCalcJoinPoolSharesResponse, - QueryCalcExitPoolCoinsFromSharesRequest as OsmosisGammV1beta1QueryCalcExitPoolCoinsFromSharesRequest, - QueryCalcExitPoolCoinsFromSharesResponse as OsmosisGammV1beta1QueryCalcExitPoolCoinsFromSharesResponse, - QueryPoolParamsRequest as OsmosisGammV1beta1QueryPoolParamsRequest, - QueryPoolParamsResponse as OsmosisGammV1beta1QueryPoolParamsResponse, - QueryTotalPoolLiquidityRequest as OsmosisGammV1beta1QueryTotalPoolLiquidityRequest, - QueryTotalPoolLiquidityResponse as OsmosisGammV1beta1QueryTotalPoolLiquidityResponse, - QueryTotalSharesRequest as OsmosisGammV1beta1QueryTotalSharesRequest, - QueryTotalSharesResponse as OsmosisGammV1beta1QueryTotalSharesResponse, - QueryCalcJoinPoolNoSwapSharesRequest as OsmosisGammV1beta1QueryCalcJoinPoolNoSwapSharesRequest, - QueryCalcJoinPoolNoSwapSharesResponse as OsmosisGammV1beta1QueryCalcJoinPoolNoSwapSharesResponse, - QuerySpotPriceRequest as OsmosisGammV1beta1QuerySpotPriceRequest, - QueryPoolsWithFilterRequest as OsmosisGammV1beta1QueryPoolsWithFilterRequest, - QueryPoolsWithFilterResponse as OsmosisGammV1beta1QueryPoolsWithFilterResponse, - QuerySpotPriceResponse as OsmosisGammV1beta1QuerySpotPriceResponse, - QuerySwapExactAmountInRequest as OsmosisGammV1beta1QuerySwapExactAmountInRequest, - QuerySwapExactAmountInResponse as OsmosisGammV1beta1QuerySwapExactAmountInResponse, - QuerySwapExactAmountOutRequest as OsmosisGammV1beta1QuerySwapExactAmountOutRequest, - QuerySwapExactAmountOutResponse as OsmosisGammV1beta1QuerySwapExactAmountOutResponse, - QueryTotalLiquidityRequest as OsmosisGammV1beta1QueryTotalLiquidityRequest, - QueryTotalLiquidityResponse as OsmosisGammV1beta1QueryTotalLiquidityResponse, - QueryConcentratedPoolIdLinkFromCFMMRequest as OsmosisGammV1beta1QueryConcentratedPoolIdLinkFromCFMMRequest, - QueryConcentratedPoolIdLinkFromCFMMResponse as OsmosisGammV1beta1QueryConcentratedPoolIdLinkFromCFMMResponse, - QueryCFMMConcentratedPoolLinksRequest as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksRequest, - QueryCFMMConcentratedPoolLinksResponse as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksResponse, -} from "./osmosis/gamm/v1beta1/query_pb.js"; -export { - QueryPoolsService as OsmosisGammV1beta1QueryPoolsService, - QueryNumPoolsService as OsmosisGammV1beta1QueryNumPoolsService, - QueryTotalLiquidityService as OsmosisGammV1beta1QueryTotalLiquidityService, - QueryPoolsWithFilterService as OsmosisGammV1beta1QueryPoolsWithFilterService, - QueryPoolService as OsmosisGammV1beta1QueryPoolService, - QueryPoolTypeService as OsmosisGammV1beta1QueryPoolTypeService, - QueryCalcJoinPoolNoSwapSharesService as OsmosisGammV1beta1QueryCalcJoinPoolNoSwapSharesService, - QueryCalcJoinPoolSharesService as OsmosisGammV1beta1QueryCalcJoinPoolSharesService, - QueryCalcExitPoolCoinsFromSharesService as OsmosisGammV1beta1QueryCalcExitPoolCoinsFromSharesService, - QueryPoolParamsService as OsmosisGammV1beta1QueryPoolParamsService, - QueryTotalPoolLiquidityService as OsmosisGammV1beta1QueryTotalPoolLiquidityService, - QueryTotalSharesService as OsmosisGammV1beta1QueryTotalSharesService, - QuerySpotPriceService as OsmosisGammV1beta1QuerySpotPriceService, - QueryEstimateSwapExactAmountInService as OsmosisGammV1beta1QueryEstimateSwapExactAmountInService, - QueryEstimateSwapExactAmountOutService as OsmosisGammV1beta1QueryEstimateSwapExactAmountOutService, - QueryConcentratedPoolIdLinkFromCFMMService as OsmosisGammV1beta1QueryConcentratedPoolIdLinkFromCFMMService, - QueryCFMMConcentratedPoolLinksService as OsmosisGammV1beta1QueryCFMMConcentratedPoolLinksService, - QueryParamsService as OsmosisGammV1beta1QueryParamsService, -} from "./osmosis/gamm/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisGammV1beta1Params, -} from "./osmosis/gamm/v1beta1/params_pb.js"; -export { - ReplaceMigrationRecordsProposal as OsmosisGammV1beta1ReplaceMigrationRecordsProposal, - UpdateMigrationRecordsProposal as OsmosisGammV1beta1UpdateMigrationRecordsProposal, - PoolRecordWithCFMMLink as OsmosisGammV1beta1PoolRecordWithCFMMLink, - CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal as OsmosisGammV1beta1CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal, - SetScalingFactorControllerProposal as OsmosisGammV1beta1SetScalingFactorControllerProposal, -} from "./osmosis/gamm/v1beta1/gov_pb.js"; -export { - GenesisState as OsmosisGammV1beta1GenesisState, -} from "./osmosis/gamm/v1beta1/genesis_pb.js"; -export { - SmoothWeightChangeParams as OsmosisGammV1beta1SmoothWeightChangeParams, - PoolParams as OsmosisGammV1beta1PoolParams, - PoolAsset as OsmosisGammV1beta1PoolAsset, - Pool as OsmosisGammV1beta1Pool, -} from "./osmosis/gamm/v1beta1/balancerPool_pb.js"; -export { - MsgCreateStableswapPool as OsmosisGammPoolmodelsStableswapV1beta1MsgCreateStableswapPool, - MsgCreateStableswapPoolResponse as OsmosisGammPoolmodelsStableswapV1beta1MsgCreateStableswapPoolResponse, - MsgStableSwapAdjustScalingFactors as OsmosisGammPoolmodelsStableswapV1beta1MsgStableSwapAdjustScalingFactors, - MsgStableSwapAdjustScalingFactorsResponse as OsmosisGammPoolmodelsStableswapV1beta1MsgStableSwapAdjustScalingFactorsResponse, -} from "./osmosis/gamm/poolmodels/stableswap/v1beta1/tx_pb.js"; -export { - MsgCreateStableswapPoolService as OsmosisGammPoolmodelsStableswapV1beta1MsgCreateStableswapPoolService, - MsgStableSwapAdjustScalingFactorsService as OsmosisGammPoolmodelsStableswapV1beta1MsgStableSwapAdjustScalingFactorsService, -} from "./osmosis/gamm/poolmodels/stableswap/v1beta1/tx_@onsonr/es.js"; -export { - PoolParams as OsmosisGammPoolmodelsStableswapV1beta1PoolParams, - Pool as OsmosisGammPoolmodelsStableswapV1beta1Pool, -} from "./osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.js"; -export { - MsgCreateBalancerPool as OsmosisGammPoolmodelsBalancerV1beta1MsgCreateBalancerPool, - MsgCreateBalancerPoolResponse as OsmosisGammPoolmodelsBalancerV1beta1MsgCreateBalancerPoolResponse, -} from "./osmosis/gamm/poolmodels/balancer/v1beta1/tx_pb.js"; -export { - MsgCreateBalancerPoolService as OsmosisGammPoolmodelsBalancerV1beta1MsgCreateBalancerPoolService, -} from "./osmosis/gamm/poolmodels/balancer/v1beta1/tx_@onsonr/es.js"; -export { - QueryEpochsInfoRequest as OsmosisEpochsV1beta1QueryEpochsInfoRequest, - QueryEpochsInfoResponse as OsmosisEpochsV1beta1QueryEpochsInfoResponse, - QueryCurrentEpochRequest as OsmosisEpochsV1beta1QueryCurrentEpochRequest, - QueryCurrentEpochResponse as OsmosisEpochsV1beta1QueryCurrentEpochResponse, -} from "./osmosis/epochs/v1beta1/query_pb.js"; -export { - QueryEpochInfosService as OsmosisEpochsV1beta1QueryEpochInfosService, - QueryCurrentEpochService as OsmosisEpochsV1beta1QueryCurrentEpochService, -} from "./osmosis/epochs/v1beta1/query_@onsonr/es.js"; -export { - EpochInfo as OsmosisEpochsV1beta1EpochInfo, - GenesisState as OsmosisEpochsV1beta1GenesisState, -} from "./osmosis/epochs/v1beta1/genesis_pb.js"; -export { - RecoveredSinceDowntimeOfLengthRequest as OsmosisDowntimedetectorV1beta1RecoveredSinceDowntimeOfLengthRequest, - RecoveredSinceDowntimeOfLengthResponse as OsmosisDowntimedetectorV1beta1RecoveredSinceDowntimeOfLengthResponse, -} from "./osmosis/downtimedetector/v1beta1/query_pb.js"; -export { - QueryRecoveredSinceDowntimeOfLengthService as OsmosisDowntimedetectorV1beta1QueryRecoveredSinceDowntimeOfLengthService, -} from "./osmosis/downtimedetector/v1beta1/query_@onsonr/es.js"; -export { - GenesisDowntimeEntry as OsmosisDowntimedetectorV1beta1GenesisDowntimeEntry, - GenesisState as OsmosisDowntimedetectorV1beta1GenesisState, -} from "./osmosis/downtimedetector/v1beta1/genesis_pb.js"; -export { - Downtime as OsmosisDowntimedetectorV1beta1Downtime, -} from "./osmosis/downtimedetector/v1beta1/downtime_duration_pb.js"; -export { -} from "./osmosis/cosmwasmpool/v1beta1/tx_@onsonr/es.js"; -export { - ParamsRequest as OsmosisCosmwasmpoolV1beta1ParamsRequest, - ParamsResponse as OsmosisCosmwasmpoolV1beta1ParamsResponse, - PoolsRequest as OsmosisCosmwasmpoolV1beta1PoolsRequest, - PoolsResponse as OsmosisCosmwasmpoolV1beta1PoolsResponse, - ContractInfoByPoolIdRequest as OsmosisCosmwasmpoolV1beta1ContractInfoByPoolIdRequest, - ContractInfoByPoolIdResponse as OsmosisCosmwasmpoolV1beta1ContractInfoByPoolIdResponse, -} from "./osmosis/cosmwasmpool/v1beta1/query_pb.js"; -export { - QueryPoolsService as OsmosisCosmwasmpoolV1beta1QueryPoolsService, - QueryParamsService as OsmosisCosmwasmpoolV1beta1QueryParamsService, - QueryContractInfoByPoolIdService as OsmosisCosmwasmpoolV1beta1QueryContractInfoByPoolIdService, -} from "./osmosis/cosmwasmpool/v1beta1/query_@onsonr/es.js"; -export { - Params as OsmosisCosmwasmpoolV1beta1Params, -} from "./osmosis/cosmwasmpool/v1beta1/params_pb.js"; -export { - UploadCosmWasmPoolCodeAndWhiteListProposal as OsmosisCosmwasmpoolV1beta1UploadCosmWasmPoolCodeAndWhiteListProposal, - MigratePoolContractsProposal as OsmosisCosmwasmpoolV1beta1MigratePoolContractsProposal, -} from "./osmosis/cosmwasmpool/v1beta1/gov_pb.js"; -export { - GenesisState as OsmosisCosmwasmpoolV1beta1GenesisState, -} from "./osmosis/cosmwasmpool/v1beta1/genesis_pb.js"; -export { - MsgCreateCosmWasmPool as OsmosisCosmwasmpoolV1beta1ModelMsgCreateCosmWasmPool, - MsgCreateCosmWasmPoolResponse as OsmosisCosmwasmpoolV1beta1ModelMsgCreateCosmWasmPoolResponse, -} from "./osmosis/cosmwasmpool/v1beta1/model/tx_pb.js"; -export { - MsgCreatorCreateCosmWasmPoolService as OsmosisCosmwasmpoolV1beta1ModelMsgCreatorCreateCosmWasmPoolService, -} from "./osmosis/cosmwasmpool/v1beta1/model/tx_@onsonr/es.js"; -export { - EmptyRequest as OsmosisCosmwasmpoolV1beta1ModelEmptyRequest, - JoinPoolExecuteMsgRequest as OsmosisCosmwasmpoolV1beta1ModelJoinPoolExecuteMsgRequest, - JoinPoolExecuteMsgResponse as OsmosisCosmwasmpoolV1beta1ModelJoinPoolExecuteMsgResponse, - ExitPoolExecuteMsgRequest as OsmosisCosmwasmpoolV1beta1ModelExitPoolExecuteMsgRequest, - ExitPoolExecuteMsgResponse as OsmosisCosmwasmpoolV1beta1ModelExitPoolExecuteMsgResponse, -} from "./osmosis/cosmwasmpool/v1beta1/model/transmuter_msgs_pb.js"; -export { - GetSwapFeeQueryMsg as OsmosisCosmwasmpoolV1beta1ModelGetSwapFeeQueryMsg, - GetSwapFeeQueryMsgResponse as OsmosisCosmwasmpoolV1beta1ModelGetSwapFeeQueryMsgResponse, - SpotPrice as OsmosisCosmwasmpoolV1beta1ModelSpotPrice, - SpotPriceQueryMsg as OsmosisCosmwasmpoolV1beta1ModelSpotPriceQueryMsg, - SpotPriceQueryMsgResponse as OsmosisCosmwasmpoolV1beta1ModelSpotPriceQueryMsgResponse, - EmptyStruct as OsmosisCosmwasmpoolV1beta1ModelEmptyStruct, - GetTotalPoolLiquidityQueryMsg as OsmosisCosmwasmpoolV1beta1ModelGetTotalPoolLiquidityQueryMsg, - GetTotalPoolLiquidityQueryMsgResponse as OsmosisCosmwasmpoolV1beta1ModelGetTotalPoolLiquidityQueryMsgResponse, - GetTotalSharesQueryMsg as OsmosisCosmwasmpoolV1beta1ModelGetTotalSharesQueryMsg, - GetTotalSharesQueryMsgResponse as OsmosisCosmwasmpoolV1beta1ModelGetTotalSharesQueryMsgResponse, -} from "./osmosis/cosmwasmpool/v1beta1/model/pool_query_msg_pb.js"; -export { - CosmWasmPool as OsmosisCosmwasmpoolV1beta1ModelCosmWasmPool, -} from "./osmosis/cosmwasmpool/v1beta1/model/pool_pb.js"; -export { - SwapExactAmountIn as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountIn, - SwapExactAmountInSudoMsg as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountInSudoMsg, - SwapExactAmountInSudoMsgResponse as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountInSudoMsgResponse, - SwapExactAmountOut as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountOut, - SwapExactAmountOutSudoMsg as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountOutSudoMsg, - SwapExactAmountOutSudoMsgResponse as OsmosisCosmwasmpoolV1beta1ModelSwapExactAmountOutSudoMsgResponse, -} from "./osmosis/cosmwasmpool/v1beta1/model/module_sudo_msg_pb.js"; -export { - CalcOutAmtGivenIn as OsmosisCosmwasmpoolV1beta1ModelCalcOutAmtGivenIn, - CalcOutAmtGivenInRequest as OsmosisCosmwasmpoolV1beta1ModelCalcOutAmtGivenInRequest, - CalcOutAmtGivenInResponse as OsmosisCosmwasmpoolV1beta1ModelCalcOutAmtGivenInResponse, - CalcInAmtGivenOut as OsmosisCosmwasmpoolV1beta1ModelCalcInAmtGivenOut, - CalcInAmtGivenOutRequest as OsmosisCosmwasmpoolV1beta1ModelCalcInAmtGivenOutRequest, - CalcInAmtGivenOutResponse as OsmosisCosmwasmpoolV1beta1ModelCalcInAmtGivenOutResponse, -} from "./osmosis/cosmwasmpool/v1beta1/model/module_query_msg_pb.js"; -export { - InstantiateMsg as OsmosisCosmwasmpoolV1beta1ModelInstantiateMsg, -} from "./osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.js"; -export { - ShareDenomResponse as OsmosisCosmwasmpoolV1beta1ModelV3ShareDenomResponse, - TotalPoolLiquidityResponse as OsmosisCosmwasmpoolV1beta1ModelV3TotalPoolLiquidityResponse, - AssetConfig as OsmosisCosmwasmpoolV1beta1ModelV3AssetConfig, - ListAssetConfigsResponse as OsmosisCosmwasmpoolV1beta1ModelV3ListAssetConfigsResponse, -} from "./osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.js"; -export { - Params as OsmosisConcentratedliquidityParams, -} from "./osmosis/concentratedliquidity/params_pb.js"; -export { - MsgCreatePosition as OsmosisConcentratedliquidityV1beta1MsgCreatePosition, - MsgCreatePositionResponse as OsmosisConcentratedliquidityV1beta1MsgCreatePositionResponse, - MsgAddToPosition as OsmosisConcentratedliquidityV1beta1MsgAddToPosition, - MsgAddToPositionResponse as OsmosisConcentratedliquidityV1beta1MsgAddToPositionResponse, - MsgWithdrawPosition as OsmosisConcentratedliquidityV1beta1MsgWithdrawPosition, - MsgWithdrawPositionResponse as OsmosisConcentratedliquidityV1beta1MsgWithdrawPositionResponse, - MsgCollectSpreadRewards as OsmosisConcentratedliquidityV1beta1MsgCollectSpreadRewards, - MsgCollectSpreadRewardsResponse as OsmosisConcentratedliquidityV1beta1MsgCollectSpreadRewardsResponse, - MsgCollectIncentives as OsmosisConcentratedliquidityV1beta1MsgCollectIncentives, - MsgCollectIncentivesResponse as OsmosisConcentratedliquidityV1beta1MsgCollectIncentivesResponse, - MsgFungifyChargedPositions as OsmosisConcentratedliquidityV1beta1MsgFungifyChargedPositions, - MsgFungifyChargedPositionsResponse as OsmosisConcentratedliquidityV1beta1MsgFungifyChargedPositionsResponse, - MsgTransferPositions as OsmosisConcentratedliquidityV1beta1MsgTransferPositions, - MsgTransferPositionsResponse as OsmosisConcentratedliquidityV1beta1MsgTransferPositionsResponse, -} from "./osmosis/concentratedliquidity/v1beta1/tx_pb.js"; -export { - MsgCreatePositionService as OsmosisConcentratedliquidityV1beta1MsgCreatePositionService, - MsgWithdrawPositionService as OsmosisConcentratedliquidityV1beta1MsgWithdrawPositionService, - MsgAddToPositionService as OsmosisConcentratedliquidityV1beta1MsgAddToPositionService, - MsgCollectSpreadRewardsService as OsmosisConcentratedliquidityV1beta1MsgCollectSpreadRewardsService, - MsgCollectIncentivesService as OsmosisConcentratedliquidityV1beta1MsgCollectIncentivesService, - MsgTransferPositionsService as OsmosisConcentratedliquidityV1beta1MsgTransferPositionsService, -} from "./osmosis/concentratedliquidity/v1beta1/tx_@onsonr/es.js"; -export { - TickInfo as OsmosisConcentratedliquidityV1beta1TickInfo, - UptimeTrackers as OsmosisConcentratedliquidityV1beta1UptimeTrackers, - UptimeTracker as OsmosisConcentratedliquidityV1beta1UptimeTracker, -} from "./osmosis/concentratedliquidity/v1beta1/tick_info_pb.js"; -export { - UserPositionsRequest as OsmosisConcentratedliquidityV1beta1UserPositionsRequest, - UserPositionsResponse as OsmosisConcentratedliquidityV1beta1UserPositionsResponse, - PositionByIdRequest as OsmosisConcentratedliquidityV1beta1PositionByIdRequest, - PositionByIdResponse as OsmosisConcentratedliquidityV1beta1PositionByIdResponse, - NumPoolPositionsRequest as OsmosisConcentratedliquidityV1beta1NumPoolPositionsRequest, - NumPoolPositionsResponse as OsmosisConcentratedliquidityV1beta1NumPoolPositionsResponse, - PoolsRequest as OsmosisConcentratedliquidityV1beta1PoolsRequest, - PoolsResponse as OsmosisConcentratedliquidityV1beta1PoolsResponse, - ParamsRequest as OsmosisConcentratedliquidityV1beta1ParamsRequest, - ParamsResponse as OsmosisConcentratedliquidityV1beta1ParamsResponse, - TickLiquidityNet as OsmosisConcentratedliquidityV1beta1TickLiquidityNet, - LiquidityDepthWithRange as OsmosisConcentratedliquidityV1beta1LiquidityDepthWithRange, - LiquidityNetInDirectionRequest as OsmosisConcentratedliquidityV1beta1LiquidityNetInDirectionRequest, - LiquidityNetInDirectionResponse as OsmosisConcentratedliquidityV1beta1LiquidityNetInDirectionResponse, - LiquidityPerTickRangeRequest as OsmosisConcentratedliquidityV1beta1LiquidityPerTickRangeRequest, - LiquidityPerTickRangeResponse as OsmosisConcentratedliquidityV1beta1LiquidityPerTickRangeResponse, - ClaimableSpreadRewardsRequest as OsmosisConcentratedliquidityV1beta1ClaimableSpreadRewardsRequest, - ClaimableSpreadRewardsResponse as OsmosisConcentratedliquidityV1beta1ClaimableSpreadRewardsResponse, - ClaimableIncentivesRequest as OsmosisConcentratedliquidityV1beta1ClaimableIncentivesRequest, - ClaimableIncentivesResponse as OsmosisConcentratedliquidityV1beta1ClaimableIncentivesResponse, - PoolAccumulatorRewardsRequest as OsmosisConcentratedliquidityV1beta1PoolAccumulatorRewardsRequest, - PoolAccumulatorRewardsResponse as OsmosisConcentratedliquidityV1beta1PoolAccumulatorRewardsResponse, - TickAccumulatorTrackersRequest as OsmosisConcentratedliquidityV1beta1TickAccumulatorTrackersRequest, - TickAccumulatorTrackersResponse as OsmosisConcentratedliquidityV1beta1TickAccumulatorTrackersResponse, - IncentiveRecordsRequest as OsmosisConcentratedliquidityV1beta1IncentiveRecordsRequest, - IncentiveRecordsResponse as OsmosisConcentratedliquidityV1beta1IncentiveRecordsResponse, - CFMMPoolIdLinkFromConcentratedPoolIdRequest as OsmosisConcentratedliquidityV1beta1CFMMPoolIdLinkFromConcentratedPoolIdRequest, - CFMMPoolIdLinkFromConcentratedPoolIdResponse as OsmosisConcentratedliquidityV1beta1CFMMPoolIdLinkFromConcentratedPoolIdResponse, - UserUnbondingPositionsRequest as OsmosisConcentratedliquidityV1beta1UserUnbondingPositionsRequest, - UserUnbondingPositionsResponse as OsmosisConcentratedliquidityV1beta1UserUnbondingPositionsResponse, - GetTotalLiquidityRequest as OsmosisConcentratedliquidityV1beta1GetTotalLiquidityRequest, - GetTotalLiquidityResponse as OsmosisConcentratedliquidityV1beta1GetTotalLiquidityResponse, - NumNextInitializedTicksRequest as OsmosisConcentratedliquidityV1beta1NumNextInitializedTicksRequest, - NumNextInitializedTicksResponse as OsmosisConcentratedliquidityV1beta1NumNextInitializedTicksResponse, -} from "./osmosis/concentratedliquidity/v1beta1/query_pb.js"; -export { - QueryPoolsService as OsmosisConcentratedliquidityV1beta1QueryPoolsService, - QueryParamsService as OsmosisConcentratedliquidityV1beta1QueryParamsService, - QueryUserPositionsService as OsmosisConcentratedliquidityV1beta1QueryUserPositionsService, - QueryLiquidityPerTickRangeService as OsmosisConcentratedliquidityV1beta1QueryLiquidityPerTickRangeService, - QueryLiquidityNetInDirectionService as OsmosisConcentratedliquidityV1beta1QueryLiquidityNetInDirectionService, - QueryClaimableSpreadRewardsService as OsmosisConcentratedliquidityV1beta1QueryClaimableSpreadRewardsService, - QueryClaimableIncentivesService as OsmosisConcentratedliquidityV1beta1QueryClaimableIncentivesService, - QueryPositionByIdService as OsmosisConcentratedliquidityV1beta1QueryPositionByIdService, - QueryPoolAccumulatorRewardsService as OsmosisConcentratedliquidityV1beta1QueryPoolAccumulatorRewardsService, - QueryIncentiveRecordsService as OsmosisConcentratedliquidityV1beta1QueryIncentiveRecordsService, - QueryTickAccumulatorTrackersService as OsmosisConcentratedliquidityV1beta1QueryTickAccumulatorTrackersService, - QueryCFMMPoolIdLinkFromConcentratedPoolIdService as OsmosisConcentratedliquidityV1beta1QueryCFMMPoolIdLinkFromConcentratedPoolIdService, - QueryUserUnbondingPositionsService as OsmosisConcentratedliquidityV1beta1QueryUserUnbondingPositionsService, - QueryGetTotalLiquidityService as OsmosisConcentratedliquidityV1beta1QueryGetTotalLiquidityService, - QueryNumNextInitializedTicksService as OsmosisConcentratedliquidityV1beta1QueryNumNextInitializedTicksService, -} from "./osmosis/concentratedliquidity/v1beta1/query_@onsonr/es.js"; -export { - Position as OsmosisConcentratedliquidityV1beta1Position, - FullPositionBreakdown as OsmosisConcentratedliquidityV1beta1FullPositionBreakdown, - PositionWithPeriodLock as OsmosisConcentratedliquidityV1beta1PositionWithPeriodLock, -} from "./osmosis/concentratedliquidity/v1beta1/position_pb.js"; -export { - Pool as OsmosisConcentratedliquidityV1beta1Pool, -} from "./osmosis/concentratedliquidity/v1beta1/pool_pb.js"; -export { - IncentiveRecord as OsmosisConcentratedliquidityV1beta1IncentiveRecord, - IncentiveRecordBody as OsmosisConcentratedliquidityV1beta1IncentiveRecordBody, -} from "./osmosis/concentratedliquidity/v1beta1/incentive_record_pb.js"; -export { - CreateConcentratedLiquidityPoolsProposal as OsmosisConcentratedliquidityV1beta1CreateConcentratedLiquidityPoolsProposal, - TickSpacingDecreaseProposal as OsmosisConcentratedliquidityV1beta1TickSpacingDecreaseProposal, - PoolIdToTickSpacingRecord as OsmosisConcentratedliquidityV1beta1PoolIdToTickSpacingRecord, - PoolRecord as OsmosisConcentratedliquidityV1beta1PoolRecord, -} from "./osmosis/concentratedliquidity/v1beta1/gov_pb.js"; -export { - FullTick as OsmosisConcentratedliquidityV1beta1FullTick, - PoolData as OsmosisConcentratedliquidityV1beta1PoolData, - PositionData as OsmosisConcentratedliquidityV1beta1PositionData, - GenesisState as OsmosisConcentratedliquidityV1beta1GenesisState, - AccumObject as OsmosisConcentratedliquidityV1beta1AccumObject, -} from "./osmosis/concentratedliquidity/v1beta1/genesis_pb.js"; -export { - MsgCreateConcentratedPool as OsmosisConcentratedliquidityPoolmodelConcentratedV1beta1MsgCreateConcentratedPool, - MsgCreateConcentratedPoolResponse as OsmosisConcentratedliquidityPoolmodelConcentratedV1beta1MsgCreateConcentratedPoolResponse, -} from "./osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_pb.js"; -export { - MsgCreateConcentratedPoolService as OsmosisConcentratedliquidityPoolmodelConcentratedV1beta1MsgCreateConcentratedPoolService, -} from "./osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_@onsonr/es.js"; -export { - AccumulatorContent as OsmosisAccumV1beta1AccumulatorContent, - Options as OsmosisAccumV1beta1Options, - Record as OsmosisAccumV1beta1Record, -} from "./osmosis/accum/v1beta1/accum_pb.js"; -export { - ClientState as IbcLightclientsWasmV1ClientState, - ConsensusState as IbcLightclientsWasmV1ConsensusState, - ClientMessage as IbcLightclientsWasmV1ClientMessage, - Checksums as IbcLightclientsWasmV1Checksums, -} from "./ibc/lightclients/wasm/v1/wasm_pb.js"; -export { - MsgStoreCode as IbcLightclientsWasmV1MsgStoreCode, - MsgStoreCodeResponse as IbcLightclientsWasmV1MsgStoreCodeResponse, - MsgRemoveChecksum as IbcLightclientsWasmV1MsgRemoveChecksum, - MsgRemoveChecksumResponse as IbcLightclientsWasmV1MsgRemoveChecksumResponse, - MsgMigrateContract as IbcLightclientsWasmV1MsgMigrateContract, - MsgMigrateContractResponse as IbcLightclientsWasmV1MsgMigrateContractResponse, -} from "./ibc/lightclients/wasm/v1/tx_pb.js"; -export { - MsgStoreCodeService as IbcLightclientsWasmV1MsgStoreCodeService, - MsgRemoveChecksumService as IbcLightclientsWasmV1MsgRemoveChecksumService, - MsgMigrateContractService as IbcLightclientsWasmV1MsgMigrateContractService, -} from "./ibc/lightclients/wasm/v1/tx_@onsonr/es.js"; -export { - QueryChecksumsRequest as IbcLightclientsWasmV1QueryChecksumsRequest, - QueryChecksumsResponse as IbcLightclientsWasmV1QueryChecksumsResponse, - QueryCodeRequest as IbcLightclientsWasmV1QueryCodeRequest, - QueryCodeResponse as IbcLightclientsWasmV1QueryCodeResponse, -} from "./ibc/lightclients/wasm/v1/query_pb.js"; -export { - QueryChecksumsService as IbcLightclientsWasmV1QueryChecksumsService, - QueryCodeService as IbcLightclientsWasmV1QueryCodeService, -} from "./ibc/lightclients/wasm/v1/query_@onsonr/es.js"; -export { - GenesisState as IbcLightclientsWasmV1GenesisState, - Contract as IbcLightclientsWasmV1Contract, -} from "./ibc/lightclients/wasm/v1/genesis_pb.js"; -export { - ClientState as IbcLightclientsTendermintV1ClientState, - ConsensusState as IbcLightclientsTendermintV1ConsensusState, - Misbehaviour as IbcLightclientsTendermintV1Misbehaviour, - Header as IbcLightclientsTendermintV1Header, - Fraction as IbcLightclientsTendermintV1Fraction, -} from "./ibc/lightclients/tendermint/v1/tendermint_pb.js"; -export { - ClientState as IbcLightclientsSolomachineV3ClientState, - ConsensusState as IbcLightclientsSolomachineV3ConsensusState, - Header as IbcLightclientsSolomachineV3Header, - Misbehaviour as IbcLightclientsSolomachineV3Misbehaviour, - SignatureAndData as IbcLightclientsSolomachineV3SignatureAndData, - TimestampedSignatureData as IbcLightclientsSolomachineV3TimestampedSignatureData, - SignBytes as IbcLightclientsSolomachineV3SignBytes, - HeaderData as IbcLightclientsSolomachineV3HeaderData, -} from "./ibc/lightclients/solomachine/v3/solomachine_pb.js"; -export { - DataType as IbcLightclientsSolomachineV2DataType, - ClientState as IbcLightclientsSolomachineV2ClientState, - ConsensusState as IbcLightclientsSolomachineV2ConsensusState, - Header as IbcLightclientsSolomachineV2Header, - Misbehaviour as IbcLightclientsSolomachineV2Misbehaviour, - SignatureAndData as IbcLightclientsSolomachineV2SignatureAndData, - TimestampedSignatureData as IbcLightclientsSolomachineV2TimestampedSignatureData, - SignBytes as IbcLightclientsSolomachineV2SignBytes, - HeaderData as IbcLightclientsSolomachineV2HeaderData, - ClientStateData as IbcLightclientsSolomachineV2ClientStateData, - ConsensusStateData as IbcLightclientsSolomachineV2ConsensusStateData, - ConnectionStateData as IbcLightclientsSolomachineV2ConnectionStateData, - ChannelStateData as IbcLightclientsSolomachineV2ChannelStateData, - PacketCommitmentData as IbcLightclientsSolomachineV2PacketCommitmentData, - PacketAcknowledgementData as IbcLightclientsSolomachineV2PacketAcknowledgementData, - PacketReceiptAbsenceData as IbcLightclientsSolomachineV2PacketReceiptAbsenceData, - NextSequenceRecvData as IbcLightclientsSolomachineV2NextSequenceRecvData, -} from "./ibc/lightclients/solomachine/v2/solomachine_pb.js"; -export { - GenesisState as IbcCoreTypesV1GenesisState, -} from "./ibc/core/types/v1/genesis_pb.js"; -export { - MsgConnectionOpenInit as IbcCoreConnectionV1MsgConnectionOpenInit, - MsgConnectionOpenInitResponse as IbcCoreConnectionV1MsgConnectionOpenInitResponse, - MsgConnectionOpenTry as IbcCoreConnectionV1MsgConnectionOpenTry, - MsgConnectionOpenTryResponse as IbcCoreConnectionV1MsgConnectionOpenTryResponse, - MsgConnectionOpenAck as IbcCoreConnectionV1MsgConnectionOpenAck, - MsgConnectionOpenAckResponse as IbcCoreConnectionV1MsgConnectionOpenAckResponse, - MsgConnectionOpenConfirm as IbcCoreConnectionV1MsgConnectionOpenConfirm, - MsgConnectionOpenConfirmResponse as IbcCoreConnectionV1MsgConnectionOpenConfirmResponse, - MsgUpdateParams as IbcCoreConnectionV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcCoreConnectionV1MsgUpdateParamsResponse, -} from "./ibc/core/connection/v1/tx_pb.js"; -export { - MsgConnectionOpenInitService as IbcCoreConnectionV1MsgConnectionOpenInitService, - MsgConnectionOpenTryService as IbcCoreConnectionV1MsgConnectionOpenTryService, - MsgConnectionOpenAckService as IbcCoreConnectionV1MsgConnectionOpenAckService, - MsgConnectionOpenConfirmService as IbcCoreConnectionV1MsgConnectionOpenConfirmService, - MsgUpdateConnectionParamsService as IbcCoreConnectionV1MsgUpdateConnectionParamsService, -} from "./ibc/core/connection/v1/tx_@onsonr/es.js"; -export { - QueryConnectionRequest as IbcCoreConnectionV1QueryConnectionRequest, - QueryConnectionResponse as IbcCoreConnectionV1QueryConnectionResponse, - QueryConnectionsRequest as IbcCoreConnectionV1QueryConnectionsRequest, - QueryConnectionsResponse as IbcCoreConnectionV1QueryConnectionsResponse, - QueryClientConnectionsRequest as IbcCoreConnectionV1QueryClientConnectionsRequest, - QueryClientConnectionsResponse as IbcCoreConnectionV1QueryClientConnectionsResponse, - QueryConnectionClientStateRequest as IbcCoreConnectionV1QueryConnectionClientStateRequest, - QueryConnectionClientStateResponse as IbcCoreConnectionV1QueryConnectionClientStateResponse, - QueryConnectionConsensusStateRequest as IbcCoreConnectionV1QueryConnectionConsensusStateRequest, - QueryConnectionConsensusStateResponse as IbcCoreConnectionV1QueryConnectionConsensusStateResponse, - QueryConnectionParamsRequest as IbcCoreConnectionV1QueryConnectionParamsRequest, - QueryConnectionParamsResponse as IbcCoreConnectionV1QueryConnectionParamsResponse, -} from "./ibc/core/connection/v1/query_pb.js"; -export { - QueryConnectionService as IbcCoreConnectionV1QueryConnectionService, - QueryConnectionsService as IbcCoreConnectionV1QueryConnectionsService, - QueryClientConnectionsService as IbcCoreConnectionV1QueryClientConnectionsService, - QueryConnectionClientStateService as IbcCoreConnectionV1QueryConnectionClientStateService, - QueryConnectionConsensusStateService as IbcCoreConnectionV1QueryConnectionConsensusStateService, - QueryConnectionParamsService as IbcCoreConnectionV1QueryConnectionParamsService, -} from "./ibc/core/connection/v1/query_@onsonr/es.js"; -export { - GenesisState as IbcCoreConnectionV1GenesisState, -} from "./ibc/core/connection/v1/genesis_pb.js"; -export { - State as IbcCoreConnectionV1State, - ConnectionEnd as IbcCoreConnectionV1ConnectionEnd, - IdentifiedConnection as IbcCoreConnectionV1IdentifiedConnection, - Counterparty as IbcCoreConnectionV1Counterparty, - ClientPaths as IbcCoreConnectionV1ClientPaths, - ConnectionPaths as IbcCoreConnectionV1ConnectionPaths, - Version as IbcCoreConnectionV1Version, - Params as IbcCoreConnectionV1Params, -} from "./ibc/core/connection/v1/connection_pb.js"; -export { - MerklePath as IbcCoreCommitmentV2MerklePath, -} from "./ibc/core/commitment/v2/commitment_pb.js"; -export { - MerkleRoot as IbcCoreCommitmentV1MerkleRoot, - MerklePrefix as IbcCoreCommitmentV1MerklePrefix, - MerkleProof as IbcCoreCommitmentV1MerkleProof, -} from "./ibc/core/commitment/v1/commitment_pb.js"; -export { - MsgCreateClient as IbcCoreClientV1MsgCreateClient, - MsgCreateClientResponse as IbcCoreClientV1MsgCreateClientResponse, - MsgUpdateClient as IbcCoreClientV1MsgUpdateClient, - MsgUpdateClientResponse as IbcCoreClientV1MsgUpdateClientResponse, - MsgUpgradeClient as IbcCoreClientV1MsgUpgradeClient, - MsgUpgradeClientResponse as IbcCoreClientV1MsgUpgradeClientResponse, - MsgSubmitMisbehaviour as IbcCoreClientV1MsgSubmitMisbehaviour, - MsgSubmitMisbehaviourResponse as IbcCoreClientV1MsgSubmitMisbehaviourResponse, - MsgRecoverClient as IbcCoreClientV1MsgRecoverClient, - MsgRecoverClientResponse as IbcCoreClientV1MsgRecoverClientResponse, - MsgIBCSoftwareUpgrade as IbcCoreClientV1MsgIBCSoftwareUpgrade, - MsgIBCSoftwareUpgradeResponse as IbcCoreClientV1MsgIBCSoftwareUpgradeResponse, - MsgUpdateParams as IbcCoreClientV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcCoreClientV1MsgUpdateParamsResponse, -} from "./ibc/core/client/v1/tx_pb.js"; -export { - MsgCreateClientService as IbcCoreClientV1MsgCreateClientService, - MsgUpdateClientService as IbcCoreClientV1MsgUpdateClientService, - MsgUpgradeClientService as IbcCoreClientV1MsgUpgradeClientService, - MsgSubmitMisbehaviourService as IbcCoreClientV1MsgSubmitMisbehaviourService, - MsgRecoverClientService as IbcCoreClientV1MsgRecoverClientService, - MsgIBCSoftwareUpgradeService as IbcCoreClientV1MsgIBCSoftwareUpgradeService, - MsgUpdateClientParamsService as IbcCoreClientV1MsgUpdateClientParamsService, -} from "./ibc/core/client/v1/tx_@onsonr/es.js"; -export { - QueryClientStateRequest as IbcCoreClientV1QueryClientStateRequest, - QueryClientStateResponse as IbcCoreClientV1QueryClientStateResponse, - QueryClientStatesRequest as IbcCoreClientV1QueryClientStatesRequest, - QueryClientStatesResponse as IbcCoreClientV1QueryClientStatesResponse, - QueryConsensusStateRequest as IbcCoreClientV1QueryConsensusStateRequest, - QueryConsensusStateResponse as IbcCoreClientV1QueryConsensusStateResponse, - QueryConsensusStatesRequest as IbcCoreClientV1QueryConsensusStatesRequest, - QueryConsensusStatesResponse as IbcCoreClientV1QueryConsensusStatesResponse, - QueryConsensusStateHeightsRequest as IbcCoreClientV1QueryConsensusStateHeightsRequest, - QueryConsensusStateHeightsResponse as IbcCoreClientV1QueryConsensusStateHeightsResponse, - QueryClientStatusRequest as IbcCoreClientV1QueryClientStatusRequest, - QueryClientStatusResponse as IbcCoreClientV1QueryClientStatusResponse, - QueryClientParamsRequest as IbcCoreClientV1QueryClientParamsRequest, - QueryClientParamsResponse as IbcCoreClientV1QueryClientParamsResponse, - QueryUpgradedClientStateRequest as IbcCoreClientV1QueryUpgradedClientStateRequest, - QueryUpgradedClientStateResponse as IbcCoreClientV1QueryUpgradedClientStateResponse, - QueryUpgradedConsensusStateRequest as IbcCoreClientV1QueryUpgradedConsensusStateRequest, - QueryUpgradedConsensusStateResponse as IbcCoreClientV1QueryUpgradedConsensusStateResponse, - QueryVerifyMembershipRequest as IbcCoreClientV1QueryVerifyMembershipRequest, - QueryVerifyMembershipResponse as IbcCoreClientV1QueryVerifyMembershipResponse, -} from "./ibc/core/client/v1/query_pb.js"; -export { - QueryClientStateService as IbcCoreClientV1QueryClientStateService, - QueryClientStatesService as IbcCoreClientV1QueryClientStatesService, - QueryConsensusStateService as IbcCoreClientV1QueryConsensusStateService, - QueryConsensusStatesService as IbcCoreClientV1QueryConsensusStatesService, - QueryConsensusStateHeightsService as IbcCoreClientV1QueryConsensusStateHeightsService, - QueryClientStatusService as IbcCoreClientV1QueryClientStatusService, - QueryClientParamsService as IbcCoreClientV1QueryClientParamsService, - QueryUpgradedClientStateService as IbcCoreClientV1QueryUpgradedClientStateService, - QueryUpgradedConsensusStateService as IbcCoreClientV1QueryUpgradedConsensusStateService, - QueryVerifyMembershipService as IbcCoreClientV1QueryVerifyMembershipService, -} from "./ibc/core/client/v1/query_@onsonr/es.js"; -export { - GenesisState as IbcCoreClientV1GenesisState, - GenesisMetadata as IbcCoreClientV1GenesisMetadata, - IdentifiedGenesisMetadata as IbcCoreClientV1IdentifiedGenesisMetadata, -} from "./ibc/core/client/v1/genesis_pb.js"; -export { - IdentifiedClientState as IbcCoreClientV1IdentifiedClientState, - ConsensusStateWithHeight as IbcCoreClientV1ConsensusStateWithHeight, - ClientConsensusStates as IbcCoreClientV1ClientConsensusStates, - Height as IbcCoreClientV1Height, - Params as IbcCoreClientV1Params, -} from "./ibc/core/client/v1/client_pb.js"; -export { - Upgrade as IbcCoreChannelV1Upgrade, - UpgradeFields as IbcCoreChannelV1UpgradeFields, - ErrorReceipt as IbcCoreChannelV1ErrorReceipt, -} from "./ibc/core/channel/v1/upgrade_pb.js"; -export { - ResponseResultType as IbcCoreChannelV1ResponseResultType, - MsgChannelOpenInit as IbcCoreChannelV1MsgChannelOpenInit, - MsgChannelOpenInitResponse as IbcCoreChannelV1MsgChannelOpenInitResponse, - MsgChannelOpenTry as IbcCoreChannelV1MsgChannelOpenTry, - MsgChannelOpenTryResponse as IbcCoreChannelV1MsgChannelOpenTryResponse, - MsgChannelOpenAck as IbcCoreChannelV1MsgChannelOpenAck, - MsgChannelOpenAckResponse as IbcCoreChannelV1MsgChannelOpenAckResponse, - MsgChannelOpenConfirm as IbcCoreChannelV1MsgChannelOpenConfirm, - MsgChannelOpenConfirmResponse as IbcCoreChannelV1MsgChannelOpenConfirmResponse, - MsgChannelCloseInit as IbcCoreChannelV1MsgChannelCloseInit, - MsgChannelCloseInitResponse as IbcCoreChannelV1MsgChannelCloseInitResponse, - MsgChannelCloseConfirm as IbcCoreChannelV1MsgChannelCloseConfirm, - MsgChannelCloseConfirmResponse as IbcCoreChannelV1MsgChannelCloseConfirmResponse, - MsgRecvPacket as IbcCoreChannelV1MsgRecvPacket, - MsgRecvPacketResponse as IbcCoreChannelV1MsgRecvPacketResponse, - MsgTimeout as IbcCoreChannelV1MsgTimeout, - MsgTimeoutResponse as IbcCoreChannelV1MsgTimeoutResponse, - MsgTimeoutOnClose as IbcCoreChannelV1MsgTimeoutOnClose, - MsgTimeoutOnCloseResponse as IbcCoreChannelV1MsgTimeoutOnCloseResponse, - MsgAcknowledgement as IbcCoreChannelV1MsgAcknowledgement, - MsgAcknowledgementResponse as IbcCoreChannelV1MsgAcknowledgementResponse, - MsgChannelUpgradeInit as IbcCoreChannelV1MsgChannelUpgradeInit, - MsgChannelUpgradeInitResponse as IbcCoreChannelV1MsgChannelUpgradeInitResponse, - MsgChannelUpgradeTry as IbcCoreChannelV1MsgChannelUpgradeTry, - MsgChannelUpgradeTryResponse as IbcCoreChannelV1MsgChannelUpgradeTryResponse, - MsgChannelUpgradeAck as IbcCoreChannelV1MsgChannelUpgradeAck, - MsgChannelUpgradeAckResponse as IbcCoreChannelV1MsgChannelUpgradeAckResponse, - MsgChannelUpgradeConfirm as IbcCoreChannelV1MsgChannelUpgradeConfirm, - MsgChannelUpgradeConfirmResponse as IbcCoreChannelV1MsgChannelUpgradeConfirmResponse, - MsgChannelUpgradeOpen as IbcCoreChannelV1MsgChannelUpgradeOpen, - MsgChannelUpgradeOpenResponse as IbcCoreChannelV1MsgChannelUpgradeOpenResponse, - MsgChannelUpgradeTimeout as IbcCoreChannelV1MsgChannelUpgradeTimeout, - MsgChannelUpgradeTimeoutResponse as IbcCoreChannelV1MsgChannelUpgradeTimeoutResponse, - MsgChannelUpgradeCancel as IbcCoreChannelV1MsgChannelUpgradeCancel, - MsgChannelUpgradeCancelResponse as IbcCoreChannelV1MsgChannelUpgradeCancelResponse, - MsgUpdateParams as IbcCoreChannelV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcCoreChannelV1MsgUpdateParamsResponse, - MsgPruneAcknowledgements as IbcCoreChannelV1MsgPruneAcknowledgements, - MsgPruneAcknowledgementsResponse as IbcCoreChannelV1MsgPruneAcknowledgementsResponse, -} from "./ibc/core/channel/v1/tx_pb.js"; -export { - MsgChannelOpenInitService as IbcCoreChannelV1MsgChannelOpenInitService, - MsgChannelOpenTryService as IbcCoreChannelV1MsgChannelOpenTryService, - MsgChannelOpenAckService as IbcCoreChannelV1MsgChannelOpenAckService, - MsgChannelOpenConfirmService as IbcCoreChannelV1MsgChannelOpenConfirmService, - MsgChannelCloseInitService as IbcCoreChannelV1MsgChannelCloseInitService, - MsgChannelCloseConfirmService as IbcCoreChannelV1MsgChannelCloseConfirmService, - MsgRecvPacketService as IbcCoreChannelV1MsgRecvPacketService, - MsgTimeoutService as IbcCoreChannelV1MsgTimeoutService, - MsgTimeoutOnCloseService as IbcCoreChannelV1MsgTimeoutOnCloseService, - MsgAcknowledgementService as IbcCoreChannelV1MsgAcknowledgementService, - MsgChannelUpgradeInitService as IbcCoreChannelV1MsgChannelUpgradeInitService, - MsgChannelUpgradeTryService as IbcCoreChannelV1MsgChannelUpgradeTryService, - MsgChannelUpgradeAckService as IbcCoreChannelV1MsgChannelUpgradeAckService, - MsgChannelUpgradeConfirmService as IbcCoreChannelV1MsgChannelUpgradeConfirmService, - MsgChannelUpgradeOpenService as IbcCoreChannelV1MsgChannelUpgradeOpenService, - MsgChannelUpgradeTimeoutService as IbcCoreChannelV1MsgChannelUpgradeTimeoutService, - MsgChannelUpgradeCancelService as IbcCoreChannelV1MsgChannelUpgradeCancelService, - MsgUpdateChannelParamsService as IbcCoreChannelV1MsgUpdateChannelParamsService, - MsgPruneAcknowledgementsService as IbcCoreChannelV1MsgPruneAcknowledgementsService, -} from "./ibc/core/channel/v1/tx_@onsonr/es.js"; -export { - QueryChannelRequest as IbcCoreChannelV1QueryChannelRequest, - QueryChannelResponse as IbcCoreChannelV1QueryChannelResponse, - QueryChannelsRequest as IbcCoreChannelV1QueryChannelsRequest, - QueryChannelsResponse as IbcCoreChannelV1QueryChannelsResponse, - QueryConnectionChannelsRequest as IbcCoreChannelV1QueryConnectionChannelsRequest, - QueryConnectionChannelsResponse as IbcCoreChannelV1QueryConnectionChannelsResponse, - QueryChannelClientStateRequest as IbcCoreChannelV1QueryChannelClientStateRequest, - QueryChannelClientStateResponse as IbcCoreChannelV1QueryChannelClientStateResponse, - QueryChannelConsensusStateRequest as IbcCoreChannelV1QueryChannelConsensusStateRequest, - QueryChannelConsensusStateResponse as IbcCoreChannelV1QueryChannelConsensusStateResponse, - QueryPacketCommitmentRequest as IbcCoreChannelV1QueryPacketCommitmentRequest, - QueryPacketCommitmentResponse as IbcCoreChannelV1QueryPacketCommitmentResponse, - QueryPacketCommitmentsRequest as IbcCoreChannelV1QueryPacketCommitmentsRequest, - QueryPacketCommitmentsResponse as IbcCoreChannelV1QueryPacketCommitmentsResponse, - QueryPacketReceiptRequest as IbcCoreChannelV1QueryPacketReceiptRequest, - QueryPacketReceiptResponse as IbcCoreChannelV1QueryPacketReceiptResponse, - QueryPacketAcknowledgementRequest as IbcCoreChannelV1QueryPacketAcknowledgementRequest, - QueryPacketAcknowledgementResponse as IbcCoreChannelV1QueryPacketAcknowledgementResponse, - QueryPacketAcknowledgementsRequest as IbcCoreChannelV1QueryPacketAcknowledgementsRequest, - QueryPacketAcknowledgementsResponse as IbcCoreChannelV1QueryPacketAcknowledgementsResponse, - QueryUnreceivedPacketsRequest as IbcCoreChannelV1QueryUnreceivedPacketsRequest, - QueryUnreceivedPacketsResponse as IbcCoreChannelV1QueryUnreceivedPacketsResponse, - QueryUnreceivedAcksRequest as IbcCoreChannelV1QueryUnreceivedAcksRequest, - QueryUnreceivedAcksResponse as IbcCoreChannelV1QueryUnreceivedAcksResponse, - QueryNextSequenceReceiveRequest as IbcCoreChannelV1QueryNextSequenceReceiveRequest, - QueryNextSequenceReceiveResponse as IbcCoreChannelV1QueryNextSequenceReceiveResponse, - QueryNextSequenceSendRequest as IbcCoreChannelV1QueryNextSequenceSendRequest, - QueryNextSequenceSendResponse as IbcCoreChannelV1QueryNextSequenceSendResponse, - QueryUpgradeErrorRequest as IbcCoreChannelV1QueryUpgradeErrorRequest, - QueryUpgradeErrorResponse as IbcCoreChannelV1QueryUpgradeErrorResponse, - QueryUpgradeRequest as IbcCoreChannelV1QueryUpgradeRequest, - QueryUpgradeResponse as IbcCoreChannelV1QueryUpgradeResponse, - QueryChannelParamsRequest as IbcCoreChannelV1QueryChannelParamsRequest, - QueryChannelParamsResponse as IbcCoreChannelV1QueryChannelParamsResponse, -} from "./ibc/core/channel/v1/query_pb.js"; -export { - QueryChannelService as IbcCoreChannelV1QueryChannelService, - QueryChannelsService as IbcCoreChannelV1QueryChannelsService, - QueryConnectionChannelsService as IbcCoreChannelV1QueryConnectionChannelsService, - QueryChannelClientStateService as IbcCoreChannelV1QueryChannelClientStateService, - QueryChannelConsensusStateService as IbcCoreChannelV1QueryChannelConsensusStateService, - QueryPacketCommitmentService as IbcCoreChannelV1QueryPacketCommitmentService, - QueryPacketCommitmentsService as IbcCoreChannelV1QueryPacketCommitmentsService, - QueryPacketReceiptService as IbcCoreChannelV1QueryPacketReceiptService, - QueryPacketAcknowledgementService as IbcCoreChannelV1QueryPacketAcknowledgementService, - QueryPacketAcknowledgementsService as IbcCoreChannelV1QueryPacketAcknowledgementsService, - QueryUnreceivedPacketsService as IbcCoreChannelV1QueryUnreceivedPacketsService, - QueryUnreceivedAcksService as IbcCoreChannelV1QueryUnreceivedAcksService, - QueryNextSequenceReceiveService as IbcCoreChannelV1QueryNextSequenceReceiveService, - QueryNextSequenceSendService as IbcCoreChannelV1QueryNextSequenceSendService, - QueryUpgradeErrorService as IbcCoreChannelV1QueryUpgradeErrorService, - QueryUpgradeService as IbcCoreChannelV1QueryUpgradeService, - QueryChannelParamsService as IbcCoreChannelV1QueryChannelParamsService, -} from "./ibc/core/channel/v1/query_@onsonr/es.js"; -export { - GenesisState as IbcCoreChannelV1GenesisState, - PacketSequence as IbcCoreChannelV1PacketSequence, -} from "./ibc/core/channel/v1/genesis_pb.js"; -export { - State as IbcCoreChannelV1State, - Order as IbcCoreChannelV1Order, - Channel as IbcCoreChannelV1Channel, - IdentifiedChannel as IbcCoreChannelV1IdentifiedChannel, - Counterparty as IbcCoreChannelV1Counterparty, - Packet as IbcCoreChannelV1Packet, - PacketState as IbcCoreChannelV1PacketState, - PacketId as IbcCoreChannelV1PacketId, - Acknowledgement as IbcCoreChannelV1Acknowledgement, - Timeout as IbcCoreChannelV1Timeout, - Params as IbcCoreChannelV1Params, -} from "./ibc/core/channel/v1/channel_pb.js"; -export { - Token as IbcApplicationsTransferV2Token, - Denom as IbcApplicationsTransferV2Denom, -} from "./ibc/applications/transfer/v2/token_pb.js"; -export { - QueryDenomRequest as IbcApplicationsTransferV2QueryDenomRequest, - QueryDenomResponse as IbcApplicationsTransferV2QueryDenomResponse, - QueryDenomsRequest as IbcApplicationsTransferV2QueryDenomsRequest, - QueryDenomsResponse as IbcApplicationsTransferV2QueryDenomsResponse, -} from "./ibc/applications/transfer/v2/queryv2_pb.js"; -export { - QueryV2DenomsService as IbcApplicationsTransferV2QueryV2DenomsService, - QueryV2DenomService as IbcApplicationsTransferV2QueryV2DenomService, -} from "./ibc/applications/transfer/v2/queryv2_@onsonr/es.js"; -export { - FungibleTokenPacketData as IbcApplicationsTransferV2FungibleTokenPacketData, - FungibleTokenPacketDataV2 as IbcApplicationsTransferV2FungibleTokenPacketDataV2, - ForwardingPacketData as IbcApplicationsTransferV2ForwardingPacketData, -} from "./ibc/applications/transfer/v2/packet_pb.js"; -export { - GenesisState as IbcApplicationsTransferV2GenesisState, - ForwardedPacket as IbcApplicationsTransferV2ForwardedPacket, -} from "./ibc/applications/transfer/v2/genesis_pb.js"; -export { - MsgTransfer as IbcApplicationsTransferV1MsgTransfer, - MsgTransferResponse as IbcApplicationsTransferV1MsgTransferResponse, - MsgUpdateParams as IbcApplicationsTransferV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcApplicationsTransferV1MsgUpdateParamsResponse, -} from "./ibc/applications/transfer/v1/tx_pb.js"; -export { - MsgTransferService as IbcApplicationsTransferV1MsgTransferService, - MsgUpdateParamsService as IbcApplicationsTransferV1MsgUpdateParamsService, -} from "./ibc/applications/transfer/v1/tx_@onsonr/es.js"; -export { - Params as IbcApplicationsTransferV1Params, - Forwarding as IbcApplicationsTransferV1Forwarding, - Hop as IbcApplicationsTransferV1Hop, -} from "./ibc/applications/transfer/v1/transfer_pb.js"; -export { - QueryParamsRequest as IbcApplicationsTransferV1QueryParamsRequest, - QueryParamsResponse as IbcApplicationsTransferV1QueryParamsResponse, - QueryDenomHashRequest as IbcApplicationsTransferV1QueryDenomHashRequest, - QueryDenomHashResponse as IbcApplicationsTransferV1QueryDenomHashResponse, - QueryEscrowAddressRequest as IbcApplicationsTransferV1QueryEscrowAddressRequest, - QueryEscrowAddressResponse as IbcApplicationsTransferV1QueryEscrowAddressResponse, - QueryTotalEscrowForDenomRequest as IbcApplicationsTransferV1QueryTotalEscrowForDenomRequest, - QueryTotalEscrowForDenomResponse as IbcApplicationsTransferV1QueryTotalEscrowForDenomResponse, -} from "./ibc/applications/transfer/v1/query_pb.js"; -export { - QueryParamsService as IbcApplicationsTransferV1QueryParamsService, - QueryDenomHashService as IbcApplicationsTransferV1QueryDenomHashService, - QueryEscrowAddressService as IbcApplicationsTransferV1QueryEscrowAddressService, - QueryTotalEscrowForDenomService as IbcApplicationsTransferV1QueryTotalEscrowForDenomService, -} from "./ibc/applications/transfer/v1/query_@onsonr/es.js"; -export { - DenomTrace as IbcApplicationsTransferV1DenomTrace, -} from "./ibc/applications/transfer/v1/denomtrace_pb.js"; -export { - Allocation as IbcApplicationsTransferV1Allocation, - AllowedForwarding as IbcApplicationsTransferV1AllowedForwarding, - TransferAuthorization as IbcApplicationsTransferV1TransferAuthorization, -} from "./ibc/applications/transfer/v1/authz_pb.js"; -export { - Type as IbcApplicationsInterchainAccountsV1Type, - InterchainAccountPacketData as IbcApplicationsInterchainAccountsV1InterchainAccountPacketData, - CosmosTx as IbcApplicationsInterchainAccountsV1CosmosTx, -} from "./ibc/applications/interchain_accounts/v1/packet_pb.js"; -export { - Metadata as IbcApplicationsInterchainAccountsV1Metadata, -} from "./ibc/applications/interchain_accounts/v1/metadata_pb.js"; -export { - InterchainAccount as IbcApplicationsInterchainAccountsV1InterchainAccount, -} from "./ibc/applications/interchain_accounts/v1/account_pb.js"; -export { - MsgUpdateParams as IbcApplicationsInterchainAccountsHostV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsResponse, - MsgModuleQuerySafe as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafe, - MsgModuleQuerySafeResponse as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeResponse, -} from "./ibc/applications/interchain_accounts/host/v1/tx_pb.js"; -export { - MsgUpdateParamsService as IbcApplicationsInterchainAccountsHostV1MsgUpdateParamsService, - MsgModuleQuerySafeService as IbcApplicationsInterchainAccountsHostV1MsgModuleQuerySafeService, -} from "./ibc/applications/interchain_accounts/host/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as IbcApplicationsInterchainAccountsHostV1QueryParamsRequest, - QueryParamsResponse as IbcApplicationsInterchainAccountsHostV1QueryParamsResponse, -} from "./ibc/applications/interchain_accounts/host/v1/query_pb.js"; -export { - QueryParamsService as IbcApplicationsInterchainAccountsHostV1QueryParamsService, -} from "./ibc/applications/interchain_accounts/host/v1/query_@onsonr/es.js"; -export { - Params as IbcApplicationsInterchainAccountsHostV1Params, - QueryRequest as IbcApplicationsInterchainAccountsHostV1QueryRequest, -} from "./ibc/applications/interchain_accounts/host/v1/host_pb.js"; -export { - GenesisState as IbcApplicationsInterchainAccountsGenesisV1GenesisState, - ControllerGenesisState as IbcApplicationsInterchainAccountsGenesisV1ControllerGenesisState, - HostGenesisState as IbcApplicationsInterchainAccountsGenesisV1HostGenesisState, - ActiveChannel as IbcApplicationsInterchainAccountsGenesisV1ActiveChannel, - RegisteredInterchainAccount as IbcApplicationsInterchainAccountsGenesisV1RegisteredInterchainAccount, -} from "./ibc/applications/interchain_accounts/genesis/v1/genesis_pb.js"; -export { - MsgRegisterInterchainAccount as IbcApplicationsInterchainAccountsControllerV1MsgRegisterInterchainAccount, - MsgRegisterInterchainAccountResponse as IbcApplicationsInterchainAccountsControllerV1MsgRegisterInterchainAccountResponse, - MsgSendTx as IbcApplicationsInterchainAccountsControllerV1MsgSendTx, - MsgSendTxResponse as IbcApplicationsInterchainAccountsControllerV1MsgSendTxResponse, - MsgUpdateParams as IbcApplicationsInterchainAccountsControllerV1MsgUpdateParams, - MsgUpdateParamsResponse as IbcApplicationsInterchainAccountsControllerV1MsgUpdateParamsResponse, -} from "./ibc/applications/interchain_accounts/controller/v1/tx_pb.js"; -export { - MsgRegisterInterchainAccountService as IbcApplicationsInterchainAccountsControllerV1MsgRegisterInterchainAccountService, - MsgSendTxService as IbcApplicationsInterchainAccountsControllerV1MsgSendTxService, - MsgUpdateParamsService as IbcApplicationsInterchainAccountsControllerV1MsgUpdateParamsService, -} from "./ibc/applications/interchain_accounts/controller/v1/tx_@onsonr/es.js"; -export { - QueryInterchainAccountRequest as IbcApplicationsInterchainAccountsControllerV1QueryInterchainAccountRequest, - QueryInterchainAccountResponse as IbcApplicationsInterchainAccountsControllerV1QueryInterchainAccountResponse, - QueryParamsRequest as IbcApplicationsInterchainAccountsControllerV1QueryParamsRequest, - QueryParamsResponse as IbcApplicationsInterchainAccountsControllerV1QueryParamsResponse, -} from "./ibc/applications/interchain_accounts/controller/v1/query_pb.js"; -export { - QueryInterchainAccountService as IbcApplicationsInterchainAccountsControllerV1QueryInterchainAccountService, - QueryParamsService as IbcApplicationsInterchainAccountsControllerV1QueryParamsService, -} from "./ibc/applications/interchain_accounts/controller/v1/query_@onsonr/es.js"; -export { - Params as IbcApplicationsInterchainAccountsControllerV1Params, -} from "./ibc/applications/interchain_accounts/controller/v1/controller_pb.js"; -export { - MsgRegisterPayee as IbcApplicationsFeeV1MsgRegisterPayee, - MsgRegisterPayeeResponse as IbcApplicationsFeeV1MsgRegisterPayeeResponse, - MsgRegisterCounterpartyPayee as IbcApplicationsFeeV1MsgRegisterCounterpartyPayee, - MsgRegisterCounterpartyPayeeResponse as IbcApplicationsFeeV1MsgRegisterCounterpartyPayeeResponse, - MsgPayPacketFee as IbcApplicationsFeeV1MsgPayPacketFee, - MsgPayPacketFeeResponse as IbcApplicationsFeeV1MsgPayPacketFeeResponse, - MsgPayPacketFeeAsync as IbcApplicationsFeeV1MsgPayPacketFeeAsync, - MsgPayPacketFeeAsyncResponse as IbcApplicationsFeeV1MsgPayPacketFeeAsyncResponse, -} from "./ibc/applications/fee/v1/tx_pb.js"; -export { - MsgRegisterPayeeService as IbcApplicationsFeeV1MsgRegisterPayeeService, - MsgRegisterCounterpartyPayeeService as IbcApplicationsFeeV1MsgRegisterCounterpartyPayeeService, - MsgPayPacketFeeService as IbcApplicationsFeeV1MsgPayPacketFeeService, - MsgPayPacketFeeAsyncService as IbcApplicationsFeeV1MsgPayPacketFeeAsyncService, -} from "./ibc/applications/fee/v1/tx_@onsonr/es.js"; -export { - QueryIncentivizedPacketsRequest as IbcApplicationsFeeV1QueryIncentivizedPacketsRequest, - QueryIncentivizedPacketsResponse as IbcApplicationsFeeV1QueryIncentivizedPacketsResponse, - QueryIncentivizedPacketRequest as IbcApplicationsFeeV1QueryIncentivizedPacketRequest, - QueryIncentivizedPacketResponse as IbcApplicationsFeeV1QueryIncentivizedPacketResponse, - QueryIncentivizedPacketsForChannelRequest as IbcApplicationsFeeV1QueryIncentivizedPacketsForChannelRequest, - QueryIncentivizedPacketsForChannelResponse as IbcApplicationsFeeV1QueryIncentivizedPacketsForChannelResponse, - QueryTotalRecvFeesRequest as IbcApplicationsFeeV1QueryTotalRecvFeesRequest, - QueryTotalRecvFeesResponse as IbcApplicationsFeeV1QueryTotalRecvFeesResponse, - QueryTotalAckFeesRequest as IbcApplicationsFeeV1QueryTotalAckFeesRequest, - QueryTotalAckFeesResponse as IbcApplicationsFeeV1QueryTotalAckFeesResponse, - QueryTotalTimeoutFeesRequest as IbcApplicationsFeeV1QueryTotalTimeoutFeesRequest, - QueryTotalTimeoutFeesResponse as IbcApplicationsFeeV1QueryTotalTimeoutFeesResponse, - QueryPayeeRequest as IbcApplicationsFeeV1QueryPayeeRequest, - QueryPayeeResponse as IbcApplicationsFeeV1QueryPayeeResponse, - QueryCounterpartyPayeeRequest as IbcApplicationsFeeV1QueryCounterpartyPayeeRequest, - QueryCounterpartyPayeeResponse as IbcApplicationsFeeV1QueryCounterpartyPayeeResponse, - QueryFeeEnabledChannelsRequest as IbcApplicationsFeeV1QueryFeeEnabledChannelsRequest, - QueryFeeEnabledChannelsResponse as IbcApplicationsFeeV1QueryFeeEnabledChannelsResponse, - QueryFeeEnabledChannelRequest as IbcApplicationsFeeV1QueryFeeEnabledChannelRequest, - QueryFeeEnabledChannelResponse as IbcApplicationsFeeV1QueryFeeEnabledChannelResponse, -} from "./ibc/applications/fee/v1/query_pb.js"; -export { - QueryIncentivizedPacketsService as IbcApplicationsFeeV1QueryIncentivizedPacketsService, - QueryIncentivizedPacketService as IbcApplicationsFeeV1QueryIncentivizedPacketService, - QueryIncentivizedPacketsForChannelService as IbcApplicationsFeeV1QueryIncentivizedPacketsForChannelService, - QueryTotalRecvFeesService as IbcApplicationsFeeV1QueryTotalRecvFeesService, - QueryTotalAckFeesService as IbcApplicationsFeeV1QueryTotalAckFeesService, - QueryTotalTimeoutFeesService as IbcApplicationsFeeV1QueryTotalTimeoutFeesService, - QueryPayeeService as IbcApplicationsFeeV1QueryPayeeService, - QueryCounterpartyPayeeService as IbcApplicationsFeeV1QueryCounterpartyPayeeService, - QueryFeeEnabledChannelsService as IbcApplicationsFeeV1QueryFeeEnabledChannelsService, - QueryFeeEnabledChannelService as IbcApplicationsFeeV1QueryFeeEnabledChannelService, -} from "./ibc/applications/fee/v1/query_@onsonr/es.js"; -export { - Metadata as IbcApplicationsFeeV1Metadata, -} from "./ibc/applications/fee/v1/metadata_pb.js"; -export { - GenesisState as IbcApplicationsFeeV1GenesisState, - FeeEnabledChannel as IbcApplicationsFeeV1FeeEnabledChannel, - RegisteredPayee as IbcApplicationsFeeV1RegisteredPayee, - RegisteredCounterpartyPayee as IbcApplicationsFeeV1RegisteredCounterpartyPayee, - ForwardRelayerAddress as IbcApplicationsFeeV1ForwardRelayerAddress, -} from "./ibc/applications/fee/v1/genesis_pb.js"; -export { - Fee as IbcApplicationsFeeV1Fee, - PacketFee as IbcApplicationsFeeV1PacketFee, - PacketFees as IbcApplicationsFeeV1PacketFees, - IdentifiedPacketFees as IbcApplicationsFeeV1IdentifiedPacketFees, -} from "./ibc/applications/fee/v1/fee_pb.js"; -export { - IncentivizedAcknowledgement as IbcApplicationsFeeV1IncentivizedAcknowledgement, -} from "./ibc/applications/fee/v1/ack_pb.js"; -export { - ExtensionOptionsWeb3Tx as EthermintTypesV1ExtensionOptionsWeb3Tx, -} from "./ethermint/types/v1/web3_pb.js"; -export { - TxResult as EthermintTypesV1TxResult, -} from "./ethermint/types/v1/indexer_pb.js"; -export { - ExtensionOptionDynamicFeeTx as EthermintTypesV1ExtensionOptionDynamicFeeTx, -} from "./ethermint/types/v1/dynamic_fee_pb.js"; -export { - EthAccount as EthermintTypesV1EthAccount, -} from "./ethermint/types/v1/account_pb.js"; -export { - MsgUpdateParams as EthermintFeemarketV1MsgUpdateParams, - MsgUpdateParamsResponse as EthermintFeemarketV1MsgUpdateParamsResponse, -} from "./ethermint/feemarket/v1/tx_pb.js"; -export { - MsgUpdateParamsService as EthermintFeemarketV1MsgUpdateParamsService, -} from "./ethermint/feemarket/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as EthermintFeemarketV1QueryParamsRequest, - QueryParamsResponse as EthermintFeemarketV1QueryParamsResponse, - QueryBaseFeeRequest as EthermintFeemarketV1QueryBaseFeeRequest, - QueryBaseFeeResponse as EthermintFeemarketV1QueryBaseFeeResponse, - QueryBlockGasRequest as EthermintFeemarketV1QueryBlockGasRequest, - QueryBlockGasResponse as EthermintFeemarketV1QueryBlockGasResponse, -} from "./ethermint/feemarket/v1/query_pb.js"; -export { - QueryParamsService as EthermintFeemarketV1QueryParamsService, - QueryBaseFeeService as EthermintFeemarketV1QueryBaseFeeService, - QueryBlockGasService as EthermintFeemarketV1QueryBlockGasService, -} from "./ethermint/feemarket/v1/query_@onsonr/es.js"; -export { - GenesisState as EthermintFeemarketV1GenesisState, -} from "./ethermint/feemarket/v1/genesis_pb.js"; -export { - Params as EthermintFeemarketV1Params, -} from "./ethermint/feemarket/v1/feemarket_pb.js"; -export { - EventFeeMarket as EthermintFeemarketV1EventFeeMarket, - EventBlockGas as EthermintFeemarketV1EventBlockGas, -} from "./ethermint/feemarket/v1/events_pb.js"; -export { - MsgEthereumTx as EthermintEvmV1MsgEthereumTx, - LegacyTx as EthermintEvmV1LegacyTx, - AccessListTx as EthermintEvmV1AccessListTx, - DynamicFeeTx as EthermintEvmV1DynamicFeeTx, - ExtensionOptionsEthereumTx as EthermintEvmV1ExtensionOptionsEthereumTx, - MsgEthereumTxResponse as EthermintEvmV1MsgEthereumTxResponse, - MsgUpdateParams as EthermintEvmV1MsgUpdateParams, - MsgUpdateParamsResponse as EthermintEvmV1MsgUpdateParamsResponse, -} from "./ethermint/evm/v1/tx_pb.js"; -export { - MsgEthereumTxService as EthermintEvmV1MsgEthereumTxService, - MsgUpdateParamsService as EthermintEvmV1MsgUpdateParamsService, -} from "./ethermint/evm/v1/tx_@onsonr/es.js"; -export { - QueryAccountRequest as EthermintEvmV1QueryAccountRequest, - QueryAccountResponse as EthermintEvmV1QueryAccountResponse, - QueryCosmosAccountRequest as EthermintEvmV1QueryCosmosAccountRequest, - QueryCosmosAccountResponse as EthermintEvmV1QueryCosmosAccountResponse, - QueryValidatorAccountRequest as EthermintEvmV1QueryValidatorAccountRequest, - QueryValidatorAccountResponse as EthermintEvmV1QueryValidatorAccountResponse, - QueryBalanceRequest as EthermintEvmV1QueryBalanceRequest, - QueryBalanceResponse as EthermintEvmV1QueryBalanceResponse, - QueryStorageRequest as EthermintEvmV1QueryStorageRequest, - QueryStorageResponse as EthermintEvmV1QueryStorageResponse, - QueryCodeRequest as EthermintEvmV1QueryCodeRequest, - QueryCodeResponse as EthermintEvmV1QueryCodeResponse, - QueryTxLogsRequest as EthermintEvmV1QueryTxLogsRequest, - QueryTxLogsResponse as EthermintEvmV1QueryTxLogsResponse, - QueryParamsRequest as EthermintEvmV1QueryParamsRequest, - QueryParamsResponse as EthermintEvmV1QueryParamsResponse, - EthCallRequest as EthermintEvmV1EthCallRequest, - EstimateGasResponse as EthermintEvmV1EstimateGasResponse, - QueryTraceTxRequest as EthermintEvmV1QueryTraceTxRequest, - QueryTraceTxResponse as EthermintEvmV1QueryTraceTxResponse, - QueryTraceBlockRequest as EthermintEvmV1QueryTraceBlockRequest, - QueryTraceBlockResponse as EthermintEvmV1QueryTraceBlockResponse, - QueryBaseFeeRequest as EthermintEvmV1QueryBaseFeeRequest, - QueryBaseFeeResponse as EthermintEvmV1QueryBaseFeeResponse, -} from "./ethermint/evm/v1/query_pb.js"; -export { - QueryAccountService as EthermintEvmV1QueryAccountService, - QueryCosmosAccountService as EthermintEvmV1QueryCosmosAccountService, - QueryValidatorAccountService as EthermintEvmV1QueryValidatorAccountService, - QueryBalanceService as EthermintEvmV1QueryBalanceService, - QueryStorageService as EthermintEvmV1QueryStorageService, - QueryCodeService as EthermintEvmV1QueryCodeService, - QueryParamsService as EthermintEvmV1QueryParamsService, - QueryEthCallService as EthermintEvmV1QueryEthCallService, - QueryEstimateGasService as EthermintEvmV1QueryEstimateGasService, - QueryTraceTxService as EthermintEvmV1QueryTraceTxService, - QueryTraceBlockService as EthermintEvmV1QueryTraceBlockService, - QueryBaseFeeService as EthermintEvmV1QueryBaseFeeService, -} from "./ethermint/evm/v1/query_@onsonr/es.js"; -export { - GenesisState as EthermintEvmV1GenesisState, - GenesisAccount as EthermintEvmV1GenesisAccount, -} from "./ethermint/evm/v1/genesis_pb.js"; -export { - Params as EthermintEvmV1Params, - ChainConfig as EthermintEvmV1ChainConfig, - State as EthermintEvmV1State, - TransactionLogs as EthermintEvmV1TransactionLogs, - Log as EthermintEvmV1Log, - TxResult as EthermintEvmV1TxResult, - AccessTuple as EthermintEvmV1AccessTuple, - TraceConfig as EthermintEvmV1TraceConfig, -} from "./ethermint/evm/v1/evm_pb.js"; -export { - EventEthereumTx as EthermintEvmV1EventEthereumTx, - EventTxLog as EthermintEvmV1EventTxLog, - EventMessage as EthermintEvmV1EventMessage, - EventBlockBloom as EthermintEvmV1EventBlockBloom, -} from "./ethermint/evm/v1/events_pb.js"; -export { - PubKey as EthermintCryptoV1Ethsecp256k1PubKey, - PrivKey as EthermintCryptoV1Ethsecp256k1PrivKey, -} from "./ethermint/crypto/v1/ethsecp256k1/keys_pb.js"; -export { - MsgUpdateParams as DwnV1MsgUpdateParams, - MsgUpdateParamsResponse as DwnV1MsgUpdateParamsResponse, - MsgInitialize as DwnV1MsgInitialize, - MsgInitializeResponse as DwnV1MsgInitializeResponse, -} from "./dwn/v1/tx_pb.js"; -export { - MsgUpdateParamsService as DwnV1MsgUpdateParamsService, - MsgInitializeService as DwnV1MsgInitializeService, -} from "./dwn/v1/tx_@onsonr/es.js"; -export { - Credential as DwnV1Credential, - Profile as DwnV1Profile, -} from "./dwn/v1/state_pb.js"; -export { - QueryParamsRequest as DwnV1QueryParamsRequest, - QueryParamsResponse as DwnV1QueryParamsResponse, - QuerySchemaRequest as DwnV1QuerySchemaRequest, - QuerySchemaResponse as DwnV1QuerySchemaResponse, - QueryAllocateRequest as DwnV1QueryAllocateRequest, - QueryAllocateResponse as DwnV1QueryAllocateResponse, - QuerySyncRequest as DwnV1QuerySyncRequest, - QuerySyncResponse as DwnV1QuerySyncResponse, -} from "./dwn/v1/query_pb.js"; -export { - QueryParamsService as DwnV1QueryParamsService, - QuerySchemaService as DwnV1QuerySchemaService, - QueryAllocateService as DwnV1QueryAllocateService, - QuerySyncService as DwnV1QuerySyncService, -} from "./dwn/v1/query_@onsonr/es.js"; -export { - GenesisState as DwnV1GenesisState, - Params as DwnV1Params, - Capability as DwnV1Capability, - KeyInfo as DwnV1KeyInfo, - Resource as DwnV1Resource, - Schema as DwnV1Schema, -} from "./dwn/v1/genesis_pb.js"; -export { - Module as DwnModuleV1Module, -} from "./dwn/module/v1/module_pb.js"; -export { - MsgLinkAuthentication as DidV1MsgLinkAuthentication, - MsgLinkAuthenticationResponse as DidV1MsgLinkAuthenticationResponse, - MsgLinkAssertion as DidV1MsgLinkAssertion, - MsgLinkAssertionResponse as DidV1MsgLinkAssertionResponse, - MsgExecuteTx as DidV1MsgExecuteTx, - MsgExecuteTxResponse as DidV1MsgExecuteTxResponse, - MsgUnlinkAssertion as DidV1MsgUnlinkAssertion, - MsgUnlinkAssertionResponse as DidV1MsgUnlinkAssertionResponse, - MsgUnlinkAuthentication as DidV1MsgUnlinkAuthentication, - MsgUnlinkAuthenticationResponse as DidV1MsgUnlinkAuthenticationResponse, - MsgUpdateParams as DidV1MsgUpdateParams, - MsgUpdateParamsResponse as DidV1MsgUpdateParamsResponse, -} from "./did/v1/tx_pb.js"; -export { - MsgExecuteTxService as DidV1MsgExecuteTxService, - MsgLinkAssertionService as DidV1MsgLinkAssertionService, - MsgLinkAuthenticationService as DidV1MsgLinkAuthenticationService, - MsgUnlinkAssertionService as DidV1MsgUnlinkAssertionService, - MsgUnlinkAuthenticationService as DidV1MsgUnlinkAuthenticationService, - MsgUpdateParamsService as DidV1MsgUpdateParamsService, -} from "./did/v1/tx_@onsonr/es.js"; -export { - Account as DidV1Account, - PublicKey as DidV1PublicKey, - Verification as DidV1Verification, -} from "./did/v1/state_pb.js"; -export { - QueryRequest as DidV1QueryRequest, - QueryParamsResponse as DidV1QueryParamsResponse, - QueryResolveResponse as DidV1QueryResolveResponse, - QuerySignRequest as DidV1QuerySignRequest, - QuerySignResponse as DidV1QuerySignResponse, - QueryVerifyRequest as DidV1QueryVerifyRequest, - QueryVerifyResponse as DidV1QueryVerifyResponse, -} from "./did/v1/query_pb.js"; -export { - QueryParamsService as DidV1QueryParamsService, - QueryResolveService as DidV1QueryResolveService, - QueryVerifyService as DidV1QueryVerifyService, -} from "./did/v1/query_@onsonr/es.js"; -export { - GenesisState as DidV1GenesisState, - Document as DidV1Document, - Params as DidV1Params, -} from "./did/v1/genesis_pb.js"; -export { - Module as DidModuleV1Module, -} from "./did/module/v1/module_pb.js"; -export { - AccessType as CosmwasmWasmV1AccessType, - ContractCodeHistoryOperationType as CosmwasmWasmV1ContractCodeHistoryOperationType, - AccessTypeParam as CosmwasmWasmV1AccessTypeParam, - AccessConfig as CosmwasmWasmV1AccessConfig, - Params as CosmwasmWasmV1Params, - CodeInfo as CosmwasmWasmV1CodeInfo, - ContractInfo as CosmwasmWasmV1ContractInfo, - ContractCodeHistoryEntry as CosmwasmWasmV1ContractCodeHistoryEntry, - AbsoluteTxPosition as CosmwasmWasmV1AbsoluteTxPosition, - Model as CosmwasmWasmV1Model, -} from "./cosmwasm/wasm/v1/types_pb.js"; -export { - MsgStoreCode as CosmwasmWasmV1MsgStoreCode, - MsgStoreCodeResponse as CosmwasmWasmV1MsgStoreCodeResponse, - MsgInstantiateContract as CosmwasmWasmV1MsgInstantiateContract, - MsgInstantiateContractResponse as CosmwasmWasmV1MsgInstantiateContractResponse, - MsgInstantiateContract2 as CosmwasmWasmV1MsgInstantiateContract2, - MsgInstantiateContract2Response as CosmwasmWasmV1MsgInstantiateContract2Response, - MsgExecuteContract as CosmwasmWasmV1MsgExecuteContract, - MsgExecuteContractResponse as CosmwasmWasmV1MsgExecuteContractResponse, - MsgMigrateContract as CosmwasmWasmV1MsgMigrateContract, - MsgMigrateContractResponse as CosmwasmWasmV1MsgMigrateContractResponse, - MsgUpdateAdmin as CosmwasmWasmV1MsgUpdateAdmin, - MsgUpdateAdminResponse as CosmwasmWasmV1MsgUpdateAdminResponse, - MsgClearAdmin as CosmwasmWasmV1MsgClearAdmin, - MsgClearAdminResponse as CosmwasmWasmV1MsgClearAdminResponse, - MsgUpdateInstantiateConfig as CosmwasmWasmV1MsgUpdateInstantiateConfig, - MsgUpdateInstantiateConfigResponse as CosmwasmWasmV1MsgUpdateInstantiateConfigResponse, - MsgUpdateParams as CosmwasmWasmV1MsgUpdateParams, - MsgUpdateParamsResponse as CosmwasmWasmV1MsgUpdateParamsResponse, - MsgSudoContract as CosmwasmWasmV1MsgSudoContract, - MsgSudoContractResponse as CosmwasmWasmV1MsgSudoContractResponse, - MsgPinCodes as CosmwasmWasmV1MsgPinCodes, - MsgPinCodesResponse as CosmwasmWasmV1MsgPinCodesResponse, - MsgUnpinCodes as CosmwasmWasmV1MsgUnpinCodes, - MsgUnpinCodesResponse as CosmwasmWasmV1MsgUnpinCodesResponse, - MsgStoreAndInstantiateContract as CosmwasmWasmV1MsgStoreAndInstantiateContract, - MsgStoreAndInstantiateContractResponse as CosmwasmWasmV1MsgStoreAndInstantiateContractResponse, - MsgAddCodeUploadParamsAddresses as CosmwasmWasmV1MsgAddCodeUploadParamsAddresses, - MsgAddCodeUploadParamsAddressesResponse as CosmwasmWasmV1MsgAddCodeUploadParamsAddressesResponse, - MsgRemoveCodeUploadParamsAddresses as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddresses, - MsgRemoveCodeUploadParamsAddressesResponse as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddressesResponse, - MsgStoreAndMigrateContract as CosmwasmWasmV1MsgStoreAndMigrateContract, - MsgStoreAndMigrateContractResponse as CosmwasmWasmV1MsgStoreAndMigrateContractResponse, - MsgUpdateContractLabel as CosmwasmWasmV1MsgUpdateContractLabel, - MsgUpdateContractLabelResponse as CosmwasmWasmV1MsgUpdateContractLabelResponse, -} from "./cosmwasm/wasm/v1/tx_pb.js"; -export { - MsgStoreCodeService as CosmwasmWasmV1MsgStoreCodeService, - MsgInstantiateContractService as CosmwasmWasmV1MsgInstantiateContractService, - MsgInstantiateContract2Service as CosmwasmWasmV1MsgInstantiateContract2Service, - MsgExecuteContractService as CosmwasmWasmV1MsgExecuteContractService, - MsgMigrateContractService as CosmwasmWasmV1MsgMigrateContractService, - MsgUpdateAdminService as CosmwasmWasmV1MsgUpdateAdminService, - MsgClearAdminService as CosmwasmWasmV1MsgClearAdminService, - MsgUpdateInstantiateConfigService as CosmwasmWasmV1MsgUpdateInstantiateConfigService, - MsgUpdateParamsService as CosmwasmWasmV1MsgUpdateParamsService, - MsgSudoContractService as CosmwasmWasmV1MsgSudoContractService, - MsgPinCodesService as CosmwasmWasmV1MsgPinCodesService, - MsgUnpinCodesService as CosmwasmWasmV1MsgUnpinCodesService, - MsgStoreAndInstantiateContractService as CosmwasmWasmV1MsgStoreAndInstantiateContractService, - MsgRemoveCodeUploadParamsAddressesService as CosmwasmWasmV1MsgRemoveCodeUploadParamsAddressesService, - MsgAddCodeUploadParamsAddressesService as CosmwasmWasmV1MsgAddCodeUploadParamsAddressesService, - MsgStoreAndMigrateContractService as CosmwasmWasmV1MsgStoreAndMigrateContractService, - MsgUpdateContractLabelService as CosmwasmWasmV1MsgUpdateContractLabelService, -} from "./cosmwasm/wasm/v1/tx_@onsonr/es.js"; -export { - QueryContractInfoRequest as CosmwasmWasmV1QueryContractInfoRequest, - QueryContractInfoResponse as CosmwasmWasmV1QueryContractInfoResponse, - QueryContractHistoryRequest as CosmwasmWasmV1QueryContractHistoryRequest, - QueryContractHistoryResponse as CosmwasmWasmV1QueryContractHistoryResponse, - QueryContractsByCodeRequest as CosmwasmWasmV1QueryContractsByCodeRequest, - QueryContractsByCodeResponse as CosmwasmWasmV1QueryContractsByCodeResponse, - QueryAllContractStateRequest as CosmwasmWasmV1QueryAllContractStateRequest, - QueryAllContractStateResponse as CosmwasmWasmV1QueryAllContractStateResponse, - QueryRawContractStateRequest as CosmwasmWasmV1QueryRawContractStateRequest, - QueryRawContractStateResponse as CosmwasmWasmV1QueryRawContractStateResponse, - QuerySmartContractStateRequest as CosmwasmWasmV1QuerySmartContractStateRequest, - QuerySmartContractStateResponse as CosmwasmWasmV1QuerySmartContractStateResponse, - QueryCodeRequest as CosmwasmWasmV1QueryCodeRequest, - QueryCodeInfoRequest as CosmwasmWasmV1QueryCodeInfoRequest, - QueryCodeInfoResponse as CosmwasmWasmV1QueryCodeInfoResponse, - CodeInfoResponse as CosmwasmWasmV1CodeInfoResponse, - QueryCodeResponse as CosmwasmWasmV1QueryCodeResponse, - QueryCodesRequest as CosmwasmWasmV1QueryCodesRequest, - QueryCodesResponse as CosmwasmWasmV1QueryCodesResponse, - QueryPinnedCodesRequest as CosmwasmWasmV1QueryPinnedCodesRequest, - QueryPinnedCodesResponse as CosmwasmWasmV1QueryPinnedCodesResponse, - QueryParamsRequest as CosmwasmWasmV1QueryParamsRequest, - QueryParamsResponse as CosmwasmWasmV1QueryParamsResponse, - QueryContractsByCreatorRequest as CosmwasmWasmV1QueryContractsByCreatorRequest, - QueryContractsByCreatorResponse as CosmwasmWasmV1QueryContractsByCreatorResponse, - QueryWasmLimitsConfigRequest as CosmwasmWasmV1QueryWasmLimitsConfigRequest, - QueryWasmLimitsConfigResponse as CosmwasmWasmV1QueryWasmLimitsConfigResponse, - QueryBuildAddressRequest as CosmwasmWasmV1QueryBuildAddressRequest, - QueryBuildAddressResponse as CosmwasmWasmV1QueryBuildAddressResponse, -} from "./cosmwasm/wasm/v1/query_pb.js"; -export { - QueryContractInfoService as CosmwasmWasmV1QueryContractInfoService, - QueryContractHistoryService as CosmwasmWasmV1QueryContractHistoryService, - QueryContractsByCodeService as CosmwasmWasmV1QueryContractsByCodeService, - QueryAllContractStateService as CosmwasmWasmV1QueryAllContractStateService, - QueryRawContractStateService as CosmwasmWasmV1QueryRawContractStateService, - QuerySmartContractStateService as CosmwasmWasmV1QuerySmartContractStateService, - QueryCodeService as CosmwasmWasmV1QueryCodeService, - QueryCodesService as CosmwasmWasmV1QueryCodesService, - QueryCodeInfoService as CosmwasmWasmV1QueryCodeInfoService, - QueryPinnedCodesService as CosmwasmWasmV1QueryPinnedCodesService, - QueryParamsService as CosmwasmWasmV1QueryParamsService, - QueryContractsByCreatorService as CosmwasmWasmV1QueryContractsByCreatorService, - QueryWasmLimitsConfigService as CosmwasmWasmV1QueryWasmLimitsConfigService, - QueryBuildAddressService as CosmwasmWasmV1QueryBuildAddressService, -} from "./cosmwasm/wasm/v1/query_@onsonr/es.js"; -export { - StoreCodeProposal as CosmwasmWasmV1StoreCodeProposal, - InstantiateContractProposal as CosmwasmWasmV1InstantiateContractProposal, - InstantiateContract2Proposal as CosmwasmWasmV1InstantiateContract2Proposal, - MigrateContractProposal as CosmwasmWasmV1MigrateContractProposal, - SudoContractProposal as CosmwasmWasmV1SudoContractProposal, - ExecuteContractProposal as CosmwasmWasmV1ExecuteContractProposal, - UpdateAdminProposal as CosmwasmWasmV1UpdateAdminProposal, - ClearAdminProposal as CosmwasmWasmV1ClearAdminProposal, - PinCodesProposal as CosmwasmWasmV1PinCodesProposal, - UnpinCodesProposal as CosmwasmWasmV1UnpinCodesProposal, - AccessConfigUpdate as CosmwasmWasmV1AccessConfigUpdate, - UpdateInstantiateConfigProposal as CosmwasmWasmV1UpdateInstantiateConfigProposal, - StoreAndInstantiateContractProposal as CosmwasmWasmV1StoreAndInstantiateContractProposal, -} from "./cosmwasm/wasm/v1/proposal_legacy_pb.js"; -export { - MsgIBCSend as CosmwasmWasmV1MsgIBCSend, - MsgIBCSendResponse as CosmwasmWasmV1MsgIBCSendResponse, - MsgIBCWriteAcknowledgementResponse as CosmwasmWasmV1MsgIBCWriteAcknowledgementResponse, - MsgIBCCloseChannel as CosmwasmWasmV1MsgIBCCloseChannel, -} from "./cosmwasm/wasm/v1/ibc_pb.js"; -export { - GenesisState as CosmwasmWasmV1GenesisState, - Code as CosmwasmWasmV1Code, - Contract as CosmwasmWasmV1Contract, - Sequence as CosmwasmWasmV1Sequence, -} from "./cosmwasm/wasm/v1/genesis_pb.js"; -export { - StoreCodeAuthorization as CosmwasmWasmV1StoreCodeAuthorization, - ContractExecutionAuthorization as CosmwasmWasmV1ContractExecutionAuthorization, - ContractMigrationAuthorization as CosmwasmWasmV1ContractMigrationAuthorization, - CodeGrant as CosmwasmWasmV1CodeGrant, - ContractGrant as CosmwasmWasmV1ContractGrant, - MaxCallsLimit as CosmwasmWasmV1MaxCallsLimit, - MaxFundsLimit as CosmwasmWasmV1MaxFundsLimit, - CombinedLimit as CosmwasmWasmV1CombinedLimit, - AllowAllMessagesFilter as CosmwasmWasmV1AllowAllMessagesFilter, - AcceptedMessageKeysFilter as CosmwasmWasmV1AcceptedMessageKeysFilter, - AcceptedMessagesFilter as CosmwasmWasmV1AcceptedMessagesFilter, -} from "./cosmwasm/wasm/v1/authz_pb.js"; -export { - BaseVestingAccount as CosmosVestingV1beta1BaseVestingAccount, - ContinuousVestingAccount as CosmosVestingV1beta1ContinuousVestingAccount, - DelayedVestingAccount as CosmosVestingV1beta1DelayedVestingAccount, - Period as CosmosVestingV1beta1Period, - PeriodicVestingAccount as CosmosVestingV1beta1PeriodicVestingAccount, - PermanentLockedAccount as CosmosVestingV1beta1PermanentLockedAccount, -} from "./cosmos/vesting/v1beta1/vesting_pb.js"; -export { - MsgCreateVestingAccount as CosmosVestingV1beta1MsgCreateVestingAccount, - MsgCreateVestingAccountResponse as CosmosVestingV1beta1MsgCreateVestingAccountResponse, - MsgCreatePermanentLockedAccount as CosmosVestingV1beta1MsgCreatePermanentLockedAccount, - MsgCreatePermanentLockedAccountResponse as CosmosVestingV1beta1MsgCreatePermanentLockedAccountResponse, - MsgCreatePeriodicVestingAccount as CosmosVestingV1beta1MsgCreatePeriodicVestingAccount, - MsgCreatePeriodicVestingAccountResponse as CosmosVestingV1beta1MsgCreatePeriodicVestingAccountResponse, -} from "./cosmos/vesting/v1beta1/tx_pb.js"; -export { - MsgCreateVestingAccountService as CosmosVestingV1beta1MsgCreateVestingAccountService, - MsgCreatePermanentLockedAccountService as CosmosVestingV1beta1MsgCreatePermanentLockedAccountService, - MsgCreatePeriodicVestingAccountService as CosmosVestingV1beta1MsgCreatePeriodicVestingAccountService, -} from "./cosmos/vesting/v1beta1/tx_@onsonr/es.js"; -export { - Module as CosmosVestingModuleV1Module, -} from "./cosmos/vesting/module/v1/module_pb.js"; -export { - Plan as CosmosUpgradeV1beta1Plan, - SoftwareUpgradeProposal as CosmosUpgradeV1beta1SoftwareUpgradeProposal, - CancelSoftwareUpgradeProposal as CosmosUpgradeV1beta1CancelSoftwareUpgradeProposal, - ModuleVersion as CosmosUpgradeV1beta1ModuleVersion, -} from "./cosmos/upgrade/v1beta1/upgrade_pb.js"; -export { - MsgSoftwareUpgrade as CosmosUpgradeV1beta1MsgSoftwareUpgrade, - MsgSoftwareUpgradeResponse as CosmosUpgradeV1beta1MsgSoftwareUpgradeResponse, - MsgCancelUpgrade as CosmosUpgradeV1beta1MsgCancelUpgrade, - MsgCancelUpgradeResponse as CosmosUpgradeV1beta1MsgCancelUpgradeResponse, -} from "./cosmos/upgrade/v1beta1/tx_pb.js"; -export { - MsgSoftwareUpgradeService as CosmosUpgradeV1beta1MsgSoftwareUpgradeService, - MsgCancelUpgradeService as CosmosUpgradeV1beta1MsgCancelUpgradeService, -} from "./cosmos/upgrade/v1beta1/tx_@onsonr/es.js"; -export { - QueryCurrentPlanRequest as CosmosUpgradeV1beta1QueryCurrentPlanRequest, - QueryCurrentPlanResponse as CosmosUpgradeV1beta1QueryCurrentPlanResponse, - QueryAppliedPlanRequest as CosmosUpgradeV1beta1QueryAppliedPlanRequest, - QueryAppliedPlanResponse as CosmosUpgradeV1beta1QueryAppliedPlanResponse, - QueryUpgradedConsensusStateRequest as CosmosUpgradeV1beta1QueryUpgradedConsensusStateRequest, - QueryUpgradedConsensusStateResponse as CosmosUpgradeV1beta1QueryUpgradedConsensusStateResponse, - QueryModuleVersionsRequest as CosmosUpgradeV1beta1QueryModuleVersionsRequest, - QueryModuleVersionsResponse as CosmosUpgradeV1beta1QueryModuleVersionsResponse, - QueryAuthorityRequest as CosmosUpgradeV1beta1QueryAuthorityRequest, - QueryAuthorityResponse as CosmosUpgradeV1beta1QueryAuthorityResponse, -} from "./cosmos/upgrade/v1beta1/query_pb.js"; -export { - QueryCurrentPlanService as CosmosUpgradeV1beta1QueryCurrentPlanService, - QueryAppliedPlanService as CosmosUpgradeV1beta1QueryAppliedPlanService, - QueryUpgradedConsensusStateService as CosmosUpgradeV1beta1QueryUpgradedConsensusStateService, - QueryModuleVersionsService as CosmosUpgradeV1beta1QueryModuleVersionsService, - QueryAuthorityService as CosmosUpgradeV1beta1QueryAuthorityService, -} from "./cosmos/upgrade/v1beta1/query_@onsonr/es.js"; -export { - Module as CosmosUpgradeModuleV1Module, -} from "./cosmos/upgrade/module/v1/module_pb.js"; -export { - Tx as CosmosTxV1beta1Tx, - TxRaw as CosmosTxV1beta1TxRaw, - SignDoc as CosmosTxV1beta1SignDoc, - SignDocDirectAux as CosmosTxV1beta1SignDocDirectAux, - TxBody as CosmosTxV1beta1TxBody, - AuthInfo as CosmosTxV1beta1AuthInfo, - SignerInfo as CosmosTxV1beta1SignerInfo, - ModeInfo as CosmosTxV1beta1ModeInfo, - ModeInfo_Single as CosmosTxV1beta1ModeInfo_Single, - ModeInfo_Multi as CosmosTxV1beta1ModeInfo_Multi, - Fee as CosmosTxV1beta1Fee, - Tip as CosmosTxV1beta1Tip, - AuxSignerData as CosmosTxV1beta1AuxSignerData, -} from "./cosmos/tx/v1beta1/tx_pb.js"; -export { - OrderBy as CosmosTxV1beta1OrderBy, - BroadcastMode as CosmosTxV1beta1BroadcastMode, - GetTxsEventRequest as CosmosTxV1beta1GetTxsEventRequest, - GetTxsEventResponse as CosmosTxV1beta1GetTxsEventResponse, - BroadcastTxRequest as CosmosTxV1beta1BroadcastTxRequest, - BroadcastTxResponse as CosmosTxV1beta1BroadcastTxResponse, - SimulateRequest as CosmosTxV1beta1SimulateRequest, - SimulateResponse as CosmosTxV1beta1SimulateResponse, - GetTxRequest as CosmosTxV1beta1GetTxRequest, - GetTxResponse as CosmosTxV1beta1GetTxResponse, - GetBlockWithTxsRequest as CosmosTxV1beta1GetBlockWithTxsRequest, - GetBlockWithTxsResponse as CosmosTxV1beta1GetBlockWithTxsResponse, - TxDecodeRequest as CosmosTxV1beta1TxDecodeRequest, - TxDecodeResponse as CosmosTxV1beta1TxDecodeResponse, - TxEncodeRequest as CosmosTxV1beta1TxEncodeRequest, - TxEncodeResponse as CosmosTxV1beta1TxEncodeResponse, - TxEncodeAminoRequest as CosmosTxV1beta1TxEncodeAminoRequest, - TxEncodeAminoResponse as CosmosTxV1beta1TxEncodeAminoResponse, - TxDecodeAminoRequest as CosmosTxV1beta1TxDecodeAminoRequest, - TxDecodeAminoResponse as CosmosTxV1beta1TxDecodeAminoResponse, -} from "./cosmos/tx/v1beta1/service_pb.js"; -export { - ServiceSimulateService as CosmosTxV1beta1ServiceSimulateService, - ServiceGetTxService as CosmosTxV1beta1ServiceGetTxService, - ServiceBroadcastTxService as CosmosTxV1beta1ServiceBroadcastTxService, - ServiceGetTxsEventService as CosmosTxV1beta1ServiceGetTxsEventService, - ServiceGetBlockWithTxsService as CosmosTxV1beta1ServiceGetBlockWithTxsService, - ServiceTxDecodeService as CosmosTxV1beta1ServiceTxDecodeService, - ServiceTxEncodeService as CosmosTxV1beta1ServiceTxEncodeService, - ServiceTxEncodeAminoService as CosmosTxV1beta1ServiceTxEncodeAminoService, - ServiceTxDecodeAminoService as CosmosTxV1beta1ServiceTxDecodeAminoService, -} from "./cosmos/tx/v1beta1/service_@onsonr/es.js"; -export { - SignMode as CosmosTxSigningV1beta1SignMode, - SignatureDescriptors as CosmosTxSigningV1beta1SignatureDescriptors, - SignatureDescriptor as CosmosTxSigningV1beta1SignatureDescriptor, - SignatureDescriptor_Data as CosmosTxSigningV1beta1SignatureDescriptor_Data, - SignatureDescriptor_Data_Single as CosmosTxSigningV1beta1SignatureDescriptor_Data_Single, - SignatureDescriptor_Data_Multi as CosmosTxSigningV1beta1SignatureDescriptor_Data_Multi, -} from "./cosmos/tx/signing/v1beta1/signing_pb.js"; -export { - Config as CosmosTxConfigV1Config, -} from "./cosmos/tx/config/v1/config_pb.js"; -export { - StoreKVPair as CosmosStoreV1beta1StoreKVPair, - BlockMetadata as CosmosStoreV1beta1BlockMetadata, -} from "./cosmos/store/v1beta1/listening_pb.js"; -export { - CommitInfo as CosmosStoreV1beta1CommitInfo, - StoreInfo as CosmosStoreV1beta1StoreInfo, - CommitID as CosmosStoreV1beta1CommitID, -} from "./cosmos/store/v1beta1/commit_info_pb.js"; -export { - ListenFinalizeBlockRequest as CosmosStoreStreamingAbciListenFinalizeBlockRequest, - ListenFinalizeBlockResponse as CosmosStoreStreamingAbciListenFinalizeBlockResponse, - ListenCommitRequest as CosmosStoreStreamingAbciListenCommitRequest, - ListenCommitResponse as CosmosStoreStreamingAbciListenCommitResponse, -} from "./cosmos/store/streaming/abci/grpc_pb.js"; -export { - ABCIListenerServiceListenFinalizeBlockService as CosmosStoreStreamingAbciABCIListenerServiceListenFinalizeBlockService, - ABCIListenerServiceListenCommitService as CosmosStoreStreamingAbciABCIListenerServiceListenCommitService, -} from "./cosmos/store/streaming/abci/grpc_@onsonr/es.js"; -export { - Snapshot as CosmosStoreSnapshotsV1Snapshot, - Metadata as CosmosStoreSnapshotsV1Metadata, - SnapshotItem as CosmosStoreSnapshotsV1SnapshotItem, - SnapshotStoreItem as CosmosStoreSnapshotsV1SnapshotStoreItem, - SnapshotIAVLItem as CosmosStoreSnapshotsV1SnapshotIAVLItem, - SnapshotExtensionMeta as CosmosStoreSnapshotsV1SnapshotExtensionMeta, - SnapshotExtensionPayload as CosmosStoreSnapshotsV1SnapshotExtensionPayload, -} from "./cosmos/store/snapshots/v1/snapshot_pb.js"; -export { - Pairs as CosmosStoreInternalKvV1beta1Pairs, - Pair as CosmosStoreInternalKvV1beta1Pair, -} from "./cosmos/store/internal/kv/v1beta1/kv_pb.js"; -export { - MsgCreateValidator as CosmosStakingV1beta1MsgCreateValidator, - MsgCreateValidatorResponse as CosmosStakingV1beta1MsgCreateValidatorResponse, - MsgEditValidator as CosmosStakingV1beta1MsgEditValidator, - MsgEditValidatorResponse as CosmosStakingV1beta1MsgEditValidatorResponse, - MsgDelegate as CosmosStakingV1beta1MsgDelegate, - MsgDelegateResponse as CosmosStakingV1beta1MsgDelegateResponse, - MsgBeginRedelegate as CosmosStakingV1beta1MsgBeginRedelegate, - MsgBeginRedelegateResponse as CosmosStakingV1beta1MsgBeginRedelegateResponse, - MsgUndelegate as CosmosStakingV1beta1MsgUndelegate, - MsgUndelegateResponse as CosmosStakingV1beta1MsgUndelegateResponse, - MsgCancelUnbondingDelegation as CosmosStakingV1beta1MsgCancelUnbondingDelegation, - MsgCancelUnbondingDelegationResponse as CosmosStakingV1beta1MsgCancelUnbondingDelegationResponse, - MsgUpdateParams as CosmosStakingV1beta1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosStakingV1beta1MsgUpdateParamsResponse, -} from "./cosmos/staking/v1beta1/tx_pb.js"; -export { - MsgCreateValidatorService as CosmosStakingV1beta1MsgCreateValidatorService, - MsgEditValidatorService as CosmosStakingV1beta1MsgEditValidatorService, - MsgDelegateService as CosmosStakingV1beta1MsgDelegateService, - MsgBeginRedelegateService as CosmosStakingV1beta1MsgBeginRedelegateService, - MsgUndelegateService as CosmosStakingV1beta1MsgUndelegateService, - MsgCancelUnbondingDelegationService as CosmosStakingV1beta1MsgCancelUnbondingDelegationService, - MsgUpdateParamsService as CosmosStakingV1beta1MsgUpdateParamsService, -} from "./cosmos/staking/v1beta1/tx_@onsonr/es.js"; -export { - BondStatus as CosmosStakingV1beta1BondStatus, - Infraction as CosmosStakingV1beta1Infraction, - HistoricalInfo as CosmosStakingV1beta1HistoricalInfo, - CommissionRates as CosmosStakingV1beta1CommissionRates, - Commission as CosmosStakingV1beta1Commission, - Description as CosmosStakingV1beta1Description, - Validator as CosmosStakingV1beta1Validator, - ValAddresses as CosmosStakingV1beta1ValAddresses, - DVPair as CosmosStakingV1beta1DVPair, - DVPairs as CosmosStakingV1beta1DVPairs, - DVVTriplet as CosmosStakingV1beta1DVVTriplet, - DVVTriplets as CosmosStakingV1beta1DVVTriplets, - Delegation as CosmosStakingV1beta1Delegation, - UnbondingDelegation as CosmosStakingV1beta1UnbondingDelegation, - UnbondingDelegationEntry as CosmosStakingV1beta1UnbondingDelegationEntry, - RedelegationEntry as CosmosStakingV1beta1RedelegationEntry, - Redelegation as CosmosStakingV1beta1Redelegation, - Params as CosmosStakingV1beta1Params, - DelegationResponse as CosmosStakingV1beta1DelegationResponse, - RedelegationEntryResponse as CosmosStakingV1beta1RedelegationEntryResponse, - RedelegationResponse as CosmosStakingV1beta1RedelegationResponse, - Pool as CosmosStakingV1beta1Pool, - ValidatorUpdates as CosmosStakingV1beta1ValidatorUpdates, -} from "./cosmos/staking/v1beta1/staking_pb.js"; -export { - QueryValidatorsRequest as CosmosStakingV1beta1QueryValidatorsRequest, - QueryValidatorsResponse as CosmosStakingV1beta1QueryValidatorsResponse, - QueryValidatorRequest as CosmosStakingV1beta1QueryValidatorRequest, - QueryValidatorResponse as CosmosStakingV1beta1QueryValidatorResponse, - QueryValidatorDelegationsRequest as CosmosStakingV1beta1QueryValidatorDelegationsRequest, - QueryValidatorDelegationsResponse as CosmosStakingV1beta1QueryValidatorDelegationsResponse, - QueryValidatorUnbondingDelegationsRequest as CosmosStakingV1beta1QueryValidatorUnbondingDelegationsRequest, - QueryValidatorUnbondingDelegationsResponse as CosmosStakingV1beta1QueryValidatorUnbondingDelegationsResponse, - QueryDelegationRequest as CosmosStakingV1beta1QueryDelegationRequest, - QueryDelegationResponse as CosmosStakingV1beta1QueryDelegationResponse, - QueryUnbondingDelegationRequest as CosmosStakingV1beta1QueryUnbondingDelegationRequest, - QueryUnbondingDelegationResponse as CosmosStakingV1beta1QueryUnbondingDelegationResponse, - QueryDelegatorDelegationsRequest as CosmosStakingV1beta1QueryDelegatorDelegationsRequest, - QueryDelegatorDelegationsResponse as CosmosStakingV1beta1QueryDelegatorDelegationsResponse, - QueryDelegatorUnbondingDelegationsRequest as CosmosStakingV1beta1QueryDelegatorUnbondingDelegationsRequest, - QueryDelegatorUnbondingDelegationsResponse as CosmosStakingV1beta1QueryDelegatorUnbondingDelegationsResponse, - QueryRedelegationsRequest as CosmosStakingV1beta1QueryRedelegationsRequest, - QueryRedelegationsResponse as CosmosStakingV1beta1QueryRedelegationsResponse, - QueryDelegatorValidatorsRequest as CosmosStakingV1beta1QueryDelegatorValidatorsRequest, - QueryDelegatorValidatorsResponse as CosmosStakingV1beta1QueryDelegatorValidatorsResponse, - QueryDelegatorValidatorRequest as CosmosStakingV1beta1QueryDelegatorValidatorRequest, - QueryDelegatorValidatorResponse as CosmosStakingV1beta1QueryDelegatorValidatorResponse, - QueryHistoricalInfoRequest as CosmosStakingV1beta1QueryHistoricalInfoRequest, - QueryHistoricalInfoResponse as CosmosStakingV1beta1QueryHistoricalInfoResponse, - QueryPoolRequest as CosmosStakingV1beta1QueryPoolRequest, - QueryPoolResponse as CosmosStakingV1beta1QueryPoolResponse, - QueryParamsRequest as CosmosStakingV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosStakingV1beta1QueryParamsResponse, -} from "./cosmos/staking/v1beta1/query_pb.js"; -export { - QueryValidatorsService as CosmosStakingV1beta1QueryValidatorsService, - QueryValidatorService as CosmosStakingV1beta1QueryValidatorService, - QueryValidatorDelegationsService as CosmosStakingV1beta1QueryValidatorDelegationsService, - QueryValidatorUnbondingDelegationsService as CosmosStakingV1beta1QueryValidatorUnbondingDelegationsService, - QueryDelegationService as CosmosStakingV1beta1QueryDelegationService, - QueryUnbondingDelegationService as CosmosStakingV1beta1QueryUnbondingDelegationService, - QueryDelegatorDelegationsService as CosmosStakingV1beta1QueryDelegatorDelegationsService, - QueryDelegatorUnbondingDelegationsService as CosmosStakingV1beta1QueryDelegatorUnbondingDelegationsService, - QueryRedelegationsService as CosmosStakingV1beta1QueryRedelegationsService, - QueryDelegatorValidatorsService as CosmosStakingV1beta1QueryDelegatorValidatorsService, - QueryDelegatorValidatorService as CosmosStakingV1beta1QueryDelegatorValidatorService, - QueryHistoricalInfoService as CosmosStakingV1beta1QueryHistoricalInfoService, - QueryPoolService as CosmosStakingV1beta1QueryPoolService, - QueryParamsService as CosmosStakingV1beta1QueryParamsService, -} from "./cosmos/staking/v1beta1/query_@onsonr/es.js"; -export { - GenesisState as CosmosStakingV1beta1GenesisState, - LastValidatorPower as CosmosStakingV1beta1LastValidatorPower, -} from "./cosmos/staking/v1beta1/genesis_pb.js"; -export { - AuthorizationType as CosmosStakingV1beta1AuthorizationType, - StakeAuthorization as CosmosStakingV1beta1StakeAuthorization, - StakeAuthorization_Validators as CosmosStakingV1beta1StakeAuthorization_Validators, -} from "./cosmos/staking/v1beta1/authz_pb.js"; -export { - Module as CosmosStakingModuleV1Module, -} from "./cosmos/staking/module/v1/module_pb.js"; -export { - MsgUnjail as CosmosSlashingV1beta1MsgUnjail, - MsgUnjailResponse as CosmosSlashingV1beta1MsgUnjailResponse, - MsgUpdateParams as CosmosSlashingV1beta1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosSlashingV1beta1MsgUpdateParamsResponse, -} from "./cosmos/slashing/v1beta1/tx_pb.js"; -export { - MsgUnjailService as CosmosSlashingV1beta1MsgUnjailService, - MsgUpdateParamsService as CosmosSlashingV1beta1MsgUpdateParamsService, -} from "./cosmos/slashing/v1beta1/tx_@onsonr/es.js"; -export { - ValidatorSigningInfo as CosmosSlashingV1beta1ValidatorSigningInfo, - Params as CosmosSlashingV1beta1Params, -} from "./cosmos/slashing/v1beta1/slashing_pb.js"; -export { - QueryParamsRequest as CosmosSlashingV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosSlashingV1beta1QueryParamsResponse, - QuerySigningInfoRequest as CosmosSlashingV1beta1QuerySigningInfoRequest, - QuerySigningInfoResponse as CosmosSlashingV1beta1QuerySigningInfoResponse, - QuerySigningInfosRequest as CosmosSlashingV1beta1QuerySigningInfosRequest, - QuerySigningInfosResponse as CosmosSlashingV1beta1QuerySigningInfosResponse, -} from "./cosmos/slashing/v1beta1/query_pb.js"; -export { - QueryParamsService as CosmosSlashingV1beta1QueryParamsService, - QuerySigningInfoService as CosmosSlashingV1beta1QuerySigningInfoService, - QuerySigningInfosService as CosmosSlashingV1beta1QuerySigningInfosService, -} from "./cosmos/slashing/v1beta1/query_@onsonr/es.js"; -export { - GenesisState as CosmosSlashingV1beta1GenesisState, - SigningInfo as CosmosSlashingV1beta1SigningInfo, - ValidatorMissedBlocks as CosmosSlashingV1beta1ValidatorMissedBlocks, - MissedBlock as CosmosSlashingV1beta1MissedBlock, -} from "./cosmos/slashing/v1beta1/genesis_pb.js"; -export { - Module as CosmosSlashingModuleV1Module, -} from "./cosmos/slashing/module/v1/module_pb.js"; -export { - FileDescriptorsRequest as CosmosReflectionV1FileDescriptorsRequest, - FileDescriptorsResponse as CosmosReflectionV1FileDescriptorsResponse, -} from "./cosmos/reflection/v1/reflection_pb.js"; -export { - ReflectionServiceFileDescriptorsService as CosmosReflectionV1ReflectionServiceFileDescriptorsService, -} from "./cosmos/reflection/v1/reflection_@onsonr/es.js"; -export { - QueryParamsRequest as CosmosParamsV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosParamsV1beta1QueryParamsResponse, - QuerySubspacesRequest as CosmosParamsV1beta1QuerySubspacesRequest, - QuerySubspacesResponse as CosmosParamsV1beta1QuerySubspacesResponse, - Subspace as CosmosParamsV1beta1Subspace, -} from "./cosmos/params/v1beta1/query_pb.js"; -export { - QueryParamsService as CosmosParamsV1beta1QueryParamsService, - QuerySubspacesService as CosmosParamsV1beta1QuerySubspacesService, -} from "./cosmos/params/v1beta1/query_@onsonr/es.js"; -export { - ParameterChangeProposal as CosmosParamsV1beta1ParameterChangeProposal, - ParamChange as CosmosParamsV1beta1ParamChange, -} from "./cosmos/params/v1beta1/params_pb.js"; -export { - Module as CosmosParamsModuleV1Module, -} from "./cosmos/params/module/v1/module_pb.js"; -export { - StorageType as CosmosOrmV1alpha1StorageType, - ModuleSchemaDescriptor as CosmosOrmV1alpha1ModuleSchemaDescriptor, - ModuleSchemaDescriptor_FileEntry as CosmosOrmV1alpha1ModuleSchemaDescriptor_FileEntry, -} from "./cosmos/orm/v1alpha1/schema_pb.js"; -export { - TableDescriptor as CosmosOrmV1TableDescriptor, - PrimaryKeyDescriptor as CosmosOrmV1PrimaryKeyDescriptor, - SecondaryIndexDescriptor as CosmosOrmV1SecondaryIndexDescriptor, - SingletonDescriptor as CosmosOrmV1SingletonDescriptor, -} from "./cosmos/orm/v1/orm_pb.js"; -export { - GetRequest as CosmosOrmQueryV1alpha1GetRequest, - GetResponse as CosmosOrmQueryV1alpha1GetResponse, - ListRequest as CosmosOrmQueryV1alpha1ListRequest, - ListRequest_Prefix as CosmosOrmQueryV1alpha1ListRequest_Prefix, - ListRequest_Range as CosmosOrmQueryV1alpha1ListRequest_Range, - ListResponse as CosmosOrmQueryV1alpha1ListResponse, - IndexValue as CosmosOrmQueryV1alpha1IndexValue, -} from "./cosmos/orm/query/v1alpha1/query_pb.js"; -export { - QueryGetService as CosmosOrmQueryV1alpha1QueryGetService, - QueryListService as CosmosOrmQueryV1alpha1QueryListService, -} from "./cosmos/orm/query/v1alpha1/query_@onsonr/es.js"; -export { - Module as CosmosOrmModuleV1alpha1Module, -} from "./cosmos/orm/module/v1alpha1/module_pb.js"; -export { - MsgSend as CosmosNftV1beta1MsgSend, - MsgSendResponse as CosmosNftV1beta1MsgSendResponse, -} from "./cosmos/nft/v1beta1/tx_pb.js"; -export { - MsgSendService as CosmosNftV1beta1MsgSendService, -} from "./cosmos/nft/v1beta1/tx_@onsonr/es.js"; -export { - QueryBalanceRequest as CosmosNftV1beta1QueryBalanceRequest, - QueryBalanceResponse as CosmosNftV1beta1QueryBalanceResponse, - QueryOwnerRequest as CosmosNftV1beta1QueryOwnerRequest, - QueryOwnerResponse as CosmosNftV1beta1QueryOwnerResponse, - QuerySupplyRequest as CosmosNftV1beta1QuerySupplyRequest, - QuerySupplyResponse as CosmosNftV1beta1QuerySupplyResponse, - QueryNFTsRequest as CosmosNftV1beta1QueryNFTsRequest, - QueryNFTsResponse as CosmosNftV1beta1QueryNFTsResponse, - QueryNFTRequest as CosmosNftV1beta1QueryNFTRequest, - QueryNFTResponse as CosmosNftV1beta1QueryNFTResponse, - QueryClassRequest as CosmosNftV1beta1QueryClassRequest, - QueryClassResponse as CosmosNftV1beta1QueryClassResponse, - QueryClassesRequest as CosmosNftV1beta1QueryClassesRequest, - QueryClassesResponse as CosmosNftV1beta1QueryClassesResponse, -} from "./cosmos/nft/v1beta1/query_pb.js"; -export { - QueryBalanceService as CosmosNftV1beta1QueryBalanceService, - QueryOwnerService as CosmosNftV1beta1QueryOwnerService, - QuerySupplyService as CosmosNftV1beta1QuerySupplyService, - QueryNFTsService as CosmosNftV1beta1QueryNFTsService, - QueryNFTService as CosmosNftV1beta1QueryNFTService, - QueryClassService as CosmosNftV1beta1QueryClassService, - QueryClassesService as CosmosNftV1beta1QueryClassesService, -} from "./cosmos/nft/v1beta1/query_@onsonr/es.js"; -export { - Class as CosmosNftV1beta1Class, - NFT as CosmosNftV1beta1NFT, -} from "./cosmos/nft/v1beta1/nft_pb.js"; -export { - GenesisState as CosmosNftV1beta1GenesisState, - Entry as CosmosNftV1beta1Entry, -} from "./cosmos/nft/v1beta1/genesis_pb.js"; -export { - EventSend as CosmosNftV1beta1EventSend, - EventMint as CosmosNftV1beta1EventMint, - EventBurn as CosmosNftV1beta1EventBurn, -} from "./cosmos/nft/v1beta1/event_pb.js"; -export { - Module as CosmosNftModuleV1Module, -} from "./cosmos/nft/module/v1/module_pb.js"; -export { - MsgUpdateParams as CosmosMintV1beta1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosMintV1beta1MsgUpdateParamsResponse, -} from "./cosmos/mint/v1beta1/tx_pb.js"; -export { - MsgUpdateParamsService as CosmosMintV1beta1MsgUpdateParamsService, -} from "./cosmos/mint/v1beta1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as CosmosMintV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosMintV1beta1QueryParamsResponse, - QueryInflationRequest as CosmosMintV1beta1QueryInflationRequest, - QueryInflationResponse as CosmosMintV1beta1QueryInflationResponse, - QueryAnnualProvisionsRequest as CosmosMintV1beta1QueryAnnualProvisionsRequest, - QueryAnnualProvisionsResponse as CosmosMintV1beta1QueryAnnualProvisionsResponse, -} from "./cosmos/mint/v1beta1/query_pb.js"; -export { - QueryParamsService as CosmosMintV1beta1QueryParamsService, - QueryInflationService as CosmosMintV1beta1QueryInflationService, - QueryAnnualProvisionsService as CosmosMintV1beta1QueryAnnualProvisionsService, -} from "./cosmos/mint/v1beta1/query_@onsonr/es.js"; -export { - Minter as CosmosMintV1beta1Minter, - Params as CosmosMintV1beta1Params, -} from "./cosmos/mint/v1beta1/mint_pb.js"; -export { - GenesisState as CosmosMintV1beta1GenesisState, -} from "./cosmos/mint/v1beta1/genesis_pb.js"; -export { - Module as CosmosMintModuleV1Module, -} from "./cosmos/mint/module/v1/module_pb.js"; -export { - HashOp as CosmosIcs23V1HashOp, - LengthOp as CosmosIcs23V1LengthOp, - ExistenceProof as CosmosIcs23V1ExistenceProof, - NonExistenceProof as CosmosIcs23V1NonExistenceProof, - CommitmentProof as CosmosIcs23V1CommitmentProof, - LeafOp as CosmosIcs23V1LeafOp, - InnerOp as CosmosIcs23V1InnerOp, - ProofSpec as CosmosIcs23V1ProofSpec, - InnerSpec as CosmosIcs23V1InnerSpec, - BatchProof as CosmosIcs23V1BatchProof, - BatchEntry as CosmosIcs23V1BatchEntry, - CompressedBatchProof as CosmosIcs23V1CompressedBatchProof, - CompressedBatchEntry as CosmosIcs23V1CompressedBatchEntry, - CompressedExistenceProof as CosmosIcs23V1CompressedExistenceProof, - CompressedNonExistenceProof as CosmosIcs23V1CompressedNonExistenceProof, -} from "./cosmos/ics23/v1/proofs_pb.js"; -export { - VoteOption as CosmosGroupV1VoteOption, - ProposalStatus as CosmosGroupV1ProposalStatus, - ProposalExecutorResult as CosmosGroupV1ProposalExecutorResult, - Member as CosmosGroupV1Member, - MemberRequest as CosmosGroupV1MemberRequest, - ThresholdDecisionPolicy as CosmosGroupV1ThresholdDecisionPolicy, - PercentageDecisionPolicy as CosmosGroupV1PercentageDecisionPolicy, - DecisionPolicyWindows as CosmosGroupV1DecisionPolicyWindows, - GroupInfo as CosmosGroupV1GroupInfo, - GroupMember as CosmosGroupV1GroupMember, - GroupPolicyInfo as CosmosGroupV1GroupPolicyInfo, - Proposal as CosmosGroupV1Proposal, - TallyResult as CosmosGroupV1TallyResult, - Vote as CosmosGroupV1Vote, -} from "./cosmos/group/v1/types_pb.js"; -export { - Exec as CosmosGroupV1Exec, - MsgCreateGroup as CosmosGroupV1MsgCreateGroup, - MsgCreateGroupResponse as CosmosGroupV1MsgCreateGroupResponse, - MsgUpdateGroupMembers as CosmosGroupV1MsgUpdateGroupMembers, - MsgUpdateGroupMembersResponse as CosmosGroupV1MsgUpdateGroupMembersResponse, - MsgUpdateGroupAdmin as CosmosGroupV1MsgUpdateGroupAdmin, - MsgUpdateGroupAdminResponse as CosmosGroupV1MsgUpdateGroupAdminResponse, - MsgUpdateGroupMetadata as CosmosGroupV1MsgUpdateGroupMetadata, - MsgUpdateGroupMetadataResponse as CosmosGroupV1MsgUpdateGroupMetadataResponse, - MsgCreateGroupPolicy as CosmosGroupV1MsgCreateGroupPolicy, - MsgCreateGroupPolicyResponse as CosmosGroupV1MsgCreateGroupPolicyResponse, - MsgUpdateGroupPolicyAdmin as CosmosGroupV1MsgUpdateGroupPolicyAdmin, - MsgUpdateGroupPolicyAdminResponse as CosmosGroupV1MsgUpdateGroupPolicyAdminResponse, - MsgCreateGroupWithPolicy as CosmosGroupV1MsgCreateGroupWithPolicy, - MsgCreateGroupWithPolicyResponse as CosmosGroupV1MsgCreateGroupWithPolicyResponse, - MsgUpdateGroupPolicyDecisionPolicy as CosmosGroupV1MsgUpdateGroupPolicyDecisionPolicy, - MsgUpdateGroupPolicyDecisionPolicyResponse as CosmosGroupV1MsgUpdateGroupPolicyDecisionPolicyResponse, - MsgUpdateGroupPolicyMetadata as CosmosGroupV1MsgUpdateGroupPolicyMetadata, - MsgUpdateGroupPolicyMetadataResponse as CosmosGroupV1MsgUpdateGroupPolicyMetadataResponse, - MsgSubmitProposal as CosmosGroupV1MsgSubmitProposal, - MsgSubmitProposalResponse as CosmosGroupV1MsgSubmitProposalResponse, - MsgWithdrawProposal as CosmosGroupV1MsgWithdrawProposal, - MsgWithdrawProposalResponse as CosmosGroupV1MsgWithdrawProposalResponse, - MsgVote as CosmosGroupV1MsgVote, - MsgVoteResponse as CosmosGroupV1MsgVoteResponse, - MsgExec as CosmosGroupV1MsgExec, - MsgExecResponse as CosmosGroupV1MsgExecResponse, - MsgLeaveGroup as CosmosGroupV1MsgLeaveGroup, - MsgLeaveGroupResponse as CosmosGroupV1MsgLeaveGroupResponse, -} from "./cosmos/group/v1/tx_pb.js"; -export { - MsgCreateGroupService as CosmosGroupV1MsgCreateGroupService, - MsgUpdateGroupMembersService as CosmosGroupV1MsgUpdateGroupMembersService, - MsgUpdateGroupAdminService as CosmosGroupV1MsgUpdateGroupAdminService, - MsgUpdateGroupMetadataService as CosmosGroupV1MsgUpdateGroupMetadataService, - MsgCreateGroupPolicyService as CosmosGroupV1MsgCreateGroupPolicyService, - MsgCreateGroupWithPolicyService as CosmosGroupV1MsgCreateGroupWithPolicyService, - MsgUpdateGroupPolicyAdminService as CosmosGroupV1MsgUpdateGroupPolicyAdminService, - MsgUpdateGroupPolicyDecisionPolicyService as CosmosGroupV1MsgUpdateGroupPolicyDecisionPolicyService, - MsgUpdateGroupPolicyMetadataService as CosmosGroupV1MsgUpdateGroupPolicyMetadataService, - MsgSubmitProposalService as CosmosGroupV1MsgSubmitProposalService, - MsgWithdrawProposalService as CosmosGroupV1MsgWithdrawProposalService, - MsgVoteService as CosmosGroupV1MsgVoteService, - MsgExecService as CosmosGroupV1MsgExecService, - MsgLeaveGroupService as CosmosGroupV1MsgLeaveGroupService, -} from "./cosmos/group/v1/tx_@onsonr/es.js"; -export { - QueryGroupInfoRequest as CosmosGroupV1QueryGroupInfoRequest, - QueryGroupInfoResponse as CosmosGroupV1QueryGroupInfoResponse, - QueryGroupPolicyInfoRequest as CosmosGroupV1QueryGroupPolicyInfoRequest, - QueryGroupPolicyInfoResponse as CosmosGroupV1QueryGroupPolicyInfoResponse, - QueryGroupMembersRequest as CosmosGroupV1QueryGroupMembersRequest, - QueryGroupMembersResponse as CosmosGroupV1QueryGroupMembersResponse, - QueryGroupsByAdminRequest as CosmosGroupV1QueryGroupsByAdminRequest, - QueryGroupsByAdminResponse as CosmosGroupV1QueryGroupsByAdminResponse, - QueryGroupPoliciesByGroupRequest as CosmosGroupV1QueryGroupPoliciesByGroupRequest, - QueryGroupPoliciesByGroupResponse as CosmosGroupV1QueryGroupPoliciesByGroupResponse, - QueryGroupPoliciesByAdminRequest as CosmosGroupV1QueryGroupPoliciesByAdminRequest, - QueryGroupPoliciesByAdminResponse as CosmosGroupV1QueryGroupPoliciesByAdminResponse, - QueryProposalRequest as CosmosGroupV1QueryProposalRequest, - QueryProposalResponse as CosmosGroupV1QueryProposalResponse, - QueryProposalsByGroupPolicyRequest as CosmosGroupV1QueryProposalsByGroupPolicyRequest, - QueryProposalsByGroupPolicyResponse as CosmosGroupV1QueryProposalsByGroupPolicyResponse, - QueryVoteByProposalVoterRequest as CosmosGroupV1QueryVoteByProposalVoterRequest, - QueryVoteByProposalVoterResponse as CosmosGroupV1QueryVoteByProposalVoterResponse, - QueryVotesByProposalRequest as CosmosGroupV1QueryVotesByProposalRequest, - QueryVotesByProposalResponse as CosmosGroupV1QueryVotesByProposalResponse, - QueryVotesByVoterRequest as CosmosGroupV1QueryVotesByVoterRequest, - QueryVotesByVoterResponse as CosmosGroupV1QueryVotesByVoterResponse, - QueryGroupsByMemberRequest as CosmosGroupV1QueryGroupsByMemberRequest, - QueryGroupsByMemberResponse as CosmosGroupV1QueryGroupsByMemberResponse, - QueryTallyResultRequest as CosmosGroupV1QueryTallyResultRequest, - QueryTallyResultResponse as CosmosGroupV1QueryTallyResultResponse, - QueryGroupsRequest as CosmosGroupV1QueryGroupsRequest, - QueryGroupsResponse as CosmosGroupV1QueryGroupsResponse, -} from "./cosmos/group/v1/query_pb.js"; -export { - QueryGroupInfoService as CosmosGroupV1QueryGroupInfoService, - QueryGroupPolicyInfoService as CosmosGroupV1QueryGroupPolicyInfoService, - QueryGroupMembersService as CosmosGroupV1QueryGroupMembersService, - QueryGroupsByAdminService as CosmosGroupV1QueryGroupsByAdminService, - QueryGroupPoliciesByGroupService as CosmosGroupV1QueryGroupPoliciesByGroupService, - QueryGroupPoliciesByAdminService as CosmosGroupV1QueryGroupPoliciesByAdminService, - QueryProposalService as CosmosGroupV1QueryProposalService, - QueryProposalsByGroupPolicyService as CosmosGroupV1QueryProposalsByGroupPolicyService, - QueryVoteByProposalVoterService as CosmosGroupV1QueryVoteByProposalVoterService, - QueryVotesByProposalService as CosmosGroupV1QueryVotesByProposalService, - QueryVotesByVoterService as CosmosGroupV1QueryVotesByVoterService, - QueryGroupsByMemberService as CosmosGroupV1QueryGroupsByMemberService, - QueryTallyResultService as CosmosGroupV1QueryTallyResultService, - QueryGroupsService as CosmosGroupV1QueryGroupsService, -} from "./cosmos/group/v1/query_@onsonr/es.js"; -export { - GenesisState as CosmosGroupV1GenesisState, -} from "./cosmos/group/v1/genesis_pb.js"; -export { - EventCreateGroup as CosmosGroupV1EventCreateGroup, - EventUpdateGroup as CosmosGroupV1EventUpdateGroup, - EventCreateGroupPolicy as CosmosGroupV1EventCreateGroupPolicy, - EventUpdateGroupPolicy as CosmosGroupV1EventUpdateGroupPolicy, - EventSubmitProposal as CosmosGroupV1EventSubmitProposal, - EventWithdrawProposal as CosmosGroupV1EventWithdrawProposal, - EventVote as CosmosGroupV1EventVote, - EventExec as CosmosGroupV1EventExec, - EventLeaveGroup as CosmosGroupV1EventLeaveGroup, - EventProposalPruned as CosmosGroupV1EventProposalPruned, -} from "./cosmos/group/v1/events_pb.js"; -export { - Module as CosmosGroupModuleV1Module, -} from "./cosmos/group/module/v1/module_pb.js"; -export { - MsgSubmitProposal as CosmosGovV1beta1MsgSubmitProposal, - MsgSubmitProposalResponse as CosmosGovV1beta1MsgSubmitProposalResponse, - MsgVote as CosmosGovV1beta1MsgVote, - MsgVoteResponse as CosmosGovV1beta1MsgVoteResponse, - MsgVoteWeighted as CosmosGovV1beta1MsgVoteWeighted, - MsgVoteWeightedResponse as CosmosGovV1beta1MsgVoteWeightedResponse, - MsgDeposit as CosmosGovV1beta1MsgDeposit, - MsgDepositResponse as CosmosGovV1beta1MsgDepositResponse, -} from "./cosmos/gov/v1beta1/tx_pb.js"; -export { - MsgSubmitProposalService as CosmosGovV1beta1MsgSubmitProposalService, - MsgVoteService as CosmosGovV1beta1MsgVoteService, - MsgVoteWeightedService as CosmosGovV1beta1MsgVoteWeightedService, - MsgDepositService as CosmosGovV1beta1MsgDepositService, -} from "./cosmos/gov/v1beta1/tx_@onsonr/es.js"; -export { - QueryProposalRequest as CosmosGovV1beta1QueryProposalRequest, - QueryProposalResponse as CosmosGovV1beta1QueryProposalResponse, - QueryProposalsRequest as CosmosGovV1beta1QueryProposalsRequest, - QueryProposalsResponse as CosmosGovV1beta1QueryProposalsResponse, - QueryVoteRequest as CosmosGovV1beta1QueryVoteRequest, - QueryVoteResponse as CosmosGovV1beta1QueryVoteResponse, - QueryVotesRequest as CosmosGovV1beta1QueryVotesRequest, - QueryVotesResponse as CosmosGovV1beta1QueryVotesResponse, - QueryParamsRequest as CosmosGovV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosGovV1beta1QueryParamsResponse, - QueryDepositRequest as CosmosGovV1beta1QueryDepositRequest, - QueryDepositResponse as CosmosGovV1beta1QueryDepositResponse, - QueryDepositsRequest as CosmosGovV1beta1QueryDepositsRequest, - QueryDepositsResponse as CosmosGovV1beta1QueryDepositsResponse, - QueryTallyResultRequest as CosmosGovV1beta1QueryTallyResultRequest, - QueryTallyResultResponse as CosmosGovV1beta1QueryTallyResultResponse, -} from "./cosmos/gov/v1beta1/query_pb.js"; -export { - QueryProposalService as CosmosGovV1beta1QueryProposalService, - QueryProposalsService as CosmosGovV1beta1QueryProposalsService, - QueryVoteService as CosmosGovV1beta1QueryVoteService, - QueryVotesService as CosmosGovV1beta1QueryVotesService, - QueryParamsService as CosmosGovV1beta1QueryParamsService, - QueryDepositService as CosmosGovV1beta1QueryDepositService, - QueryDepositsService as CosmosGovV1beta1QueryDepositsService, - QueryTallyResultService as CosmosGovV1beta1QueryTallyResultService, -} from "./cosmos/gov/v1beta1/query_@onsonr/es.js"; -export { - VoteOption as CosmosGovV1beta1VoteOption, - ProposalStatus as CosmosGovV1beta1ProposalStatus, - WeightedVoteOption as CosmosGovV1beta1WeightedVoteOption, - TextProposal as CosmosGovV1beta1TextProposal, - Deposit as CosmosGovV1beta1Deposit, - Proposal as CosmosGovV1beta1Proposal, - TallyResult as CosmosGovV1beta1TallyResult, - Vote as CosmosGovV1beta1Vote, - DepositParams as CosmosGovV1beta1DepositParams, - VotingParams as CosmosGovV1beta1VotingParams, - TallyParams as CosmosGovV1beta1TallyParams, -} from "./cosmos/gov/v1beta1/gov_pb.js"; -export { - GenesisState as CosmosGovV1beta1GenesisState, -} from "./cosmos/gov/v1beta1/genesis_pb.js"; -export { - MsgSubmitProposal as CosmosGovV1MsgSubmitProposal, - MsgSubmitProposalResponse as CosmosGovV1MsgSubmitProposalResponse, - MsgExecLegacyContent as CosmosGovV1MsgExecLegacyContent, - MsgExecLegacyContentResponse as CosmosGovV1MsgExecLegacyContentResponse, - MsgVote as CosmosGovV1MsgVote, - MsgVoteResponse as CosmosGovV1MsgVoteResponse, - MsgVoteWeighted as CosmosGovV1MsgVoteWeighted, - MsgVoteWeightedResponse as CosmosGovV1MsgVoteWeightedResponse, - MsgDeposit as CosmosGovV1MsgDeposit, - MsgDepositResponse as CosmosGovV1MsgDepositResponse, - MsgUpdateParams as CosmosGovV1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosGovV1MsgUpdateParamsResponse, - MsgCancelProposal as CosmosGovV1MsgCancelProposal, - MsgCancelProposalResponse as CosmosGovV1MsgCancelProposalResponse, -} from "./cosmos/gov/v1/tx_pb.js"; -export { - MsgSubmitProposalService as CosmosGovV1MsgSubmitProposalService, - MsgExecLegacyContentService as CosmosGovV1MsgExecLegacyContentService, - MsgVoteService as CosmosGovV1MsgVoteService, - MsgVoteWeightedService as CosmosGovV1MsgVoteWeightedService, - MsgDepositService as CosmosGovV1MsgDepositService, - MsgUpdateParamsService as CosmosGovV1MsgUpdateParamsService, - MsgCancelProposalService as CosmosGovV1MsgCancelProposalService, -} from "./cosmos/gov/v1/tx_@onsonr/es.js"; -export { - QueryConstitutionRequest as CosmosGovV1QueryConstitutionRequest, - QueryConstitutionResponse as CosmosGovV1QueryConstitutionResponse, - QueryProposalRequest as CosmosGovV1QueryProposalRequest, - QueryProposalResponse as CosmosGovV1QueryProposalResponse, - QueryProposalsRequest as CosmosGovV1QueryProposalsRequest, - QueryProposalsResponse as CosmosGovV1QueryProposalsResponse, - QueryVoteRequest as CosmosGovV1QueryVoteRequest, - QueryVoteResponse as CosmosGovV1QueryVoteResponse, - QueryVotesRequest as CosmosGovV1QueryVotesRequest, - QueryVotesResponse as CosmosGovV1QueryVotesResponse, - QueryParamsRequest as CosmosGovV1QueryParamsRequest, - QueryParamsResponse as CosmosGovV1QueryParamsResponse, - QueryDepositRequest as CosmosGovV1QueryDepositRequest, - QueryDepositResponse as CosmosGovV1QueryDepositResponse, - QueryDepositsRequest as CosmosGovV1QueryDepositsRequest, - QueryDepositsResponse as CosmosGovV1QueryDepositsResponse, - QueryTallyResultRequest as CosmosGovV1QueryTallyResultRequest, - QueryTallyResultResponse as CosmosGovV1QueryTallyResultResponse, -} from "./cosmos/gov/v1/query_pb.js"; -export { - QueryConstitutionService as CosmosGovV1QueryConstitutionService, - QueryProposalService as CosmosGovV1QueryProposalService, - QueryProposalsService as CosmosGovV1QueryProposalsService, - QueryVoteService as CosmosGovV1QueryVoteService, - QueryVotesService as CosmosGovV1QueryVotesService, - QueryParamsService as CosmosGovV1QueryParamsService, - QueryDepositService as CosmosGovV1QueryDepositService, - QueryDepositsService as CosmosGovV1QueryDepositsService, - QueryTallyResultService as CosmosGovV1QueryTallyResultService, -} from "./cosmos/gov/v1/query_@onsonr/es.js"; -export { - VoteOption as CosmosGovV1VoteOption, - ProposalStatus as CosmosGovV1ProposalStatus, - WeightedVoteOption as CosmosGovV1WeightedVoteOption, - Deposit as CosmosGovV1Deposit, - Proposal as CosmosGovV1Proposal, - TallyResult as CosmosGovV1TallyResult, - Vote as CosmosGovV1Vote, - DepositParams as CosmosGovV1DepositParams, - VotingParams as CosmosGovV1VotingParams, - TallyParams as CosmosGovV1TallyParams, - Params as CosmosGovV1Params, -} from "./cosmos/gov/v1/gov_pb.js"; -export { - GenesisState as CosmosGovV1GenesisState, -} from "./cosmos/gov/v1/genesis_pb.js"; -export { - Module as CosmosGovModuleV1Module, -} from "./cosmos/gov/module/v1/module_pb.js"; -export { - GenesisState as CosmosGenutilV1beta1GenesisState, -} from "./cosmos/genutil/v1beta1/genesis_pb.js"; -export { - Module as CosmosGenutilModuleV1Module, -} from "./cosmos/genutil/module/v1/module_pb.js"; -export { - MsgGrantAllowance as CosmosFeegrantV1beta1MsgGrantAllowance, - MsgGrantAllowanceResponse as CosmosFeegrantV1beta1MsgGrantAllowanceResponse, - MsgRevokeAllowance as CosmosFeegrantV1beta1MsgRevokeAllowance, - MsgRevokeAllowanceResponse as CosmosFeegrantV1beta1MsgRevokeAllowanceResponse, - MsgPruneAllowances as CosmosFeegrantV1beta1MsgPruneAllowances, - MsgPruneAllowancesResponse as CosmosFeegrantV1beta1MsgPruneAllowancesResponse, -} from "./cosmos/feegrant/v1beta1/tx_pb.js"; -export { - MsgGrantAllowanceService as CosmosFeegrantV1beta1MsgGrantAllowanceService, - MsgRevokeAllowanceService as CosmosFeegrantV1beta1MsgRevokeAllowanceService, - MsgPruneAllowancesService as CosmosFeegrantV1beta1MsgPruneAllowancesService, -} from "./cosmos/feegrant/v1beta1/tx_@onsonr/es.js"; -export { - QueryAllowanceRequest as CosmosFeegrantV1beta1QueryAllowanceRequest, - QueryAllowanceResponse as CosmosFeegrantV1beta1QueryAllowanceResponse, - QueryAllowancesRequest as CosmosFeegrantV1beta1QueryAllowancesRequest, - QueryAllowancesResponse as CosmosFeegrantV1beta1QueryAllowancesResponse, - QueryAllowancesByGranterRequest as CosmosFeegrantV1beta1QueryAllowancesByGranterRequest, - QueryAllowancesByGranterResponse as CosmosFeegrantV1beta1QueryAllowancesByGranterResponse, -} from "./cosmos/feegrant/v1beta1/query_pb.js"; -export { - QueryAllowanceService as CosmosFeegrantV1beta1QueryAllowanceService, - QueryAllowancesService as CosmosFeegrantV1beta1QueryAllowancesService, - QueryAllowancesByGranterService as CosmosFeegrantV1beta1QueryAllowancesByGranterService, -} from "./cosmos/feegrant/v1beta1/query_@onsonr/es.js"; -export { - GenesisState as CosmosFeegrantV1beta1GenesisState, -} from "./cosmos/feegrant/v1beta1/genesis_pb.js"; -export { - BasicAllowance as CosmosFeegrantV1beta1BasicAllowance, - PeriodicAllowance as CosmosFeegrantV1beta1PeriodicAllowance, - AllowedMsgAllowance as CosmosFeegrantV1beta1AllowedMsgAllowance, - Grant as CosmosFeegrantV1beta1Grant, -} from "./cosmos/feegrant/v1beta1/feegrant_pb.js"; -export { - Module as CosmosFeegrantModuleV1Module, -} from "./cosmos/feegrant/module/v1/module_pb.js"; -export { - MsgSubmitEvidence as CosmosEvidenceV1beta1MsgSubmitEvidence, - MsgSubmitEvidenceResponse as CosmosEvidenceV1beta1MsgSubmitEvidenceResponse, -} from "./cosmos/evidence/v1beta1/tx_pb.js"; -export { - MsgSubmitEvidenceService as CosmosEvidenceV1beta1MsgSubmitEvidenceService, -} from "./cosmos/evidence/v1beta1/tx_@onsonr/es.js"; -export { - QueryEvidenceRequest as CosmosEvidenceV1beta1QueryEvidenceRequest, - QueryEvidenceResponse as CosmosEvidenceV1beta1QueryEvidenceResponse, - QueryAllEvidenceRequest as CosmosEvidenceV1beta1QueryAllEvidenceRequest, - QueryAllEvidenceResponse as CosmosEvidenceV1beta1QueryAllEvidenceResponse, -} from "./cosmos/evidence/v1beta1/query_pb.js"; -export { - QueryEvidenceService as CosmosEvidenceV1beta1QueryEvidenceService, - QueryAllEvidenceService as CosmosEvidenceV1beta1QueryAllEvidenceService, -} from "./cosmos/evidence/v1beta1/query_@onsonr/es.js"; -export { - GenesisState as CosmosEvidenceV1beta1GenesisState, -} from "./cosmos/evidence/v1beta1/genesis_pb.js"; -export { - Equivocation as CosmosEvidenceV1beta1Equivocation, -} from "./cosmos/evidence/v1beta1/evidence_pb.js"; -export { - Module as CosmosEvidenceModuleV1Module, -} from "./cosmos/evidence/module/v1/module_pb.js"; -export { - MsgSetWithdrawAddress as CosmosDistributionV1beta1MsgSetWithdrawAddress, - MsgSetWithdrawAddressResponse as CosmosDistributionV1beta1MsgSetWithdrawAddressResponse, - MsgWithdrawDelegatorReward as CosmosDistributionV1beta1MsgWithdrawDelegatorReward, - MsgWithdrawDelegatorRewardResponse as CosmosDistributionV1beta1MsgWithdrawDelegatorRewardResponse, - MsgWithdrawValidatorCommission as CosmosDistributionV1beta1MsgWithdrawValidatorCommission, - MsgWithdrawValidatorCommissionResponse as CosmosDistributionV1beta1MsgWithdrawValidatorCommissionResponse, - MsgFundCommunityPool as CosmosDistributionV1beta1MsgFundCommunityPool, - MsgFundCommunityPoolResponse as CosmosDistributionV1beta1MsgFundCommunityPoolResponse, - MsgUpdateParams as CosmosDistributionV1beta1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosDistributionV1beta1MsgUpdateParamsResponse, - MsgCommunityPoolSpend as CosmosDistributionV1beta1MsgCommunityPoolSpend, - MsgCommunityPoolSpendResponse as CosmosDistributionV1beta1MsgCommunityPoolSpendResponse, - MsgDepositValidatorRewardsPool as CosmosDistributionV1beta1MsgDepositValidatorRewardsPool, - MsgDepositValidatorRewardsPoolResponse as CosmosDistributionV1beta1MsgDepositValidatorRewardsPoolResponse, -} from "./cosmos/distribution/v1beta1/tx_pb.js"; -export { - MsgSetWithdrawAddressService as CosmosDistributionV1beta1MsgSetWithdrawAddressService, - MsgWithdrawDelegatorRewardService as CosmosDistributionV1beta1MsgWithdrawDelegatorRewardService, - MsgWithdrawValidatorCommissionService as CosmosDistributionV1beta1MsgWithdrawValidatorCommissionService, - MsgFundCommunityPoolService as CosmosDistributionV1beta1MsgFundCommunityPoolService, - MsgUpdateParamsService as CosmosDistributionV1beta1MsgUpdateParamsService, - MsgCommunityPoolSpendService as CosmosDistributionV1beta1MsgCommunityPoolSpendService, - MsgDepositValidatorRewardsPoolService as CosmosDistributionV1beta1MsgDepositValidatorRewardsPoolService, -} from "./cosmos/distribution/v1beta1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as CosmosDistributionV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosDistributionV1beta1QueryParamsResponse, - QueryValidatorDistributionInfoRequest as CosmosDistributionV1beta1QueryValidatorDistributionInfoRequest, - QueryValidatorDistributionInfoResponse as CosmosDistributionV1beta1QueryValidatorDistributionInfoResponse, - QueryValidatorOutstandingRewardsRequest as CosmosDistributionV1beta1QueryValidatorOutstandingRewardsRequest, - QueryValidatorOutstandingRewardsResponse as CosmosDistributionV1beta1QueryValidatorOutstandingRewardsResponse, - QueryValidatorCommissionRequest as CosmosDistributionV1beta1QueryValidatorCommissionRequest, - QueryValidatorCommissionResponse as CosmosDistributionV1beta1QueryValidatorCommissionResponse, - QueryValidatorSlashesRequest as CosmosDistributionV1beta1QueryValidatorSlashesRequest, - QueryValidatorSlashesResponse as CosmosDistributionV1beta1QueryValidatorSlashesResponse, - QueryDelegationRewardsRequest as CosmosDistributionV1beta1QueryDelegationRewardsRequest, - QueryDelegationRewardsResponse as CosmosDistributionV1beta1QueryDelegationRewardsResponse, - QueryDelegationTotalRewardsRequest as CosmosDistributionV1beta1QueryDelegationTotalRewardsRequest, - QueryDelegationTotalRewardsResponse as CosmosDistributionV1beta1QueryDelegationTotalRewardsResponse, - QueryDelegatorValidatorsRequest as CosmosDistributionV1beta1QueryDelegatorValidatorsRequest, - QueryDelegatorValidatorsResponse as CosmosDistributionV1beta1QueryDelegatorValidatorsResponse, - QueryDelegatorWithdrawAddressRequest as CosmosDistributionV1beta1QueryDelegatorWithdrawAddressRequest, - QueryDelegatorWithdrawAddressResponse as CosmosDistributionV1beta1QueryDelegatorWithdrawAddressResponse, - QueryCommunityPoolRequest as CosmosDistributionV1beta1QueryCommunityPoolRequest, - QueryCommunityPoolResponse as CosmosDistributionV1beta1QueryCommunityPoolResponse, -} from "./cosmos/distribution/v1beta1/query_pb.js"; -export { - QueryParamsService as CosmosDistributionV1beta1QueryParamsService, - QueryValidatorDistributionInfoService as CosmosDistributionV1beta1QueryValidatorDistributionInfoService, - QueryValidatorOutstandingRewardsService as CosmosDistributionV1beta1QueryValidatorOutstandingRewardsService, - QueryValidatorCommissionService as CosmosDistributionV1beta1QueryValidatorCommissionService, - QueryValidatorSlashesService as CosmosDistributionV1beta1QueryValidatorSlashesService, - QueryDelegationRewardsService as CosmosDistributionV1beta1QueryDelegationRewardsService, - QueryDelegationTotalRewardsService as CosmosDistributionV1beta1QueryDelegationTotalRewardsService, - QueryDelegatorValidatorsService as CosmosDistributionV1beta1QueryDelegatorValidatorsService, - QueryDelegatorWithdrawAddressService as CosmosDistributionV1beta1QueryDelegatorWithdrawAddressService, - QueryCommunityPoolService as CosmosDistributionV1beta1QueryCommunityPoolService, -} from "./cosmos/distribution/v1beta1/query_@onsonr/es.js"; -export { - DelegatorWithdrawInfo as CosmosDistributionV1beta1DelegatorWithdrawInfo, - ValidatorOutstandingRewardsRecord as CosmosDistributionV1beta1ValidatorOutstandingRewardsRecord, - ValidatorAccumulatedCommissionRecord as CosmosDistributionV1beta1ValidatorAccumulatedCommissionRecord, - ValidatorHistoricalRewardsRecord as CosmosDistributionV1beta1ValidatorHistoricalRewardsRecord, - ValidatorCurrentRewardsRecord as CosmosDistributionV1beta1ValidatorCurrentRewardsRecord, - DelegatorStartingInfoRecord as CosmosDistributionV1beta1DelegatorStartingInfoRecord, - ValidatorSlashEventRecord as CosmosDistributionV1beta1ValidatorSlashEventRecord, - GenesisState as CosmosDistributionV1beta1GenesisState, -} from "./cosmos/distribution/v1beta1/genesis_pb.js"; -export { - Params as CosmosDistributionV1beta1Params, - ValidatorHistoricalRewards as CosmosDistributionV1beta1ValidatorHistoricalRewards, - ValidatorCurrentRewards as CosmosDistributionV1beta1ValidatorCurrentRewards, - ValidatorAccumulatedCommission as CosmosDistributionV1beta1ValidatorAccumulatedCommission, - ValidatorOutstandingRewards as CosmosDistributionV1beta1ValidatorOutstandingRewards, - ValidatorSlashEvent as CosmosDistributionV1beta1ValidatorSlashEvent, - ValidatorSlashEvents as CosmosDistributionV1beta1ValidatorSlashEvents, - FeePool as CosmosDistributionV1beta1FeePool, - CommunityPoolSpendProposal as CosmosDistributionV1beta1CommunityPoolSpendProposal, - DelegatorStartingInfo as CosmosDistributionV1beta1DelegatorStartingInfo, - DelegationDelegatorReward as CosmosDistributionV1beta1DelegationDelegatorReward, - CommunityPoolSpendProposalWithDeposit as CosmosDistributionV1beta1CommunityPoolSpendProposalWithDeposit, -} from "./cosmos/distribution/v1beta1/distribution_pb.js"; -export { - Module as CosmosDistributionModuleV1Module, -} from "./cosmos/distribution/module/v1/module_pb.js"; -export { - PubKey as CosmosCryptoSecp256r1PubKey, - PrivKey as CosmosCryptoSecp256r1PrivKey, -} from "./cosmos/crypto/secp256r1/keys_pb.js"; -export { - PubKey as CosmosCryptoSecp256k1PubKey, - PrivKey as CosmosCryptoSecp256k1PrivKey, -} from "./cosmos/crypto/secp256k1/keys_pb.js"; -export { - LegacyAminoPubKey as CosmosCryptoMultisigLegacyAminoPubKey, -} from "./cosmos/crypto/multisig/keys_pb.js"; -export { - MultiSignature as CosmosCryptoMultisigV1beta1MultiSignature, - CompactBitArray as CosmosCryptoMultisigV1beta1CompactBitArray, -} from "./cosmos/crypto/multisig/v1beta1/multisig_pb.js"; -export { - Record as CosmosCryptoKeyringV1Record, - Record_Local as CosmosCryptoKeyringV1Record_Local, - Record_Ledger as CosmosCryptoKeyringV1Record_Ledger, - Record_Multi as CosmosCryptoKeyringV1Record_Multi, - Record_Offline as CosmosCryptoKeyringV1Record_Offline, -} from "./cosmos/crypto/keyring/v1/record_pb.js"; -export { - BIP44Params as CosmosCryptoHdV1BIP44Params, -} from "./cosmos/crypto/hd/v1/hd_pb.js"; -export { - PubKey as CosmosCryptoEd25519PubKey, - PrivKey as CosmosCryptoEd25519PrivKey, -} from "./cosmos/crypto/ed25519/keys_pb.js"; -export { - MsgVerifyInvariant as CosmosCrisisV1beta1MsgVerifyInvariant, - MsgVerifyInvariantResponse as CosmosCrisisV1beta1MsgVerifyInvariantResponse, - MsgUpdateParams as CosmosCrisisV1beta1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosCrisisV1beta1MsgUpdateParamsResponse, -} from "./cosmos/crisis/v1beta1/tx_pb.js"; -export { - MsgVerifyInvariantService as CosmosCrisisV1beta1MsgVerifyInvariantService, - MsgUpdateParamsService as CosmosCrisisV1beta1MsgUpdateParamsService, -} from "./cosmos/crisis/v1beta1/tx_@onsonr/es.js"; -export { - GenesisState as CosmosCrisisV1beta1GenesisState, -} from "./cosmos/crisis/v1beta1/genesis_pb.js"; -export { - Module as CosmosCrisisModuleV1Module, -} from "./cosmos/crisis/module/v1/module_pb.js"; -export { - MsgUpdateParams as CosmosConsensusV1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosConsensusV1MsgUpdateParamsResponse, -} from "./cosmos/consensus/v1/tx_pb.js"; -export { - MsgUpdateParamsService as CosmosConsensusV1MsgUpdateParamsService, -} from "./cosmos/consensus/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as CosmosConsensusV1QueryParamsRequest, - QueryParamsResponse as CosmosConsensusV1QueryParamsResponse, -} from "./cosmos/consensus/v1/query_pb.js"; -export { - QueryParamsService as CosmosConsensusV1QueryParamsService, -} from "./cosmos/consensus/v1/query_@onsonr/es.js"; -export { - Module as CosmosConsensusModuleV1Module, -} from "./cosmos/consensus/module/v1/module_pb.js"; -export { - Permissions as CosmosCircuitV1Permissions, - Permissions_Level as CosmosCircuitV1Permissions_Level, - GenesisAccountPermissions as CosmosCircuitV1GenesisAccountPermissions, - GenesisState as CosmosCircuitV1GenesisState, -} from "./cosmos/circuit/v1/types_pb.js"; -export { - MsgAuthorizeCircuitBreaker as CosmosCircuitV1MsgAuthorizeCircuitBreaker, - MsgAuthorizeCircuitBreakerResponse as CosmosCircuitV1MsgAuthorizeCircuitBreakerResponse, - MsgTripCircuitBreaker as CosmosCircuitV1MsgTripCircuitBreaker, - MsgTripCircuitBreakerResponse as CosmosCircuitV1MsgTripCircuitBreakerResponse, - MsgResetCircuitBreaker as CosmosCircuitV1MsgResetCircuitBreaker, - MsgResetCircuitBreakerResponse as CosmosCircuitV1MsgResetCircuitBreakerResponse, -} from "./cosmos/circuit/v1/tx_pb.js"; -export { - MsgAuthorizeCircuitBreakerService as CosmosCircuitV1MsgAuthorizeCircuitBreakerService, - MsgTripCircuitBreakerService as CosmosCircuitV1MsgTripCircuitBreakerService, - MsgResetCircuitBreakerService as CosmosCircuitV1MsgResetCircuitBreakerService, -} from "./cosmos/circuit/v1/tx_@onsonr/es.js"; -export { - QueryAccountRequest as CosmosCircuitV1QueryAccountRequest, - AccountResponse as CosmosCircuitV1AccountResponse, - QueryAccountsRequest as CosmosCircuitV1QueryAccountsRequest, - AccountsResponse as CosmosCircuitV1AccountsResponse, - QueryDisabledListRequest as CosmosCircuitV1QueryDisabledListRequest, - DisabledListResponse as CosmosCircuitV1DisabledListResponse, -} from "./cosmos/circuit/v1/query_pb.js"; -export { - QueryAccountService as CosmosCircuitV1QueryAccountService, - QueryAccountsService as CosmosCircuitV1QueryAccountsService, - QueryDisabledListService as CosmosCircuitV1QueryDisabledListService, -} from "./cosmos/circuit/v1/query_@onsonr/es.js"; -export { - Module as CosmosCircuitModuleV1Module, -} from "./cosmos/circuit/module/v1/module_pb.js"; -export { - Coin as CosmosBaseV1beta1Coin, - DecCoin as CosmosBaseV1beta1DecCoin, - IntProto as CosmosBaseV1beta1IntProto, - DecProto as CosmosBaseV1beta1DecProto, -} from "./cosmos/base/v1beta1/coin_pb.js"; -export { - Block as CosmosBaseTendermintV1beta1Block, - Header as CosmosBaseTendermintV1beta1Header, -} from "./cosmos/base/tendermint/v1beta1/types_pb.js"; -export { - GetValidatorSetByHeightRequest as CosmosBaseTendermintV1beta1GetValidatorSetByHeightRequest, - GetValidatorSetByHeightResponse as CosmosBaseTendermintV1beta1GetValidatorSetByHeightResponse, - GetLatestValidatorSetRequest as CosmosBaseTendermintV1beta1GetLatestValidatorSetRequest, - GetLatestValidatorSetResponse as CosmosBaseTendermintV1beta1GetLatestValidatorSetResponse, - Validator as CosmosBaseTendermintV1beta1Validator, - GetBlockByHeightRequest as CosmosBaseTendermintV1beta1GetBlockByHeightRequest, - GetBlockByHeightResponse as CosmosBaseTendermintV1beta1GetBlockByHeightResponse, - GetLatestBlockRequest as CosmosBaseTendermintV1beta1GetLatestBlockRequest, - GetLatestBlockResponse as CosmosBaseTendermintV1beta1GetLatestBlockResponse, - GetSyncingRequest as CosmosBaseTendermintV1beta1GetSyncingRequest, - GetSyncingResponse as CosmosBaseTendermintV1beta1GetSyncingResponse, - GetNodeInfoRequest as CosmosBaseTendermintV1beta1GetNodeInfoRequest, - GetNodeInfoResponse as CosmosBaseTendermintV1beta1GetNodeInfoResponse, - VersionInfo as CosmosBaseTendermintV1beta1VersionInfo, - Module as CosmosBaseTendermintV1beta1Module, - ABCIQueryRequest as CosmosBaseTendermintV1beta1ABCIQueryRequest, - ABCIQueryResponse as CosmosBaseTendermintV1beta1ABCIQueryResponse, - ProofOp as CosmosBaseTendermintV1beta1ProofOp, - ProofOps as CosmosBaseTendermintV1beta1ProofOps, -} from "./cosmos/base/tendermint/v1beta1/query_pb.js"; -export { - ServiceGetNodeInfoService as CosmosBaseTendermintV1beta1ServiceGetNodeInfoService, - ServiceGetSyncingService as CosmosBaseTendermintV1beta1ServiceGetSyncingService, - ServiceGetLatestBlockService as CosmosBaseTendermintV1beta1ServiceGetLatestBlockService, - ServiceGetBlockByHeightService as CosmosBaseTendermintV1beta1ServiceGetBlockByHeightService, - ServiceGetLatestValidatorSetService as CosmosBaseTendermintV1beta1ServiceGetLatestValidatorSetService, - ServiceGetValidatorSetByHeightService as CosmosBaseTendermintV1beta1ServiceGetValidatorSetByHeightService, - ServiceABCIQueryService as CosmosBaseTendermintV1beta1ServiceABCIQueryService, -} from "./cosmos/base/tendermint/v1beta1/query_@onsonr/es.js"; -export { - AppDescriptor as CosmosBaseReflectionV2alpha1AppDescriptor, - TxDescriptor as CosmosBaseReflectionV2alpha1TxDescriptor, - AuthnDescriptor as CosmosBaseReflectionV2alpha1AuthnDescriptor, - SigningModeDescriptor as CosmosBaseReflectionV2alpha1SigningModeDescriptor, - ChainDescriptor as CosmosBaseReflectionV2alpha1ChainDescriptor, - CodecDescriptor as CosmosBaseReflectionV2alpha1CodecDescriptor, - InterfaceDescriptor as CosmosBaseReflectionV2alpha1InterfaceDescriptor, - InterfaceImplementerDescriptor as CosmosBaseReflectionV2alpha1InterfaceImplementerDescriptor, - InterfaceAcceptingMessageDescriptor as CosmosBaseReflectionV2alpha1InterfaceAcceptingMessageDescriptor, - ConfigurationDescriptor as CosmosBaseReflectionV2alpha1ConfigurationDescriptor, - MsgDescriptor as CosmosBaseReflectionV2alpha1MsgDescriptor, - GetAuthnDescriptorRequest as CosmosBaseReflectionV2alpha1GetAuthnDescriptorRequest, - GetAuthnDescriptorResponse as CosmosBaseReflectionV2alpha1GetAuthnDescriptorResponse, - GetChainDescriptorRequest as CosmosBaseReflectionV2alpha1GetChainDescriptorRequest, - GetChainDescriptorResponse as CosmosBaseReflectionV2alpha1GetChainDescriptorResponse, - GetCodecDescriptorRequest as CosmosBaseReflectionV2alpha1GetCodecDescriptorRequest, - GetCodecDescriptorResponse as CosmosBaseReflectionV2alpha1GetCodecDescriptorResponse, - GetConfigurationDescriptorRequest as CosmosBaseReflectionV2alpha1GetConfigurationDescriptorRequest, - GetConfigurationDescriptorResponse as CosmosBaseReflectionV2alpha1GetConfigurationDescriptorResponse, - GetQueryServicesDescriptorRequest as CosmosBaseReflectionV2alpha1GetQueryServicesDescriptorRequest, - GetQueryServicesDescriptorResponse as CosmosBaseReflectionV2alpha1GetQueryServicesDescriptorResponse, - GetTxDescriptorRequest as CosmosBaseReflectionV2alpha1GetTxDescriptorRequest, - GetTxDescriptorResponse as CosmosBaseReflectionV2alpha1GetTxDescriptorResponse, - QueryServicesDescriptor as CosmosBaseReflectionV2alpha1QueryServicesDescriptor, - QueryServiceDescriptor as CosmosBaseReflectionV2alpha1QueryServiceDescriptor, - QueryMethodDescriptor as CosmosBaseReflectionV2alpha1QueryMethodDescriptor, -} from "./cosmos/base/reflection/v2alpha1/reflection_pb.js"; -export { - ReflectionServiceGetAuthnDescriptorService as CosmosBaseReflectionV2alpha1ReflectionServiceGetAuthnDescriptorService, - ReflectionServiceGetChainDescriptorService as CosmosBaseReflectionV2alpha1ReflectionServiceGetChainDescriptorService, - ReflectionServiceGetCodecDescriptorService as CosmosBaseReflectionV2alpha1ReflectionServiceGetCodecDescriptorService, - ReflectionServiceGetConfigurationDescriptorService as CosmosBaseReflectionV2alpha1ReflectionServiceGetConfigurationDescriptorService, - ReflectionServiceGetQueryServicesDescriptorService as CosmosBaseReflectionV2alpha1ReflectionServiceGetQueryServicesDescriptorService, - ReflectionServiceGetTxDescriptorService as CosmosBaseReflectionV2alpha1ReflectionServiceGetTxDescriptorService, -} from "./cosmos/base/reflection/v2alpha1/reflection_@onsonr/es.js"; -export { - ListAllInterfacesRequest as CosmosBaseReflectionV1beta1ListAllInterfacesRequest, - ListAllInterfacesResponse as CosmosBaseReflectionV1beta1ListAllInterfacesResponse, - ListImplementationsRequest as CosmosBaseReflectionV1beta1ListImplementationsRequest, - ListImplementationsResponse as CosmosBaseReflectionV1beta1ListImplementationsResponse, -} from "./cosmos/base/reflection/v1beta1/reflection_pb.js"; -export { - ReflectionServiceListAllInterfacesService as CosmosBaseReflectionV1beta1ReflectionServiceListAllInterfacesService, - ReflectionServiceListImplementationsService as CosmosBaseReflectionV1beta1ReflectionServiceListImplementationsService, -} from "./cosmos/base/reflection/v1beta1/reflection_@onsonr/es.js"; -export { - PageRequest as CosmosBaseQueryV1beta1PageRequest, - PageResponse as CosmosBaseQueryV1beta1PageResponse, -} from "./cosmos/base/query/v1beta1/pagination_pb.js"; -export { - ConfigRequest as CosmosBaseNodeV1beta1ConfigRequest, - ConfigResponse as CosmosBaseNodeV1beta1ConfigResponse, - StatusRequest as CosmosBaseNodeV1beta1StatusRequest, - StatusResponse as CosmosBaseNodeV1beta1StatusResponse, -} from "./cosmos/base/node/v1beta1/query_pb.js"; -export { - ServiceConfigService as CosmosBaseNodeV1beta1ServiceConfigService, - ServiceStatusService as CosmosBaseNodeV1beta1ServiceStatusService, -} from "./cosmos/base/node/v1beta1/query_@onsonr/es.js"; -export { - TxResponse as CosmosBaseAbciV1beta1TxResponse, - ABCIMessageLog as CosmosBaseAbciV1beta1ABCIMessageLog, - StringEvent as CosmosBaseAbciV1beta1StringEvent, - Attribute as CosmosBaseAbciV1beta1Attribute, - GasInfo as CosmosBaseAbciV1beta1GasInfo, - Result as CosmosBaseAbciV1beta1Result, - SimulationResponse as CosmosBaseAbciV1beta1SimulationResponse, - MsgData as CosmosBaseAbciV1beta1MsgData, - TxMsgData as CosmosBaseAbciV1beta1TxMsgData, - SearchTxsResult as CosmosBaseAbciV1beta1SearchTxsResult, - SearchBlocksResult as CosmosBaseAbciV1beta1SearchBlocksResult, -} from "./cosmos/base/abci/v1beta1/abci_pb.js"; -export { - MsgSend as CosmosBankV1beta1MsgSend, - MsgSendResponse as CosmosBankV1beta1MsgSendResponse, - MsgMultiSend as CosmosBankV1beta1MsgMultiSend, - MsgMultiSendResponse as CosmosBankV1beta1MsgMultiSendResponse, - MsgUpdateParams as CosmosBankV1beta1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosBankV1beta1MsgUpdateParamsResponse, - MsgSetSendEnabled as CosmosBankV1beta1MsgSetSendEnabled, - MsgSetSendEnabledResponse as CosmosBankV1beta1MsgSetSendEnabledResponse, -} from "./cosmos/bank/v1beta1/tx_pb.js"; -export { - MsgSendService as CosmosBankV1beta1MsgSendService, - MsgMultiSendService as CosmosBankV1beta1MsgMultiSendService, - MsgUpdateParamsService as CosmosBankV1beta1MsgUpdateParamsService, - MsgSetSendEnabledService as CosmosBankV1beta1MsgSetSendEnabledService, -} from "./cosmos/bank/v1beta1/tx_@onsonr/es.js"; -export { - QueryBalanceRequest as CosmosBankV1beta1QueryBalanceRequest, - QueryBalanceResponse as CosmosBankV1beta1QueryBalanceResponse, - QueryAllBalancesRequest as CosmosBankV1beta1QueryAllBalancesRequest, - QueryAllBalancesResponse as CosmosBankV1beta1QueryAllBalancesResponse, - QuerySpendableBalancesRequest as CosmosBankV1beta1QuerySpendableBalancesRequest, - QuerySpendableBalancesResponse as CosmosBankV1beta1QuerySpendableBalancesResponse, - QuerySpendableBalanceByDenomRequest as CosmosBankV1beta1QuerySpendableBalanceByDenomRequest, - QuerySpendableBalanceByDenomResponse as CosmosBankV1beta1QuerySpendableBalanceByDenomResponse, - QueryTotalSupplyRequest as CosmosBankV1beta1QueryTotalSupplyRequest, - QueryTotalSupplyResponse as CosmosBankV1beta1QueryTotalSupplyResponse, - QuerySupplyOfRequest as CosmosBankV1beta1QuerySupplyOfRequest, - QuerySupplyOfResponse as CosmosBankV1beta1QuerySupplyOfResponse, - QueryParamsRequest as CosmosBankV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosBankV1beta1QueryParamsResponse, - QueryDenomsMetadataRequest as CosmosBankV1beta1QueryDenomsMetadataRequest, - QueryDenomsMetadataResponse as CosmosBankV1beta1QueryDenomsMetadataResponse, - QueryDenomMetadataRequest as CosmosBankV1beta1QueryDenomMetadataRequest, - QueryDenomMetadataResponse as CosmosBankV1beta1QueryDenomMetadataResponse, - QueryDenomMetadataByQueryStringRequest as CosmosBankV1beta1QueryDenomMetadataByQueryStringRequest, - QueryDenomMetadataByQueryStringResponse as CosmosBankV1beta1QueryDenomMetadataByQueryStringResponse, - QueryDenomOwnersRequest as CosmosBankV1beta1QueryDenomOwnersRequest, - DenomOwner as CosmosBankV1beta1DenomOwner, - QueryDenomOwnersResponse as CosmosBankV1beta1QueryDenomOwnersResponse, - QueryDenomOwnersByQueryRequest as CosmosBankV1beta1QueryDenomOwnersByQueryRequest, - QueryDenomOwnersByQueryResponse as CosmosBankV1beta1QueryDenomOwnersByQueryResponse, - QuerySendEnabledRequest as CosmosBankV1beta1QuerySendEnabledRequest, - QuerySendEnabledResponse as CosmosBankV1beta1QuerySendEnabledResponse, -} from "./cosmos/bank/v1beta1/query_pb.js"; -export { - QueryBalanceService as CosmosBankV1beta1QueryBalanceService, - QueryAllBalancesService as CosmosBankV1beta1QueryAllBalancesService, - QuerySpendableBalancesService as CosmosBankV1beta1QuerySpendableBalancesService, - QuerySpendableBalanceByDenomService as CosmosBankV1beta1QuerySpendableBalanceByDenomService, - QueryTotalSupplyService as CosmosBankV1beta1QueryTotalSupplyService, - QuerySupplyOfService as CosmosBankV1beta1QuerySupplyOfService, - QueryParamsService as CosmosBankV1beta1QueryParamsService, - QueryDenomMetadataService as CosmosBankV1beta1QueryDenomMetadataService, - QueryDenomMetadataByQueryStringService as CosmosBankV1beta1QueryDenomMetadataByQueryStringService, - QueryDenomsMetadataService as CosmosBankV1beta1QueryDenomsMetadataService, - QueryDenomOwnersService as CosmosBankV1beta1QueryDenomOwnersService, - QueryDenomOwnersByQueryService as CosmosBankV1beta1QueryDenomOwnersByQueryService, - QuerySendEnabledService as CosmosBankV1beta1QuerySendEnabledService, -} from "./cosmos/bank/v1beta1/query_@onsonr/es.js"; -export { - GenesisState as CosmosBankV1beta1GenesisState, - Balance as CosmosBankV1beta1Balance, -} from "./cosmos/bank/v1beta1/genesis_pb.js"; -export { - Params as CosmosBankV1beta1Params, - SendEnabled as CosmosBankV1beta1SendEnabled, - Input as CosmosBankV1beta1Input, - Output as CosmosBankV1beta1Output, - Supply as CosmosBankV1beta1Supply, - DenomUnit as CosmosBankV1beta1DenomUnit, - Metadata as CosmosBankV1beta1Metadata, -} from "./cosmos/bank/v1beta1/bank_pb.js"; -export { - SendAuthorization as CosmosBankV1beta1SendAuthorization, -} from "./cosmos/bank/v1beta1/authz_pb.js"; -export { - Module as CosmosBankModuleV1Module, -} from "./cosmos/bank/module/v1/module_pb.js"; -export { - AppOptionsRequest as CosmosAutocliV1AppOptionsRequest, - AppOptionsResponse as CosmosAutocliV1AppOptionsResponse, -} from "./cosmos/autocli/v1/query_pb.js"; -export { - QueryAppOptionsService as CosmosAutocliV1QueryAppOptionsService, -} from "./cosmos/autocli/v1/query_@onsonr/es.js"; -export { - ModuleOptions as CosmosAutocliV1ModuleOptions, - ServiceCommandDescriptor as CosmosAutocliV1ServiceCommandDescriptor, - RpcCommandOptions as CosmosAutocliV1RpcCommandOptions, - FlagOptions as CosmosAutocliV1FlagOptions, - PositionalArgDescriptor as CosmosAutocliV1PositionalArgDescriptor, -} from "./cosmos/autocli/v1/options_pb.js"; -export { - MsgGrant as CosmosAuthzV1beta1MsgGrant, - MsgGrantResponse as CosmosAuthzV1beta1MsgGrantResponse, - MsgExec as CosmosAuthzV1beta1MsgExec, - MsgExecResponse as CosmosAuthzV1beta1MsgExecResponse, - MsgRevoke as CosmosAuthzV1beta1MsgRevoke, - MsgRevokeResponse as CosmosAuthzV1beta1MsgRevokeResponse, -} from "./cosmos/authz/v1beta1/tx_pb.js"; -export { - MsgGrantService as CosmosAuthzV1beta1MsgGrantService, - MsgExecService as CosmosAuthzV1beta1MsgExecService, - MsgRevokeService as CosmosAuthzV1beta1MsgRevokeService, -} from "./cosmos/authz/v1beta1/tx_@onsonr/es.js"; -export { - QueryGrantsRequest as CosmosAuthzV1beta1QueryGrantsRequest, - QueryGrantsResponse as CosmosAuthzV1beta1QueryGrantsResponse, - QueryGranterGrantsRequest as CosmosAuthzV1beta1QueryGranterGrantsRequest, - QueryGranterGrantsResponse as CosmosAuthzV1beta1QueryGranterGrantsResponse, - QueryGranteeGrantsRequest as CosmosAuthzV1beta1QueryGranteeGrantsRequest, - QueryGranteeGrantsResponse as CosmosAuthzV1beta1QueryGranteeGrantsResponse, -} from "./cosmos/authz/v1beta1/query_pb.js"; -export { - QueryGrantsService as CosmosAuthzV1beta1QueryGrantsService, - QueryGranterGrantsService as CosmosAuthzV1beta1QueryGranterGrantsService, - QueryGranteeGrantsService as CosmosAuthzV1beta1QueryGranteeGrantsService, -} from "./cosmos/authz/v1beta1/query_@onsonr/es.js"; -export { - GenesisState as CosmosAuthzV1beta1GenesisState, -} from "./cosmos/authz/v1beta1/genesis_pb.js"; -export { - EventGrant as CosmosAuthzV1beta1EventGrant, - EventRevoke as CosmosAuthzV1beta1EventRevoke, -} from "./cosmos/authz/v1beta1/event_pb.js"; -export { - GenericAuthorization as CosmosAuthzV1beta1GenericAuthorization, - Grant as CosmosAuthzV1beta1Grant, - GrantAuthorization as CosmosAuthzV1beta1GrantAuthorization, - GrantQueueItem as CosmosAuthzV1beta1GrantQueueItem, -} from "./cosmos/authz/v1beta1/authz_pb.js"; -export { - Module as CosmosAuthzModuleV1Module, -} from "./cosmos/authz/module/v1/module_pb.js"; -export { - MsgUpdateParams as CosmosAuthV1beta1MsgUpdateParams, - MsgUpdateParamsResponse as CosmosAuthV1beta1MsgUpdateParamsResponse, -} from "./cosmos/auth/v1beta1/tx_pb.js"; -export { - MsgUpdateParamsService as CosmosAuthV1beta1MsgUpdateParamsService, -} from "./cosmos/auth/v1beta1/tx_@onsonr/es.js"; -export { - QueryAccountsRequest as CosmosAuthV1beta1QueryAccountsRequest, - QueryAccountsResponse as CosmosAuthV1beta1QueryAccountsResponse, - QueryAccountRequest as CosmosAuthV1beta1QueryAccountRequest, - QueryAccountResponse as CosmosAuthV1beta1QueryAccountResponse, - QueryParamsRequest as CosmosAuthV1beta1QueryParamsRequest, - QueryParamsResponse as CosmosAuthV1beta1QueryParamsResponse, - QueryModuleAccountsRequest as CosmosAuthV1beta1QueryModuleAccountsRequest, - QueryModuleAccountsResponse as CosmosAuthV1beta1QueryModuleAccountsResponse, - QueryModuleAccountByNameRequest as CosmosAuthV1beta1QueryModuleAccountByNameRequest, - QueryModuleAccountByNameResponse as CosmosAuthV1beta1QueryModuleAccountByNameResponse, - Bech32PrefixRequest as CosmosAuthV1beta1Bech32PrefixRequest, - Bech32PrefixResponse as CosmosAuthV1beta1Bech32PrefixResponse, - AddressBytesToStringRequest as CosmosAuthV1beta1AddressBytesToStringRequest, - AddressBytesToStringResponse as CosmosAuthV1beta1AddressBytesToStringResponse, - AddressStringToBytesRequest as CosmosAuthV1beta1AddressStringToBytesRequest, - AddressStringToBytesResponse as CosmosAuthV1beta1AddressStringToBytesResponse, - QueryAccountAddressByIDRequest as CosmosAuthV1beta1QueryAccountAddressByIDRequest, - QueryAccountAddressByIDResponse as CosmosAuthV1beta1QueryAccountAddressByIDResponse, - QueryAccountInfoRequest as CosmosAuthV1beta1QueryAccountInfoRequest, - QueryAccountInfoResponse as CosmosAuthV1beta1QueryAccountInfoResponse, -} from "./cosmos/auth/v1beta1/query_pb.js"; -export { - QueryAccountsService as CosmosAuthV1beta1QueryAccountsService, - QueryAccountService as CosmosAuthV1beta1QueryAccountService, - QueryAccountAddressByIDService as CosmosAuthV1beta1QueryAccountAddressByIDService, - QueryParamsService as CosmosAuthV1beta1QueryParamsService, - QueryModuleAccountsService as CosmosAuthV1beta1QueryModuleAccountsService, - QueryModuleAccountByNameService as CosmosAuthV1beta1QueryModuleAccountByNameService, - QueryBech32PrefixService as CosmosAuthV1beta1QueryBech32PrefixService, - QueryAddressBytesToStringService as CosmosAuthV1beta1QueryAddressBytesToStringService, - QueryAddressStringToBytesService as CosmosAuthV1beta1QueryAddressStringToBytesService, - QueryAccountInfoService as CosmosAuthV1beta1QueryAccountInfoService, -} from "./cosmos/auth/v1beta1/query_@onsonr/es.js"; -export { - GenesisState as CosmosAuthV1beta1GenesisState, -} from "./cosmos/auth/v1beta1/genesis_pb.js"; -export { - BaseAccount as CosmosAuthV1beta1BaseAccount, - ModuleAccount as CosmosAuthV1beta1ModuleAccount, - ModuleCredential as CosmosAuthV1beta1ModuleCredential, - Params as CosmosAuthV1beta1Params, -} from "./cosmos/auth/v1beta1/auth_pb.js"; -export { - Module as CosmosAuthModuleV1Module, - ModuleAccountPermission as CosmosAuthModuleV1ModuleAccountPermission, -} from "./cosmos/auth/module/v1/module_pb.js"; -export { - QueryConfigRequest as CosmosAppV1alpha1QueryConfigRequest, - QueryConfigResponse as CosmosAppV1alpha1QueryConfigResponse, -} from "./cosmos/app/v1alpha1/query_pb.js"; -export { - QueryConfigService as CosmosAppV1alpha1QueryConfigService, -} from "./cosmos/app/v1alpha1/query_@onsonr/es.js"; -export { - ModuleDescriptor as CosmosAppV1alpha1ModuleDescriptor, - PackageReference as CosmosAppV1alpha1PackageReference, - MigrateFromInfo as CosmosAppV1alpha1MigrateFromInfo, -} from "./cosmos/app/v1alpha1/module_pb.js"; -export { - Config as CosmosAppV1alpha1Config, - ModuleConfig as CosmosAppV1alpha1ModuleConfig, - GolangBinding as CosmosAppV1alpha1GolangBinding, -} from "./cosmos/app/v1alpha1/config_pb.js"; -export { - Module as CosmosAppRuntimeV1alpha1Module, - StoreKeyConfig as CosmosAppRuntimeV1alpha1StoreKeyConfig, -} from "./cosmos/app/runtime/v1alpha1/module_pb.js"; -export { - IndexedHeader as BabylonZoneconciergeV1IndexedHeader, - Forks as BabylonZoneconciergeV1Forks, - ChainInfo as BabylonZoneconciergeV1ChainInfo, - FinalizedChainInfo as BabylonZoneconciergeV1FinalizedChainInfo, - ProofEpochSealed as BabylonZoneconciergeV1ProofEpochSealed, - ProofFinalizedChainInfo as BabylonZoneconciergeV1ProofFinalizedChainInfo, - BTCChainSegment as BabylonZoneconciergeV1BTCChainSegment, -} from "./babylon/zoneconcierge/v1/zoneconcierge_pb.js"; -export { - MsgUpdateParams as BabylonZoneconciergeV1MsgUpdateParams, - MsgUpdateParamsResponse as BabylonZoneconciergeV1MsgUpdateParamsResponse, -} from "./babylon/zoneconcierge/v1/tx_pb.js"; -export { - MsgUpdateParamsService as BabylonZoneconciergeV1MsgUpdateParamsService, -} from "./babylon/zoneconcierge/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as BabylonZoneconciergeV1QueryParamsRequest, - QueryParamsResponse as BabylonZoneconciergeV1QueryParamsResponse, - QueryHeaderRequest as BabylonZoneconciergeV1QueryHeaderRequest, - QueryHeaderResponse as BabylonZoneconciergeV1QueryHeaderResponse, - QueryChainListRequest as BabylonZoneconciergeV1QueryChainListRequest, - QueryChainListResponse as BabylonZoneconciergeV1QueryChainListResponse, - QueryChainsInfoRequest as BabylonZoneconciergeV1QueryChainsInfoRequest, - QueryChainsInfoResponse as BabylonZoneconciergeV1QueryChainsInfoResponse, - QueryEpochChainsInfoRequest as BabylonZoneconciergeV1QueryEpochChainsInfoRequest, - QueryEpochChainsInfoResponse as BabylonZoneconciergeV1QueryEpochChainsInfoResponse, - QueryListHeadersRequest as BabylonZoneconciergeV1QueryListHeadersRequest, - QueryListHeadersResponse as BabylonZoneconciergeV1QueryListHeadersResponse, - QueryListEpochHeadersRequest as BabylonZoneconciergeV1QueryListEpochHeadersRequest, - QueryListEpochHeadersResponse as BabylonZoneconciergeV1QueryListEpochHeadersResponse, - QueryFinalizedChainsInfoRequest as BabylonZoneconciergeV1QueryFinalizedChainsInfoRequest, - QueryFinalizedChainsInfoResponse as BabylonZoneconciergeV1QueryFinalizedChainsInfoResponse, - QueryFinalizedChainInfoUntilHeightRequest as BabylonZoneconciergeV1QueryFinalizedChainInfoUntilHeightRequest, - QueryFinalizedChainInfoUntilHeightResponse as BabylonZoneconciergeV1QueryFinalizedChainInfoUntilHeightResponse, -} from "./babylon/zoneconcierge/v1/query_pb.js"; -export { - QueryParamsService as BabylonZoneconciergeV1QueryParamsService, - QueryHeaderService as BabylonZoneconciergeV1QueryHeaderService, - QueryChainListService as BabylonZoneconciergeV1QueryChainListService, - QueryChainsInfoService as BabylonZoneconciergeV1QueryChainsInfoService, - QueryEpochChainsInfoService as BabylonZoneconciergeV1QueryEpochChainsInfoService, - QueryListHeadersService as BabylonZoneconciergeV1QueryListHeadersService, - QueryListEpochHeadersService as BabylonZoneconciergeV1QueryListEpochHeadersService, - QueryFinalizedChainsInfoService as BabylonZoneconciergeV1QueryFinalizedChainsInfoService, - QueryFinalizedChainInfoUntilHeightService as BabylonZoneconciergeV1QueryFinalizedChainInfoUntilHeightService, -} from "./babylon/zoneconcierge/v1/query_@onsonr/es.js"; -export { - Params as BabylonZoneconciergeV1Params, -} from "./babylon/zoneconcierge/v1/params_pb.js"; -export { - ZoneconciergePacketData as BabylonZoneconciergeV1ZoneconciergePacketData, - BTCTimestamp as BabylonZoneconciergeV1BTCTimestamp, -} from "./babylon/zoneconcierge/v1/packet_pb.js"; -export { - GenesisState as BabylonZoneconciergeV1GenesisState, -} from "./babylon/zoneconcierge/v1/genesis_pb.js"; -export { - QueryEndedEpochBtcHeightRequest as BabylonMonitorV1QueryEndedEpochBtcHeightRequest, - QueryEndedEpochBtcHeightResponse as BabylonMonitorV1QueryEndedEpochBtcHeightResponse, - QueryReportedCheckpointBtcHeightRequest as BabylonMonitorV1QueryReportedCheckpointBtcHeightRequest, - QueryReportedCheckpointBtcHeightResponse as BabylonMonitorV1QueryReportedCheckpointBtcHeightResponse, -} from "./babylon/monitor/v1/query_pb.js"; -export { - QueryEndedEpochBtcHeightService as BabylonMonitorV1QueryEndedEpochBtcHeightService, - QueryReportedCheckpointBtcHeightService as BabylonMonitorV1QueryReportedCheckpointBtcHeightService, -} from "./babylon/monitor/v1/query_@onsonr/es.js"; -export { - GenesisState as BabylonMonitorV1GenesisState, -} from "./babylon/monitor/v1/genesis_pb.js"; -export { - MsgWithdrawReward as BabylonIncentiveMsgWithdrawReward, - MsgWithdrawRewardResponse as BabylonIncentiveMsgWithdrawRewardResponse, - MsgUpdateParams as BabylonIncentiveMsgUpdateParams, - MsgUpdateParamsResponse as BabylonIncentiveMsgUpdateParamsResponse, -} from "./babylon/incentive/tx_pb.js"; -export { - MsgWithdrawRewardService as BabylonIncentiveMsgWithdrawRewardService, - MsgUpdateParamsService as BabylonIncentiveMsgUpdateParamsService, -} from "./babylon/incentive/tx_@onsonr/es.js"; -export { - QueryParamsRequest as BabylonIncentiveQueryParamsRequest, - QueryParamsResponse as BabylonIncentiveQueryParamsResponse, - QueryRewardGaugesRequest as BabylonIncentiveQueryRewardGaugesRequest, - QueryRewardGaugesResponse as BabylonIncentiveQueryRewardGaugesResponse, - QueryBTCStakingGaugeRequest as BabylonIncentiveQueryBTCStakingGaugeRequest, - QueryBTCStakingGaugeResponse as BabylonIncentiveQueryBTCStakingGaugeResponse, - QueryBTCTimestampingGaugeRequest as BabylonIncentiveQueryBTCTimestampingGaugeRequest, - QueryBTCTimestampingGaugeResponse as BabylonIncentiveQueryBTCTimestampingGaugeResponse, -} from "./babylon/incentive/query_pb.js"; -export { - QueryParamsService as BabylonIncentiveQueryParamsService, - QueryRewardGaugesService as BabylonIncentiveQueryRewardGaugesService, - QueryBTCStakingGaugeService as BabylonIncentiveQueryBTCStakingGaugeService, - QueryBTCTimestampingGaugeService as BabylonIncentiveQueryBTCTimestampingGaugeService, -} from "./babylon/incentive/query_@onsonr/es.js"; -export { - Params as BabylonIncentiveParams, -} from "./babylon/incentive/params_pb.js"; -export { - Gauge as BabylonIncentiveGauge, - RewardGauge as BabylonIncentiveRewardGauge, -} from "./babylon/incentive/incentive_pb.js"; -export { - GenesisState as BabylonIncentiveGenesisState, -} from "./babylon/incentive/genesis_pb.js"; -export { - MsgAddFinalitySig as BabylonFinalityV1MsgAddFinalitySig, - MsgAddFinalitySigResponse as BabylonFinalityV1MsgAddFinalitySigResponse, - MsgCommitPubRandList as BabylonFinalityV1MsgCommitPubRandList, - MsgCommitPubRandListResponse as BabylonFinalityV1MsgCommitPubRandListResponse, - MsgUpdateParams as BabylonFinalityV1MsgUpdateParams, - MsgUpdateParamsResponse as BabylonFinalityV1MsgUpdateParamsResponse, -} from "./babylon/finality/v1/tx_pb.js"; -export { - MsgAddFinalitySigService as BabylonFinalityV1MsgAddFinalitySigService, - MsgCommitPubRandListService as BabylonFinalityV1MsgCommitPubRandListService, - MsgUpdateParamsService as BabylonFinalityV1MsgUpdateParamsService, -} from "./babylon/finality/v1/tx_@onsonr/es.js"; -export { - QueriedBlockStatus as BabylonFinalityV1QueriedBlockStatus, - QueryParamsRequest as BabylonFinalityV1QueryParamsRequest, - QueryParamsResponse as BabylonFinalityV1QueryParamsResponse, - QueryListPublicRandomnessRequest as BabylonFinalityV1QueryListPublicRandomnessRequest, - QueryListPublicRandomnessResponse as BabylonFinalityV1QueryListPublicRandomnessResponse, - QueryBlockRequest as BabylonFinalityV1QueryBlockRequest, - QueryBlockResponse as BabylonFinalityV1QueryBlockResponse, - QueryListBlocksRequest as BabylonFinalityV1QueryListBlocksRequest, - QueryListBlocksResponse as BabylonFinalityV1QueryListBlocksResponse, - QueryVotesAtHeightRequest as BabylonFinalityV1QueryVotesAtHeightRequest, - QueryVotesAtHeightResponse as BabylonFinalityV1QueryVotesAtHeightResponse, - QueryEvidenceRequest as BabylonFinalityV1QueryEvidenceRequest, - QueryEvidenceResponse as BabylonFinalityV1QueryEvidenceResponse, - QueryListEvidencesRequest as BabylonFinalityV1QueryListEvidencesRequest, - QueryListEvidencesResponse as BabylonFinalityV1QueryListEvidencesResponse, -} from "./babylon/finality/v1/query_pb.js"; -export { - QueryParamsService as BabylonFinalityV1QueryParamsService, - QueryListPublicRandomnessService as BabylonFinalityV1QueryListPublicRandomnessService, - QueryBlockService as BabylonFinalityV1QueryBlockService, - QueryListBlocksService as BabylonFinalityV1QueryListBlocksService, - QueryVotesAtHeightService as BabylonFinalityV1QueryVotesAtHeightService, - QueryEvidenceService as BabylonFinalityV1QueryEvidenceService, - QueryListEvidencesService as BabylonFinalityV1QueryListEvidencesService, -} from "./babylon/finality/v1/query_@onsonr/es.js"; -export { - Params as BabylonFinalityV1Params, -} from "./babylon/finality/v1/params_pb.js"; -export { - GenesisState as BabylonFinalityV1GenesisState, - VoteSig as BabylonFinalityV1VoteSig, - PublicRandomness as BabylonFinalityV1PublicRandomness, -} from "./babylon/finality/v1/genesis_pb.js"; -export { - IndexedBlock as BabylonFinalityV1IndexedBlock, - Evidence as BabylonFinalityV1Evidence, -} from "./babylon/finality/v1/finality_pb.js"; -export { - EventSlashedFinalityProvider as BabylonFinalityV1EventSlashedFinalityProvider, -} from "./babylon/finality/v1/events_pb.js"; -export { - MsgWrappedDelegate as BabylonEpochingV1MsgWrappedDelegate, - MsgWrappedDelegateResponse as BabylonEpochingV1MsgWrappedDelegateResponse, - MsgWrappedUndelegate as BabylonEpochingV1MsgWrappedUndelegate, - MsgWrappedUndelegateResponse as BabylonEpochingV1MsgWrappedUndelegateResponse, - MsgWrappedBeginRedelegate as BabylonEpochingV1MsgWrappedBeginRedelegate, - MsgWrappedBeginRedelegateResponse as BabylonEpochingV1MsgWrappedBeginRedelegateResponse, - MsgWrappedCancelUnbondingDelegation as BabylonEpochingV1MsgWrappedCancelUnbondingDelegation, - MsgWrappedCancelUnbondingDelegationResponse as BabylonEpochingV1MsgWrappedCancelUnbondingDelegationResponse, - MsgUpdateParams as BabylonEpochingV1MsgUpdateParams, - MsgUpdateParamsResponse as BabylonEpochingV1MsgUpdateParamsResponse, -} from "./babylon/epoching/v1/tx_pb.js"; -export { - MsgWrappedDelegateService as BabylonEpochingV1MsgWrappedDelegateService, - MsgWrappedUndelegateService as BabylonEpochingV1MsgWrappedUndelegateService, - MsgWrappedBeginRedelegateService as BabylonEpochingV1MsgWrappedBeginRedelegateService, - MsgWrappedCancelUnbondingDelegationService as BabylonEpochingV1MsgWrappedCancelUnbondingDelegationService, - MsgUpdateParamsService as BabylonEpochingV1MsgUpdateParamsService, -} from "./babylon/epoching/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as BabylonEpochingV1QueryParamsRequest, - QueryParamsResponse as BabylonEpochingV1QueryParamsResponse, - QueryEpochInfoRequest as BabylonEpochingV1QueryEpochInfoRequest, - QueryEpochInfoResponse as BabylonEpochingV1QueryEpochInfoResponse, - QueryEpochsInfoRequest as BabylonEpochingV1QueryEpochsInfoRequest, - QueryEpochsInfoResponse as BabylonEpochingV1QueryEpochsInfoResponse, - QueryCurrentEpochRequest as BabylonEpochingV1QueryCurrentEpochRequest, - QueryCurrentEpochResponse as BabylonEpochingV1QueryCurrentEpochResponse, - QueryEpochMsgsRequest as BabylonEpochingV1QueryEpochMsgsRequest, - QueryEpochMsgsResponse as BabylonEpochingV1QueryEpochMsgsResponse, - QueryLatestEpochMsgsRequest as BabylonEpochingV1QueryLatestEpochMsgsRequest, - QueryLatestEpochMsgsResponse as BabylonEpochingV1QueryLatestEpochMsgsResponse, - QueryValidatorLifecycleRequest as BabylonEpochingV1QueryValidatorLifecycleRequest, - QueryValidatorLifecycleResponse as BabylonEpochingV1QueryValidatorLifecycleResponse, - QueryDelegationLifecycleRequest as BabylonEpochingV1QueryDelegationLifecycleRequest, - QueryDelegationLifecycleResponse as BabylonEpochingV1QueryDelegationLifecycleResponse, - QueryEpochValSetRequest as BabylonEpochingV1QueryEpochValSetRequest, - QueryEpochValSetResponse as BabylonEpochingV1QueryEpochValSetResponse, - EpochResponse as BabylonEpochingV1EpochResponse, - QueuedMessageResponse as BabylonEpochingV1QueuedMessageResponse, - QueuedMessageList as BabylonEpochingV1QueuedMessageList, - ValStateUpdateResponse as BabylonEpochingV1ValStateUpdateResponse, -} from "./babylon/epoching/v1/query_pb.js"; -export { - QueryParamsService as BabylonEpochingV1QueryParamsService, - QueryEpochInfoService as BabylonEpochingV1QueryEpochInfoService, - QueryEpochsInfoService as BabylonEpochingV1QueryEpochsInfoService, - QueryCurrentEpochService as BabylonEpochingV1QueryCurrentEpochService, - QueryEpochMsgsService as BabylonEpochingV1QueryEpochMsgsService, - QueryLatestEpochMsgsService as BabylonEpochingV1QueryLatestEpochMsgsService, - QueryValidatorLifecycleService as BabylonEpochingV1QueryValidatorLifecycleService, - QueryDelegationLifecycleService as BabylonEpochingV1QueryDelegationLifecycleService, - QueryEpochValSetService as BabylonEpochingV1QueryEpochValSetService, -} from "./babylon/epoching/v1/query_@onsonr/es.js"; -export { - Params as BabylonEpochingV1Params, -} from "./babylon/epoching/v1/params_pb.js"; -export { - GenesisState as BabylonEpochingV1GenesisState, -} from "./babylon/epoching/v1/genesis_pb.js"; -export { - EventBeginEpoch as BabylonEpochingV1EventBeginEpoch, - EventEndEpoch as BabylonEpochingV1EventEndEpoch, - EventHandleQueuedMsg as BabylonEpochingV1EventHandleQueuedMsg, - EventSlashThreshold as BabylonEpochingV1EventSlashThreshold, - EventWrappedDelegate as BabylonEpochingV1EventWrappedDelegate, - EventWrappedUndelegate as BabylonEpochingV1EventWrappedUndelegate, - EventWrappedBeginRedelegate as BabylonEpochingV1EventWrappedBeginRedelegate, - EventWrappedCancelUnbondingDelegation as BabylonEpochingV1EventWrappedCancelUnbondingDelegation, -} from "./babylon/epoching/v1/events_pb.js"; -export { - BondState as BabylonEpochingV1BondState, - Epoch as BabylonEpochingV1Epoch, - QueuedMessage as BabylonEpochingV1QueuedMessage, - ValStateUpdate as BabylonEpochingV1ValStateUpdate, - ValidatorLifecycle as BabylonEpochingV1ValidatorLifecycle, - DelegationStateUpdate as BabylonEpochingV1DelegationStateUpdate, - DelegationLifecycle as BabylonEpochingV1DelegationLifecycle, - Validator as BabylonEpochingV1Validator, -} from "./babylon/epoching/v1/epoching_pb.js"; -export { - MsgWrappedCreateValidator as BabylonCheckpointingV1MsgWrappedCreateValidator, - MsgWrappedCreateValidatorResponse as BabylonCheckpointingV1MsgWrappedCreateValidatorResponse, -} from "./babylon/checkpointing/v1/tx_pb.js"; -export { - MsgWrappedCreateValidatorService as BabylonCheckpointingV1MsgWrappedCreateValidatorService, -} from "./babylon/checkpointing/v1/tx_@onsonr/es.js"; -export { - QueryRawCheckpointListRequest as BabylonCheckpointingV1QueryRawCheckpointListRequest, - QueryRawCheckpointListResponse as BabylonCheckpointingV1QueryRawCheckpointListResponse, - QueryRawCheckpointRequest as BabylonCheckpointingV1QueryRawCheckpointRequest, - QueryRawCheckpointResponse as BabylonCheckpointingV1QueryRawCheckpointResponse, - QueryRawCheckpointsRequest as BabylonCheckpointingV1QueryRawCheckpointsRequest, - QueryRawCheckpointsResponse as BabylonCheckpointingV1QueryRawCheckpointsResponse, - QueryBlsPublicKeyListRequest as BabylonCheckpointingV1QueryBlsPublicKeyListRequest, - QueryBlsPublicKeyListResponse as BabylonCheckpointingV1QueryBlsPublicKeyListResponse, - QueryEpochStatusRequest as BabylonCheckpointingV1QueryEpochStatusRequest, - QueryEpochStatusResponse as BabylonCheckpointingV1QueryEpochStatusResponse, - QueryRecentEpochStatusCountRequest as BabylonCheckpointingV1QueryRecentEpochStatusCountRequest, - QueryRecentEpochStatusCountResponse as BabylonCheckpointingV1QueryRecentEpochStatusCountResponse, - QueryLastCheckpointWithStatusRequest as BabylonCheckpointingV1QueryLastCheckpointWithStatusRequest, - QueryLastCheckpointWithStatusResponse as BabylonCheckpointingV1QueryLastCheckpointWithStatusResponse, - RawCheckpointResponse as BabylonCheckpointingV1RawCheckpointResponse, - CheckpointStateUpdateResponse as BabylonCheckpointingV1CheckpointStateUpdateResponse, - RawCheckpointWithMetaResponse as BabylonCheckpointingV1RawCheckpointWithMetaResponse, -} from "./babylon/checkpointing/v1/query_pb.js"; -export { - QueryRawCheckpointListService as BabylonCheckpointingV1QueryRawCheckpointListService, - QueryRawCheckpointService as BabylonCheckpointingV1QueryRawCheckpointService, - QueryRawCheckpointsService as BabylonCheckpointingV1QueryRawCheckpointsService, - QueryBlsPublicKeyListService as BabylonCheckpointingV1QueryBlsPublicKeyListService, - QueryEpochStatusService as BabylonCheckpointingV1QueryEpochStatusService, - QueryRecentEpochStatusCountService as BabylonCheckpointingV1QueryRecentEpochStatusCountService, - QueryLastCheckpointWithStatusService as BabylonCheckpointingV1QueryLastCheckpointWithStatusService, -} from "./babylon/checkpointing/v1/query_@onsonr/es.js"; -export { - GenesisState as BabylonCheckpointingV1GenesisState, - GenesisKey as BabylonCheckpointingV1GenesisKey, -} from "./babylon/checkpointing/v1/genesis_pb.js"; -export { - EventCheckpointAccumulating as BabylonCheckpointingV1EventCheckpointAccumulating, - EventCheckpointSealed as BabylonCheckpointingV1EventCheckpointSealed, - EventCheckpointSubmitted as BabylonCheckpointingV1EventCheckpointSubmitted, - EventCheckpointConfirmed as BabylonCheckpointingV1EventCheckpointConfirmed, - EventCheckpointFinalized as BabylonCheckpointingV1EventCheckpointFinalized, - EventCheckpointForgotten as BabylonCheckpointingV1EventCheckpointForgotten, - EventConflictingCheckpoint as BabylonCheckpointingV1EventConflictingCheckpoint, -} from "./babylon/checkpointing/v1/events_pb.js"; -export { - CheckpointStatus as BabylonCheckpointingV1CheckpointStatus, - RawCheckpoint as BabylonCheckpointingV1RawCheckpoint, - RawCheckpointWithMeta as BabylonCheckpointingV1RawCheckpointWithMeta, - InjectedCheckpoint as BabylonCheckpointingV1InjectedCheckpoint, - CheckpointStateUpdate as BabylonCheckpointingV1CheckpointStateUpdate, - BlsSig as BabylonCheckpointingV1BlsSig, -} from "./babylon/checkpointing/v1/checkpoint_pb.js"; -export { - BlsKey as BabylonCheckpointingV1BlsKey, - ProofOfPossession as BabylonCheckpointingV1ProofOfPossession, - ValidatorWithBlsKeySet as BabylonCheckpointingV1ValidatorWithBlsKeySet, - ValidatorWithBlsKey as BabylonCheckpointingV1ValidatorWithBlsKey, - VoteExtension as BabylonCheckpointingV1VoteExtension, -} from "./babylon/checkpointing/v1/bls_key_pb.js"; -export { - MsgCreateFinalityProvider as BabylonBtcstakingV1MsgCreateFinalityProvider, - MsgCreateFinalityProviderResponse as BabylonBtcstakingV1MsgCreateFinalityProviderResponse, - MsgEditFinalityProvider as BabylonBtcstakingV1MsgEditFinalityProvider, - MsgEditFinalityProviderResponse as BabylonBtcstakingV1MsgEditFinalityProviderResponse, - MsgCreateBTCDelegation as BabylonBtcstakingV1MsgCreateBTCDelegation, - MsgCreateBTCDelegationResponse as BabylonBtcstakingV1MsgCreateBTCDelegationResponse, - MsgAddCovenantSigs as BabylonBtcstakingV1MsgAddCovenantSigs, - MsgAddCovenantSigsResponse as BabylonBtcstakingV1MsgAddCovenantSigsResponse, - MsgBTCUndelegate as BabylonBtcstakingV1MsgBTCUndelegate, - MsgBTCUndelegateResponse as BabylonBtcstakingV1MsgBTCUndelegateResponse, - MsgSelectiveSlashingEvidence as BabylonBtcstakingV1MsgSelectiveSlashingEvidence, - MsgSelectiveSlashingEvidenceResponse as BabylonBtcstakingV1MsgSelectiveSlashingEvidenceResponse, - MsgUpdateParams as BabylonBtcstakingV1MsgUpdateParams, - MsgUpdateParamsResponse as BabylonBtcstakingV1MsgUpdateParamsResponse, -} from "./babylon/btcstaking/v1/tx_pb.js"; -export { - MsgCreateFinalityProviderService as BabylonBtcstakingV1MsgCreateFinalityProviderService, - MsgEditFinalityProviderService as BabylonBtcstakingV1MsgEditFinalityProviderService, - MsgCreateBTCDelegationService as BabylonBtcstakingV1MsgCreateBTCDelegationService, - MsgAddCovenantSigsService as BabylonBtcstakingV1MsgAddCovenantSigsService, - MsgBTCUndelegateService as BabylonBtcstakingV1MsgBTCUndelegateService, - MsgSelectiveSlashingEvidenceService as BabylonBtcstakingV1MsgSelectiveSlashingEvidenceService, - MsgUpdateParamsService as BabylonBtcstakingV1MsgUpdateParamsService, -} from "./babylon/btcstaking/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as BabylonBtcstakingV1QueryParamsRequest, - QueryParamsResponse as BabylonBtcstakingV1QueryParamsResponse, - QueryFinalityProvidersRequest as BabylonBtcstakingV1QueryFinalityProvidersRequest, - QueryFinalityProvidersResponse as BabylonBtcstakingV1QueryFinalityProvidersResponse, - QueryFinalityProviderRequest as BabylonBtcstakingV1QueryFinalityProviderRequest, - QueryFinalityProviderResponse as BabylonBtcstakingV1QueryFinalityProviderResponse, - QueryBTCDelegationsRequest as BabylonBtcstakingV1QueryBTCDelegationsRequest, - QueryBTCDelegationsResponse as BabylonBtcstakingV1QueryBTCDelegationsResponse, - QueryFinalityProviderPowerAtHeightRequest as BabylonBtcstakingV1QueryFinalityProviderPowerAtHeightRequest, - QueryFinalityProviderPowerAtHeightResponse as BabylonBtcstakingV1QueryFinalityProviderPowerAtHeightResponse, - QueryFinalityProviderCurrentPowerRequest as BabylonBtcstakingV1QueryFinalityProviderCurrentPowerRequest, - QueryFinalityProviderCurrentPowerResponse as BabylonBtcstakingV1QueryFinalityProviderCurrentPowerResponse, - QueryActiveFinalityProvidersAtHeightRequest as BabylonBtcstakingV1QueryActiveFinalityProvidersAtHeightRequest, - QueryActiveFinalityProvidersAtHeightResponse as BabylonBtcstakingV1QueryActiveFinalityProvidersAtHeightResponse, - QueryActivatedHeightRequest as BabylonBtcstakingV1QueryActivatedHeightRequest, - QueryActivatedHeightResponse as BabylonBtcstakingV1QueryActivatedHeightResponse, - QueryFinalityProviderDelegationsRequest as BabylonBtcstakingV1QueryFinalityProviderDelegationsRequest, - QueryFinalityProviderDelegationsResponse as BabylonBtcstakingV1QueryFinalityProviderDelegationsResponse, - QueryBTCDelegationRequest as BabylonBtcstakingV1QueryBTCDelegationRequest, - QueryBTCDelegationResponse as BabylonBtcstakingV1QueryBTCDelegationResponse, - BTCDelegationResponse as BabylonBtcstakingV1BTCDelegationResponse, - BTCUndelegationResponse as BabylonBtcstakingV1BTCUndelegationResponse, - BTCDelegatorDelegationsResponse as BabylonBtcstakingV1BTCDelegatorDelegationsResponse, - FinalityProviderResponse as BabylonBtcstakingV1FinalityProviderResponse, -} from "./babylon/btcstaking/v1/query_pb.js"; -export { - QueryParamsService as BabylonBtcstakingV1QueryParamsService, - QueryFinalityProvidersService as BabylonBtcstakingV1QueryFinalityProvidersService, - QueryFinalityProviderService as BabylonBtcstakingV1QueryFinalityProviderService, - QueryBTCDelegationsService as BabylonBtcstakingV1QueryBTCDelegationsService, - QueryActiveFinalityProvidersAtHeightService as BabylonBtcstakingV1QueryActiveFinalityProvidersAtHeightService, - QueryFinalityProviderPowerAtHeightService as BabylonBtcstakingV1QueryFinalityProviderPowerAtHeightService, - QueryFinalityProviderCurrentPowerService as BabylonBtcstakingV1QueryFinalityProviderCurrentPowerService, - QueryActivatedHeightService as BabylonBtcstakingV1QueryActivatedHeightService, - QueryFinalityProviderDelegationsService as BabylonBtcstakingV1QueryFinalityProviderDelegationsService, - QueryBTCDelegationService as BabylonBtcstakingV1QueryBTCDelegationService, -} from "./babylon/btcstaking/v1/query_@onsonr/es.js"; -export { - BTCSigType as BabylonBtcstakingV1BTCSigType, - ProofOfPossession as BabylonBtcstakingV1ProofOfPossession, - BIP322Sig as BabylonBtcstakingV1BIP322Sig, -} from "./babylon/btcstaking/v1/pop_pb.js"; -export { - Params as BabylonBtcstakingV1Params, -} from "./babylon/btcstaking/v1/params_pb.js"; -export { - VotingPowerDistCache as BabylonBtcstakingV1VotingPowerDistCache, - FinalityProviderDistInfo as BabylonBtcstakingV1FinalityProviderDistInfo, - BTCDelDistInfo as BabylonBtcstakingV1BTCDelDistInfo, -} from "./babylon/btcstaking/v1/incentive_pb.js"; -export { - GenesisState as BabylonBtcstakingV1GenesisState, - VotingPowerFP as BabylonBtcstakingV1VotingPowerFP, - VotingPowerDistCacheBlkHeight as BabylonBtcstakingV1VotingPowerDistCacheBlkHeight, - BlockHeightBbnToBtc as BabylonBtcstakingV1BlockHeightBbnToBtc, - BTCDelegator as BabylonBtcstakingV1BTCDelegator, - EventIndex as BabylonBtcstakingV1EventIndex, -} from "./babylon/btcstaking/v1/genesis_pb.js"; -export { - EventNewFinalityProvider as BabylonBtcstakingV1EventNewFinalityProvider, - EventBTCDelegationStateUpdate as BabylonBtcstakingV1EventBTCDelegationStateUpdate, - EventSelectiveSlashing as BabylonBtcstakingV1EventSelectiveSlashing, - EventPowerDistUpdate as BabylonBtcstakingV1EventPowerDistUpdate, - EventPowerDistUpdate_EventSlashedFinalityProvider as BabylonBtcstakingV1EventPowerDistUpdate_EventSlashedFinalityProvider, -} from "./babylon/btcstaking/v1/events_pb.js"; -export { - BTCDelegationStatus as BabylonBtcstakingV1BTCDelegationStatus, - FinalityProvider as BabylonBtcstakingV1FinalityProvider, - FinalityProviderWithMeta as BabylonBtcstakingV1FinalityProviderWithMeta, - BTCDelegation as BabylonBtcstakingV1BTCDelegation, - BTCUndelegation as BabylonBtcstakingV1BTCUndelegation, - BTCDelegatorDelegations as BabylonBtcstakingV1BTCDelegatorDelegations, - BTCDelegatorDelegationIndex as BabylonBtcstakingV1BTCDelegatorDelegationIndex, - SignatureInfo as BabylonBtcstakingV1SignatureInfo, - CovenantAdaptorSignatures as BabylonBtcstakingV1CovenantAdaptorSignatures, - SelectiveSlashingEvidence as BabylonBtcstakingV1SelectiveSlashingEvidence, -} from "./babylon/btcstaking/v1/btcstaking_pb.js"; -export { - MsgInsertHeaders as BabylonBtclightclientV1MsgInsertHeaders, - MsgInsertHeadersResponse as BabylonBtclightclientV1MsgInsertHeadersResponse, - MsgUpdateParams as BabylonBtclightclientV1MsgUpdateParams, - MsgUpdateParamsResponse as BabylonBtclightclientV1MsgUpdateParamsResponse, -} from "./babylon/btclightclient/v1/tx_pb.js"; -export { - MsgInsertHeadersService as BabylonBtclightclientV1MsgInsertHeadersService, - MsgUpdateParamsService as BabylonBtclightclientV1MsgUpdateParamsService, -} from "./babylon/btclightclient/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as BabylonBtclightclientV1QueryParamsRequest, - QueryParamsResponse as BabylonBtclightclientV1QueryParamsResponse, - QueryHashesRequest as BabylonBtclightclientV1QueryHashesRequest, - QueryHashesResponse as BabylonBtclightclientV1QueryHashesResponse, - QueryContainsRequest as BabylonBtclightclientV1QueryContainsRequest, - QueryContainsResponse as BabylonBtclightclientV1QueryContainsResponse, - QueryContainsBytesRequest as BabylonBtclightclientV1QueryContainsBytesRequest, - QueryContainsBytesResponse as BabylonBtclightclientV1QueryContainsBytesResponse, - QueryMainChainRequest as BabylonBtclightclientV1QueryMainChainRequest, - QueryMainChainResponse as BabylonBtclightclientV1QueryMainChainResponse, - QueryTipRequest as BabylonBtclightclientV1QueryTipRequest, - QueryTipResponse as BabylonBtclightclientV1QueryTipResponse, - QueryBaseHeaderRequest as BabylonBtclightclientV1QueryBaseHeaderRequest, - QueryBaseHeaderResponse as BabylonBtclightclientV1QueryBaseHeaderResponse, - QueryHeaderDepthRequest as BabylonBtclightclientV1QueryHeaderDepthRequest, - QueryHeaderDepthResponse as BabylonBtclightclientV1QueryHeaderDepthResponse, - BTCHeaderInfoResponse as BabylonBtclightclientV1BTCHeaderInfoResponse, -} from "./babylon/btclightclient/v1/query_pb.js"; -export { - QueryParamsService as BabylonBtclightclientV1QueryParamsService, - QueryHashesService as BabylonBtclightclientV1QueryHashesService, - QueryContainsService as BabylonBtclightclientV1QueryContainsService, - QueryContainsBytesService as BabylonBtclightclientV1QueryContainsBytesService, - QueryMainChainService as BabylonBtclightclientV1QueryMainChainService, - QueryTipService as BabylonBtclightclientV1QueryTipService, - QueryBaseHeaderService as BabylonBtclightclientV1QueryBaseHeaderService, - QueryHeaderDepthService as BabylonBtclightclientV1QueryHeaderDepthService, -} from "./babylon/btclightclient/v1/query_@onsonr/es.js"; -export { - Params as BabylonBtclightclientV1Params, -} from "./babylon/btclightclient/v1/params_pb.js"; -export { - GenesisState as BabylonBtclightclientV1GenesisState, -} from "./babylon/btclightclient/v1/genesis_pb.js"; -export { - EventBTCRollBack as BabylonBtclightclientV1EventBTCRollBack, - EventBTCRollForward as BabylonBtclightclientV1EventBTCRollForward, - EventBTCHeaderInserted as BabylonBtclightclientV1EventBTCHeaderInserted, -} from "./babylon/btclightclient/v1/event_pb.js"; -export { - BTCHeaderInfo as BabylonBtclightclientV1BTCHeaderInfo, -} from "./babylon/btclightclient/v1/btclightclient_pb.js"; -export { - MsgInsertBTCSpvProof as BabylonBtccheckpointV1MsgInsertBTCSpvProof, - MsgInsertBTCSpvProofResponse as BabylonBtccheckpointV1MsgInsertBTCSpvProofResponse, - MsgUpdateParams as BabylonBtccheckpointV1MsgUpdateParams, - MsgUpdateParamsResponse as BabylonBtccheckpointV1MsgUpdateParamsResponse, -} from "./babylon/btccheckpoint/v1/tx_pb.js"; -export { - MsgInsertBTCSpvProofService as BabylonBtccheckpointV1MsgInsertBTCSpvProofService, - MsgUpdateParamsService as BabylonBtccheckpointV1MsgUpdateParamsService, -} from "./babylon/btccheckpoint/v1/tx_@onsonr/es.js"; -export { - QueryParamsRequest as BabylonBtccheckpointV1QueryParamsRequest, - QueryParamsResponse as BabylonBtccheckpointV1QueryParamsResponse, - QueryBtcCheckpointInfoRequest as BabylonBtccheckpointV1QueryBtcCheckpointInfoRequest, - QueryBtcCheckpointInfoResponse as BabylonBtccheckpointV1QueryBtcCheckpointInfoResponse, - QueryBtcCheckpointsInfoRequest as BabylonBtccheckpointV1QueryBtcCheckpointsInfoRequest, - QueryBtcCheckpointsInfoResponse as BabylonBtccheckpointV1QueryBtcCheckpointsInfoResponse, - QueryEpochSubmissionsRequest as BabylonBtccheckpointV1QueryEpochSubmissionsRequest, - QueryEpochSubmissionsResponse as BabylonBtccheckpointV1QueryEpochSubmissionsResponse, - BTCCheckpointInfoResponse as BabylonBtccheckpointV1BTCCheckpointInfoResponse, - TransactionInfoResponse as BabylonBtccheckpointV1TransactionInfoResponse, - CheckpointAddressesResponse as BabylonBtccheckpointV1CheckpointAddressesResponse, - SubmissionKeyResponse as BabylonBtccheckpointV1SubmissionKeyResponse, -} from "./babylon/btccheckpoint/v1/query_pb.js"; -export { - QueryParamsService as BabylonBtccheckpointV1QueryParamsService, - QueryBtcCheckpointInfoService as BabylonBtccheckpointV1QueryBtcCheckpointInfoService, - QueryBtcCheckpointsInfoService as BabylonBtccheckpointV1QueryBtcCheckpointsInfoService, - QueryEpochSubmissionsService as BabylonBtccheckpointV1QueryEpochSubmissionsService, -} from "./babylon/btccheckpoint/v1/query_@onsonr/es.js"; -export { - Params as BabylonBtccheckpointV1Params, -} from "./babylon/btccheckpoint/v1/params_pb.js"; -export { - GenesisState as BabylonBtccheckpointV1GenesisState, -} from "./babylon/btccheckpoint/v1/genesis_pb.js"; -export { - BtcStatus as BabylonBtccheckpointV1BtcStatus, - BTCSpvProof as BabylonBtccheckpointV1BTCSpvProof, - TransactionKey as BabylonBtccheckpointV1TransactionKey, - SubmissionKey as BabylonBtccheckpointV1SubmissionKey, - TransactionInfo as BabylonBtccheckpointV1TransactionInfo, - SubmissionData as BabylonBtccheckpointV1SubmissionData, - EpochData as BabylonBtccheckpointV1EpochData, - CheckpointAddresses as BabylonBtccheckpointV1CheckpointAddresses, - BTCCheckpointInfo as BabylonBtccheckpointV1BTCCheckpointInfo, -} from "./babylon/btccheckpoint/v1/btccheckpoint_pb.js"; diff --git a/libs/es-client/src/protobufs/osmosis/accum/v1beta1/accum_pb.ts b/libs/es-client/src/protobufs/osmosis/accum/v1beta1/accum_pb.ts deleted file mode 100644 index 92df760..0000000 --- a/libs/es-client/src/protobufs/osmosis/accum/v1beta1/accum_pb.ts +++ /dev/null @@ -1,172 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/accum/v1beta1/accum.proto (package osmosis.accum.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * AccumulatorContent is the state-entry for the global accumulator. - * It contains the name of the global accumulator and the total value of - * shares belonging to it from all positions. - * - * @generated from message osmosis.accum.v1beta1.AccumulatorContent - */ -export class AccumulatorContent extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin accum_value = 1; - */ - accumValue: DecCoin[] = []; - - /** - * @generated from field: string total_shares = 2; - */ - totalShares = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.accum.v1beta1.AccumulatorContent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accum_value", kind: "message", T: DecCoin, repeated: true }, - { no: 2, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccumulatorContent { - return new AccumulatorContent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccumulatorContent { - return new AccumulatorContent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccumulatorContent { - return new AccumulatorContent().fromJsonString(jsonString, options); - } - - static equals(a: AccumulatorContent | PlainMessage | undefined, b: AccumulatorContent | PlainMessage | undefined): boolean { - return proto3.util.equals(AccumulatorContent, a, b); - } -} - -/** - * @generated from message osmosis.accum.v1beta1.Options - */ -export class Options extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.accum.v1beta1.Options"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Options { - return new Options().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Options { - return new Options().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Options { - return new Options().fromJsonString(jsonString, options); - } - - static equals(a: Options | PlainMessage | undefined, b: Options | PlainMessage | undefined): boolean { - return proto3.util.equals(Options, a, b); - } -} - -/** - * Record corresponds to an individual position value belonging to the - * global accumulator. - * - * @generated from message osmosis.accum.v1beta1.Record - */ -export class Record extends Message { - /** - * num_shares is the number of shares belonging to the position associated - * with this record. - * - * @generated from field: string num_shares = 1; - */ - numShares = ""; - - /** - * accum_value_per_share is the subset of coins per shar of the global - * accumulator value that allows to infer how much a position is entitled to - * per share that it owns. - * - * In the default case with no intervals, this value equals to the global - * accumulator value at the time of the position creation, the last update or - * reward claim. - * - * In the interval case such as concentrated liquidity, this value equals to - * the global growth of rewards inside the interval during one of: the time of - * the position creation, the last update or reward claim. Note, that - * immediately prior to claiming or updating rewards, this value must be - * updated to "the growth inside at the time of last update + the growth - * outside at the time of the current block". This is so that the claiming - * logic can subtract this updated value from the global accumulator value to - * get the growth inside the interval from the time of last update up until - * the current block time. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin accum_value_per_share = 2; - */ - accumValuePerShare: DecCoin[] = []; - - /** - * unclaimed_rewards_total is the total amount of unclaimed rewards that the - * position is entitled to. This value is updated whenever shares are added or - * removed from an existing position. We also expose API for manually updating - * this value for some custom use cases such as merging pre-existing positions - * into a single one. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin unclaimed_rewards_total = 3; - */ - unclaimedRewardsTotal: DecCoin[] = []; - - /** - * @generated from field: osmosis.accum.v1beta1.Options options = 4; - */ - options?: Options; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.accum.v1beta1.Record"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "num_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "accum_value_per_share", kind: "message", T: DecCoin, repeated: true }, - { no: 3, name: "unclaimed_rewards_total", kind: "message", T: DecCoin, repeated: true }, - { no: 4, name: "options", kind: "message", T: Options }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Record { - return new Record().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Record { - return new Record().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Record { - return new Record().fromJsonString(jsonString, options); - } - - static equals(a: Record | PlainMessage | undefined, b: Record | PlainMessage | undefined): boolean { - return proto3.util.equals(Record, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/params_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/params_pb.ts deleted file mode 100644 index 9be285f..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/params_pb.ts +++ /dev/null @@ -1,120 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/params.proto (package osmosis.concentratedliquidity, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message osmosis.concentratedliquidity.Params - */ -export class Params extends Message { - /** - * authorized_tick_spacing is an array of uint64s that represents the tick - * spacing values concentrated-liquidity pools can be created with. For - * example, an authorized_tick_spacing of [1, 10, 30] allows for pools - * to be created with tick spacing of 1, 10, or 30. - * - * @generated from field: repeated uint64 authorized_tick_spacing = 1; - */ - authorizedTickSpacing: bigint[] = []; - - /** - * @generated from field: repeated string authorized_spread_factors = 2; - */ - authorizedSpreadFactors: string[] = []; - - /** - * balancer_shares_reward_discount is the rate by which incentives flowing - * from CL to Balancer pools will be discounted to encourage LPs to migrate. - * e.g. a rate of 0.05 means Balancer LPs get 5% less incentives than full - * range CL LPs. - * This field can range from (0,1]. If set to 1, it indicates that all - * incentives stay at cl pool. - * - * @generated from field: string balancer_shares_reward_discount = 3; - */ - balancerSharesRewardDiscount = ""; - - /** - * DEPRECATED: authorized_quote_denoms is a list of quote denoms that can be - * used as token1 when creating a pool. We limit the quote assets to a small - * set for the purposes of having convenient price increments stemming from - * tick to price conversion. These increments are in a human readable - * magnitude only for token1 as a quote. For limit orders in the future, this - * will be a desirable property in terms of UX as to allow users to set limit - * orders at prices in terms of token1 (quote asset) that are easy to reason - * about. - * - * @generated from field: repeated string authorized_quote_denoms = 4 [deprecated = true]; - * @deprecated - */ - authorizedQuoteDenoms: string[] = []; - - /** - * @generated from field: repeated google.protobuf.Duration authorized_uptimes = 5; - */ - authorizedUptimes: Duration[] = []; - - /** - * is_permissionless_pool_creation_enabled is a boolean that determines if - * concentrated liquidity pools can be created via message. At launch, - * we consider allowing only governance to create pools, and then later - * allowing permissionless pool creation by switching this flag to true - * with a governance proposal. - * - * @generated from field: bool is_permissionless_pool_creation_enabled = 6; - */ - isPermissionlessPoolCreationEnabled = false; - - /** - * unrestricted_pool_creator_whitelist is a list of addresses that are - * allowed to bypass restrictions on permissionless supercharged pool - * creation, like pool_creation_enabled, restricted quote assets, no - * double creation of pools, etc. - * - * @generated from field: repeated string unrestricted_pool_creator_whitelist = 7; - */ - unrestrictedPoolCreatorWhitelist: string[] = []; - - /** - * @generated from field: uint64 hook_gas_limit = 8; - */ - hookGasLimit = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authorized_tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "authorized_spread_factors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "balancer_shares_reward_discount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "authorized_quote_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "authorized_uptimes", kind: "message", T: Duration, repeated: true }, - { no: 6, name: "is_permissionless_pool_creation_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 7, name: "unrestricted_pool_creator_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 8, name: "hook_gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_cosmes.ts deleted file mode 100644 index aa91424..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.proto (package osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - MsgCreateConcentratedPool, - MsgCreateConcentratedPoolResponse, -} from "./tx_pb.js"; - -const TYPE_NAME = - "osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.Msg.CreateConcentratedPool - */ -export const MsgCreateConcentratedPoolService = { - typeName: TYPE_NAME, - method: "CreateConcentratedPool", - Request: MsgCreateConcentratedPool, - Response: MsgCreateConcentratedPoolResponse, -} as const; diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_pb.ts deleted file mode 100644 index 03d5b72..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx_pb.ts +++ /dev/null @@ -1,110 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.proto (package osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * ===================== MsgCreateConcentratedPool - * - * @generated from message osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool - */ -export class MsgCreateConcentratedPool extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: string denom0 = 2; - */ - denom0 = ""; - - /** - * @generated from field: string denom1 = 3; - */ - denom1 = ""; - - /** - * @generated from field: uint64 tick_spacing = 4; - */ - tickSpacing = protoInt64.zero; - - /** - * @generated from field: string spread_factor = 5; - */ - spreadFactor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "denom1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "spread_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateConcentratedPool { - return new MsgCreateConcentratedPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateConcentratedPool { - return new MsgCreateConcentratedPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateConcentratedPool { - return new MsgCreateConcentratedPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateConcentratedPool | PlainMessage | undefined, b: MsgCreateConcentratedPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateConcentratedPool, a, b); - } -} - -/** - * Returns a unique poolID to identify the pool with. - * - * @generated from message osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPoolResponse - */ -export class MsgCreateConcentratedPoolResponse extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.poolmodel.concentrated.v1beta1.MsgCreateConcentratedPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateConcentratedPoolResponse { - return new MsgCreateConcentratedPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateConcentratedPoolResponse { - return new MsgCreateConcentratedPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateConcentratedPoolResponse { - return new MsgCreateConcentratedPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateConcentratedPoolResponse | PlainMessage | undefined, b: MsgCreateConcentratedPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateConcentratedPoolResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts deleted file mode 100644 index c105b5a..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,324 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/genesis.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { TickInfo } from "./tick_info_pb.js"; -import { IncentiveRecord } from "./incentive_record_pb.js"; -import { Position } from "./position_pb.js"; -import { AccumulatorContent, Record } from "../../accum/v1beta1/accum_pb.js"; -import { Params } from "../params_pb.js"; - -/** - * FullTick contains tick index and pool id along with other tick model - * information. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.FullTick - */ -export class FullTick extends Message { - /** - * pool id associated with the tick. - * - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * tick's index. - * - * @generated from field: int64 tick_index = 2; - */ - tickIndex = protoInt64.zero; - - /** - * tick's info. - * - * @generated from field: osmosis.concentratedliquidity.v1beta1.TickInfo info = 3; - */ - info?: TickInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.FullTick"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "info", kind: "message", T: TickInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FullTick { - return new FullTick().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FullTick { - return new FullTick().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FullTick { - return new FullTick().fromJsonString(jsonString, options); - } - - static equals(a: FullTick | PlainMessage | undefined, b: FullTick | PlainMessage | undefined): boolean { - return proto3.util.equals(FullTick, a, b); - } -} - -/** - * PoolData represents a serialized pool along with its ticks - * for genesis state. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.PoolData - */ -export class PoolData extends Message { - /** - * pool struct - * - * @generated from field: google.protobuf.Any pool = 1; - */ - pool?: Any; - - /** - * pool's ticks - * - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.FullTick ticks = 2; - */ - ticks: FullTick[] = []; - - /** - * @generated from field: osmosis.concentratedliquidity.v1beta1.AccumObject spread_reward_accumulator = 3; - */ - spreadRewardAccumulator?: AccumObject; - - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.AccumObject incentives_accumulators = 4; - */ - incentivesAccumulators: AccumObject[] = []; - - /** - * incentive records to be set - * - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.IncentiveRecord incentive_records = 5; - */ - incentiveRecords: IncentiveRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PoolData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool", kind: "message", T: Any }, - { no: 2, name: "ticks", kind: "message", T: FullTick, repeated: true }, - { no: 3, name: "spread_reward_accumulator", kind: "message", T: AccumObject }, - { no: 4, name: "incentives_accumulators", kind: "message", T: AccumObject, repeated: true }, - { no: 5, name: "incentive_records", kind: "message", T: IncentiveRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolData { - return new PoolData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolData { - return new PoolData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolData { - return new PoolData().fromJsonString(jsonString, options); - } - - static equals(a: PoolData | PlainMessage | undefined, b: PoolData | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolData, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.PositionData - */ -export class PositionData extends Message { - /** - * @generated from field: osmosis.concentratedliquidity.v1beta1.Position position = 1; - */ - position?: Position; - - /** - * @generated from field: uint64 lock_id = 2; - */ - lockId = protoInt64.zero; - - /** - * @generated from field: osmosis.accum.v1beta1.Record spread_reward_accum_record = 3; - */ - spreadRewardAccumRecord?: Record; - - /** - * @generated from field: repeated osmosis.accum.v1beta1.Record uptime_accum_records = 4; - */ - uptimeAccumRecords: Record[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PositionData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position", kind: "message", T: Position }, - { no: 2, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "spread_reward_accum_record", kind: "message", T: Record }, - { no: 4, name: "uptime_accum_records", kind: "message", T: Record, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PositionData { - return new PositionData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PositionData { - return new PositionData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PositionData { - return new PositionData().fromJsonString(jsonString, options); - } - - static equals(a: PositionData | PlainMessage | undefined, b: PositionData | PlainMessage | undefined): boolean { - return proto3.util.equals(PositionData, a, b); - } -} - -/** - * GenesisState defines the concentrated liquidity module's genesis state. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params are all the parameters of the module - * - * @generated from field: osmosis.concentratedliquidity.Params params = 1; - */ - params?: Params; - - /** - * pool data containing serialized pool struct and ticks. - * - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.PoolData pool_data = 2; - */ - poolData: PoolData[] = []; - - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.PositionData position_data = 3; - */ - positionData: PositionData[] = []; - - /** - * @generated from field: uint64 next_position_id = 4; - */ - nextPositionId = protoInt64.zero; - - /** - * @generated from field: uint64 next_incentive_record_id = 5; - */ - nextIncentiveRecordId = protoInt64.zero; - - /** - * @generated from field: uint64 incentives_accumulator_pool_id_migration_threshold = 6; - */ - incentivesAccumulatorPoolIdMigrationThreshold = protoInt64.zero; - - /** - * @generated from field: uint64 spread_factor_pool_id_migration_threshold = 7; - */ - spreadFactorPoolIdMigrationThreshold = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "pool_data", kind: "message", T: PoolData, repeated: true }, - { no: 3, name: "position_data", kind: "message", T: PositionData, repeated: true }, - { no: 4, name: "next_position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "next_incentive_record_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "incentives_accumulator_pool_id_migration_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "spread_factor_pool_id_migration_threshold", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * In original struct of Accum object, store.KVStore is stored together. - * For handling genesis, we do not need to include store.KVStore since we use - * CL module's KVStore. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.AccumObject - */ -export class AccumObject extends Message { - /** - * Accumulator's name (pulled from AccumulatorContent) - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: osmosis.accum.v1beta1.AccumulatorContent accum_content = 2; - */ - accumContent?: AccumulatorContent; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.AccumObject"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "accum_content", kind: "message", T: AccumulatorContent }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccumObject { - return new AccumObject().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccumObject { - return new AccumObject().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccumObject { - return new AccumObject().fromJsonString(jsonString, options); - } - - static equals(a: AccumObject | PlainMessage | undefined, b: AccumObject | PlainMessage | undefined): boolean { - return proto3.util.equals(AccumObject, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/gov_pb.ts deleted file mode 100644 index ea3b682..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/gov_pb.ts +++ /dev/null @@ -1,225 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/gov.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * CreateConcentratedLiquidityPoolsProposal is a gov Content type for creating - * concentrated liquidity pools. If a CreateConcentratedLiquidityPoolsProposal - * passes, the pools are created via pool manager module account. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.CreateConcentratedLiquidityPoolsProposal - */ -export class CreateConcentratedLiquidityPoolsProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.PoolRecord pool_records = 3; - */ - poolRecords: PoolRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.CreateConcentratedLiquidityPoolsProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pool_records", kind: "message", T: PoolRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateConcentratedLiquidityPoolsProposal { - return new CreateConcentratedLiquidityPoolsProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateConcentratedLiquidityPoolsProposal { - return new CreateConcentratedLiquidityPoolsProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateConcentratedLiquidityPoolsProposal { - return new CreateConcentratedLiquidityPoolsProposal().fromJsonString(jsonString, options); - } - - static equals(a: CreateConcentratedLiquidityPoolsProposal | PlainMessage | undefined, b: CreateConcentratedLiquidityPoolsProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateConcentratedLiquidityPoolsProposal, a, b); - } -} - -/** - * TickSpacingDecreaseProposal is a gov Content type for proposing a tick - * spacing decrease for a pool. The proposal will fail if one of the pools do - * not exist, or if the new tick spacing is not less than the current tick - * spacing. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.TickSpacingDecreaseProposal - */ -export class TickSpacingDecreaseProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.PoolIdToTickSpacingRecord pool_id_to_tick_spacing_records = 3; - */ - poolIdToTickSpacingRecords: PoolIdToTickSpacingRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.TickSpacingDecreaseProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pool_id_to_tick_spacing_records", kind: "message", T: PoolIdToTickSpacingRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TickSpacingDecreaseProposal { - return new TickSpacingDecreaseProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TickSpacingDecreaseProposal { - return new TickSpacingDecreaseProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TickSpacingDecreaseProposal { - return new TickSpacingDecreaseProposal().fromJsonString(jsonString, options); - } - - static equals(a: TickSpacingDecreaseProposal | PlainMessage | undefined, b: TickSpacingDecreaseProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(TickSpacingDecreaseProposal, a, b); - } -} - -/** - * PoolIdToTickSpacingRecord is a struct that contains a pool id to new tick - * spacing pair. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.PoolIdToTickSpacingRecord - */ -export class PoolIdToTickSpacingRecord extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: uint64 new_tick_spacing = 2; - */ - newTickSpacing = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PoolIdToTickSpacingRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "new_tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolIdToTickSpacingRecord { - return new PoolIdToTickSpacingRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolIdToTickSpacingRecord { - return new PoolIdToTickSpacingRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolIdToTickSpacingRecord { - return new PoolIdToTickSpacingRecord().fromJsonString(jsonString, options); - } - - static equals(a: PoolIdToTickSpacingRecord | PlainMessage | undefined, b: PoolIdToTickSpacingRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolIdToTickSpacingRecord, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.PoolRecord - */ -export class PoolRecord extends Message { - /** - * @generated from field: string denom0 = 1; - */ - denom0 = ""; - - /** - * @generated from field: string denom1 = 2; - */ - denom1 = ""; - - /** - * @generated from field: uint64 tick_spacing = 3; - */ - tickSpacing = protoInt64.zero; - - /** - * DEPRECATED - * - * @generated from field: string exponent_at_price_one = 4 [deprecated = true]; - * @deprecated - */ - exponentAtPriceOne = ""; - - /** - * @generated from field: string spread_factor = 5; - */ - spreadFactor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PoolRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "exponent_at_price_one", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "spread_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolRecord { - return new PoolRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolRecord { - return new PoolRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolRecord { - return new PoolRecord().fromJsonString(jsonString, options); - } - - static equals(a: PoolRecord | PlainMessage | undefined, b: PoolRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolRecord, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/incentive_record_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/incentive_record_pb.ts deleted file mode 100644 index 107a222..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/incentive_record_pb.ts +++ /dev/null @@ -1,135 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/incentive_record.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * IncentiveRecord is the high-level struct we use to deal with an independent - * incentive being distributed on a pool. Note that PoolId, Denom, and MinUptime - * are included in the key so we avoid storing them in state, hence the - * distinction between IncentiveRecord and IncentiveRecordBody. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.IncentiveRecord - */ -export class IncentiveRecord extends Message { - /** - * incentive_id is the id uniquely identifying this incentive record. - * - * @generated from field: uint64 incentive_id = 1; - */ - incentiveId = protoInt64.zero; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * incentive record body holds necessary - * - * @generated from field: osmosis.concentratedliquidity.v1beta1.IncentiveRecordBody incentive_record_body = 4; - */ - incentiveRecordBody?: IncentiveRecordBody; - - /** - * min_uptime is the minimum uptime required for liquidity to qualify for this - * incentive. It should be always be one of the supported uptimes in - * types.SupportedUptimes - * - * @generated from field: google.protobuf.Duration min_uptime = 5; - */ - minUptime?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.IncentiveRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "incentive_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "incentive_record_body", kind: "message", T: IncentiveRecordBody }, - { no: 5, name: "min_uptime", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IncentiveRecord { - return new IncentiveRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IncentiveRecord { - return new IncentiveRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IncentiveRecord { - return new IncentiveRecord().fromJsonString(jsonString, options); - } - - static equals(a: IncentiveRecord | PlainMessage | undefined, b: IncentiveRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(IncentiveRecord, a, b); - } -} - -/** - * IncentiveRecordBody represents the body stored in state for each individual - * record. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.IncentiveRecordBody - */ -export class IncentiveRecordBody extends Message { - /** - * remaining_coin is the total amount of incentives to be distributed - * - * @generated from field: cosmos.base.v1beta1.DecCoin remaining_coin = 1; - */ - remainingCoin?: DecCoin; - - /** - * emission_rate is the incentive emission rate per second - * - * @generated from field: string emission_rate = 2; - */ - emissionRate = ""; - - /** - * start_time is the time when the incentive starts distributing - * - * @generated from field: google.protobuf.Timestamp start_time = 3; - */ - startTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.IncentiveRecordBody"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "remaining_coin", kind: "message", T: DecCoin }, - { no: 2, name: "emission_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "start_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IncentiveRecordBody { - return new IncentiveRecordBody().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IncentiveRecordBody { - return new IncentiveRecordBody().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IncentiveRecordBody { - return new IncentiveRecordBody().fromJsonString(jsonString, options); - } - - static equals(a: IncentiveRecordBody | PlainMessage | undefined, b: IncentiveRecordBody | PlainMessage | undefined): boolean { - return proto3.util.equals(IncentiveRecordBody, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/pool_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/pool_pb.ts deleted file mode 100644 index 382a8c4..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/pool_pb.ts +++ /dev/null @@ -1,138 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/pool.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -// This is a legacy package that requires additional migration logic -// in order to use the correct package. Decision made to use legacy package path -// until clear steps for migration logic and the unknowns for state breaking are -// investigated for changing proto package. - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.Pool - */ -export class Pool extends Message { - /** - * pool's address holding all liquidity tokens. - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * address holding the incentives liquidity. - * - * @generated from field: string incentives_address = 2; - */ - incentivesAddress = ""; - - /** - * address holding spread rewards from swaps. - * - * @generated from field: string spread_rewards_address = 3; - */ - spreadRewardsAddress = ""; - - /** - * @generated from field: uint64 id = 4; - */ - id = protoInt64.zero; - - /** - * Amount of total liquidity - * - * @generated from field: string current_tick_liquidity = 5; - */ - currentTickLiquidity = ""; - - /** - * @generated from field: string token0 = 6; - */ - token0 = ""; - - /** - * @generated from field: string token1 = 7; - */ - token1 = ""; - - /** - * @generated from field: string current_sqrt_price = 8; - */ - currentSqrtPrice = ""; - - /** - * @generated from field: int64 current_tick = 9; - */ - currentTick = protoInt64.zero; - - /** - * tick_spacing must be one of the authorized_tick_spacing values set in the - * concentrated-liquidity parameters - * - * @generated from field: uint64 tick_spacing = 10; - */ - tickSpacing = protoInt64.zero; - - /** - * @generated from field: int64 exponent_at_price_one = 11; - */ - exponentAtPriceOne = protoInt64.zero; - - /** - * spread_factor is the ratio that is charged on the amount of token in. - * - * @generated from field: string spread_factor = 12; - */ - spreadFactor = ""; - - /** - * last_liquidity_update is the last time either the pool liquidity or the - * active tick changed - * - * @generated from field: google.protobuf.Timestamp last_liquidity_update = 13; - */ - lastLiquidityUpdate?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.Pool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "incentives_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "spread_rewards_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "current_tick_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "current_sqrt_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "current_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 10, name: "tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 11, name: "exponent_at_price_one", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 12, name: "spread_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "last_liquidity_update", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Pool { - return new Pool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Pool { - return new Pool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Pool { - return new Pool().fromJsonString(jsonString, options); - } - - static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { - return proto3.util.equals(Pool, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/position_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/position_pb.ts deleted file mode 100644 index 410eca7..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/position_pb.ts +++ /dev/null @@ -1,209 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/position.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -// this is a legacy package that requires additional migration logic -// in order to use the correct package. Decision made to use legacy package path -// until clear steps for migration logic and the unknowns for state breaking are -// investigated for changing proto package. - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { PeriodLock } from "../../lockup/lock_pb.js"; - -/** - * Position contains position's id, address, pool id, lower tick, upper tick - * join time, and liquidity. - * - * @generated from message osmosis.concentratedliquidity.v1beta1.Position - */ -export class Position extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: string address = 2; - */ - address = ""; - - /** - * @generated from field: uint64 pool_id = 3; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: int64 lower_tick = 4; - */ - lowerTick = protoInt64.zero; - - /** - * @generated from field: int64 upper_tick = 5; - */ - upperTick = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp join_time = 6; - */ - joinTime?: Timestamp; - - /** - * @generated from field: string liquidity = 7; - */ - liquidity = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.Position"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "lower_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "upper_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "join_time", kind: "message", T: Timestamp }, - { no: 7, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Position { - return new Position().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Position { - return new Position().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Position { - return new Position().fromJsonString(jsonString, options); - } - - static equals(a: Position | PlainMessage | undefined, b: Position | PlainMessage | undefined): boolean { - return proto3.util.equals(Position, a, b); - } -} - -/** - * FullPositionBreakdown returns: - * - the position itself - * - the amount the position translates in terms of asset0 and asset1 - * - the amount of claimable fees - * - the amount of claimable incentives - * - the amount of incentives that would be forfeited if the position was closed - * now - * - * @generated from message osmosis.concentratedliquidity.v1beta1.FullPositionBreakdown - */ -export class FullPositionBreakdown extends Message { - /** - * @generated from field: osmosis.concentratedliquidity.v1beta1.Position position = 1; - */ - position?: Position; - - /** - * @generated from field: cosmos.base.v1beta1.Coin asset0 = 2; - */ - asset0?: Coin; - - /** - * @generated from field: cosmos.base.v1beta1.Coin asset1 = 3; - */ - asset1?: Coin; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin claimable_spread_rewards = 4; - */ - claimableSpreadRewards: Coin[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin claimable_incentives = 5; - */ - claimableIncentives: Coin[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin forfeited_incentives = 6; - */ - forfeitedIncentives: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.FullPositionBreakdown"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position", kind: "message", T: Position }, - { no: 2, name: "asset0", kind: "message", T: Coin }, - { no: 3, name: "asset1", kind: "message", T: Coin }, - { no: 4, name: "claimable_spread_rewards", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "claimable_incentives", kind: "message", T: Coin, repeated: true }, - { no: 6, name: "forfeited_incentives", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FullPositionBreakdown { - return new FullPositionBreakdown().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FullPositionBreakdown { - return new FullPositionBreakdown().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FullPositionBreakdown { - return new FullPositionBreakdown().fromJsonString(jsonString, options); - } - - static equals(a: FullPositionBreakdown | PlainMessage | undefined, b: FullPositionBreakdown | PlainMessage | undefined): boolean { - return proto3.util.equals(FullPositionBreakdown, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.PositionWithPeriodLock - */ -export class PositionWithPeriodLock extends Message { - /** - * @generated from field: osmosis.concentratedliquidity.v1beta1.Position position = 1; - */ - position?: Position; - - /** - * @generated from field: osmosis.lockup.PeriodLock locks = 2; - */ - locks?: PeriodLock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PositionWithPeriodLock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position", kind: "message", T: Position }, - { no: 2, name: "locks", kind: "message", T: PeriodLock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PositionWithPeriodLock { - return new PositionWithPeriodLock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PositionWithPeriodLock { - return new PositionWithPeriodLock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PositionWithPeriodLock { - return new PositionWithPeriodLock().fromJsonString(jsonString, options); - } - - static equals(a: PositionWithPeriodLock | PlainMessage | undefined, b: PositionWithPeriodLock | PlainMessage | undefined): boolean { - return proto3.util.equals(PositionWithPeriodLock, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_cosmes.ts deleted file mode 100644 index 5f68111..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,199 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/query.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CFMMPoolIdLinkFromConcentratedPoolIdRequest, CFMMPoolIdLinkFromConcentratedPoolIdResponse, ClaimableIncentivesRequest, ClaimableIncentivesResponse, ClaimableSpreadRewardsRequest, ClaimableSpreadRewardsResponse, GetTotalLiquidityRequest, GetTotalLiquidityResponse, IncentiveRecordsRequest, IncentiveRecordsResponse, LiquidityNetInDirectionRequest, LiquidityNetInDirectionResponse, LiquidityPerTickRangeRequest, LiquidityPerTickRangeResponse, NumNextInitializedTicksRequest, NumNextInitializedTicksResponse, ParamsRequest, ParamsResponse, PoolAccumulatorRewardsRequest, PoolAccumulatorRewardsResponse, PoolsRequest, PoolsResponse, PositionByIdRequest, PositionByIdResponse, TickAccumulatorTrackersRequest, TickAccumulatorTrackersResponse, UserPositionsRequest, UserPositionsResponse, UserUnbondingPositionsRequest, UserUnbondingPositionsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.concentratedliquidity.v1beta1.Query"; - -/** - * Pools returns all concentrated liquidity pools - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.Pools - */ -export const QueryPoolsService = { - typeName: TYPE_NAME, - method: "Pools", - Request: PoolsRequest, - Response: PoolsResponse, -} as const; - -/** - * Params returns concentrated liquidity module params. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: ParamsRequest, - Response: ParamsResponse, -} as const; - -/** - * UserPositions returns all concentrated positions of some address. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.UserPositions - */ -export const QueryUserPositionsService = { - typeName: TYPE_NAME, - method: "UserPositions", - Request: UserPositionsRequest, - Response: UserPositionsResponse, -} as const; - -/** - * LiquidityPerTickRange returns the amount of liquidity per every tick range - * existing within the given pool - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.LiquidityPerTickRange - */ -export const QueryLiquidityPerTickRangeService = { - typeName: TYPE_NAME, - method: "LiquidityPerTickRange", - Request: LiquidityPerTickRangeRequest, - Response: LiquidityPerTickRangeResponse, -} as const; - -/** - * LiquidityNetInDirection returns liquidity net in the direction given. - * Uses the bound if specified, if not uses either min tick / max tick - * depending on the direction. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.LiquidityNetInDirection - */ -export const QueryLiquidityNetInDirectionService = { - typeName: TYPE_NAME, - method: "LiquidityNetInDirection", - Request: LiquidityNetInDirectionRequest, - Response: LiquidityNetInDirectionResponse, -} as const; - -/** - * ClaimableSpreadRewards returns the amount of spread rewards that can be - * claimed by a position with the given id. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.ClaimableSpreadRewards - */ -export const QueryClaimableSpreadRewardsService = { - typeName: TYPE_NAME, - method: "ClaimableSpreadRewards", - Request: ClaimableSpreadRewardsRequest, - Response: ClaimableSpreadRewardsResponse, -} as const; - -/** - * ClaimableIncentives returns the amount of incentives that can be claimed - * and how many would be forfeited by a position with the given id. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.ClaimableIncentives - */ -export const QueryClaimableIncentivesService = { - typeName: TYPE_NAME, - method: "ClaimableIncentives", - Request: ClaimableIncentivesRequest, - Response: ClaimableIncentivesResponse, -} as const; - -/** - * PositionById returns a position with the given id. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.PositionById - */ -export const QueryPositionByIdService = { - typeName: TYPE_NAME, - method: "PositionById", - Request: PositionByIdRequest, - Response: PositionByIdResponse, -} as const; - -/** - * PoolAccumulatorRewards returns the pool-global accumulator rewards. - * Contains spread factor rewards and uptime rewards. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.PoolAccumulatorRewards - */ -export const QueryPoolAccumulatorRewardsService = { - typeName: TYPE_NAME, - method: "PoolAccumulatorRewards", - Request: PoolAccumulatorRewardsRequest, - Response: PoolAccumulatorRewardsResponse, -} as const; - -/** - * IncentiveRecords returns the incentive records for a given poolId - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.IncentiveRecords - */ -export const QueryIncentiveRecordsService = { - typeName: TYPE_NAME, - method: "IncentiveRecords", - Request: IncentiveRecordsRequest, - Response: IncentiveRecordsResponse, -} as const; - -/** - * TickAccumulatorTrackers returns the tick accumulator trackers. - * Contains spread factor and uptime accumulator trackers. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.TickAccumulatorTrackers - */ -export const QueryTickAccumulatorTrackersService = { - typeName: TYPE_NAME, - method: "TickAccumulatorTrackers", - Request: TickAccumulatorTrackersRequest, - Response: TickAccumulatorTrackersResponse, -} as const; - -/** - * CFMMPoolIdLinkFromConcentratedPoolId returns the pool id of the CFMM - * pool that is linked with the given concentrated pool. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.CFMMPoolIdLinkFromConcentratedPoolId - */ -export const QueryCFMMPoolIdLinkFromConcentratedPoolIdService = { - typeName: TYPE_NAME, - method: "CFMMPoolIdLinkFromConcentratedPoolId", - Request: CFMMPoolIdLinkFromConcentratedPoolIdRequest, - Response: CFMMPoolIdLinkFromConcentratedPoolIdResponse, -} as const; - -/** - * UserUnbondingPositions returns the position and lock info of unbonding - * positions of the given address. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.UserUnbondingPositions - */ -export const QueryUserUnbondingPositionsService = { - typeName: TYPE_NAME, - method: "UserUnbondingPositions", - Request: UserUnbondingPositionsRequest, - Response: UserUnbondingPositionsResponse, -} as const; - -/** - * GetTotalLiquidity returns total liquidity across all cl pools. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.GetTotalLiquidity - */ -export const QueryGetTotalLiquidityService = { - typeName: TYPE_NAME, - method: "GetTotalLiquidity", - Request: GetTotalLiquidityRequest, - Response: GetTotalLiquidityResponse, -} as const; - -/** - * NumNextInitializedTicks returns the provided number of next initialized - * ticks in the direction of swapping the token in denom. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Query.NumNextInitializedTicks - */ -export const QueryNumNextInitializedTicksService = { - typeName: TYPE_NAME, - method: "NumNextInitializedTicks", - Request: NumNextInitializedTicksRequest, - Response: NumNextInitializedTicksResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts deleted file mode 100644 index 48596f2..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/query_pb.ts +++ /dev/null @@ -1,1452 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/query.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { FullPositionBreakdown, PositionWithPeriodLock } from "./position_pb.js"; -import { Params } from "../params_pb.js"; -import { Coin, DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { UptimeTracker } from "./tick_info_pb.js"; -import { IncentiveRecord } from "./incentive_record_pb.js"; - -/** - * =============================== UserPositions - * - * @generated from message osmosis.concentratedliquidity.v1beta1.UserPositionsRequest - */ -export class UserPositionsRequest extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.UserPositionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserPositionsRequest { - return new UserPositionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserPositionsRequest { - return new UserPositionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserPositionsRequest { - return new UserPositionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: UserPositionsRequest | PlainMessage | undefined, b: UserPositionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UserPositionsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.UserPositionsResponse - */ -export class UserPositionsResponse extends Message { - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.FullPositionBreakdown positions = 1; - */ - positions: FullPositionBreakdown[] = []; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.UserPositionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "positions", kind: "message", T: FullPositionBreakdown, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserPositionsResponse { - return new UserPositionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserPositionsResponse { - return new UserPositionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserPositionsResponse { - return new UserPositionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: UserPositionsResponse | PlainMessage | undefined, b: UserPositionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UserPositionsResponse, a, b); - } -} - -/** - * =============================== PositionById - * - * @generated from message osmosis.concentratedliquidity.v1beta1.PositionByIdRequest - */ -export class PositionByIdRequest extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PositionByIdRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PositionByIdRequest { - return new PositionByIdRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PositionByIdRequest { - return new PositionByIdRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PositionByIdRequest { - return new PositionByIdRequest().fromJsonString(jsonString, options); - } - - static equals(a: PositionByIdRequest | PlainMessage | undefined, b: PositionByIdRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PositionByIdRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.PositionByIdResponse - */ -export class PositionByIdResponse extends Message { - /** - * @generated from field: osmosis.concentratedliquidity.v1beta1.FullPositionBreakdown position = 1; - */ - position?: FullPositionBreakdown; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PositionByIdResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position", kind: "message", T: FullPositionBreakdown }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PositionByIdResponse { - return new PositionByIdResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PositionByIdResponse { - return new PositionByIdResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PositionByIdResponse { - return new PositionByIdResponse().fromJsonString(jsonString, options); - } - - static equals(a: PositionByIdResponse | PlainMessage | undefined, b: PositionByIdResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PositionByIdResponse, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.NumPoolPositionsRequest - */ -export class NumPoolPositionsRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.NumPoolPositionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NumPoolPositionsRequest { - return new NumPoolPositionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NumPoolPositionsRequest { - return new NumPoolPositionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NumPoolPositionsRequest { - return new NumPoolPositionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: NumPoolPositionsRequest | PlainMessage | undefined, b: NumPoolPositionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NumPoolPositionsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.NumPoolPositionsResponse - */ -export class NumPoolPositionsResponse extends Message { - /** - * @generated from field: uint64 position_count = 1; - */ - positionCount = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.NumPoolPositionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NumPoolPositionsResponse { - return new NumPoolPositionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NumPoolPositionsResponse { - return new NumPoolPositionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NumPoolPositionsResponse { - return new NumPoolPositionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: NumPoolPositionsResponse | PlainMessage | undefined, b: NumPoolPositionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NumPoolPositionsResponse, a, b); - } -} - -/** - * =============================== Pools - * - * @generated from message osmosis.concentratedliquidity.v1beta1.PoolsRequest - */ -export class PoolsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolsRequest { - return new PoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolsRequest { - return new PoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolsRequest { - return new PoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: PoolsRequest | PlainMessage | undefined, b: PoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.PoolsResponse - */ -export class PoolsResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolsResponse { - return new PoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolsResponse { - return new PoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolsResponse { - return new PoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: PoolsResponse | PlainMessage | undefined, b: PoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolsResponse, a, b); - } -} - -/** - * =============================== ModuleParams - * - * @generated from message osmosis.concentratedliquidity.v1beta1.ParamsRequest - */ -export class ParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.ParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { - return new ParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.ParamsResponse - */ -export class ParamsResponse extends Message { - /** - * @generated from field: osmosis.concentratedliquidity.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.ParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { - return new ParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsResponse, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.TickLiquidityNet - */ -export class TickLiquidityNet extends Message { - /** - * @generated from field: string liquidity_net = 1; - */ - liquidityNet = ""; - - /** - * @generated from field: int64 tick_index = 2; - */ - tickIndex = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.TickLiquidityNet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity_net", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TickLiquidityNet { - return new TickLiquidityNet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TickLiquidityNet { - return new TickLiquidityNet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TickLiquidityNet { - return new TickLiquidityNet().fromJsonString(jsonString, options); - } - - static equals(a: TickLiquidityNet | PlainMessage | undefined, b: TickLiquidityNet | PlainMessage | undefined): boolean { - return proto3.util.equals(TickLiquidityNet, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.LiquidityDepthWithRange - */ -export class LiquidityDepthWithRange extends Message { - /** - * @generated from field: string liquidity_amount = 1; - */ - liquidityAmount = ""; - - /** - * @generated from field: int64 lower_tick = 2; - */ - lowerTick = protoInt64.zero; - - /** - * @generated from field: int64 upper_tick = 3; - */ - upperTick = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.LiquidityDepthWithRange"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lower_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "upper_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiquidityDepthWithRange { - return new LiquidityDepthWithRange().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiquidityDepthWithRange { - return new LiquidityDepthWithRange().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiquidityDepthWithRange { - return new LiquidityDepthWithRange().fromJsonString(jsonString, options); - } - - static equals(a: LiquidityDepthWithRange | PlainMessage | undefined, b: LiquidityDepthWithRange | PlainMessage | undefined): boolean { - return proto3.util.equals(LiquidityDepthWithRange, a, b); - } -} - -/** - * =============================== LiquidityNetInDirection - * - * @generated from message osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionRequest - */ -export class LiquidityNetInDirectionRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in = 2; - */ - tokenIn = ""; - - /** - * @generated from field: int64 start_tick = 3; - */ - startTick = protoInt64.zero; - - /** - * @generated from field: bool use_cur_tick = 4; - */ - useCurTick = false; - - /** - * @generated from field: int64 bound_tick = 5; - */ - boundTick = protoInt64.zero; - - /** - * @generated from field: bool use_no_bound = 6; - */ - useNoBound = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "start_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "use_cur_tick", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "bound_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "use_no_bound", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiquidityNetInDirectionRequest { - return new LiquidityNetInDirectionRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiquidityNetInDirectionRequest { - return new LiquidityNetInDirectionRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiquidityNetInDirectionRequest { - return new LiquidityNetInDirectionRequest().fromJsonString(jsonString, options); - } - - static equals(a: LiquidityNetInDirectionRequest | PlainMessage | undefined, b: LiquidityNetInDirectionRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LiquidityNetInDirectionRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionResponse - */ -export class LiquidityNetInDirectionResponse extends Message { - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.TickLiquidityNet liquidity_depths = 1; - */ - liquidityDepths: TickLiquidityNet[] = []; - - /** - * @generated from field: int64 current_tick = 2; - */ - currentTick = protoInt64.zero; - - /** - * @generated from field: string current_liquidity = 3; - */ - currentLiquidity = ""; - - /** - * @generated from field: string current_sqrt_price = 4; - */ - currentSqrtPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.LiquidityNetInDirectionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity_depths", kind: "message", T: TickLiquidityNet, repeated: true }, - { no: 2, name: "current_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "current_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "current_sqrt_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiquidityNetInDirectionResponse { - return new LiquidityNetInDirectionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiquidityNetInDirectionResponse { - return new LiquidityNetInDirectionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiquidityNetInDirectionResponse { - return new LiquidityNetInDirectionResponse().fromJsonString(jsonString, options); - } - - static equals(a: LiquidityNetInDirectionResponse | PlainMessage | undefined, b: LiquidityNetInDirectionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LiquidityNetInDirectionResponse, a, b); - } -} - -/** - * =============================== LiquidityPerTickRange - * - * @generated from message osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeRequest - */ -export class LiquidityPerTickRangeRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiquidityPerTickRangeRequest { - return new LiquidityPerTickRangeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiquidityPerTickRangeRequest { - return new LiquidityPerTickRangeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiquidityPerTickRangeRequest { - return new LiquidityPerTickRangeRequest().fromJsonString(jsonString, options); - } - - static equals(a: LiquidityPerTickRangeRequest | PlainMessage | undefined, b: LiquidityPerTickRangeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LiquidityPerTickRangeRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeResponse - */ -export class LiquidityPerTickRangeResponse extends Message { - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.LiquidityDepthWithRange liquidity = 1; - */ - liquidity: LiquidityDepthWithRange[] = []; - - /** - * @generated from field: int64 bucket_index = 2; - */ - bucketIndex = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.LiquidityPerTickRangeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity", kind: "message", T: LiquidityDepthWithRange, repeated: true }, - { no: 2, name: "bucket_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiquidityPerTickRangeResponse { - return new LiquidityPerTickRangeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiquidityPerTickRangeResponse { - return new LiquidityPerTickRangeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiquidityPerTickRangeResponse { - return new LiquidityPerTickRangeResponse().fromJsonString(jsonString, options); - } - - static equals(a: LiquidityPerTickRangeResponse | PlainMessage | undefined, b: LiquidityPerTickRangeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LiquidityPerTickRangeResponse, a, b); - } -} - -/** - * ===================== QueryClaimableSpreadRewards - * - * @generated from message osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsRequest - */ -export class ClaimableSpreadRewardsRequest extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClaimableSpreadRewardsRequest { - return new ClaimableSpreadRewardsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClaimableSpreadRewardsRequest { - return new ClaimableSpreadRewardsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClaimableSpreadRewardsRequest { - return new ClaimableSpreadRewardsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ClaimableSpreadRewardsRequest | PlainMessage | undefined, b: ClaimableSpreadRewardsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ClaimableSpreadRewardsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsResponse - */ -export class ClaimableSpreadRewardsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin claimable_spread_rewards = 1; - */ - claimableSpreadRewards: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.ClaimableSpreadRewardsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "claimable_spread_rewards", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClaimableSpreadRewardsResponse { - return new ClaimableSpreadRewardsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClaimableSpreadRewardsResponse { - return new ClaimableSpreadRewardsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClaimableSpreadRewardsResponse { - return new ClaimableSpreadRewardsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ClaimableSpreadRewardsResponse | PlainMessage | undefined, b: ClaimableSpreadRewardsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ClaimableSpreadRewardsResponse, a, b); - } -} - -/** - * ===================== QueryClaimableIncentives - * - * @generated from message osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesRequest - */ -export class ClaimableIncentivesRequest extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClaimableIncentivesRequest { - return new ClaimableIncentivesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClaimableIncentivesRequest { - return new ClaimableIncentivesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClaimableIncentivesRequest { - return new ClaimableIncentivesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ClaimableIncentivesRequest | PlainMessage | undefined, b: ClaimableIncentivesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ClaimableIncentivesRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesResponse - */ -export class ClaimableIncentivesResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin claimable_incentives = 1; - */ - claimableIncentives: Coin[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin forfeited_incentives = 2; - */ - forfeitedIncentives: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.ClaimableIncentivesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "claimable_incentives", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "forfeited_incentives", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClaimableIncentivesResponse { - return new ClaimableIncentivesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClaimableIncentivesResponse { - return new ClaimableIncentivesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClaimableIncentivesResponse { - return new ClaimableIncentivesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ClaimableIncentivesResponse | PlainMessage | undefined, b: ClaimableIncentivesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ClaimableIncentivesResponse, a, b); - } -} - -/** - * ===================== QueryPoolAccumulatorRewards - * - * @generated from message osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsRequest - */ -export class PoolAccumulatorRewardsRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolAccumulatorRewardsRequest { - return new PoolAccumulatorRewardsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolAccumulatorRewardsRequest { - return new PoolAccumulatorRewardsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolAccumulatorRewardsRequest { - return new PoolAccumulatorRewardsRequest().fromJsonString(jsonString, options); - } - - static equals(a: PoolAccumulatorRewardsRequest | PlainMessage | undefined, b: PoolAccumulatorRewardsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolAccumulatorRewardsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsResponse - */ -export class PoolAccumulatorRewardsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin spread_reward_growth_global = 1; - */ - spreadRewardGrowthGlobal: DecCoin[] = []; - - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.UptimeTracker uptime_growth_global = 2; - */ - uptimeGrowthGlobal: UptimeTracker[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.PoolAccumulatorRewardsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spread_reward_growth_global", kind: "message", T: DecCoin, repeated: true }, - { no: 2, name: "uptime_growth_global", kind: "message", T: UptimeTracker, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolAccumulatorRewardsResponse { - return new PoolAccumulatorRewardsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolAccumulatorRewardsResponse { - return new PoolAccumulatorRewardsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolAccumulatorRewardsResponse { - return new PoolAccumulatorRewardsResponse().fromJsonString(jsonString, options); - } - - static equals(a: PoolAccumulatorRewardsResponse | PlainMessage | undefined, b: PoolAccumulatorRewardsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolAccumulatorRewardsResponse, a, b); - } -} - -/** - * ===================== QueryTickAccumulatorTrackers - * - * @generated from message osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersRequest - */ -export class TickAccumulatorTrackersRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: int64 tick_index = 2; - */ - tickIndex = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "tick_index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TickAccumulatorTrackersRequest { - return new TickAccumulatorTrackersRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TickAccumulatorTrackersRequest { - return new TickAccumulatorTrackersRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TickAccumulatorTrackersRequest { - return new TickAccumulatorTrackersRequest().fromJsonString(jsonString, options); - } - - static equals(a: TickAccumulatorTrackersRequest | PlainMessage | undefined, b: TickAccumulatorTrackersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TickAccumulatorTrackersRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersResponse - */ -export class TickAccumulatorTrackersResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin spread_reward_growth_opposite_direction_of_last_traversal = 1; - */ - spreadRewardGrowthOppositeDirectionOfLastTraversal: DecCoin[] = []; - - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.UptimeTracker uptime_trackers = 2; - */ - uptimeTrackers: UptimeTracker[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.TickAccumulatorTrackersResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spread_reward_growth_opposite_direction_of_last_traversal", kind: "message", T: DecCoin, repeated: true }, - { no: 2, name: "uptime_trackers", kind: "message", T: UptimeTracker, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TickAccumulatorTrackersResponse { - return new TickAccumulatorTrackersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TickAccumulatorTrackersResponse { - return new TickAccumulatorTrackersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TickAccumulatorTrackersResponse { - return new TickAccumulatorTrackersResponse().fromJsonString(jsonString, options); - } - - static equals(a: TickAccumulatorTrackersResponse | PlainMessage | undefined, b: TickAccumulatorTrackersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TickAccumulatorTrackersResponse, a, b); - } -} - -/** - * ===================== QueryIncentiveRecords - * - * @generated from message osmosis.concentratedliquidity.v1beta1.IncentiveRecordsRequest - */ -export class IncentiveRecordsRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.IncentiveRecordsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IncentiveRecordsRequest { - return new IncentiveRecordsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IncentiveRecordsRequest { - return new IncentiveRecordsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IncentiveRecordsRequest { - return new IncentiveRecordsRequest().fromJsonString(jsonString, options); - } - - static equals(a: IncentiveRecordsRequest | PlainMessage | undefined, b: IncentiveRecordsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(IncentiveRecordsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.IncentiveRecordsResponse - */ -export class IncentiveRecordsResponse extends Message { - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.IncentiveRecord incentive_records = 1; - */ - incentiveRecords: IncentiveRecord[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.IncentiveRecordsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "incentive_records", kind: "message", T: IncentiveRecord, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IncentiveRecordsResponse { - return new IncentiveRecordsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IncentiveRecordsResponse { - return new IncentiveRecordsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IncentiveRecordsResponse { - return new IncentiveRecordsResponse().fromJsonString(jsonString, options); - } - - static equals(a: IncentiveRecordsResponse | PlainMessage | undefined, b: IncentiveRecordsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(IncentiveRecordsResponse, a, b); - } -} - -/** - * =============================== CFMMPoolIdLinkFromConcentratedPoolId - * - * @generated from message osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdRequest - */ -export class CFMMPoolIdLinkFromConcentratedPoolIdRequest extends Message { - /** - * @generated from field: uint64 concentrated_pool_id = 1; - */ - concentratedPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "concentrated_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CFMMPoolIdLinkFromConcentratedPoolIdRequest { - return new CFMMPoolIdLinkFromConcentratedPoolIdRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CFMMPoolIdLinkFromConcentratedPoolIdRequest { - return new CFMMPoolIdLinkFromConcentratedPoolIdRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CFMMPoolIdLinkFromConcentratedPoolIdRequest { - return new CFMMPoolIdLinkFromConcentratedPoolIdRequest().fromJsonString(jsonString, options); - } - - static equals(a: CFMMPoolIdLinkFromConcentratedPoolIdRequest | PlainMessage | undefined, b: CFMMPoolIdLinkFromConcentratedPoolIdRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CFMMPoolIdLinkFromConcentratedPoolIdRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdResponse - */ -export class CFMMPoolIdLinkFromConcentratedPoolIdResponse extends Message { - /** - * @generated from field: uint64 cfmm_pool_id = 1; - */ - cfmmPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.CFMMPoolIdLinkFromConcentratedPoolIdResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cfmm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CFMMPoolIdLinkFromConcentratedPoolIdResponse { - return new CFMMPoolIdLinkFromConcentratedPoolIdResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CFMMPoolIdLinkFromConcentratedPoolIdResponse { - return new CFMMPoolIdLinkFromConcentratedPoolIdResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CFMMPoolIdLinkFromConcentratedPoolIdResponse { - return new CFMMPoolIdLinkFromConcentratedPoolIdResponse().fromJsonString(jsonString, options); - } - - static equals(a: CFMMPoolIdLinkFromConcentratedPoolIdResponse | PlainMessage | undefined, b: CFMMPoolIdLinkFromConcentratedPoolIdResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CFMMPoolIdLinkFromConcentratedPoolIdResponse, a, b); - } -} - -/** - * =============================== UserUnbondingPositions - * - * @generated from message osmosis.concentratedliquidity.v1beta1.UserUnbondingPositionsRequest - */ -export class UserUnbondingPositionsRequest extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.UserUnbondingPositionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserUnbondingPositionsRequest { - return new UserUnbondingPositionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserUnbondingPositionsRequest { - return new UserUnbondingPositionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserUnbondingPositionsRequest { - return new UserUnbondingPositionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: UserUnbondingPositionsRequest | PlainMessage | undefined, b: UserUnbondingPositionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UserUnbondingPositionsRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.UserUnbondingPositionsResponse - */ -export class UserUnbondingPositionsResponse extends Message { - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.PositionWithPeriodLock positions_with_period_lock = 1; - */ - positionsWithPeriodLock: PositionWithPeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.UserUnbondingPositionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "positions_with_period_lock", kind: "message", T: PositionWithPeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserUnbondingPositionsResponse { - return new UserUnbondingPositionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserUnbondingPositionsResponse { - return new UserUnbondingPositionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserUnbondingPositionsResponse { - return new UserUnbondingPositionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: UserUnbondingPositionsResponse | PlainMessage | undefined, b: UserUnbondingPositionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UserUnbondingPositionsResponse, a, b); - } -} - -/** - * =============================== GetTotalLiquidity - * - * @generated from message osmosis.concentratedliquidity.v1beta1.GetTotalLiquidityRequest - */ -export class GetTotalLiquidityRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.GetTotalLiquidityRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalLiquidityRequest { - return new GetTotalLiquidityRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalLiquidityRequest { - return new GetTotalLiquidityRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTotalLiquidityRequest { - return new GetTotalLiquidityRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTotalLiquidityRequest | PlainMessage | undefined, b: GetTotalLiquidityRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTotalLiquidityRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.GetTotalLiquidityResponse - */ -export class GetTotalLiquidityResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin total_liquidity = 1; - */ - totalLiquidity: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.GetTotalLiquidityResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_liquidity", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalLiquidityResponse { - return new GetTotalLiquidityResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalLiquidityResponse { - return new GetTotalLiquidityResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTotalLiquidityResponse { - return new GetTotalLiquidityResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTotalLiquidityResponse | PlainMessage | undefined, b: GetTotalLiquidityResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTotalLiquidityResponse, a, b); - } -} - -/** - * =============================== NumNextInitializedTicks - * - * @generated from message osmosis.concentratedliquidity.v1beta1.NumNextInitializedTicksRequest - */ -export class NumNextInitializedTicksRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in_denom = 2; - */ - tokenInDenom = ""; - - /** - * @generated from field: uint64 num_next_initialized_ticks = 3; - */ - numNextInitializedTicks = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.NumNextInitializedTicksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "num_next_initialized_ticks", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NumNextInitializedTicksRequest { - return new NumNextInitializedTicksRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NumNextInitializedTicksRequest { - return new NumNextInitializedTicksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NumNextInitializedTicksRequest { - return new NumNextInitializedTicksRequest().fromJsonString(jsonString, options); - } - - static equals(a: NumNextInitializedTicksRequest | PlainMessage | undefined, b: NumNextInitializedTicksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NumNextInitializedTicksRequest, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.NumNextInitializedTicksResponse - */ -export class NumNextInitializedTicksResponse extends Message { - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.TickLiquidityNet liquidity_depths = 1; - */ - liquidityDepths: TickLiquidityNet[] = []; - - /** - * @generated from field: int64 current_tick = 2; - */ - currentTick = protoInt64.zero; - - /** - * @generated from field: string current_liquidity = 3; - */ - currentLiquidity = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.NumNextInitializedTicksResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity_depths", kind: "message", T: TickLiquidityNet, repeated: true }, - { no: 2, name: "current_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "current_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NumNextInitializedTicksResponse { - return new NumNextInitializedTicksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NumNextInitializedTicksResponse { - return new NumNextInitializedTicksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NumNextInitializedTicksResponse { - return new NumNextInitializedTicksResponse().fromJsonString(jsonString, options); - } - - static equals(a: NumNextInitializedTicksResponse | PlainMessage | undefined, b: NumNextInitializedTicksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NumNextInitializedTicksResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts deleted file mode 100644 index 4395280..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tick_info_pb.ts +++ /dev/null @@ -1,164 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/tick_info.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -// this is a legacy package that requires additional migration logic -// in order to use the correct package. Decision made to use legacy package path -// until clear steps for migration logic and the unknowns for state breaking are -// investigated for changing proto package. - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { DecCoin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.TickInfo - */ -export class TickInfo extends Message { - /** - * @generated from field: string liquidity_gross = 1; - */ - liquidityGross = ""; - - /** - * @generated from field: string liquidity_net = 2; - */ - liquidityNet = ""; - - /** - * Total spread rewards accumulated in the opposite direction that the tick - * was last crossed. i.e. if the current tick is to the right of this tick - * (meaning its currently a greater price), then this is the total spread - * rewards accumulated below the tick. If the current tick is to the left of - * this tick (meaning its currently at a lower price), then this is the total - * spread rewards accumulated above the tick. - * - * Note: the way this value is used depends on the direction of spread rewards - * we are calculating for. If we are calculating spread rewards below the - * lower tick and the lower tick is the active tick, then this is the - * spreadRewardGrowthGlobal - the lower tick's - * spreadRewardGrowthOppositeDirectionOfLastTraversal. If we are calculating - * spread rewards above the upper tick and the upper tick is the active tick, - * then this is just the tick's - * spreadRewardGrowthOppositeDirectionOfLastTraversal value. - * - * @generated from field: repeated cosmos.base.v1beta1.DecCoin spread_reward_growth_opposite_direction_of_last_traversal = 3; - */ - spreadRewardGrowthOppositeDirectionOfLastTraversal: DecCoin[] = []; - - /** - * uptime_trackers is a container encapsulating the uptime trackers. - * We use a container instead of a "repeated UptimeTracker" directly - * because we need the ability to serialize and deserialize the - * container easily for events when crossing a tick. - * - * @generated from field: osmosis.concentratedliquidity.v1beta1.UptimeTrackers uptime_trackers = 4; - */ - uptimeTrackers?: UptimeTrackers; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.TickInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity_gross", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "liquidity_net", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "spread_reward_growth_opposite_direction_of_last_traversal", kind: "message", T: DecCoin, repeated: true }, - { no: 4, name: "uptime_trackers", kind: "message", T: UptimeTrackers }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TickInfo { - return new TickInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TickInfo { - return new TickInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TickInfo { - return new TickInfo().fromJsonString(jsonString, options); - } - - static equals(a: TickInfo | PlainMessage | undefined, b: TickInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(TickInfo, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.UptimeTrackers - */ -export class UptimeTrackers extends Message { - /** - * @generated from field: repeated osmosis.concentratedliquidity.v1beta1.UptimeTracker list = 1; - */ - list: UptimeTracker[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.UptimeTrackers"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list", kind: "message", T: UptimeTracker, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UptimeTrackers { - return new UptimeTrackers().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UptimeTrackers { - return new UptimeTrackers().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UptimeTrackers { - return new UptimeTrackers().fromJsonString(jsonString, options); - } - - static equals(a: UptimeTrackers | PlainMessage | undefined, b: UptimeTrackers | PlainMessage | undefined): boolean { - return proto3.util.equals(UptimeTrackers, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.UptimeTracker - */ -export class UptimeTracker extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.DecCoin uptime_growth_outside = 1; - */ - uptimeGrowthOutside: DecCoin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.UptimeTracker"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uptime_growth_outside", kind: "message", T: DecCoin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UptimeTracker { - return new UptimeTracker().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UptimeTracker { - return new UptimeTracker().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UptimeTracker { - return new UptimeTracker().fromJsonString(jsonString, options); - } - - static equals(a: UptimeTracker | PlainMessage | undefined, b: UptimeTracker | PlainMessage | undefined): boolean { - return proto3.util.equals(UptimeTracker, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_cosmes.ts deleted file mode 100644 index 543ce39..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,78 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/tx.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAddToPosition, MsgAddToPositionResponse, MsgCollectIncentives, MsgCollectIncentivesResponse, MsgCollectSpreadRewards, MsgCollectSpreadRewardsResponse, MsgCreatePosition, MsgCreatePositionResponse, MsgTransferPositions, MsgTransferPositionsResponse, MsgWithdrawPosition, MsgWithdrawPositionResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.concentratedliquidity.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Msg.CreatePosition - */ -export const MsgCreatePositionService = { - typeName: TYPE_NAME, - method: "CreatePosition", - Request: MsgCreatePosition, - Response: MsgCreatePositionResponse, -} as const; - -/** - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Msg.WithdrawPosition - */ -export const MsgWithdrawPositionService = { - typeName: TYPE_NAME, - method: "WithdrawPosition", - Request: MsgWithdrawPosition, - Response: MsgWithdrawPositionResponse, -} as const; - -/** - * AddToPosition attempts to add amount0 and amount1 to a position - * with the given position id. - * To maintain backwards-compatibility with future implementations of - * charging, this function deletes the old position and creates a new one with - * the resulting amount after addition. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Msg.AddToPosition - */ -export const MsgAddToPositionService = { - typeName: TYPE_NAME, - method: "AddToPosition", - Request: MsgAddToPosition, - Response: MsgAddToPositionResponse, -} as const; - -/** - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Msg.CollectSpreadRewards - */ -export const MsgCollectSpreadRewardsService = { - typeName: TYPE_NAME, - method: "CollectSpreadRewards", - Request: MsgCollectSpreadRewards, - Response: MsgCollectSpreadRewardsResponse, -} as const; - -/** - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Msg.CollectIncentives - */ -export const MsgCollectIncentivesService = { - typeName: TYPE_NAME, - method: "CollectIncentives", - Request: MsgCollectIncentives, - Response: MsgCollectIncentivesResponse, -} as const; - -/** - * TransferPositions transfers ownership of a set of one or more positions - * from a sender to a recipient. - * - * @generated from rpc osmosis.concentratedliquidity.v1beta1.Msg.TransferPositions - */ -export const MsgTransferPositionsService = { - typeName: TYPE_NAME, - method: "TransferPositions", - Request: MsgTransferPositions, - Response: MsgTransferPositionsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_pb.ts deleted file mode 100644 index 0efcf91..0000000 --- a/libs/es-client/src/protobufs/osmosis/concentratedliquidity/v1beta1/tx_pb.ts +++ /dev/null @@ -1,721 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/concentratedliquidity/v1beta1/tx.proto (package osmosis.concentratedliquidity.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * ===================== MsgCreatePosition - * - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgCreatePosition - */ -export class MsgCreatePosition extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * @generated from field: int64 lower_tick = 3; - */ - lowerTick = protoInt64.zero; - - /** - * @generated from field: int64 upper_tick = 4; - */ - upperTick = protoInt64.zero; - - /** - * tokens_provided is the amount of tokens provided for the position. - * It must at a minimum be of length 1 (for a single sided position) - * and at a maximum be of length 2 (for a position that straddles the current - * tick). - * - * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_provided = 5; - */ - tokensProvided: Coin[] = []; - - /** - * @generated from field: string token_min_amount0 = 6; - */ - tokenMinAmount0 = ""; - - /** - * @generated from field: string token_min_amount1 = 7; - */ - tokenMinAmount1 = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgCreatePosition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "lower_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "upper_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "tokens_provided", kind: "message", T: Coin, repeated: true }, - { no: 6, name: "token_min_amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "token_min_amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePosition { - return new MsgCreatePosition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePosition { - return new MsgCreatePosition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreatePosition { - return new MsgCreatePosition().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreatePosition | PlainMessage | undefined, b: MsgCreatePosition | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreatePosition, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgCreatePositionResponse - */ -export class MsgCreatePositionResponse extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: string amount0 = 2; - */ - amount0 = ""; - - /** - * @generated from field: string amount1 = 3; - */ - amount1 = ""; - - /** - * @generated from field: string liquidity_created = 5; - */ - liquidityCreated = ""; - - /** - * the lower and upper tick are in the response because there are - * instances in which multiple ticks represent the same price, so - * we may move their provided tick to the canonical tick that represents - * the same price. - * - * @generated from field: int64 lower_tick = 6; - */ - lowerTick = protoInt64.zero; - - /** - * @generated from field: int64 upper_tick = 7; - */ - upperTick = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgCreatePositionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "liquidity_created", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "lower_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 7, name: "upper_tick", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreatePositionResponse { - return new MsgCreatePositionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreatePositionResponse { - return new MsgCreatePositionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreatePositionResponse { - return new MsgCreatePositionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreatePositionResponse | PlainMessage | undefined, b: MsgCreatePositionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreatePositionResponse, a, b); - } -} - -/** - * ===================== MsgAddToPosition - * - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgAddToPosition - */ -export class MsgAddToPosition extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * amount0 represents the amount of token0 willing to put in. - * - * @generated from field: string amount0 = 3; - */ - amount0 = ""; - - /** - * amount1 represents the amount of token1 willing to put in. - * - * @generated from field: string amount1 = 4; - */ - amount1 = ""; - - /** - * token_min_amount0 represents the minimum amount of token0 desired from the - * new position being created. Note that this field indicates the min amount0 - * corresponding to the liquidity that is being added, not the total - * liquidity of the position. - * - * @generated from field: string token_min_amount0 = 5; - */ - tokenMinAmount0 = ""; - - /** - * token_min_amount1 represents the minimum amount of token1 desired from the - * new position being created. Note that this field indicates the min amount1 - * corresponding to the liquidity that is being added, not the total - * liquidity of the position. - * - * @generated from field: string token_min_amount1 = 6; - */ - tokenMinAmount1 = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgAddToPosition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "token_min_amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "token_min_amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToPosition { - return new MsgAddToPosition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToPosition { - return new MsgAddToPosition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToPosition { - return new MsgAddToPosition().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToPosition | PlainMessage | undefined, b: MsgAddToPosition | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToPosition, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgAddToPositionResponse - */ -export class MsgAddToPositionResponse extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: string amount0 = 2; - */ - amount0 = ""; - - /** - * @generated from field: string amount1 = 3; - */ - amount1 = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgAddToPositionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToPositionResponse { - return new MsgAddToPositionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToPositionResponse { - return new MsgAddToPositionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToPositionResponse { - return new MsgAddToPositionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToPositionResponse | PlainMessage | undefined, b: MsgAddToPositionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToPositionResponse, a, b); - } -} - -/** - * ===================== MsgWithdrawPosition - * - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgWithdrawPosition - */ -export class MsgWithdrawPosition extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * @generated from field: string liquidity_amount = 3; - */ - liquidityAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgWithdrawPosition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "liquidity_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawPosition { - return new MsgWithdrawPosition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawPosition { - return new MsgWithdrawPosition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawPosition { - return new MsgWithdrawPosition().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawPosition | PlainMessage | undefined, b: MsgWithdrawPosition | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawPosition, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgWithdrawPositionResponse - */ -export class MsgWithdrawPositionResponse extends Message { - /** - * @generated from field: string amount0 = 1; - */ - amount0 = ""; - - /** - * @generated from field: string amount1 = 2; - */ - amount1 = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgWithdrawPositionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawPositionResponse { - return new MsgWithdrawPositionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawPositionResponse { - return new MsgWithdrawPositionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawPositionResponse { - return new MsgWithdrawPositionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawPositionResponse | PlainMessage | undefined, b: MsgWithdrawPositionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawPositionResponse, a, b); - } -} - -/** - * ===================== MsgCollectSpreadRewards - * - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgCollectSpreadRewards - */ -export class MsgCollectSpreadRewards extends Message { - /** - * @generated from field: repeated uint64 position_ids = 1; - */ - positionIds: bigint[] = []; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgCollectSpreadRewards"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCollectSpreadRewards { - return new MsgCollectSpreadRewards().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCollectSpreadRewards { - return new MsgCollectSpreadRewards().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCollectSpreadRewards { - return new MsgCollectSpreadRewards().fromJsonString(jsonString, options); - } - - static equals(a: MsgCollectSpreadRewards | PlainMessage | undefined, b: MsgCollectSpreadRewards | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCollectSpreadRewards, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgCollectSpreadRewardsResponse - */ -export class MsgCollectSpreadRewardsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin collected_spread_rewards = 1; - */ - collectedSpreadRewards: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgCollectSpreadRewardsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "collected_spread_rewards", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCollectSpreadRewardsResponse { - return new MsgCollectSpreadRewardsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCollectSpreadRewardsResponse { - return new MsgCollectSpreadRewardsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCollectSpreadRewardsResponse { - return new MsgCollectSpreadRewardsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCollectSpreadRewardsResponse | PlainMessage | undefined, b: MsgCollectSpreadRewardsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCollectSpreadRewardsResponse, a, b); - } -} - -/** - * ===================== MsgCollectIncentives - * - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgCollectIncentives - */ -export class MsgCollectIncentives extends Message { - /** - * @generated from field: repeated uint64 position_ids = 1; - */ - positionIds: bigint[] = []; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgCollectIncentives"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCollectIncentives { - return new MsgCollectIncentives().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCollectIncentives { - return new MsgCollectIncentives().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCollectIncentives { - return new MsgCollectIncentives().fromJsonString(jsonString, options); - } - - static equals(a: MsgCollectIncentives | PlainMessage | undefined, b: MsgCollectIncentives | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCollectIncentives, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgCollectIncentivesResponse - */ -export class MsgCollectIncentivesResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin collected_incentives = 1; - */ - collectedIncentives: Coin[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin forfeited_incentives = 2; - */ - forfeitedIncentives: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgCollectIncentivesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "collected_incentives", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "forfeited_incentives", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCollectIncentivesResponse { - return new MsgCollectIncentivesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCollectIncentivesResponse { - return new MsgCollectIncentivesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCollectIncentivesResponse { - return new MsgCollectIncentivesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCollectIncentivesResponse | PlainMessage | undefined, b: MsgCollectIncentivesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCollectIncentivesResponse, a, b); - } -} - -/** - * ===================== MsgFungifyChargedPositions - * - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgFungifyChargedPositions - */ -export class MsgFungifyChargedPositions extends Message { - /** - * @generated from field: repeated uint64 position_ids = 1; - */ - positionIds: bigint[] = []; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgFungifyChargedPositions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgFungifyChargedPositions { - return new MsgFungifyChargedPositions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgFungifyChargedPositions { - return new MsgFungifyChargedPositions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgFungifyChargedPositions { - return new MsgFungifyChargedPositions().fromJsonString(jsonString, options); - } - - static equals(a: MsgFungifyChargedPositions | PlainMessage | undefined, b: MsgFungifyChargedPositions | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgFungifyChargedPositions, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgFungifyChargedPositionsResponse - */ -export class MsgFungifyChargedPositionsResponse extends Message { - /** - * @generated from field: uint64 new_position_id = 1; - */ - newPositionId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgFungifyChargedPositionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "new_position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgFungifyChargedPositionsResponse { - return new MsgFungifyChargedPositionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgFungifyChargedPositionsResponse { - return new MsgFungifyChargedPositionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgFungifyChargedPositionsResponse { - return new MsgFungifyChargedPositionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgFungifyChargedPositionsResponse | PlainMessage | undefined, b: MsgFungifyChargedPositionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgFungifyChargedPositionsResponse, a, b); - } -} - -/** - * ===================== MsgTransferPositions - * - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgTransferPositions - */ -export class MsgTransferPositions extends Message { - /** - * @generated from field: repeated uint64 position_ids = 1; - */ - positionIds: bigint[] = []; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * @generated from field: string new_owner = 3; - */ - newOwner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgTransferPositions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "new_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferPositions { - return new MsgTransferPositions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferPositions { - return new MsgTransferPositions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTransferPositions { - return new MsgTransferPositions().fromJsonString(jsonString, options); - } - - static equals(a: MsgTransferPositions | PlainMessage | undefined, b: MsgTransferPositions | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTransferPositions, a, b); - } -} - -/** - * @generated from message osmosis.concentratedliquidity.v1beta1.MsgTransferPositionsResponse - */ -export class MsgTransferPositionsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.concentratedliquidity.v1beta1.MsgTransferPositionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgTransferPositionsResponse { - return new MsgTransferPositionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgTransferPositionsResponse { - return new MsgTransferPositionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgTransferPositionsResponse { - return new MsgTransferPositionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgTransferPositionsResponse | PlainMessage | undefined, b: MsgTransferPositionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgTransferPositionsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/genesis_pb.ts deleted file mode 100644 index 516a016..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,56 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/genesis.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the cosmwasmpool module's genesis state. - * - * @generated from message osmosis.cosmwasmpool.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params is the container of cosmwasmpool parameters. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * @generated from field: repeated google.protobuf.Any pools = 2; - */ - pools: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "pools", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/gov_pb.ts deleted file mode 100644 index 45aa8d4..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/gov_pb.ts +++ /dev/null @@ -1,171 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/gov.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * UploadCosmWasmPoolCodeAndWhiteListProposal is a gov Content type for - * uploading coswasm pool code and adding it to internal whitelist. Only the - * code ids created by this message are eligible for being x/cosmwasmpool pools. - * - * @generated from message osmosis.cosmwasmpool.v1beta1.UploadCosmWasmPoolCodeAndWhiteListProposal - */ -export class UploadCosmWasmPoolCodeAndWhiteListProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * WASMByteCode can be raw or gzip compressed - * - * @generated from field: bytes wasm_byte_code = 3; - */ - wasmByteCode = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.UploadCosmWasmPoolCodeAndWhiteListProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UploadCosmWasmPoolCodeAndWhiteListProposal { - return new UploadCosmWasmPoolCodeAndWhiteListProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UploadCosmWasmPoolCodeAndWhiteListProposal { - return new UploadCosmWasmPoolCodeAndWhiteListProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UploadCosmWasmPoolCodeAndWhiteListProposal { - return new UploadCosmWasmPoolCodeAndWhiteListProposal().fromJsonString(jsonString, options); - } - - static equals(a: UploadCosmWasmPoolCodeAndWhiteListProposal | PlainMessage | undefined, b: UploadCosmWasmPoolCodeAndWhiteListProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UploadCosmWasmPoolCodeAndWhiteListProposal, a, b); - } -} - -/** - * MigratePoolContractsProposal is a gov Content type for - * migrating given pools to the new contract code and adding to internal - * whitelist if needed. It has two options to perform the migration: - * - * 1. If the codeID is non-zero, it will migrate the pool contracts to a given - * codeID assuming that it has already been uploaded. uploadByteCode must be - * empty in such a case. Fails if codeID does not exist. Fails if uploadByteCode - * is not empty. - * - * 2. If the codeID is zero, it will upload the given uploadByteCode and use the - * new resulting code id to migrate the pool to. Errors if uploadByteCode is - * empty or invalid. - * - * In both cases, if one of the pools specified by the given poolID does not - * exist, the proposal fails. - * - * The reason for having poolIDs be a slice of ids is to account for the - * potential need for emergency migration of all old code ids associated with - * particular pools to new code ids, or simply having the flexibility of - * migrating multiple older pool contracts to a new one at once when there is a - * release. - * - * poolD count to be submitted at once is gated by a governance paramets (20 at - * launch). The proposal fails if more. Note that 20 was chosen arbitrarily to - * have a constant bound on the number of pools migrated at once. This size will - * be configured by a module parameter so it can be changed by a constant. - * - * @generated from message osmosis.cosmwasmpool.v1beta1.MigratePoolContractsProposal - */ -export class MigratePoolContractsProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * pool_ids are the pool ids of the contracts to be migrated - * either to the new_code_id that is already uploaded to chain or to - * the given wasm_byte_code. - * - * @generated from field: repeated uint64 pool_ids = 3; - */ - poolIds: bigint[] = []; - - /** - * new_code_id is the code id of the contract code to migrate to. - * Assumes that the code is already uploaded to chain. Only one of - * new_code_id and wasm_byte_code should be set. - * - * @generated from field: uint64 new_code_id = 4; - */ - newCodeId = protoInt64.zero; - - /** - * WASMByteCode can be raw or gzip compressed. Assumes that the code id - * has not been uploaded yet so uploads the given code and migrates to it. - * Only one of new_code_id and wasm_byte_code should be set. - * - * @generated from field: bytes wasm_byte_code = 5; - */ - wasmByteCode = new Uint8Array(0); - - /** - * MigrateMsg migrate message to be used for migrating the pool contracts. - * - * @generated from field: bytes migrate_msg = 6; - */ - migrateMsg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.MigratePoolContractsProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 4, name: "new_code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "migrate_msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MigratePoolContractsProposal { - return new MigratePoolContractsProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MigratePoolContractsProposal { - return new MigratePoolContractsProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MigratePoolContractsProposal { - return new MigratePoolContractsProposal().fromJsonString(jsonString, options); - } - - static equals(a: MigratePoolContractsProposal | PlainMessage | undefined, b: MigratePoolContractsProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(MigratePoolContractsProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.ts deleted file mode 100644 index 221a918..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/instantiate_msg_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/instantiate_msg.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ===================== InstantiateMsg - * - * @generated from message osmosis.cosmwasmpool.v1beta1.InstantiateMsg - */ -export class InstantiateMsg extends Message { - /** - * pool_asset_denoms is the list of asset denoms that are initialized - * at pool creation time. - * - * @generated from field: repeated string pool_asset_denoms = 1; - */ - poolAssetDenoms: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.InstantiateMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_asset_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InstantiateMsg { - return new InstantiateMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InstantiateMsg { - return new InstantiateMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InstantiateMsg { - return new InstantiateMsg().fromJsonString(jsonString, options); - } - - static equals(a: InstantiateMsg | PlainMessage | undefined, b: InstantiateMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(InstantiateMsg, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_query_msg_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_query_msg_pb.ts deleted file mode 100644 index 89b7462..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_query_msg_pb.ts +++ /dev/null @@ -1,281 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/module_query_msg.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * ===================== CalcOutAmtGivenIn - * - * @generated from message osmosis.cosmwasmpool.v1beta1.CalcOutAmtGivenIn - */ -export class CalcOutAmtGivenIn extends Message { - /** - * token_in is the token to be sent to the pool. - * - * @generated from field: cosmos.base.v1beta1.Coin token_in = 1; - */ - tokenIn?: Coin; - - /** - * token_out_denom is the token denom to be received from the pool. - * - * @generated from field: string token_out_denom = 2; - */ - tokenOutDenom = ""; - - /** - * swap_fee is the swap fee for this swap estimate. - * - * @generated from field: string swap_fee = 3; - */ - swapFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.CalcOutAmtGivenIn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in", kind: "message", T: Coin }, - { no: 2, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CalcOutAmtGivenIn { - return new CalcOutAmtGivenIn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalcOutAmtGivenIn { - return new CalcOutAmtGivenIn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalcOutAmtGivenIn { - return new CalcOutAmtGivenIn().fromJsonString(jsonString, options); - } - - static equals(a: CalcOutAmtGivenIn | PlainMessage | undefined, b: CalcOutAmtGivenIn | PlainMessage | undefined): boolean { - return proto3.util.equals(CalcOutAmtGivenIn, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.CalcOutAmtGivenInRequest - */ -export class CalcOutAmtGivenInRequest extends Message { - /** - * calc_out_amt_given_in is the structure containing all the request - * information for this query. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.CalcOutAmtGivenIn calc_out_amt_given_in = 1; - */ - calcOutAmtGivenIn?: CalcOutAmtGivenIn; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.CalcOutAmtGivenInRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "calc_out_amt_given_in", kind: "message", T: CalcOutAmtGivenIn }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CalcOutAmtGivenInRequest { - return new CalcOutAmtGivenInRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalcOutAmtGivenInRequest { - return new CalcOutAmtGivenInRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalcOutAmtGivenInRequest { - return new CalcOutAmtGivenInRequest().fromJsonString(jsonString, options); - } - - static equals(a: CalcOutAmtGivenInRequest | PlainMessage | undefined, b: CalcOutAmtGivenInRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CalcOutAmtGivenInRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.CalcOutAmtGivenInResponse - */ -export class CalcOutAmtGivenInResponse extends Message { - /** - * token_out is the token out computed from this swap estimate call. - * - * @generated from field: cosmos.base.v1beta1.Coin token_out = 1; - */ - tokenOut?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.CalcOutAmtGivenInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CalcOutAmtGivenInResponse { - return new CalcOutAmtGivenInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalcOutAmtGivenInResponse { - return new CalcOutAmtGivenInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalcOutAmtGivenInResponse { - return new CalcOutAmtGivenInResponse().fromJsonString(jsonString, options); - } - - static equals(a: CalcOutAmtGivenInResponse | PlainMessage | undefined, b: CalcOutAmtGivenInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CalcOutAmtGivenInResponse, a, b); - } -} - -/** - * ===================== CalcInAmtGivenOut - * - * @generated from message osmosis.cosmwasmpool.v1beta1.CalcInAmtGivenOut - */ -export class CalcInAmtGivenOut extends Message { - /** - * token_out is the token out to be receoved from the pool. - * - * @generated from field: cosmos.base.v1beta1.Coin token_out = 1; - */ - tokenOut?: Coin; - - /** - * token_in_denom is the token denom to be sentt to the pool. - * - * @generated from field: string token_in_denom = 2; - */ - tokenInDenom = ""; - - /** - * swap_fee is the swap fee for this swap estimate. - * - * @generated from field: string swap_fee = 3; - */ - swapFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.CalcInAmtGivenOut"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out", kind: "message", T: Coin }, - { no: 2, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CalcInAmtGivenOut { - return new CalcInAmtGivenOut().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalcInAmtGivenOut { - return new CalcInAmtGivenOut().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalcInAmtGivenOut { - return new CalcInAmtGivenOut().fromJsonString(jsonString, options); - } - - static equals(a: CalcInAmtGivenOut | PlainMessage | undefined, b: CalcInAmtGivenOut | PlainMessage | undefined): boolean { - return proto3.util.equals(CalcInAmtGivenOut, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.CalcInAmtGivenOutRequest - */ -export class CalcInAmtGivenOutRequest extends Message { - /** - * calc_in_amt_given_out is the structure containing all the request - * information for this query. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.CalcInAmtGivenOut calc_in_amt_given_out = 1; - */ - calcInAmtGivenOut?: CalcInAmtGivenOut; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.CalcInAmtGivenOutRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "calc_in_amt_given_out", kind: "message", T: CalcInAmtGivenOut }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CalcInAmtGivenOutRequest { - return new CalcInAmtGivenOutRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalcInAmtGivenOutRequest { - return new CalcInAmtGivenOutRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalcInAmtGivenOutRequest { - return new CalcInAmtGivenOutRequest().fromJsonString(jsonString, options); - } - - static equals(a: CalcInAmtGivenOutRequest | PlainMessage | undefined, b: CalcInAmtGivenOutRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CalcInAmtGivenOutRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.CalcInAmtGivenOutResponse - */ -export class CalcInAmtGivenOutResponse extends Message { - /** - * token_in is the token in computed from this swap estimate call. - * - * @generated from field: cosmos.base.v1beta1.Coin token_in = 1; - */ - tokenIn?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.CalcInAmtGivenOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CalcInAmtGivenOutResponse { - return new CalcInAmtGivenOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CalcInAmtGivenOutResponse { - return new CalcInAmtGivenOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CalcInAmtGivenOutResponse { - return new CalcInAmtGivenOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: CalcInAmtGivenOutResponse | PlainMessage | undefined, b: CalcInAmtGivenOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CalcInAmtGivenOutResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_sudo_msg_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_sudo_msg_pb.ts deleted file mode 100644 index 9423ed2..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/module_sudo_msg_pb.ts +++ /dev/null @@ -1,311 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/module_sudo_msg.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * ===================== SwapExactAmountIn - * - * @generated from message osmosis.cosmwasmpool.v1beta1.SwapExactAmountIn - */ -export class SwapExactAmountIn extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * token_in is the token to be sent to the pool. - * - * @generated from field: cosmos.base.v1beta1.Coin token_in = 2; - */ - tokenIn?: Coin; - - /** - * token_out_denom is the token denom to be received from the pool. - * - * @generated from field: string token_out_denom = 3; - */ - tokenOutDenom = ""; - - /** - * token_out_min_amount is the minimum amount of token_out to be received from - * the pool. - * - * @generated from field: string token_out_min_amount = 4; - */ - tokenOutMinAmount = ""; - - /** - * swap_fee is the swap fee for this swap estimate. - * - * @generated from field: string swap_fee = 5; - */ - swapFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SwapExactAmountIn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "token_in", kind: "message", T: Coin }, - { no: 3, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapExactAmountIn { - return new SwapExactAmountIn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapExactAmountIn { - return new SwapExactAmountIn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapExactAmountIn { - return new SwapExactAmountIn().fromJsonString(jsonString, options); - } - - static equals(a: SwapExactAmountIn | PlainMessage | undefined, b: SwapExactAmountIn | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapExactAmountIn, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.SwapExactAmountInSudoMsg - */ -export class SwapExactAmountInSudoMsg extends Message { - /** - * swap_exact_amount_in is the structure containing all the request - * information for this message. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.SwapExactAmountIn swap_exact_amount_in = 1; - */ - swapExactAmountIn?: SwapExactAmountIn; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SwapExactAmountInSudoMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "swap_exact_amount_in", kind: "message", T: SwapExactAmountIn }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapExactAmountInSudoMsg { - return new SwapExactAmountInSudoMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapExactAmountInSudoMsg { - return new SwapExactAmountInSudoMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapExactAmountInSudoMsg { - return new SwapExactAmountInSudoMsg().fromJsonString(jsonString, options); - } - - static equals(a: SwapExactAmountInSudoMsg | PlainMessage | undefined, b: SwapExactAmountInSudoMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapExactAmountInSudoMsg, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.SwapExactAmountInSudoMsgResponse - */ -export class SwapExactAmountInSudoMsgResponse extends Message { - /** - * token_out_amount is the token out computed from this swap estimate call. - * - * @generated from field: string token_out_amount = 1; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SwapExactAmountInSudoMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapExactAmountInSudoMsgResponse { - return new SwapExactAmountInSudoMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapExactAmountInSudoMsgResponse { - return new SwapExactAmountInSudoMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapExactAmountInSudoMsgResponse { - return new SwapExactAmountInSudoMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: SwapExactAmountInSudoMsgResponse | PlainMessage | undefined, b: SwapExactAmountInSudoMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapExactAmountInSudoMsgResponse, a, b); - } -} - -/** - * ===================== SwapExactAmountOut - * - * @generated from message osmosis.cosmwasmpool.v1beta1.SwapExactAmountOut - */ -export class SwapExactAmountOut extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * token_out is the token to be sent out of the pool. - * - * @generated from field: cosmos.base.v1beta1.Coin token_out = 2; - */ - tokenOut?: Coin; - - /** - * token_in_denom is the token denom to be sent too the pool. - * - * @generated from field: string token_in_denom = 3; - */ - tokenInDenom = ""; - - /** - * token_in_max_amount is the maximum amount of token_in to be sent to the - * pool. - * - * @generated from field: string token_in_max_amount = 4; - */ - tokenInMaxAmount = ""; - - /** - * swap_fee is the swap fee for this swap estimate. - * - * @generated from field: string swap_fee = 5; - */ - swapFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SwapExactAmountOut"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "token_out", kind: "message", T: Coin }, - { no: 3, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_in_max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapExactAmountOut { - return new SwapExactAmountOut().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapExactAmountOut { - return new SwapExactAmountOut().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapExactAmountOut { - return new SwapExactAmountOut().fromJsonString(jsonString, options); - } - - static equals(a: SwapExactAmountOut | PlainMessage | undefined, b: SwapExactAmountOut | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapExactAmountOut, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.SwapExactAmountOutSudoMsg - */ -export class SwapExactAmountOutSudoMsg extends Message { - /** - * swap_exact_amount_out is the structure containing all the request - * information for this message. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.SwapExactAmountOut swap_exact_amount_out = 1; - */ - swapExactAmountOut?: SwapExactAmountOut; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SwapExactAmountOutSudoMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "swap_exact_amount_out", kind: "message", T: SwapExactAmountOut }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapExactAmountOutSudoMsg { - return new SwapExactAmountOutSudoMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapExactAmountOutSudoMsg { - return new SwapExactAmountOutSudoMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapExactAmountOutSudoMsg { - return new SwapExactAmountOutSudoMsg().fromJsonString(jsonString, options); - } - - static equals(a: SwapExactAmountOutSudoMsg | PlainMessage | undefined, b: SwapExactAmountOutSudoMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapExactAmountOutSudoMsg, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.SwapExactAmountOutSudoMsgResponse - */ -export class SwapExactAmountOutSudoMsgResponse extends Message { - /** - * token_in_amount is the token in computed from this swap estimate call. - * - * @generated from field: string token_in_amount = 1; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SwapExactAmountOutSudoMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapExactAmountOutSudoMsgResponse { - return new SwapExactAmountOutSudoMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapExactAmountOutSudoMsgResponse { - return new SwapExactAmountOutSudoMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapExactAmountOutSudoMsgResponse { - return new SwapExactAmountOutSudoMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: SwapExactAmountOutSudoMsgResponse | PlainMessage | undefined, b: SwapExactAmountOutSudoMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapExactAmountOutSudoMsgResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_pb.ts deleted file mode 100644 index 04a7b1e..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_pb.ts +++ /dev/null @@ -1,80 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/pool.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * CosmWasmPool represents the data serialized into state for each CW pool. - * - * Note: CW Pool has 2 pool models: - * - CosmWasmPool which is a proto-generated store model used for serialization - * into state. - * - Pool struct that encapsulates the CosmWasmPool and wasmKeeper for calling - * the contract. - * - * CosmWasmPool implements the poolmanager.PoolI interface but it panics on all - * methods. The reason is that access to wasmKeeper is required to call the - * contract. - * - * Instead, all interactions and poolmanager.PoolI methods are to be performed - * on the Pool struct. The reason why we cannot have a Pool struct only is - * because it cannot be serialized into state due to having a non-serializable - * wasmKeeper field. - * - * @generated from message osmosis.cosmwasmpool.v1beta1.CosmWasmPool - */ -export class CosmWasmPool extends Message { - /** - * @generated from field: string contract_address = 1; - */ - contractAddress = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: uint64 code_id = 3; - */ - codeId = protoInt64.zero; - - /** - * @generated from field: bytes instantiate_msg = 4; - */ - instantiateMsg = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.CosmWasmPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "instantiate_msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CosmWasmPool { - return new CosmWasmPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CosmWasmPool { - return new CosmWasmPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CosmWasmPool { - return new CosmWasmPool().fromJsonString(jsonString, options); - } - - static equals(a: CosmWasmPool | PlainMessage | undefined, b: CosmWasmPool | PlainMessage | undefined): boolean { - return proto3.util.equals(CosmWasmPool, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_query_msg_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_query_msg_pb.ts deleted file mode 100644 index 81183b8..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/pool_query_msg_pb.ts +++ /dev/null @@ -1,411 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/pool_query_msg.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * ===================== GetSwapFeeQueryMsg - * - * @generated from message osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsg - */ -export class GetSwapFeeQueryMsg extends Message { - /** - * get_swap_fee is the query structure to get swap fee. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyStruct get_swap_fee = 1; - */ - getSwapFee?: EmptyStruct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "get_swap_fee", kind: "message", T: EmptyStruct }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSwapFeeQueryMsg { - return new GetSwapFeeQueryMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSwapFeeQueryMsg { - return new GetSwapFeeQueryMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSwapFeeQueryMsg { - return new GetSwapFeeQueryMsg().fromJsonString(jsonString, options); - } - - static equals(a: GetSwapFeeQueryMsg | PlainMessage | undefined, b: GetSwapFeeQueryMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSwapFeeQueryMsg, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsgResponse - */ -export class GetSwapFeeQueryMsgResponse extends Message { - /** - * swap_fee is the swap fee for this swap estimate. - * - * @generated from field: string swap_fee = 3; - */ - swapFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSwapFeeQueryMsgResponse { - return new GetSwapFeeQueryMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSwapFeeQueryMsgResponse { - return new GetSwapFeeQueryMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSwapFeeQueryMsgResponse { - return new GetSwapFeeQueryMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetSwapFeeQueryMsgResponse | PlainMessage | undefined, b: GetSwapFeeQueryMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSwapFeeQueryMsgResponse, a, b); - } -} - -/** - * ===================== SpotPriceQueryMsg - * - * @generated from message osmosis.cosmwasmpool.v1beta1.SpotPrice - */ -export class SpotPrice extends Message { - /** - * quote_asset_denom is the quote asset of the spot query. - * - * @generated from field: string quote_asset_denom = 1; - */ - quoteAssetDenom = ""; - - /** - * base_asset_denom is the base asset of the spot query. - * - * @generated from field: string base_asset_denom = 2; - */ - baseAssetDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SpotPrice"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SpotPrice { - return new SpotPrice().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SpotPrice { - return new SpotPrice().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SpotPrice { - return new SpotPrice().fromJsonString(jsonString, options); - } - - static equals(a: SpotPrice | PlainMessage | undefined, b: SpotPrice | PlainMessage | undefined): boolean { - return proto3.util.equals(SpotPrice, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.SpotPriceQueryMsg - */ -export class SpotPriceQueryMsg extends Message { - /** - * spot_price is the structure containing request field of the spot price - * query message. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.SpotPrice spot_price = 1; - */ - spotPrice?: SpotPrice; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SpotPriceQueryMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spot_price", kind: "message", T: SpotPrice }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceQueryMsg { - return new SpotPriceQueryMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceQueryMsg { - return new SpotPriceQueryMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SpotPriceQueryMsg { - return new SpotPriceQueryMsg().fromJsonString(jsonString, options); - } - - static equals(a: SpotPriceQueryMsg | PlainMessage | undefined, b: SpotPriceQueryMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(SpotPriceQueryMsg, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.SpotPriceQueryMsgResponse - */ -export class SpotPriceQueryMsgResponse extends Message { - /** - * spot_price is the spot price returned. - * - * @generated from field: string spot_price = 1; - */ - spotPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SpotPriceQueryMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceQueryMsgResponse { - return new SpotPriceQueryMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceQueryMsgResponse { - return new SpotPriceQueryMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SpotPriceQueryMsgResponse { - return new SpotPriceQueryMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: SpotPriceQueryMsgResponse | PlainMessage | undefined, b: SpotPriceQueryMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SpotPriceQueryMsgResponse, a, b); - } -} - -/** - * ===================== GetTotalPoolLiquidityQueryMsg - * - * @generated from message osmosis.cosmwasmpool.v1beta1.EmptyStruct - */ -export class EmptyStruct extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.EmptyStruct"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EmptyStruct { - return new EmptyStruct().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EmptyStruct { - return new EmptyStruct().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EmptyStruct { - return new EmptyStruct().fromJsonString(jsonString, options); - } - - static equals(a: EmptyStruct | PlainMessage | undefined, b: EmptyStruct | PlainMessage | undefined): boolean { - return proto3.util.equals(EmptyStruct, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsg - */ -export class GetTotalPoolLiquidityQueryMsg extends Message { - /** - * get_total_pool_liquidity is the structure containing request field of the - * total pool liquidity query message. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyStruct get_total_pool_liquidity = 1; - */ - getTotalPoolLiquidity?: EmptyStruct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "get_total_pool_liquidity", kind: "message", T: EmptyStruct }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalPoolLiquidityQueryMsg { - return new GetTotalPoolLiquidityQueryMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalPoolLiquidityQueryMsg { - return new GetTotalPoolLiquidityQueryMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTotalPoolLiquidityQueryMsg { - return new GetTotalPoolLiquidityQueryMsg().fromJsonString(jsonString, options); - } - - static equals(a: GetTotalPoolLiquidityQueryMsg | PlainMessage | undefined, b: GetTotalPoolLiquidityQueryMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTotalPoolLiquidityQueryMsg, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsgResponse - */ -export class GetTotalPoolLiquidityQueryMsgResponse extends Message { - /** - * total_pool_liquidity is the total liquidity in the pool denominated in - * coins. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin total_pool_liquidity = 1; - */ - totalPoolLiquidity: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_pool_liquidity", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalPoolLiquidityQueryMsgResponse { - return new GetTotalPoolLiquidityQueryMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalPoolLiquidityQueryMsgResponse { - return new GetTotalPoolLiquidityQueryMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTotalPoolLiquidityQueryMsgResponse { - return new GetTotalPoolLiquidityQueryMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTotalPoolLiquidityQueryMsgResponse | PlainMessage | undefined, b: GetTotalPoolLiquidityQueryMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTotalPoolLiquidityQueryMsgResponse, a, b); - } -} - -/** - * ===================== GetTotalSharesQueryMsg - * - * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsg - */ -export class GetTotalSharesQueryMsg extends Message { - /** - * get_total_shares is the structure containing request field of the - * total shares query message. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyStruct get_total_shares = 1; - */ - getTotalShares?: EmptyStruct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsg"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "get_total_shares", kind: "message", T: EmptyStruct }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalSharesQueryMsg { - return new GetTotalSharesQueryMsg().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalSharesQueryMsg { - return new GetTotalSharesQueryMsg().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTotalSharesQueryMsg { - return new GetTotalSharesQueryMsg().fromJsonString(jsonString, options); - } - - static equals(a: GetTotalSharesQueryMsg | PlainMessage | undefined, b: GetTotalSharesQueryMsg | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTotalSharesQueryMsg, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsgResponse - */ -export class GetTotalSharesQueryMsgResponse extends Message { - /** - * total_shares is the amount of shares returned. - * - * @generated from field: string total_shares = 1; - */ - totalShares = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalSharesQueryMsgResponse { - return new GetTotalSharesQueryMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalSharesQueryMsgResponse { - return new GetTotalSharesQueryMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTotalSharesQueryMsgResponse { - return new GetTotalSharesQueryMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTotalSharesQueryMsgResponse | PlainMessage | undefined, b: GetTotalSharesQueryMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTotalSharesQueryMsgResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/transmuter_msgs_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/transmuter_msgs_pb.ts deleted file mode 100644 index 59665fa..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/transmuter_msgs_pb.ts +++ /dev/null @@ -1,185 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/transmuter_msgs.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ===================== JoinPoolExecuteMsg - * - * @generated from message osmosis.cosmwasmpool.v1beta1.EmptyRequest - */ -export class EmptyRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.EmptyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EmptyRequest { - return new EmptyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EmptyRequest { - return new EmptyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EmptyRequest { - return new EmptyRequest().fromJsonString(jsonString, options); - } - - static equals(a: EmptyRequest | PlainMessage | undefined, b: EmptyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EmptyRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.JoinPoolExecuteMsgRequest - */ -export class JoinPoolExecuteMsgRequest extends Message { - /** - * join_pool is the structure containing all request fields of the join pool - * execute message. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyRequest join_pool = 1; - */ - joinPool?: EmptyRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.JoinPoolExecuteMsgRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "join_pool", kind: "message", T: EmptyRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): JoinPoolExecuteMsgRequest { - return new JoinPoolExecuteMsgRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): JoinPoolExecuteMsgRequest { - return new JoinPoolExecuteMsgRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): JoinPoolExecuteMsgRequest { - return new JoinPoolExecuteMsgRequest().fromJsonString(jsonString, options); - } - - static equals(a: JoinPoolExecuteMsgRequest | PlainMessage | undefined, b: JoinPoolExecuteMsgRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(JoinPoolExecuteMsgRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.JoinPoolExecuteMsgResponse - */ -export class JoinPoolExecuteMsgResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.JoinPoolExecuteMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): JoinPoolExecuteMsgResponse { - return new JoinPoolExecuteMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): JoinPoolExecuteMsgResponse { - return new JoinPoolExecuteMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): JoinPoolExecuteMsgResponse { - return new JoinPoolExecuteMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: JoinPoolExecuteMsgResponse | PlainMessage | undefined, b: JoinPoolExecuteMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(JoinPoolExecuteMsgResponse, a, b); - } -} - -/** - * ===================== ExitPoolExecuteMsg - * - * @generated from message osmosis.cosmwasmpool.v1beta1.ExitPoolExecuteMsgRequest - */ -export class ExitPoolExecuteMsgRequest extends Message { - /** - * exit_pool is the structure containing all request fields of the exit pool - * execute message. - * - * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyRequest exit_pool = 1; - */ - exitPool?: EmptyRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.ExitPoolExecuteMsgRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "exit_pool", kind: "message", T: EmptyRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExitPoolExecuteMsgRequest { - return new ExitPoolExecuteMsgRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExitPoolExecuteMsgRequest { - return new ExitPoolExecuteMsgRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExitPoolExecuteMsgRequest { - return new ExitPoolExecuteMsgRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExitPoolExecuteMsgRequest | PlainMessage | undefined, b: ExitPoolExecuteMsgRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExitPoolExecuteMsgRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.ExitPoolExecuteMsgResponse - */ -export class ExitPoolExecuteMsgResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.ExitPoolExecuteMsgResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExitPoolExecuteMsgResponse { - return new ExitPoolExecuteMsgResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExitPoolExecuteMsgResponse { - return new ExitPoolExecuteMsgResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExitPoolExecuteMsgResponse { - return new ExitPoolExecuteMsgResponse().fromJsonString(jsonString, options); - } - - static equals(a: ExitPoolExecuteMsgResponse | PlainMessage | undefined, b: ExitPoolExecuteMsgResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ExitPoolExecuteMsgResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_cosmes.ts deleted file mode 100644 index 88192cd..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_cosmes.ts +++ /dev/null @@ -1,19 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/tx.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCreateCosmWasmPool, MsgCreateCosmWasmPoolResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.cosmwasmpool.v1beta1.MsgCreator"; - -/** - * @generated from rpc osmosis.cosmwasmpool.v1beta1.MsgCreator.CreateCosmWasmPool - */ -export const MsgCreatorCreateCosmWasmPoolService = { - typeName: TYPE_NAME, - method: "CreateCosmWasmPool", - Request: MsgCreateCosmWasmPool, - Response: MsgCreateCosmWasmPoolResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_pb.ts deleted file mode 100644 index add60cb..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/tx_pb.ts +++ /dev/null @@ -1,98 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/tx.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * ===================== MsgCreateCosmwasmPool - * - * @generated from message osmosis.cosmwasmpool.v1beta1.MsgCreateCosmWasmPool - */ -export class MsgCreateCosmWasmPool extends Message { - /** - * @generated from field: uint64 code_id = 1; - */ - codeId = protoInt64.zero; - - /** - * @generated from field: bytes instantiate_msg = 2; - */ - instantiateMsg = new Uint8Array(0); - - /** - * @generated from field: string sender = 3; - */ - sender = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.MsgCreateCosmWasmPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "instantiate_msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateCosmWasmPool { - return new MsgCreateCosmWasmPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateCosmWasmPool { - return new MsgCreateCosmWasmPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateCosmWasmPool { - return new MsgCreateCosmWasmPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateCosmWasmPool | PlainMessage | undefined, b: MsgCreateCosmWasmPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateCosmWasmPool, a, b); - } -} - -/** - * Returns a unique poolID to identify the pool with. - * - * @generated from message osmosis.cosmwasmpool.v1beta1.MsgCreateCosmWasmPoolResponse - */ -export class MsgCreateCosmWasmPoolResponse extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.MsgCreateCosmWasmPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateCosmWasmPoolResponse { - return new MsgCreateCosmWasmPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateCosmWasmPoolResponse { - return new MsgCreateCosmWasmPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateCosmWasmPoolResponse { - return new MsgCreateCosmWasmPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateCosmWasmPoolResponse | PlainMessage | undefined, b: MsgCreateCosmWasmPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateCosmWasmPoolResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.ts deleted file mode 100644 index accd5f6..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg_pb.ts +++ /dev/null @@ -1,182 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/model/v3/pool_query_msg.proto (package osmosis.cosmwasmpool.v1beta1.model.v3, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * ===================== ShareDenomResponse - * - * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.ShareDenomResponse - */ -export class ShareDenomResponse extends Message { - /** - * share_denom is the share denomination. - * - * @generated from field: string share_denom = 1; - */ - shareDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.ShareDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "share_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ShareDenomResponse { - return new ShareDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ShareDenomResponse { - return new ShareDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ShareDenomResponse { - return new ShareDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: ShareDenomResponse | PlainMessage | undefined, b: ShareDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ShareDenomResponse, a, b); - } -} - -/** - * ===================== TotalPoolLiquidityResponse - * - * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.TotalPoolLiquidityResponse - */ -export class TotalPoolLiquidityResponse extends Message { - /** - * total_pool_liquidity is the total liquidity in the pool denominated in - * coins. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin total_pool_liquidity = 1; - */ - totalPoolLiquidity: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.TotalPoolLiquidityResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_pool_liquidity", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalPoolLiquidityResponse { - return new TotalPoolLiquidityResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalPoolLiquidityResponse { - return new TotalPoolLiquidityResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalPoolLiquidityResponse { - return new TotalPoolLiquidityResponse().fromJsonString(jsonString, options); - } - - static equals(a: TotalPoolLiquidityResponse | PlainMessage | undefined, b: TotalPoolLiquidityResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalPoolLiquidityResponse, a, b); - } -} - -/** - * ===================== AssetConfig - * - * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.AssetConfig - */ -export class AssetConfig extends Message { - /** - * denom is the asset denomination. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * normalization_factor is the normalization factor for the asset. - * - * @generated from field: string normalization_factor = 2; - */ - normalizationFactor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.AssetConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "normalization_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AssetConfig { - return new AssetConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AssetConfig { - return new AssetConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AssetConfig { - return new AssetConfig().fromJsonString(jsonString, options); - } - - static equals(a: AssetConfig | PlainMessage | undefined, b: AssetConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(AssetConfig, a, b); - } -} - -/** - * ===================== ListAssetConfigsResponse - * - * @generated from message osmosis.cosmwasmpool.v1beta1.model.v3.ListAssetConfigsResponse - */ -export class ListAssetConfigsResponse extends Message { - /** - * asset_configs is the list of asset configurations. - * - * @generated from field: repeated osmosis.cosmwasmpool.v1beta1.model.v3.AssetConfig asset_configs = 1; - */ - assetConfigs: AssetConfig[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.model.v3.ListAssetConfigsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "asset_configs", kind: "message", T: AssetConfig, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAssetConfigsResponse { - return new ListAssetConfigsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAssetConfigsResponse { - return new ListAssetConfigsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAssetConfigsResponse { - return new ListAssetConfigsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListAssetConfigsResponse | PlainMessage | undefined, b: ListAssetConfigsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAssetConfigsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/params_pb.ts deleted file mode 100644 index 60bea3c..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/params_pb.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/params.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.Params - */ -export class Params extends Message { - /** - * code_ide_whitelist contains the list of code ids that are allowed to be - * instantiated. - * - * @generated from field: repeated uint64 code_id_whitelist = 1; - */ - codeIdWhitelist: bigint[] = []; - - /** - * pool_migration_limit is the maximum number of pools that can be migrated - * at once via governance proposal. This is to have a constant bound on the - * number of pools that can be migrated at once and remove the possibility - * of an unlikely scenario of causing a chain halt due to a large migration. - * - * @generated from field: uint64 pool_migration_limit = 2; - */ - poolMigrationLimit = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code_id_whitelist", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 2, name: "pool_migration_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts deleted file mode 100644 index 986636d..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,43 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/query.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ContractInfoByPoolIdRequest, ContractInfoByPoolIdResponse, ParamsRequest, ParamsResponse, PoolsRequest, PoolsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.cosmwasmpool.v1beta1.Query"; - -/** - * Pools returns all cosmwasm pools - * - * @generated from rpc osmosis.cosmwasmpool.v1beta1.Query.Pools - */ -export const QueryPoolsService = { - typeName: TYPE_NAME, - method: "Pools", - Request: PoolsRequest, - Response: PoolsResponse, -} as const; - -/** - * Params returns the parameters of the x/cosmwasmpool module. - * - * @generated from rpc osmosis.cosmwasmpool.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: ParamsRequest, - Response: ParamsResponse, -} as const; - -/** - * @generated from rpc osmosis.cosmwasmpool.v1beta1.Query.ContractInfoByPoolId - */ -export const QueryContractInfoByPoolIdService = { - typeName: TYPE_NAME, - method: "ContractInfoByPoolId", - Request: ContractInfoByPoolIdRequest, - Response: ContractInfoByPoolIdResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts deleted file mode 100644 index 8164515..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/query_pb.ts +++ /dev/null @@ -1,255 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/query.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; - -/** - * =============================== ContractInfoByPoolId - * - * @generated from message osmosis.cosmwasmpool.v1beta1.ParamsRequest - */ -export class ParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.ParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { - return new ParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.ParamsResponse - */ -export class ParamsResponse extends Message { - /** - * @generated from field: osmosis.cosmwasmpool.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.ParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { - return new ParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsResponse, a, b); - } -} - -/** - * =============================== Pools - * - * @generated from message osmosis.cosmwasmpool.v1beta1.PoolsRequest - */ -export class PoolsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.PoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolsRequest { - return new PoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolsRequest { - return new PoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolsRequest { - return new PoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: PoolsRequest | PlainMessage | undefined, b: PoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.PoolsResponse - */ -export class PoolsResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.PoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolsResponse { - return new PoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolsResponse { - return new PoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolsResponse { - return new PoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: PoolsResponse | PlainMessage | undefined, b: PoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolsResponse, a, b); - } -} - -/** - * =============================== ContractInfoByPoolId - * - * @generated from message osmosis.cosmwasmpool.v1beta1.ContractInfoByPoolIdRequest - */ -export class ContractInfoByPoolIdRequest extends Message { - /** - * pool_id is the pool id of the requested pool. - * - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.ContractInfoByPoolIdRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContractInfoByPoolIdRequest { - return new ContractInfoByPoolIdRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContractInfoByPoolIdRequest { - return new ContractInfoByPoolIdRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContractInfoByPoolIdRequest { - return new ContractInfoByPoolIdRequest().fromJsonString(jsonString, options); - } - - static equals(a: ContractInfoByPoolIdRequest | PlainMessage | undefined, b: ContractInfoByPoolIdRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ContractInfoByPoolIdRequest, a, b); - } -} - -/** - * @generated from message osmosis.cosmwasmpool.v1beta1.ContractInfoByPoolIdResponse - */ -export class ContractInfoByPoolIdResponse extends Message { - /** - * contract_address is the pool address and contract address - * of the requested pool id. - * - * @generated from field: string contract_address = 1; - */ - contractAddress = ""; - - /** - * code_id is the code id of the requested pool id. - * - * @generated from field: uint64 code_id = 2; - */ - codeId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.cosmwasmpool.v1beta1.ContractInfoByPoolIdResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContractInfoByPoolIdResponse { - return new ContractInfoByPoolIdResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContractInfoByPoolIdResponse { - return new ContractInfoByPoolIdResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContractInfoByPoolIdResponse { - return new ContractInfoByPoolIdResponse().fromJsonString(jsonString, options); - } - - static equals(a: ContractInfoByPoolIdResponse | PlainMessage | undefined, b: ContractInfoByPoolIdResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ContractInfoByPoolIdResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/tx_cosmes.ts deleted file mode 100644 index fd86a35..0000000 --- a/libs/es-client/src/protobufs/osmosis/cosmwasmpool/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,7 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/cosmwasmpool/v1beta1/tx.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -const TYPE_NAME = "osmosis.cosmwasmpool.v1beta1.Msg"; - diff --git a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/downtime_duration_pb.ts b/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/downtime_duration_pb.ts deleted file mode 100644 index b26286d..0000000 --- a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/downtime_duration_pb.ts +++ /dev/null @@ -1,165 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/downtimedetector/v1beta1/downtime_duration.proto (package osmosis.downtimedetector.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from enum osmosis.downtimedetector.v1beta1.Downtime - */ -export enum Downtime { - /** - * @generated from enum value: DURATION_30S = 0; - */ - DURATION_30S = 0, - - /** - * @generated from enum value: DURATION_1M = 1; - */ - DURATION_1M = 1, - - /** - * @generated from enum value: DURATION_2M = 2; - */ - DURATION_2M = 2, - - /** - * @generated from enum value: DURATION_3M = 3; - */ - DURATION_3M = 3, - - /** - * @generated from enum value: DURATION_4M = 4; - */ - DURATION_4M = 4, - - /** - * @generated from enum value: DURATION_5M = 5; - */ - DURATION_5M = 5, - - /** - * @generated from enum value: DURATION_10M = 6; - */ - DURATION_10M = 6, - - /** - * @generated from enum value: DURATION_20M = 7; - */ - DURATION_20M = 7, - - /** - * @generated from enum value: DURATION_30M = 8; - */ - DURATION_30M = 8, - - /** - * @generated from enum value: DURATION_40M = 9; - */ - DURATION_40M = 9, - - /** - * @generated from enum value: DURATION_50M = 10; - */ - DURATION_50M = 10, - - /** - * @generated from enum value: DURATION_1H = 11; - */ - DURATION_1H = 11, - - /** - * @generated from enum value: DURATION_1_5H = 12; - */ - DURATION_1_5H = 12, - - /** - * @generated from enum value: DURATION_2H = 13; - */ - DURATION_2H = 13, - - /** - * @generated from enum value: DURATION_2_5H = 14; - */ - DURATION_2_5H = 14, - - /** - * @generated from enum value: DURATION_3H = 15; - */ - DURATION_3H = 15, - - /** - * @generated from enum value: DURATION_4H = 16; - */ - DURATION_4H = 16, - - /** - * @generated from enum value: DURATION_5H = 17; - */ - DURATION_5H = 17, - - /** - * @generated from enum value: DURATION_6H = 18; - */ - DURATION_6H = 18, - - /** - * @generated from enum value: DURATION_9H = 19; - */ - DURATION_9H = 19, - - /** - * @generated from enum value: DURATION_12H = 20; - */ - DURATION_12H = 20, - - /** - * @generated from enum value: DURATION_18H = 21; - */ - DURATION_18H = 21, - - /** - * @generated from enum value: DURATION_24H = 22; - */ - DURATION_24H = 22, - - /** - * @generated from enum value: DURATION_36H = 23; - */ - DURATION_36H = 23, - - /** - * @generated from enum value: DURATION_48H = 24; - */ - DURATION_48H = 24, -} -// Retrieve enum metadata with: proto3.getEnumType(Downtime) -proto3.util.setEnumType(Downtime, "osmosis.downtimedetector.v1beta1.Downtime", [ - { no: 0, name: "DURATION_30S" }, - { no: 1, name: "DURATION_1M" }, - { no: 2, name: "DURATION_2M" }, - { no: 3, name: "DURATION_3M" }, - { no: 4, name: "DURATION_4M" }, - { no: 5, name: "DURATION_5M" }, - { no: 6, name: "DURATION_10M" }, - { no: 7, name: "DURATION_20M" }, - { no: 8, name: "DURATION_30M" }, - { no: 9, name: "DURATION_40M" }, - { no: 10, name: "DURATION_50M" }, - { no: 11, name: "DURATION_1H" }, - { no: 12, name: "DURATION_1_5H" }, - { no: 13, name: "DURATION_2H" }, - { no: 14, name: "DURATION_2_5H" }, - { no: 15, name: "DURATION_3H" }, - { no: 16, name: "DURATION_4H" }, - { no: 17, name: "DURATION_5H" }, - { no: 18, name: "DURATION_6H" }, - { no: 19, name: "DURATION_9H" }, - { no: 20, name: "DURATION_12H" }, - { no: 21, name: "DURATION_18H" }, - { no: 22, name: "DURATION_24H" }, - { no: 23, name: "DURATION_36H" }, - { no: 24, name: "DURATION_48H" }, -]); - diff --git a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/genesis_pb.ts deleted file mode 100644 index e38e985..0000000 --- a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,97 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/downtimedetector/v1beta1/genesis.proto (package osmosis.downtimedetector.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Downtime } from "./downtime_duration_pb.js"; - -/** - * @generated from message osmosis.downtimedetector.v1beta1.GenesisDowntimeEntry - */ -export class GenesisDowntimeEntry extends Message { - /** - * @generated from field: osmosis.downtimedetector.v1beta1.Downtime duration = 1; - */ - duration = Downtime.DURATION_30S; - - /** - * @generated from field: google.protobuf.Timestamp last_downtime = 2; - */ - lastDowntime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.downtimedetector.v1beta1.GenesisDowntimeEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "duration", kind: "enum", T: proto3.getEnumType(Downtime) }, - { no: 2, name: "last_downtime", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisDowntimeEntry { - return new GenesisDowntimeEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisDowntimeEntry { - return new GenesisDowntimeEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisDowntimeEntry { - return new GenesisDowntimeEntry().fromJsonString(jsonString, options); - } - - static equals(a: GenesisDowntimeEntry | PlainMessage | undefined, b: GenesisDowntimeEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisDowntimeEntry, a, b); - } -} - -/** - * GenesisState defines the twap module's genesis state. - * - * @generated from message osmosis.downtimedetector.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated osmosis.downtimedetector.v1beta1.GenesisDowntimeEntry downtimes = 1; - */ - downtimes: GenesisDowntimeEntry[] = []; - - /** - * @generated from field: google.protobuf.Timestamp last_block_time = 2; - */ - lastBlockTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.downtimedetector.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "downtimes", kind: "message", T: GenesisDowntimeEntry, repeated: true }, - { no: 2, name: "last_block_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_cosmes.ts deleted file mode 100644 index cc9b6f4..0000000 --- a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,19 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/downtimedetector/v1beta1/query.proto (package osmosis.downtimedetector.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { RecoveredSinceDowntimeOfLengthRequest, RecoveredSinceDowntimeOfLengthResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.downtimedetector.v1beta1.Query"; - -/** - * @generated from rpc osmosis.downtimedetector.v1beta1.Query.RecoveredSinceDowntimeOfLength - */ -export const QueryRecoveredSinceDowntimeOfLengthService = { - typeName: TYPE_NAME, - method: "RecoveredSinceDowntimeOfLength", - Request: RecoveredSinceDowntimeOfLengthRequest, - Response: RecoveredSinceDowntimeOfLengthResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_pb.ts deleted file mode 100644 index b40dada..0000000 --- a/libs/es-client/src/protobufs/osmosis/downtimedetector/v1beta1/query_pb.ts +++ /dev/null @@ -1,92 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/downtimedetector/v1beta1/query.proto (package osmosis.downtimedetector.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3 } from "@bufbuild/protobuf"; -import { Downtime } from "./downtime_duration_pb.js"; - -/** - * Query for has it been at least $RECOVERY_DURATION units of time, - * since the chain has been down for $DOWNTIME_DURATION. - * - * @generated from message osmosis.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthRequest - */ -export class RecoveredSinceDowntimeOfLengthRequest extends Message { - /** - * @generated from field: osmosis.downtimedetector.v1beta1.Downtime downtime = 1; - */ - downtime = Downtime.DURATION_30S; - - /** - * @generated from field: google.protobuf.Duration recovery = 2; - */ - recovery?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "downtime", kind: "enum", T: proto3.getEnumType(Downtime) }, - { no: 2, name: "recovery", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RecoveredSinceDowntimeOfLengthRequest { - return new RecoveredSinceDowntimeOfLengthRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RecoveredSinceDowntimeOfLengthRequest { - return new RecoveredSinceDowntimeOfLengthRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RecoveredSinceDowntimeOfLengthRequest { - return new RecoveredSinceDowntimeOfLengthRequest().fromJsonString(jsonString, options); - } - - static equals(a: RecoveredSinceDowntimeOfLengthRequest | PlainMessage | undefined, b: RecoveredSinceDowntimeOfLengthRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RecoveredSinceDowntimeOfLengthRequest, a, b); - } -} - -/** - * @generated from message osmosis.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthResponse - */ -export class RecoveredSinceDowntimeOfLengthResponse extends Message { - /** - * @generated from field: bool succesfully_recovered = 1; - */ - succesfullyRecovered = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.downtimedetector.v1beta1.RecoveredSinceDowntimeOfLengthResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "succesfully_recovered", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RecoveredSinceDowntimeOfLengthResponse { - return new RecoveredSinceDowntimeOfLengthResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RecoveredSinceDowntimeOfLengthResponse { - return new RecoveredSinceDowntimeOfLengthResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RecoveredSinceDowntimeOfLengthResponse { - return new RecoveredSinceDowntimeOfLengthResponse().fromJsonString(jsonString, options); - } - - static equals(a: RecoveredSinceDowntimeOfLengthResponse | PlainMessage | undefined, b: RecoveredSinceDowntimeOfLengthResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RecoveredSinceDowntimeOfLengthResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/genesis_pb.ts deleted file mode 100644 index 0ba001d..0000000 --- a/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,163 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/epochs/v1beta1/genesis.proto (package osmosis.epochs.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * EpochInfo is a struct that describes the data going into - * a timer defined by the x/epochs module. - * - * @generated from message osmosis.epochs.v1beta1.EpochInfo - */ -export class EpochInfo extends Message { - /** - * identifier is a unique reference to this particular timer. - * - * @generated from field: string identifier = 1; - */ - identifier = ""; - - /** - * start_time is the time at which the timer first ever ticks. - * If start_time is in the future, the epoch will not begin until the start - * time. - * - * @generated from field: google.protobuf.Timestamp start_time = 2; - */ - startTime?: Timestamp; - - /** - * duration is the time in between epoch ticks. - * In order for intended behavior to be met, duration should - * be greater than the chains expected block time. - * Duration must be non-zero. - * - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - /** - * current_epoch is the current epoch number, or in other words, - * how many times has the timer 'ticked'. - * The first tick (current_epoch=1) is defined as - * the first block whose blocktime is greater than the EpochInfo start_time. - * - * @generated from field: int64 current_epoch = 4; - */ - currentEpoch = protoInt64.zero; - - /** - * current_epoch_start_time describes the start time of the current timer - * interval. The interval is (current_epoch_start_time, - * current_epoch_start_time + duration] When the timer ticks, this is set to - * current_epoch_start_time = last_epoch_start_time + duration only one timer - * tick for a given identifier can occur per block. - * - * NOTE! The current_epoch_start_time may diverge significantly from the - * wall-clock time the epoch began at. Wall-clock time of epoch start may be - * >> current_epoch_start_time. Suppose current_epoch_start_time = 10, - * duration = 5. Suppose the chain goes offline at t=14, and comes back online - * at t=30, and produces blocks at every successive time. (t=31, 32, etc.) - * * The t=30 block will start the epoch for (10, 15] - * * The t=31 block will start the epoch for (15, 20] - * * The t=32 block will start the epoch for (20, 25] - * * The t=33 block will start the epoch for (25, 30] - * * The t=34 block will start the epoch for (30, 35] - * * The **t=36** block will start the epoch for (35, 40] - * - * @generated from field: google.protobuf.Timestamp current_epoch_start_time = 5; - */ - currentEpochStartTime?: Timestamp; - - /** - * epoch_counting_started is a boolean, that indicates whether this - * epoch timer has began yet. - * - * @generated from field: bool epoch_counting_started = 6; - */ - epochCountingStarted = false; - - /** - * current_epoch_start_height is the block height at which the current epoch - * started. (The block height at which the timer last ticked) - * - * @generated from field: int64 current_epoch_start_height = 8; - */ - currentEpochStartHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.epochs.v1beta1.EpochInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "start_time", kind: "message", T: Timestamp }, - { no: 3, name: "duration", kind: "message", T: Duration }, - { no: 4, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "current_epoch_start_time", kind: "message", T: Timestamp }, - { no: 6, name: "epoch_counting_started", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 8, name: "current_epoch_start_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EpochInfo { - return new EpochInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EpochInfo { - return new EpochInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EpochInfo { - return new EpochInfo().fromJsonString(jsonString, options); - } - - static equals(a: EpochInfo | PlainMessage | undefined, b: EpochInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(EpochInfo, a, b); - } -} - -/** - * GenesisState defines the epochs module's genesis state. - * - * @generated from message osmosis.epochs.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated osmosis.epochs.v1beta1.EpochInfo epochs = 1; - */ - epochs: EpochInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.epochs.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_cosmes.ts deleted file mode 100644 index 85a4874..0000000 --- a/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/epochs/v1beta1/query.proto (package osmosis.epochs.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryCurrentEpochRequest, QueryCurrentEpochResponse, QueryEpochsInfoRequest, QueryEpochsInfoResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.epochs.v1beta1.Query"; - -/** - * EpochInfos provide running epochInfos - * - * @generated from rpc osmosis.epochs.v1beta1.Query.EpochInfos - */ -export const QueryEpochInfosService = { - typeName: TYPE_NAME, - method: "EpochInfos", - Request: QueryEpochsInfoRequest, - Response: QueryEpochsInfoResponse, -} as const; - -/** - * CurrentEpoch provide current epoch of specified identifier - * - * @generated from rpc osmosis.epochs.v1beta1.Query.CurrentEpoch - */ -export const QueryCurrentEpochService = { - typeName: TYPE_NAME, - method: "CurrentEpoch", - Request: QueryCurrentEpochRequest, - Response: QueryCurrentEpochResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_pb.ts deleted file mode 100644 index 93930ce..0000000 --- a/libs/es-client/src/protobufs/osmosis/epochs/v1beta1/query_pb.ts +++ /dev/null @@ -1,151 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/epochs/v1beta1/query.proto (package osmosis.epochs.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { EpochInfo } from "./genesis_pb.js"; - -/** - * @generated from message osmosis.epochs.v1beta1.QueryEpochsInfoRequest - */ -export class QueryEpochsInfoRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.epochs.v1beta1.QueryEpochsInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoRequest { - return new QueryEpochsInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoRequest { - return new QueryEpochsInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoRequest { - return new QueryEpochsInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochsInfoRequest | PlainMessage | undefined, b: QueryEpochsInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochsInfoRequest, a, b); - } -} - -/** - * @generated from message osmosis.epochs.v1beta1.QueryEpochsInfoResponse - */ -export class QueryEpochsInfoResponse extends Message { - /** - * @generated from field: repeated osmosis.epochs.v1beta1.EpochInfo epochs = 1; - */ - epochs: EpochInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.epochs.v1beta1.QueryEpochsInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epochs", kind: "message", T: EpochInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochsInfoResponse { - return new QueryEpochsInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochsInfoResponse { - return new QueryEpochsInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochsInfoResponse { - return new QueryEpochsInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochsInfoResponse | PlainMessage | undefined, b: QueryEpochsInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochsInfoResponse, a, b); - } -} - -/** - * @generated from message osmosis.epochs.v1beta1.QueryCurrentEpochRequest - */ -export class QueryCurrentEpochRequest extends Message { - /** - * @generated from field: string identifier = 1; - */ - identifier = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.epochs.v1beta1.QueryCurrentEpochRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochRequest { - return new QueryCurrentEpochRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochRequest { - return new QueryCurrentEpochRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochRequest { - return new QueryCurrentEpochRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentEpochRequest | PlainMessage | undefined, b: QueryCurrentEpochRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentEpochRequest, a, b); - } -} - -/** - * @generated from message osmosis.epochs.v1beta1.QueryCurrentEpochResponse - */ -export class QueryCurrentEpochResponse extends Message { - /** - * @generated from field: int64 current_epoch = 1; - */ - currentEpoch = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.epochs.v1beta1.QueryCurrentEpochResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "current_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentEpochResponse { - return new QueryCurrentEpochResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentEpochResponse { - return new QueryCurrentEpochResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentEpochResponse { - return new QueryCurrentEpochResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentEpochResponse | PlainMessage | undefined, b: QueryCurrentEpochResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentEpochResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_cosmes.ts deleted file mode 100644 index 500ef6f..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,19 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/poolmodels/balancer/v1beta1/tx.proto (package osmosis.gamm.poolmodels.balancer.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCreateBalancerPool, MsgCreateBalancerPoolResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.gamm.poolmodels.balancer.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.gamm.poolmodels.balancer.v1beta1.Msg.CreateBalancerPool - */ -export const MsgCreateBalancerPoolService = { - typeName: TYPE_NAME, - method: "CreateBalancerPool", - Request: MsgCreateBalancerPool, - Response: MsgCreateBalancerPoolResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_pb.ts deleted file mode 100644 index e42e9d5..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/balancer/v1beta1/tx_pb.ts +++ /dev/null @@ -1,105 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/poolmodels/balancer/v1beta1/tx.proto (package osmosis.gamm.poolmodels.balancer.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PoolAsset, PoolParams } from "../../../v1beta1/balancerPool_pb.js"; - -/** - * ===================== MsgCreatePool - * - * @generated from message osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool - */ -export class MsgCreateBalancerPool extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: osmosis.gamm.v1beta1.PoolParams pool_params = 2; - */ - poolParams?: PoolParams; - - /** - * @generated from field: repeated osmosis.gamm.v1beta1.PoolAsset pool_assets = 3; - */ - poolAssets: PoolAsset[] = []; - - /** - * @generated from field: string future_pool_governor = 4; - */ - futurePoolGovernor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_params", kind: "message", T: PoolParams }, - { no: 3, name: "pool_assets", kind: "message", T: PoolAsset, repeated: true }, - { no: 4, name: "future_pool_governor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBalancerPool { - return new MsgCreateBalancerPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBalancerPool { - return new MsgCreateBalancerPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateBalancerPool { - return new MsgCreateBalancerPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateBalancerPool | PlainMessage | undefined, b: MsgCreateBalancerPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateBalancerPool, a, b); - } -} - -/** - * Returns the poolID - * - * @generated from message osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPoolResponse - */ -export class MsgCreateBalancerPoolResponse extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.balancer.v1beta1.MsgCreateBalancerPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateBalancerPoolResponse { - return new MsgCreateBalancerPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateBalancerPoolResponse { - return new MsgCreateBalancerPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateBalancerPoolResponse { - return new MsgCreateBalancerPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateBalancerPoolResponse | PlainMessage | undefined, b: MsgCreateBalancerPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateBalancerPoolResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts deleted file mode 100644 index 0c5437a..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool_pb.ts +++ /dev/null @@ -1,159 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/poolmodels/stableswap/v1beta1/stableswap_pool.proto (package osmosis.gamm.poolmodels.stableswap.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * PoolParams defined the parameters that will be managed by the pool - * governance in the future. This params are not managed by the chain - * governance. Instead they will be managed by the token holders of the pool. - * The pool's token holders are specified in future_pool_governor. - * - * @generated from message osmosis.gamm.poolmodels.stableswap.v1beta1.PoolParams - */ -export class PoolParams extends Message { - /** - * @generated from field: string swap_fee = 1; - */ - swapFee = ""; - - /** - * N.B.: exit fee is disabled during pool creation in x/poolmanager. While old - * pools can maintain a non-zero fee. No new pool can be created with non-zero - * fee anymore - * - * @generated from field: string exit_fee = 2; - */ - exitFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.stableswap.v1beta1.PoolParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "exit_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolParams { - return new PoolParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolParams { - return new PoolParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolParams { - return new PoolParams().fromJsonString(jsonString, options); - } - - static equals(a: PoolParams | PlainMessage | undefined, b: PoolParams | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolParams, a, b); - } -} - -/** - * Pool is the stableswap Pool struct - * - * @generated from message osmosis.gamm.poolmodels.stableswap.v1beta1.Pool - */ -export class Pool extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: uint64 id = 2; - */ - id = protoInt64.zero; - - /** - * @generated from field: osmosis.gamm.poolmodels.stableswap.v1beta1.PoolParams pool_params = 3; - */ - poolParams?: PoolParams; - - /** - * This string specifies who will govern the pool in the future. - * Valid forms of this are: - * {token name},{duration} - * {duration} - * where {token name} if specified is the token which determines the - * governor, and if not specified is the LP token for this pool.duration is - * a time specified as 0w,1w,2w, etc. which specifies how long the token - * would need to be locked up to count in governance. 0w means no lockup. - * - * @generated from field: string future_pool_governor = 4; - */ - futurePoolGovernor = ""; - - /** - * sum of all LP shares - * - * @generated from field: cosmos.base.v1beta1.Coin total_shares = 5; - */ - totalShares?: Coin; - - /** - * assets in the pool - * - * @generated from field: repeated cosmos.base.v1beta1.Coin pool_liquidity = 6; - */ - poolLiquidity: Coin[] = []; - - /** - * for calculation amognst assets with different precisions - * - * @generated from field: repeated uint64 scaling_factors = 7; - */ - scalingFactors: bigint[] = []; - - /** - * scaling_factor_controller is the address can adjust pool scaling factors - * - * @generated from field: string scaling_factor_controller = 8; - */ - scalingFactorController = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.stableswap.v1beta1.Pool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "pool_params", kind: "message", T: PoolParams }, - { no: 4, name: "future_pool_governor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "total_shares", kind: "message", T: Coin }, - { no: 6, name: "pool_liquidity", kind: "message", T: Coin, repeated: true }, - { no: 7, name: "scaling_factors", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 8, name: "scaling_factor_controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Pool { - return new Pool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Pool { - return new Pool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Pool { - return new Pool().fromJsonString(jsonString, options); - } - - static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { - return proto3.util.equals(Pool, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_cosmes.ts deleted file mode 100644 index d9e7c91..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,29 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/poolmodels/stableswap/v1beta1/tx.proto (package osmosis.gamm.poolmodels.stableswap.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgCreateStableswapPool, MsgCreateStableswapPoolResponse, MsgStableSwapAdjustScalingFactors, MsgStableSwapAdjustScalingFactorsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.gamm.poolmodels.stableswap.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.gamm.poolmodels.stableswap.v1beta1.Msg.CreateStableswapPool - */ -export const MsgCreateStableswapPoolService = { - typeName: TYPE_NAME, - method: "CreateStableswapPool", - Request: MsgCreateStableswapPool, - Response: MsgCreateStableswapPoolResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.poolmodels.stableswap.v1beta1.Msg.StableSwapAdjustScalingFactors - */ -export const MsgStableSwapAdjustScalingFactorsService = { - typeName: TYPE_NAME, - method: "StableSwapAdjustScalingFactors", - Request: MsgStableSwapAdjustScalingFactors, - Response: MsgStableSwapAdjustScalingFactorsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_pb.ts deleted file mode 100644 index d3077f5..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/poolmodels/stableswap/v1beta1/tx_pb.ts +++ /dev/null @@ -1,201 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/poolmodels/stableswap/v1beta1/tx.proto (package osmosis.gamm.poolmodels.stableswap.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PoolParams } from "./stableswap_pool_pb.js"; -import { Coin } from "../../../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * ===================== MsgCreatePool - * - * @generated from message osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPool - */ -export class MsgCreateStableswapPool extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: osmosis.gamm.poolmodels.stableswap.v1beta1.PoolParams pool_params = 2; - */ - poolParams?: PoolParams; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin initial_pool_liquidity = 3; - */ - initialPoolLiquidity: Coin[] = []; - - /** - * @generated from field: repeated uint64 scaling_factors = 4; - */ - scalingFactors: bigint[] = []; - - /** - * @generated from field: string future_pool_governor = 5; - */ - futurePoolGovernor = ""; - - /** - * @generated from field: string scaling_factor_controller = 6; - */ - scalingFactorController = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_params", kind: "message", T: PoolParams }, - { no: 3, name: "initial_pool_liquidity", kind: "message", T: Coin, repeated: true }, - { no: 4, name: "scaling_factors", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 5, name: "future_pool_governor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "scaling_factor_controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateStableswapPool { - return new MsgCreateStableswapPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateStableswapPool { - return new MsgCreateStableswapPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateStableswapPool { - return new MsgCreateStableswapPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateStableswapPool | PlainMessage | undefined, b: MsgCreateStableswapPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateStableswapPool, a, b); - } -} - -/** - * Returns a poolID with custom poolName. - * - * @generated from message osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPoolResponse - */ -export class MsgCreateStableswapPoolResponse extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.stableswap.v1beta1.MsgCreateStableswapPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateStableswapPoolResponse { - return new MsgCreateStableswapPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateStableswapPoolResponse { - return new MsgCreateStableswapPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateStableswapPoolResponse { - return new MsgCreateStableswapPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateStableswapPoolResponse | PlainMessage | undefined, b: MsgCreateStableswapPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateStableswapPoolResponse, a, b); - } -} - -/** - * Sender must be the pool's scaling_factor_governor in order for the tx to - * succeed. Adjusts stableswap scaling factors. - * - * @generated from message osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactors - */ -export class MsgStableSwapAdjustScalingFactors extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: repeated uint64 scaling_factors = 3; - */ - scalingFactors: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactors"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "scaling_factors", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStableSwapAdjustScalingFactors { - return new MsgStableSwapAdjustScalingFactors().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStableSwapAdjustScalingFactors { - return new MsgStableSwapAdjustScalingFactors().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStableSwapAdjustScalingFactors { - return new MsgStableSwapAdjustScalingFactors().fromJsonString(jsonString, options); - } - - static equals(a: MsgStableSwapAdjustScalingFactors | PlainMessage | undefined, b: MsgStableSwapAdjustScalingFactors | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStableSwapAdjustScalingFactors, a, b); - } -} - -/** - * @generated from message osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactorsResponse - */ -export class MsgStableSwapAdjustScalingFactorsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.poolmodels.stableswap.v1beta1.MsgStableSwapAdjustScalingFactorsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgStableSwapAdjustScalingFactorsResponse { - return new MsgStableSwapAdjustScalingFactorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgStableSwapAdjustScalingFactorsResponse { - return new MsgStableSwapAdjustScalingFactorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgStableSwapAdjustScalingFactorsResponse { - return new MsgStableSwapAdjustScalingFactorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgStableSwapAdjustScalingFactorsResponse | PlainMessage | undefined, b: MsgStableSwapAdjustScalingFactorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgStableSwapAdjustScalingFactorsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/balancerPool_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/balancerPool_pb.ts deleted file mode 100644 index 864eb3e..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/balancerPool_pb.ts +++ /dev/null @@ -1,307 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/balancerPool.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -// this is a legacy package that requires additional migration logic -// in order to use the correct package. Decision made to use legacy package path -// until clear steps for migration logic and the unknowns for state breaking are -// investigated for changing proto package. - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Parameters for changing the weights in a balancer pool smoothly from - * a start weight and end weight over a period of time. - * Currently, the only smooth change supported is linear changing between - * the two weights, but more types may be added in the future. - * When these parameters are set, the weight w(t) for pool time `t` is the - * following: - * t <= start_time: w(t) = initial_pool_weights - * start_time < t <= start_time + duration: - * w(t) = initial_pool_weights + (t - start_time) * - * (target_pool_weights - initial_pool_weights) / (duration) - * t > start_time + duration: w(t) = target_pool_weights - * - * @generated from message osmosis.gamm.v1beta1.SmoothWeightChangeParams - */ -export class SmoothWeightChangeParams extends Message { - /** - * The start time for beginning the weight change. - * If a parameter change / pool instantiation leaves this blank, - * it should be generated by the state_machine as the current time. - * - * @generated from field: google.protobuf.Timestamp start_time = 1; - */ - startTime?: Timestamp; - - /** - * Duration for the weights to change over - * - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - /** - * The initial pool weights. These are copied from the pool's settings - * at the time of weight change instantiation. - * The amount PoolAsset.token.amount field is ignored if present, - * future type refactorings should just have a type with the denom & weight - * here. - * - * @generated from field: repeated osmosis.gamm.v1beta1.PoolAsset initial_pool_weights = 3; - */ - initialPoolWeights: PoolAsset[] = []; - - /** - * The target pool weights. The pool weights will change linearly with respect - * to time between start_time, and start_time + duration. The amount - * PoolAsset.token.amount field is ignored if present, future type - * refactorings should just have a type with the denom & weight here. - * - * Intermediate variable for the 'slope' of pool weights. This is equal to - * (target_pool_weights - initial_pool_weights) / (duration) - * TODO: Work out precision, and decide if this is good to add - * repeated PoolAsset poolWeightSlope = 5 [ - * (gogoproto.moretags) = "yaml:\"pool_weight_slope\"", - * (gogoproto.nullable) = false - * ]; - * - * @generated from field: repeated osmosis.gamm.v1beta1.PoolAsset target_pool_weights = 4; - */ - targetPoolWeights: PoolAsset[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.SmoothWeightChangeParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "start_time", kind: "message", T: Timestamp }, - { no: 2, name: "duration", kind: "message", T: Duration }, - { no: 3, name: "initial_pool_weights", kind: "message", T: PoolAsset, repeated: true }, - { no: 4, name: "target_pool_weights", kind: "message", T: PoolAsset, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SmoothWeightChangeParams { - return new SmoothWeightChangeParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SmoothWeightChangeParams { - return new SmoothWeightChangeParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SmoothWeightChangeParams { - return new SmoothWeightChangeParams().fromJsonString(jsonString, options); - } - - static equals(a: SmoothWeightChangeParams | PlainMessage | undefined, b: SmoothWeightChangeParams | PlainMessage | undefined): boolean { - return proto3.util.equals(SmoothWeightChangeParams, a, b); - } -} - -/** - * PoolParams defined the parameters that will be managed by the pool - * governance in the future. This params are not managed by the chain - * governance. Instead they will be managed by the token holders of the pool. - * The pool's token holders are specified in future_pool_governor. - * - * @generated from message osmosis.gamm.v1beta1.PoolParams - */ -export class PoolParams extends Message { - /** - * @generated from field: string swap_fee = 1; - */ - swapFee = ""; - - /** - * N.B.: exit fee is disabled during pool creation in x/poolmanager. While old - * pools can maintain a non-zero fee. No new pool can be created with non-zero - * fee anymore - * - * @generated from field: string exit_fee = 2; - */ - exitFee = ""; - - /** - * @generated from field: osmosis.gamm.v1beta1.SmoothWeightChangeParams smooth_weight_change_params = 3; - */ - smoothWeightChangeParams?: SmoothWeightChangeParams; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.PoolParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "exit_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "smooth_weight_change_params", kind: "message", T: SmoothWeightChangeParams }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolParams { - return new PoolParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolParams { - return new PoolParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolParams { - return new PoolParams().fromJsonString(jsonString, options); - } - - static equals(a: PoolParams | PlainMessage | undefined, b: PoolParams | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolParams, a, b); - } -} - -/** - * Pool asset is an internal struct that combines the amount of the - * token in the pool, and its balancer weight. - * This is an awkward packaging of data, - * and should be revisited in a future state migration. - * - * @generated from message osmosis.gamm.v1beta1.PoolAsset - */ -export class PoolAsset extends Message { - /** - * Coins we are talking about, - * the denomination must be unique amongst all PoolAssets for this pool. - * - * @generated from field: cosmos.base.v1beta1.Coin token = 1; - */ - token?: Coin; - - /** - * Weight that is not normalized. This weight must be less than 2^50 - * - * @generated from field: string weight = 2; - */ - weight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.PoolAsset"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token", kind: "message", T: Coin }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolAsset { - return new PoolAsset().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolAsset { - return new PoolAsset().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolAsset { - return new PoolAsset().fromJsonString(jsonString, options); - } - - static equals(a: PoolAsset | PlainMessage | undefined, b: PoolAsset | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolAsset, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.Pool - */ -export class Pool extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: uint64 id = 2; - */ - id = protoInt64.zero; - - /** - * @generated from field: osmosis.gamm.v1beta1.PoolParams pool_params = 3; - */ - poolParams?: PoolParams; - - /** - * This string specifies who will govern the pool in the future. - * Valid forms of this are: - * {token name},{duration} - * {duration} - * where {token name} if specified is the token which determines the - * governor, and if not specified is the LP token for this pool.duration is - * a time specified as 0w,1w,2w, etc. which specifies how long the token - * would need to be locked up to count in governance. 0w means no lockup. - * TODO: Further improve these docs - * - * @generated from field: string future_pool_governor = 4; - */ - futurePoolGovernor = ""; - - /** - * sum of all LP tokens sent out - * - * @generated from field: cosmos.base.v1beta1.Coin total_shares = 5; - */ - totalShares?: Coin; - - /** - * These are assumed to be sorted by denomiation. - * They contain the pool asset and the information about the weight - * - * @generated from field: repeated osmosis.gamm.v1beta1.PoolAsset pool_assets = 6; - */ - poolAssets: PoolAsset[] = []; - - /** - * sum of all non-normalized pool weights - * - * @generated from field: string total_weight = 7; - */ - totalWeight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.Pool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "pool_params", kind: "message", T: PoolParams }, - { no: 4, name: "future_pool_governor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "total_shares", kind: "message", T: Coin }, - { no: 6, name: "pool_assets", kind: "message", T: PoolAsset, repeated: true }, - { no: 7, name: "total_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Pool { - return new Pool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Pool { - return new Pool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Pool { - return new Pool().fromJsonString(jsonString, options); - } - - static equals(a: Pool | PlainMessage | undefined, b: Pool | PlainMessage | undefined): boolean { - return proto3.util.equals(Pool, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts deleted file mode 100644 index 212c6bc..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,69 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/genesis.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { MigrationRecords } from "./shared_pb.js"; - -/** - * GenesisState defines the gamm module's genesis state. - * - * @generated from message osmosis.gamm.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - /** - * will be renamed to next_pool_id in an upcoming version - * - * @generated from field: uint64 next_pool_number = 2; - */ - nextPoolNumber = protoInt64.zero; - - /** - * @generated from field: osmosis.gamm.v1beta1.Params params = 3; - */ - params?: Params; - - /** - * @generated from field: osmosis.gamm.v1beta1.MigrationRecords migration_records = 4; - */ - migrationRecords?: MigrationRecords; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - { no: 2, name: "next_pool_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "params", kind: "message", T: Params }, - { no: 4, name: "migration_records", kind: "message", T: MigrationRecords }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts deleted file mode 100644 index d103156..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/gov_pb.ts +++ /dev/null @@ -1,299 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/gov.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { BalancerToConcentratedPoolLink } from "./shared_pb.js"; - -/** - * ReplaceMigrationRecordsProposal is a gov Content type for updating the - * migration records. If a ReplaceMigrationRecordsProposal passes, the - * proposal’s records override the existing MigrationRecords set in the module. - * Each record specifies a single connection between a single balancer pool and - * a single concentrated pool. - * - * @generated from message osmosis.gamm.v1beta1.ReplaceMigrationRecordsProposal - */ -export class ReplaceMigrationRecordsProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.gamm.v1beta1.BalancerToConcentratedPoolLink records = 3; - */ - records: BalancerToConcentratedPoolLink[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.ReplaceMigrationRecordsProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "records", kind: "message", T: BalancerToConcentratedPoolLink, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ReplaceMigrationRecordsProposal { - return new ReplaceMigrationRecordsProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ReplaceMigrationRecordsProposal { - return new ReplaceMigrationRecordsProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ReplaceMigrationRecordsProposal { - return new ReplaceMigrationRecordsProposal().fromJsonString(jsonString, options); - } - - static equals(a: ReplaceMigrationRecordsProposal | PlainMessage | undefined, b: ReplaceMigrationRecordsProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(ReplaceMigrationRecordsProposal, a, b); - } -} - -/** - * For example: if the existing DistrRecords were: - * [(Balancer 1, CL 5), (Balancer 2, CL 6), (Balancer 3, CL 7)] - * And an UpdateMigrationRecordsProposal includes - * [(Balancer 2, CL 0), (Balancer 3, CL 4), (Balancer 4, CL 10)] - * This would leave Balancer 1 record, delete Balancer 2 record, - * Edit Balancer 3 record, and Add Balancer 4 record - * The result MigrationRecords in state would be: - * [(Balancer 1, CL 5), (Balancer 3, CL 4), (Balancer 4, CL 10)] - * - * @generated from message osmosis.gamm.v1beta1.UpdateMigrationRecordsProposal - */ -export class UpdateMigrationRecordsProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.gamm.v1beta1.BalancerToConcentratedPoolLink records = 3; - */ - records: BalancerToConcentratedPoolLink[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.UpdateMigrationRecordsProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "records", kind: "message", T: BalancerToConcentratedPoolLink, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateMigrationRecordsProposal { - return new UpdateMigrationRecordsProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateMigrationRecordsProposal { - return new UpdateMigrationRecordsProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateMigrationRecordsProposal { - return new UpdateMigrationRecordsProposal().fromJsonString(jsonString, options); - } - - static equals(a: UpdateMigrationRecordsProposal | PlainMessage | undefined, b: UpdateMigrationRecordsProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateMigrationRecordsProposal, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.PoolRecordWithCFMMLink - */ -export class PoolRecordWithCFMMLink extends Message { - /** - * @generated from field: string denom0 = 1; - */ - denom0 = ""; - - /** - * @generated from field: string denom1 = 2; - */ - denom1 = ""; - - /** - * @generated from field: uint64 tick_spacing = 3; - */ - tickSpacing = protoInt64.zero; - - /** - * @generated from field: string exponent_at_price_one = 4; - */ - exponentAtPriceOne = ""; - - /** - * @generated from field: string spread_factor = 5; - */ - spreadFactor = ""; - - /** - * @generated from field: uint64 balancer_pool_id = 6; - */ - balancerPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.PoolRecordWithCFMMLink"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "tick_spacing", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "exponent_at_price_one", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "spread_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "balancer_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolRecordWithCFMMLink { - return new PoolRecordWithCFMMLink().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolRecordWithCFMMLink { - return new PoolRecordWithCFMMLink().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolRecordWithCFMMLink { - return new PoolRecordWithCFMMLink().fromJsonString(jsonString, options); - } - - static equals(a: PoolRecordWithCFMMLink | PlainMessage | undefined, b: PoolRecordWithCFMMLink | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolRecordWithCFMMLink, a, b); - } -} - -/** - * CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal is a gov Content type - * for creating concentrated liquidity pools and linking it to a CFMM pool. - * - * @generated from message osmosis.gamm.v1beta1.CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal - */ -export class CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.gamm.v1beta1.PoolRecordWithCFMMLink pool_records_with_cfmm_link = 3; - */ - poolRecordsWithCfmmLink: PoolRecordWithCFMMLink[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pool_records_with_cfmm_link", kind: "message", T: PoolRecordWithCFMMLink, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal { - return new CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal { - return new CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal { - return new CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal().fromJsonString(jsonString, options); - } - - static equals(a: CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal | PlainMessage | undefined, b: CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateConcentratedLiquidityPoolsAndLinktoCFMMProposal, a, b); - } -} - -/** - * SetScalingFactorControllerProposal is a gov Content type for updating the - * scaling factor controller address of a stableswap pool - * - * @generated from message osmosis.gamm.v1beta1.SetScalingFactorControllerProposal - */ -export class SetScalingFactorControllerProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: uint64 pool_id = 3; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string controller_address = 4; - */ - controllerAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.SetScalingFactorControllerProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "controller_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SetScalingFactorControllerProposal { - return new SetScalingFactorControllerProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SetScalingFactorControllerProposal { - return new SetScalingFactorControllerProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SetScalingFactorControllerProposal { - return new SetScalingFactorControllerProposal().fromJsonString(jsonString, options); - } - - static equals(a: SetScalingFactorControllerProposal | PlainMessage | undefined, b: SetScalingFactorControllerProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(SetScalingFactorControllerProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/params_pb.ts deleted file mode 100644 index e5c0758..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/params_pb.ts +++ /dev/null @@ -1,48 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/params.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Params holds parameters for the incentives module - * - * @generated from message osmosis.gamm.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin pool_creation_fee = 1; - */ - poolCreationFee: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_creation_fee", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts deleted file mode 100644 index ae8ef69..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,226 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/query.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ParamsRequest, ParamsResponse, QueryCalcExitPoolCoinsFromSharesRequest, QueryCalcExitPoolCoinsFromSharesResponse, QueryCalcJoinPoolNoSwapSharesRequest, QueryCalcJoinPoolNoSwapSharesResponse, QueryCalcJoinPoolSharesRequest, QueryCalcJoinPoolSharesResponse, QueryCFMMConcentratedPoolLinksRequest, QueryCFMMConcentratedPoolLinksResponse, QueryConcentratedPoolIdLinkFromCFMMRequest, QueryConcentratedPoolIdLinkFromCFMMResponse, QueryNumPoolsRequest, QueryNumPoolsResponse, QueryPoolParamsRequest, QueryPoolParamsResponse, QueryPoolRequest, QueryPoolResponse, QueryPoolsRequest, QueryPoolsResponse, QueryPoolsWithFilterRequest, QueryPoolsWithFilterResponse, QueryPoolTypeRequest, QueryPoolTypeResponse, QuerySpotPriceRequest, QuerySpotPriceResponse, QuerySwapExactAmountInRequest, QuerySwapExactAmountInResponse, QuerySwapExactAmountOutRequest, QuerySwapExactAmountOutResponse, QueryTotalLiquidityRequest, QueryTotalLiquidityResponse, QueryTotalPoolLiquidityRequest, QueryTotalPoolLiquidityResponse, QueryTotalSharesRequest, QueryTotalSharesResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.gamm.v1beta1.Query"; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Query.Pools - */ -export const QueryPoolsService = { - typeName: TYPE_NAME, - method: "Pools", - Request: QueryPoolsRequest, - Response: QueryPoolsResponse, -} as const; - -/** - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from rpc osmosis.gamm.v1beta1.Query.NumPools - * @deprecated - */ -export const QueryNumPoolsService = { - typeName: TYPE_NAME, - method: "NumPools", - Request: QueryNumPoolsRequest, - Response: QueryNumPoolsResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Query.TotalLiquidity - */ -export const QueryTotalLiquidityService = { - typeName: TYPE_NAME, - method: "TotalLiquidity", - Request: QueryTotalLiquidityRequest, - Response: QueryTotalLiquidityResponse, -} as const; - -/** - * PoolsWithFilter allows you to query specific pools with requested - * parameters - * - * @generated from rpc osmosis.gamm.v1beta1.Query.PoolsWithFilter - */ -export const QueryPoolsWithFilterService = { - typeName: TYPE_NAME, - method: "PoolsWithFilter", - Request: QueryPoolsWithFilterRequest, - Response: QueryPoolsWithFilterResponse, -} as const; - -/** - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from rpc osmosis.gamm.v1beta1.Query.Pool - * @deprecated - */ -export const QueryPoolService = { - typeName: TYPE_NAME, - method: "Pool", - Request: QueryPoolRequest, - Response: QueryPoolResponse, -} as const; - -/** - * PoolType returns the type of the pool. - * Returns "Balancer" as a string literal when the pool is a balancer pool. - * Errors if the pool is failed to be type caseted. - * - * @generated from rpc osmosis.gamm.v1beta1.Query.PoolType - */ -export const QueryPoolTypeService = { - typeName: TYPE_NAME, - method: "PoolType", - Request: QueryPoolTypeRequest, - Response: QueryPoolTypeResponse, -} as const; - -/** - * Simulates joining pool without a swap. Returns the amount of shares you'd - * get and tokens needed to provide - * - * @generated from rpc osmosis.gamm.v1beta1.Query.CalcJoinPoolNoSwapShares - */ -export const QueryCalcJoinPoolNoSwapSharesService = { - typeName: TYPE_NAME, - method: "CalcJoinPoolNoSwapShares", - Request: QueryCalcJoinPoolNoSwapSharesRequest, - Response: QueryCalcJoinPoolNoSwapSharesResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Query.CalcJoinPoolShares - */ -export const QueryCalcJoinPoolSharesService = { - typeName: TYPE_NAME, - method: "CalcJoinPoolShares", - Request: QueryCalcJoinPoolSharesRequest, - Response: QueryCalcJoinPoolSharesResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Query.CalcExitPoolCoinsFromShares - */ -export const QueryCalcExitPoolCoinsFromSharesService = { - typeName: TYPE_NAME, - method: "CalcExitPoolCoinsFromShares", - Request: QueryCalcExitPoolCoinsFromSharesRequest, - Response: QueryCalcExitPoolCoinsFromSharesResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Query.PoolParams - */ -export const QueryPoolParamsService = { - typeName: TYPE_NAME, - method: "PoolParams", - Request: QueryPoolParamsRequest, - Response: QueryPoolParamsResponse, -} as const; - -/** - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from rpc osmosis.gamm.v1beta1.Query.TotalPoolLiquidity - * @deprecated - */ -export const QueryTotalPoolLiquidityService = { - typeName: TYPE_NAME, - method: "TotalPoolLiquidity", - Request: QueryTotalPoolLiquidityRequest, - Response: QueryTotalPoolLiquidityResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Query.TotalShares - */ -export const QueryTotalSharesService = { - typeName: TYPE_NAME, - method: "TotalShares", - Request: QueryTotalSharesRequest, - Response: QueryTotalSharesResponse, -} as const; - -/** - * SpotPrice defines a gRPC query handler that returns the spot price given - * a base denomination and a quote denomination. - * - * @generated from rpc osmosis.gamm.v1beta1.Query.SpotPrice - * @deprecated - */ -export const QuerySpotPriceService = { - typeName: TYPE_NAME, - method: "SpotPrice", - Request: QuerySpotPriceRequest, - Response: QuerySpotPriceResponse, -} as const; - -/** - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from rpc osmosis.gamm.v1beta1.Query.EstimateSwapExactAmountIn - * @deprecated - */ -export const QueryEstimateSwapExactAmountInService = { - typeName: TYPE_NAME, - method: "EstimateSwapExactAmountIn", - Request: QuerySwapExactAmountInRequest, - Response: QuerySwapExactAmountInResponse, -} as const; - -/** - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from rpc osmosis.gamm.v1beta1.Query.EstimateSwapExactAmountOut - * @deprecated - */ -export const QueryEstimateSwapExactAmountOutService = { - typeName: TYPE_NAME, - method: "EstimateSwapExactAmountOut", - Request: QuerySwapExactAmountOutRequest, - Response: QuerySwapExactAmountOutResponse, -} as const; - -/** - * ConcentratedPoolIdLinkFromBalancer returns the pool id of the concentrated - * pool that is linked with the given CFMM pool. - * - * @generated from rpc osmosis.gamm.v1beta1.Query.ConcentratedPoolIdLinkFromCFMM - */ -export const QueryConcentratedPoolIdLinkFromCFMMService = { - typeName: TYPE_NAME, - method: "ConcentratedPoolIdLinkFromCFMM", - Request: QueryConcentratedPoolIdLinkFromCFMMRequest, - Response: QueryConcentratedPoolIdLinkFromCFMMResponse, -} as const; - -/** - * CFMMConcentratedPoolLinks returns migration links between CFMM and - * Concentrated pools. - * - * @generated from rpc osmosis.gamm.v1beta1.Query.CFMMConcentratedPoolLinks - */ -export const QueryCFMMConcentratedPoolLinksService = { - typeName: TYPE_NAME, - method: "CFMMConcentratedPoolLinks", - Request: QueryCFMMConcentratedPoolLinksRequest, - Response: QueryCFMMConcentratedPoolLinksResponse, -} as const; - -/** - * Params returns gamm module params. - * - * @generated from rpc osmosis.gamm.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: ParamsRequest, - Response: ParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts deleted file mode 100644 index eb0189a..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/query_pb.ts +++ /dev/null @@ -1,1497 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/query.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { SwapAmountInRoute, SwapAmountOutRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; -import { MigrationRecords } from "./shared_pb.js"; - -/** - * =============================== Params - * - * @generated from message osmosis.gamm.v1beta1.ParamsRequest - */ -export class ParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.ParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { - return new ParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.ParamsResponse - */ -export class ParamsResponse extends Message { - /** - * @generated from field: osmosis.gamm.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.ParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { - return new ParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsResponse, a, b); - } -} - -/** - * =============================== Pool - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from message osmosis.gamm.v1beta1.QueryPoolRequest - * @deprecated - */ -export class QueryPoolRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRequest { - return new QueryPoolRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRequest { - return new QueryPoolRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolRequest { - return new QueryPoolRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolRequest | PlainMessage | undefined, b: QueryPoolRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolRequest, a, b); - } -} - -/** - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from message osmosis.gamm.v1beta1.QueryPoolResponse - * @deprecated - */ -export class QueryPoolResponse extends Message { - /** - * @generated from field: google.protobuf.Any pool = 1; - */ - pool?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { - return new QueryPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { - return new QueryPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { - return new QueryPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolResponse, a, b); - } -} - -/** - * =============================== Pools - * - * @generated from message osmosis.gamm.v1beta1.QueryPoolsRequest - */ -export class QueryPoolsRequest extends Message { - /** - * pagination defines an optional pagination for the request. - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsRequest { - return new QueryPoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsRequest { - return new QueryPoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolsRequest { - return new QueryPoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolsRequest | PlainMessage | undefined, b: QueryPoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryPoolsResponse - */ -export class QueryPoolsResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsResponse { - return new QueryPoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsResponse { - return new QueryPoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolsResponse { - return new QueryPoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolsResponse | PlainMessage | undefined, b: QueryPoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolsResponse, a, b); - } -} - -/** - * =============================== NumPools - * - * @generated from message osmosis.gamm.v1beta1.QueryNumPoolsRequest - * @deprecated - */ -export class QueryNumPoolsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryNumPoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNumPoolsRequest { - return new QueryNumPoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNumPoolsRequest { - return new QueryNumPoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNumPoolsRequest { - return new QueryNumPoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryNumPoolsRequest | PlainMessage | undefined, b: QueryNumPoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNumPoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryNumPoolsResponse - * @deprecated - */ -export class QueryNumPoolsResponse extends Message { - /** - * @generated from field: uint64 num_pools = 1; - */ - numPools = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryNumPoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "num_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryNumPoolsResponse { - return new QueryNumPoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryNumPoolsResponse { - return new QueryNumPoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryNumPoolsResponse { - return new QueryNumPoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryNumPoolsResponse | PlainMessage | undefined, b: QueryNumPoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryNumPoolsResponse, a, b); - } -} - -/** - * =============================== PoolType - * - * @generated from message osmosis.gamm.v1beta1.QueryPoolTypeRequest - */ -export class QueryPoolTypeRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolTypeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolTypeRequest { - return new QueryPoolTypeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolTypeRequest { - return new QueryPoolTypeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolTypeRequest { - return new QueryPoolTypeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolTypeRequest | PlainMessage | undefined, b: QueryPoolTypeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolTypeRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryPoolTypeResponse - */ -export class QueryPoolTypeResponse extends Message { - /** - * @generated from field: string pool_type = 1; - */ - poolType = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolTypeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolTypeResponse { - return new QueryPoolTypeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolTypeResponse { - return new QueryPoolTypeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolTypeResponse { - return new QueryPoolTypeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolTypeResponse | PlainMessage | undefined, b: QueryPoolTypeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolTypeResponse, a, b); - } -} - -/** - * =============================== CalcJoinPoolShares - * - * @generated from message osmosis.gamm.v1beta1.QueryCalcJoinPoolSharesRequest - */ -export class QueryCalcJoinPoolSharesRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_in = 2; - */ - tokensIn: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCalcJoinPoolSharesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "tokens_in", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolSharesRequest { - return new QueryCalcJoinPoolSharesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolSharesRequest { - return new QueryCalcJoinPoolSharesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolSharesRequest { - return new QueryCalcJoinPoolSharesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCalcJoinPoolSharesRequest | PlainMessage | undefined, b: QueryCalcJoinPoolSharesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCalcJoinPoolSharesRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryCalcJoinPoolSharesResponse - */ -export class QueryCalcJoinPoolSharesResponse extends Message { - /** - * @generated from field: string share_out_amount = 1; - */ - shareOutAmount = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_out = 2; - */ - tokensOut: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCalcJoinPoolSharesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "share_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "tokens_out", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolSharesResponse { - return new QueryCalcJoinPoolSharesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolSharesResponse { - return new QueryCalcJoinPoolSharesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolSharesResponse { - return new QueryCalcJoinPoolSharesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCalcJoinPoolSharesResponse | PlainMessage | undefined, b: QueryCalcJoinPoolSharesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCalcJoinPoolSharesResponse, a, b); - } -} - -/** - * =============================== CalcExitPoolCoinsFromShares - * - * @generated from message osmosis.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesRequest - */ -export class QueryCalcExitPoolCoinsFromSharesRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string share_in_amount = 2; - */ - shareInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "share_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcExitPoolCoinsFromSharesRequest { - return new QueryCalcExitPoolCoinsFromSharesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcExitPoolCoinsFromSharesRequest { - return new QueryCalcExitPoolCoinsFromSharesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCalcExitPoolCoinsFromSharesRequest { - return new QueryCalcExitPoolCoinsFromSharesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCalcExitPoolCoinsFromSharesRequest | PlainMessage | undefined, b: QueryCalcExitPoolCoinsFromSharesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCalcExitPoolCoinsFromSharesRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse - */ -export class QueryCalcExitPoolCoinsFromSharesResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_out = 1; - */ - tokensOut: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tokens_out", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcExitPoolCoinsFromSharesResponse { - return new QueryCalcExitPoolCoinsFromSharesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcExitPoolCoinsFromSharesResponse { - return new QueryCalcExitPoolCoinsFromSharesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCalcExitPoolCoinsFromSharesResponse { - return new QueryCalcExitPoolCoinsFromSharesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCalcExitPoolCoinsFromSharesResponse | PlainMessage | undefined, b: QueryCalcExitPoolCoinsFromSharesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCalcExitPoolCoinsFromSharesResponse, a, b); - } -} - -/** - * =============================== PoolParams - * - * @generated from message osmosis.gamm.v1beta1.QueryPoolParamsRequest - */ -export class QueryPoolParamsRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolParamsRequest { - return new QueryPoolParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolParamsRequest { - return new QueryPoolParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolParamsRequest { - return new QueryPoolParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolParamsRequest | PlainMessage | undefined, b: QueryPoolParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryPoolParamsResponse - */ -export class QueryPoolParamsResponse extends Message { - /** - * @generated from field: google.protobuf.Any params = 1; - */ - params?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolParamsResponse { - return new QueryPoolParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolParamsResponse { - return new QueryPoolParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolParamsResponse { - return new QueryPoolParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolParamsResponse | PlainMessage | undefined, b: QueryPoolParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolParamsResponse, a, b); - } -} - -/** - * =============================== PoolLiquidity - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from message osmosis.gamm.v1beta1.QueryTotalPoolLiquidityRequest - * @deprecated - */ -export class QueryTotalPoolLiquidityRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryTotalPoolLiquidityRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPoolLiquidityRequest { - return new QueryTotalPoolLiquidityRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPoolLiquidityRequest { - return new QueryTotalPoolLiquidityRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalPoolLiquidityRequest { - return new QueryTotalPoolLiquidityRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalPoolLiquidityRequest | PlainMessage | undefined, b: QueryTotalPoolLiquidityRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalPoolLiquidityRequest, a, b); - } -} - -/** - * Deprecated: please use the alternative in x/poolmanager - * - * @generated from message osmosis.gamm.v1beta1.QueryTotalPoolLiquidityResponse - * @deprecated - */ -export class QueryTotalPoolLiquidityResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin liquidity = 1; - */ - liquidity: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryTotalPoolLiquidityResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPoolLiquidityResponse { - return new QueryTotalPoolLiquidityResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPoolLiquidityResponse { - return new QueryTotalPoolLiquidityResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalPoolLiquidityResponse { - return new QueryTotalPoolLiquidityResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalPoolLiquidityResponse | PlainMessage | undefined, b: QueryTotalPoolLiquidityResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalPoolLiquidityResponse, a, b); - } -} - -/** - * =============================== TotalShares - * - * @generated from message osmosis.gamm.v1beta1.QueryTotalSharesRequest - */ -export class QueryTotalSharesRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryTotalSharesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSharesRequest { - return new QueryTotalSharesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSharesRequest { - return new QueryTotalSharesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalSharesRequest { - return new QueryTotalSharesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalSharesRequest | PlainMessage | undefined, b: QueryTotalSharesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalSharesRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryTotalSharesResponse - */ -export class QueryTotalSharesResponse extends Message { - /** - * @generated from field: cosmos.base.v1beta1.Coin total_shares = 1; - */ - totalShares?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryTotalSharesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_shares", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSharesResponse { - return new QueryTotalSharesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSharesResponse { - return new QueryTotalSharesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalSharesResponse { - return new QueryTotalSharesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalSharesResponse | PlainMessage | undefined, b: QueryTotalSharesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalSharesResponse, a, b); - } -} - -/** - * =============================== CalcJoinPoolNoSwapShares - * - * @generated from message osmosis.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest - */ -export class QueryCalcJoinPoolNoSwapSharesRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_in = 2; - */ - tokensIn: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "tokens_in", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolNoSwapSharesRequest { - return new QueryCalcJoinPoolNoSwapSharesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolNoSwapSharesRequest { - return new QueryCalcJoinPoolNoSwapSharesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolNoSwapSharesRequest { - return new QueryCalcJoinPoolNoSwapSharesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCalcJoinPoolNoSwapSharesRequest | PlainMessage | undefined, b: QueryCalcJoinPoolNoSwapSharesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCalcJoinPoolNoSwapSharesRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse - */ -export class QueryCalcJoinPoolNoSwapSharesResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_out = 1; - */ - tokensOut: Coin[] = []; - - /** - * @generated from field: string shares_out = 2; - */ - sharesOut = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tokens_out", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "shares_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolNoSwapSharesResponse { - return new QueryCalcJoinPoolNoSwapSharesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolNoSwapSharesResponse { - return new QueryCalcJoinPoolNoSwapSharesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolNoSwapSharesResponse { - return new QueryCalcJoinPoolNoSwapSharesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCalcJoinPoolNoSwapSharesResponse | PlainMessage | undefined, b: QueryCalcJoinPoolNoSwapSharesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCalcJoinPoolNoSwapSharesResponse, a, b); - } -} - -/** - * QuerySpotPriceRequest defines the gRPC request structure for a SpotPrice - * query. - * - * @generated from message osmosis.gamm.v1beta1.QuerySpotPriceRequest - * @deprecated - */ -export class QuerySpotPriceRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset_denom = 2; - */ - baseAssetDenom = ""; - - /** - * @generated from field: string quote_asset_denom = 3; - */ - quoteAssetDenom = ""; - - /** - * DEPRECATED - * - * @generated from field: bool withSwapFee = 4 [deprecated = true]; - * @deprecated - */ - withSwapFee = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QuerySpotPriceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "withSwapFee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceRequest { - return new QuerySpotPriceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceRequest { - return new QuerySpotPriceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceRequest { - return new QuerySpotPriceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpotPriceRequest | PlainMessage | undefined, b: QuerySpotPriceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpotPriceRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryPoolsWithFilterRequest - */ -export class QueryPoolsWithFilterRequest extends Message { - /** - * String of the coins in single string separated by comma. Ex) - * 10uatom,100uosmo - * - * @generated from field: string min_liquidity = 1; - */ - minLiquidity = ""; - - /** - * @generated from field: string pool_type = 2; - */ - poolType = ""; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolsWithFilterRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "min_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsWithFilterRequest { - return new QueryPoolsWithFilterRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsWithFilterRequest { - return new QueryPoolsWithFilterRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolsWithFilterRequest { - return new QueryPoolsWithFilterRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolsWithFilterRequest | PlainMessage | undefined, b: QueryPoolsWithFilterRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolsWithFilterRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryPoolsWithFilterResponse - */ -export class QueryPoolsWithFilterResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - /** - * pagination defines the pagination in the response. - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryPoolsWithFilterResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsWithFilterResponse { - return new QueryPoolsWithFilterResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsWithFilterResponse { - return new QueryPoolsWithFilterResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryPoolsWithFilterResponse { - return new QueryPoolsWithFilterResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryPoolsWithFilterResponse | PlainMessage | undefined, b: QueryPoolsWithFilterResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryPoolsWithFilterResponse, a, b); - } -} - -/** - * QuerySpotPriceResponse defines the gRPC response structure for a SpotPrice - * query. - * - * @generated from message osmosis.gamm.v1beta1.QuerySpotPriceResponse - * @deprecated - */ -export class QuerySpotPriceResponse extends Message { - /** - * String of the Dec. Ex) 10.203uatom - * - * @generated from field: string spot_price = 1; - */ - spotPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QuerySpotPriceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceResponse { - return new QuerySpotPriceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceResponse { - return new QuerySpotPriceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceResponse { - return new QuerySpotPriceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpotPriceResponse | PlainMessage | undefined, b: QuerySpotPriceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpotPriceResponse, a, b); - } -} - -/** - * =============================== EstimateSwapExactAmountIn - * - * @generated from message osmosis.gamm.v1beta1.QuerySwapExactAmountInRequest - * @deprecated - */ -export class QuerySwapExactAmountInRequest extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in = 3; - */ - tokenIn = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountInRoute routes = 4; - */ - routes: SwapAmountInRoute[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QuerySwapExactAmountInRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountInRequest { - return new QuerySwapExactAmountInRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountInRequest { - return new QuerySwapExactAmountInRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountInRequest { - return new QuerySwapExactAmountInRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySwapExactAmountInRequest | PlainMessage | undefined, b: QuerySwapExactAmountInRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySwapExactAmountInRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QuerySwapExactAmountInResponse - * @deprecated - */ -export class QuerySwapExactAmountInResponse extends Message { - /** - * @generated from field: string token_out_amount = 1; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QuerySwapExactAmountInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountInResponse { - return new QuerySwapExactAmountInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountInResponse { - return new QuerySwapExactAmountInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountInResponse { - return new QuerySwapExactAmountInResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySwapExactAmountInResponse | PlainMessage | undefined, b: QuerySwapExactAmountInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySwapExactAmountInResponse, a, b); - } -} - -/** - * =============================== EstimateSwapExactAmountOut - * - * @generated from message osmosis.gamm.v1beta1.QuerySwapExactAmountOutRequest - * @deprecated - */ -export class QuerySwapExactAmountOutRequest extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountOutRoute routes = 3; - */ - routes: SwapAmountOutRoute[] = []; - - /** - * @generated from field: string token_out = 4; - */ - tokenOut = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QuerySwapExactAmountOutRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, - { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountOutRequest { - return new QuerySwapExactAmountOutRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountOutRequest { - return new QuerySwapExactAmountOutRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountOutRequest { - return new QuerySwapExactAmountOutRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySwapExactAmountOutRequest | PlainMessage | undefined, b: QuerySwapExactAmountOutRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySwapExactAmountOutRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QuerySwapExactAmountOutResponse - * @deprecated - */ -export class QuerySwapExactAmountOutResponse extends Message { - /** - * @generated from field: string token_in_amount = 1; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QuerySwapExactAmountOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountOutResponse { - return new QuerySwapExactAmountOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountOutResponse { - return new QuerySwapExactAmountOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountOutResponse { - return new QuerySwapExactAmountOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySwapExactAmountOutResponse | PlainMessage | undefined, b: QuerySwapExactAmountOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySwapExactAmountOutResponse, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryTotalLiquidityRequest - */ -export class QueryTotalLiquidityRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryTotalLiquidityRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalLiquidityRequest { - return new QueryTotalLiquidityRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalLiquidityRequest { - return new QueryTotalLiquidityRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalLiquidityRequest { - return new QueryTotalLiquidityRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalLiquidityRequest | PlainMessage | undefined, b: QueryTotalLiquidityRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalLiquidityRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryTotalLiquidityResponse - */ -export class QueryTotalLiquidityResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin liquidity = 1; - */ - liquidity: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryTotalLiquidityResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalLiquidityResponse { - return new QueryTotalLiquidityResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalLiquidityResponse { - return new QueryTotalLiquidityResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalLiquidityResponse { - return new QueryTotalLiquidityResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalLiquidityResponse | PlainMessage | undefined, b: QueryTotalLiquidityResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalLiquidityResponse, a, b); - } -} - -/** - * =============================== QueryConcentratedPoolIdLinkFromCFMM - * - * @generated from message osmosis.gamm.v1beta1.QueryConcentratedPoolIdLinkFromCFMMRequest - */ -export class QueryConcentratedPoolIdLinkFromCFMMRequest extends Message { - /** - * @generated from field: uint64 cfmm_pool_id = 1; - */ - cfmmPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryConcentratedPoolIdLinkFromCFMMRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cfmm_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConcentratedPoolIdLinkFromCFMMRequest { - return new QueryConcentratedPoolIdLinkFromCFMMRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConcentratedPoolIdLinkFromCFMMRequest { - return new QueryConcentratedPoolIdLinkFromCFMMRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConcentratedPoolIdLinkFromCFMMRequest { - return new QueryConcentratedPoolIdLinkFromCFMMRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryConcentratedPoolIdLinkFromCFMMRequest | PlainMessage | undefined, b: QueryConcentratedPoolIdLinkFromCFMMRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConcentratedPoolIdLinkFromCFMMRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryConcentratedPoolIdLinkFromCFMMResponse - */ -export class QueryConcentratedPoolIdLinkFromCFMMResponse extends Message { - /** - * @generated from field: uint64 concentrated_pool_id = 1; - */ - concentratedPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryConcentratedPoolIdLinkFromCFMMResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "concentrated_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryConcentratedPoolIdLinkFromCFMMResponse { - return new QueryConcentratedPoolIdLinkFromCFMMResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryConcentratedPoolIdLinkFromCFMMResponse { - return new QueryConcentratedPoolIdLinkFromCFMMResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryConcentratedPoolIdLinkFromCFMMResponse { - return new QueryConcentratedPoolIdLinkFromCFMMResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryConcentratedPoolIdLinkFromCFMMResponse | PlainMessage | undefined, b: QueryConcentratedPoolIdLinkFromCFMMResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryConcentratedPoolIdLinkFromCFMMResponse, a, b); - } -} - -/** - * =============================== QueryCFMMConcentratedPoolLinks - * - * @generated from message osmosis.gamm.v1beta1.QueryCFMMConcentratedPoolLinksRequest - */ -export class QueryCFMMConcentratedPoolLinksRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCFMMConcentratedPoolLinksRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCFMMConcentratedPoolLinksRequest { - return new QueryCFMMConcentratedPoolLinksRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCFMMConcentratedPoolLinksRequest { - return new QueryCFMMConcentratedPoolLinksRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCFMMConcentratedPoolLinksRequest { - return new QueryCFMMConcentratedPoolLinksRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCFMMConcentratedPoolLinksRequest | PlainMessage | undefined, b: QueryCFMMConcentratedPoolLinksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCFMMConcentratedPoolLinksRequest, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.QueryCFMMConcentratedPoolLinksResponse - */ -export class QueryCFMMConcentratedPoolLinksResponse extends Message { - /** - * @generated from field: osmosis.gamm.v1beta1.MigrationRecords migration_records = 1; - */ - migrationRecords?: MigrationRecords; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.QueryCFMMConcentratedPoolLinksResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "migration_records", kind: "message", T: MigrationRecords }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCFMMConcentratedPoolLinksResponse { - return new QueryCFMMConcentratedPoolLinksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCFMMConcentratedPoolLinksResponse { - return new QueryCFMMConcentratedPoolLinksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCFMMConcentratedPoolLinksResponse { - return new QueryCFMMConcentratedPoolLinksResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCFMMConcentratedPoolLinksResponse | PlainMessage | undefined, b: QueryCFMMConcentratedPoolLinksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCFMMConcentratedPoolLinksResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/shared_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/shared_pb.ts deleted file mode 100644 index a52f0d8..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/shared_pb.ts +++ /dev/null @@ -1,98 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/shared.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * MigrationRecords contains all the links between balancer and concentrated - * pools - * - * @generated from message osmosis.gamm.v1beta1.MigrationRecords - */ -export class MigrationRecords extends Message { - /** - * @generated from field: repeated osmosis.gamm.v1beta1.BalancerToConcentratedPoolLink balancer_to_concentrated_pool_links = 1; - */ - balancerToConcentratedPoolLinks: BalancerToConcentratedPoolLink[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MigrationRecords"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balancer_to_concentrated_pool_links", kind: "message", T: BalancerToConcentratedPoolLink, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MigrationRecords { - return new MigrationRecords().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MigrationRecords { - return new MigrationRecords().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MigrationRecords { - return new MigrationRecords().fromJsonString(jsonString, options); - } - - static equals(a: MigrationRecords | PlainMessage | undefined, b: MigrationRecords | PlainMessage | undefined): boolean { - return proto3.util.equals(MigrationRecords, a, b); - } -} - -/** - * BalancerToConcentratedPoolLink defines a single link between a single - * balancer pool and a single concentrated liquidity pool. This link is used to - * allow a balancer pool to migrate to a single canonical full range - * concentrated liquidity pool position - * A balancer pool can be linked to a maximum of one cl pool, and a cl pool can - * be linked to a maximum of one balancer pool. - * - * @generated from message osmosis.gamm.v1beta1.BalancerToConcentratedPoolLink - */ -export class BalancerToConcentratedPoolLink extends Message { - /** - * @generated from field: uint64 balancer_pool_id = 1; - */ - balancerPoolId = protoInt64.zero; - - /** - * @generated from field: uint64 cl_pool_id = 2; - */ - clPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.BalancerToConcentratedPoolLink"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balancer_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "cl_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BalancerToConcentratedPoolLink { - return new BalancerToConcentratedPoolLink().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BalancerToConcentratedPoolLink { - return new BalancerToConcentratedPoolLink().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BalancerToConcentratedPoolLink { - return new BalancerToConcentratedPoolLink().fromJsonString(jsonString, options); - } - - static equals(a: BalancerToConcentratedPoolLink | PlainMessage | undefined, b: BalancerToConcentratedPoolLink | PlainMessage | undefined): boolean { - return proto3.util.equals(BalancerToConcentratedPoolLink, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_cosmes.ts deleted file mode 100644 index eb5aba7..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,89 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/tx.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgExitPool, MsgExitPoolResponse, MsgExitSwapExternAmountOut, MsgExitSwapExternAmountOutResponse, MsgExitSwapShareAmountIn, MsgExitSwapShareAmountInResponse, MsgJoinPool, MsgJoinPoolResponse, MsgJoinSwapExternAmountIn, MsgJoinSwapExternAmountInResponse, MsgJoinSwapShareAmountOut, MsgJoinSwapShareAmountOutResponse, MsgSwapExactAmountIn, MsgSwapExactAmountInResponse, MsgSwapExactAmountOut, MsgSwapExactAmountOutResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.gamm.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.JoinPool - */ -export const MsgJoinPoolService = { - typeName: TYPE_NAME, - method: "JoinPool", - Request: MsgJoinPool, - Response: MsgJoinPoolResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.ExitPool - */ -export const MsgExitPoolService = { - typeName: TYPE_NAME, - method: "ExitPool", - Request: MsgExitPool, - Response: MsgExitPoolResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.SwapExactAmountIn - */ -export const MsgSwapExactAmountInService = { - typeName: TYPE_NAME, - method: "SwapExactAmountIn", - Request: MsgSwapExactAmountIn, - Response: MsgSwapExactAmountInResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.SwapExactAmountOut - */ -export const MsgSwapExactAmountOutService = { - typeName: TYPE_NAME, - method: "SwapExactAmountOut", - Request: MsgSwapExactAmountOut, - Response: MsgSwapExactAmountOutResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.JoinSwapExternAmountIn - */ -export const MsgJoinSwapExternAmountInService = { - typeName: TYPE_NAME, - method: "JoinSwapExternAmountIn", - Request: MsgJoinSwapExternAmountIn, - Response: MsgJoinSwapExternAmountInResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.JoinSwapShareAmountOut - */ -export const MsgJoinSwapShareAmountOutService = { - typeName: TYPE_NAME, - method: "JoinSwapShareAmountOut", - Request: MsgJoinSwapShareAmountOut, - Response: MsgJoinSwapShareAmountOutResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.ExitSwapExternAmountOut - */ -export const MsgExitSwapExternAmountOutService = { - typeName: TYPE_NAME, - method: "ExitSwapExternAmountOut", - Request: MsgExitSwapExternAmountOut, - Response: MsgExitSwapExternAmountOutResponse, -} as const; - -/** - * @generated from rpc osmosis.gamm.v1beta1.Msg.ExitSwapShareAmountIn - */ -export const MsgExitSwapShareAmountInService = { - typeName: TYPE_NAME, - method: "ExitSwapShareAmountIn", - Request: MsgExitSwapShareAmountIn, - Response: MsgExitSwapShareAmountInResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_pb.ts deleted file mode 100644 index d641210..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v1beta1/tx_pb.ts +++ /dev/null @@ -1,785 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v1beta1/tx.proto (package osmosis.gamm.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { SwapAmountInRoute, SwapAmountOutRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; - -/** - * ===================== MsgJoinPool - * This is really MsgJoinPoolNoSwap - * - * @generated from message osmosis.gamm.v1beta1.MsgJoinPool - */ -export class MsgJoinPool extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string share_out_amount = 3; - */ - shareOutAmount = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin token_in_maxs = 4; - */ - tokenInMaxs: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgJoinPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "share_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_in_maxs", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinPool { - return new MsgJoinPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinPool { - return new MsgJoinPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgJoinPool { - return new MsgJoinPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgJoinPool | PlainMessage | undefined, b: MsgJoinPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgJoinPool, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgJoinPoolResponse - */ -export class MsgJoinPoolResponse extends Message { - /** - * @generated from field: string share_out_amount = 1; - */ - shareOutAmount = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin token_in = 2; - */ - tokenIn: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgJoinPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "share_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "token_in", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinPoolResponse { - return new MsgJoinPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinPoolResponse { - return new MsgJoinPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgJoinPoolResponse { - return new MsgJoinPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgJoinPoolResponse | PlainMessage | undefined, b: MsgJoinPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgJoinPoolResponse, a, b); - } -} - -/** - * ===================== MsgExitPool - * - * @generated from message osmosis.gamm.v1beta1.MsgExitPool - */ -export class MsgExitPool extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string share_in_amount = 3; - */ - shareInAmount = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin token_out_mins = 4; - */ - tokenOutMins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgExitPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "share_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_out_mins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitPool { - return new MsgExitPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitPool { - return new MsgExitPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExitPool { - return new MsgExitPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgExitPool | PlainMessage | undefined, b: MsgExitPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExitPool, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgExitPoolResponse - */ -export class MsgExitPoolResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin token_out = 1; - */ - tokenOut: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgExitPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitPoolResponse { - return new MsgExitPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitPoolResponse { - return new MsgExitPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExitPoolResponse { - return new MsgExitPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExitPoolResponse | PlainMessage | undefined, b: MsgExitPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExitPoolResponse, a, b); - } -} - -/** - * ===================== MsgSwapExactAmountIn - * - * @generated from message osmosis.gamm.v1beta1.MsgSwapExactAmountIn - */ -export class MsgSwapExactAmountIn extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountInRoute routes = 2; - */ - routes: SwapAmountInRoute[] = []; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_in = 3; - */ - tokenIn?: Coin; - - /** - * @generated from field: string token_out_min_amount = 4; - */ - tokenOutMinAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgSwapExactAmountIn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, - { no: 3, name: "token_in", kind: "message", T: Coin }, - { no: 4, name: "token_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountIn { - return new MsgSwapExactAmountIn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountIn { - return new MsgSwapExactAmountIn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountIn { - return new MsgSwapExactAmountIn().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountIn | PlainMessage | undefined, b: MsgSwapExactAmountIn | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountIn, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgSwapExactAmountInResponse - */ -export class MsgSwapExactAmountInResponse extends Message { - /** - * @generated from field: string token_out_amount = 1; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgSwapExactAmountInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountInResponse { - return new MsgSwapExactAmountInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountInResponse { - return new MsgSwapExactAmountInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountInResponse { - return new MsgSwapExactAmountInResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountInResponse | PlainMessage | undefined, b: MsgSwapExactAmountInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountInResponse, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgSwapExactAmountOut - */ -export class MsgSwapExactAmountOut extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountOutRoute routes = 2; - */ - routes: SwapAmountOutRoute[] = []; - - /** - * @generated from field: string token_in_max_amount = 3; - */ - tokenInMaxAmount = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_out = 4; - */ - tokenOut?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgSwapExactAmountOut"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, - { no: 3, name: "token_in_max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_out", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOut { - return new MsgSwapExactAmountOut().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOut { - return new MsgSwapExactAmountOut().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOut { - return new MsgSwapExactAmountOut().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountOut | PlainMessage | undefined, b: MsgSwapExactAmountOut | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountOut, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgSwapExactAmountOutResponse - */ -export class MsgSwapExactAmountOutResponse extends Message { - /** - * @generated from field: string token_in_amount = 1; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgSwapExactAmountOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOutResponse { - return new MsgSwapExactAmountOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOutResponse { - return new MsgSwapExactAmountOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOutResponse { - return new MsgSwapExactAmountOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountOutResponse | PlainMessage | undefined, b: MsgSwapExactAmountOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountOutResponse, a, b); - } -} - -/** - * ===================== MsgJoinSwapExternAmountIn - * TODO: Rename to MsgJoinSwapExactAmountIn - * - * @generated from message osmosis.gamm.v1beta1.MsgJoinSwapExternAmountIn - */ -export class MsgJoinSwapExternAmountIn extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_in = 3; - */ - tokenIn?: Coin; - - /** - * repeated cosmos.base.v1beta1.Coin tokensIn = 5 [ - * (gogoproto.moretags) = "yaml:\"tokens_in\"", - * (gogoproto.nullable) = false - * ]; - * - * @generated from field: string share_out_min_amount = 4; - */ - shareOutMinAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgJoinSwapExternAmountIn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "token_in", kind: "message", T: Coin }, - { no: 4, name: "share_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinSwapExternAmountIn { - return new MsgJoinSwapExternAmountIn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinSwapExternAmountIn { - return new MsgJoinSwapExternAmountIn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgJoinSwapExternAmountIn { - return new MsgJoinSwapExternAmountIn().fromJsonString(jsonString, options); - } - - static equals(a: MsgJoinSwapExternAmountIn | PlainMessage | undefined, b: MsgJoinSwapExternAmountIn | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgJoinSwapExternAmountIn, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgJoinSwapExternAmountInResponse - */ -export class MsgJoinSwapExternAmountInResponse extends Message { - /** - * @generated from field: string share_out_amount = 1; - */ - shareOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgJoinSwapExternAmountInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "share_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinSwapExternAmountInResponse { - return new MsgJoinSwapExternAmountInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinSwapExternAmountInResponse { - return new MsgJoinSwapExternAmountInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgJoinSwapExternAmountInResponse { - return new MsgJoinSwapExternAmountInResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgJoinSwapExternAmountInResponse | PlainMessage | undefined, b: MsgJoinSwapExternAmountInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgJoinSwapExternAmountInResponse, a, b); - } -} - -/** - * ===================== MsgJoinSwapShareAmountOut - * - * @generated from message osmosis.gamm.v1beta1.MsgJoinSwapShareAmountOut - */ -export class MsgJoinSwapShareAmountOut extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in_denom = 3; - */ - tokenInDenom = ""; - - /** - * @generated from field: string share_out_amount = 4; - */ - shareOutAmount = ""; - - /** - * @generated from field: string token_in_max_amount = 5; - */ - tokenInMaxAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgJoinSwapShareAmountOut"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "share_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "token_in_max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinSwapShareAmountOut { - return new MsgJoinSwapShareAmountOut().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinSwapShareAmountOut { - return new MsgJoinSwapShareAmountOut().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgJoinSwapShareAmountOut { - return new MsgJoinSwapShareAmountOut().fromJsonString(jsonString, options); - } - - static equals(a: MsgJoinSwapShareAmountOut | PlainMessage | undefined, b: MsgJoinSwapShareAmountOut | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgJoinSwapShareAmountOut, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgJoinSwapShareAmountOutResponse - */ -export class MsgJoinSwapShareAmountOutResponse extends Message { - /** - * @generated from field: string token_in_amount = 1; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgJoinSwapShareAmountOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgJoinSwapShareAmountOutResponse { - return new MsgJoinSwapShareAmountOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgJoinSwapShareAmountOutResponse { - return new MsgJoinSwapShareAmountOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgJoinSwapShareAmountOutResponse { - return new MsgJoinSwapShareAmountOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgJoinSwapShareAmountOutResponse | PlainMessage | undefined, b: MsgJoinSwapShareAmountOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgJoinSwapShareAmountOutResponse, a, b); - } -} - -/** - * ===================== MsgExitSwapShareAmountIn - * - * @generated from message osmosis.gamm.v1beta1.MsgExitSwapShareAmountIn - */ -export class MsgExitSwapShareAmountIn extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_out_denom = 3; - */ - tokenOutDenom = ""; - - /** - * @generated from field: string share_in_amount = 4; - */ - shareInAmount = ""; - - /** - * @generated from field: string token_out_min_amount = 5; - */ - tokenOutMinAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgExitSwapShareAmountIn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "share_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "token_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitSwapShareAmountIn { - return new MsgExitSwapShareAmountIn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitSwapShareAmountIn { - return new MsgExitSwapShareAmountIn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExitSwapShareAmountIn { - return new MsgExitSwapShareAmountIn().fromJsonString(jsonString, options); - } - - static equals(a: MsgExitSwapShareAmountIn | PlainMessage | undefined, b: MsgExitSwapShareAmountIn | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExitSwapShareAmountIn, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgExitSwapShareAmountInResponse - */ -export class MsgExitSwapShareAmountInResponse extends Message { - /** - * @generated from field: string token_out_amount = 1; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgExitSwapShareAmountInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitSwapShareAmountInResponse { - return new MsgExitSwapShareAmountInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitSwapShareAmountInResponse { - return new MsgExitSwapShareAmountInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExitSwapShareAmountInResponse { - return new MsgExitSwapShareAmountInResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExitSwapShareAmountInResponse | PlainMessage | undefined, b: MsgExitSwapShareAmountInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExitSwapShareAmountInResponse, a, b); - } -} - -/** - * ===================== MsgExitSwapExternAmountOut - * - * @generated from message osmosis.gamm.v1beta1.MsgExitSwapExternAmountOut - */ -export class MsgExitSwapExternAmountOut extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_out = 3; - */ - tokenOut?: Coin; - - /** - * @generated from field: string share_in_max_amount = 4; - */ - shareInMaxAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgExitSwapExternAmountOut"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "token_out", kind: "message", T: Coin }, - { no: 4, name: "share_in_max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitSwapExternAmountOut { - return new MsgExitSwapExternAmountOut().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitSwapExternAmountOut { - return new MsgExitSwapExternAmountOut().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExitSwapExternAmountOut { - return new MsgExitSwapExternAmountOut().fromJsonString(jsonString, options); - } - - static equals(a: MsgExitSwapExternAmountOut | PlainMessage | undefined, b: MsgExitSwapExternAmountOut | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExitSwapExternAmountOut, a, b); - } -} - -/** - * @generated from message osmosis.gamm.v1beta1.MsgExitSwapExternAmountOutResponse - */ -export class MsgExitSwapExternAmountOutResponse extends Message { - /** - * @generated from field: string share_in_amount = 1; - */ - shareInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v1beta1.MsgExitSwapExternAmountOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "share_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExitSwapExternAmountOutResponse { - return new MsgExitSwapExternAmountOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExitSwapExternAmountOutResponse { - return new MsgExitSwapExternAmountOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExitSwapExternAmountOutResponse { - return new MsgExitSwapExternAmountOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExitSwapExternAmountOutResponse | PlainMessage | undefined, b: MsgExitSwapExternAmountOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExitSwapExternAmountOutResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v2/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/gamm/v2/query_cosmes.ts deleted file mode 100644 index 306eef2..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v2/query_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/gamm/v2/query.proto (package osmosis.gamm.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QuerySpotPriceRequest, QuerySpotPriceResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.gamm.v2.Query"; - -/** - * Deprecated: please use alternate in x/poolmanager - * - * @generated from rpc osmosis.gamm.v2.Query.SpotPrice - * @deprecated - */ -export const QuerySpotPriceService = { - typeName: TYPE_NAME, - method: "SpotPrice", - Request: QuerySpotPriceRequest, - Response: QuerySpotPriceResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/gamm/v2/query_pb.ts b/libs/es-client/src/protobufs/osmosis/gamm/v2/query_pb.ts deleted file mode 100644 index 0efbee6..0000000 --- a/libs/es-client/src/protobufs/osmosis/gamm/v2/query_pb.ts +++ /dev/null @@ -1,111 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/gamm/v2/query.proto (package osmosis.gamm.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Deprecated: please use alternate in x/poolmanager - * - * @generated from message osmosis.gamm.v2.QuerySpotPriceRequest - * @deprecated - */ -export class QuerySpotPriceRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset_denom = 2; - */ - baseAssetDenom = ""; - - /** - * @generated from field: string quote_asset_denom = 3; - */ - quoteAssetDenom = ""; - - /** - * DEPRECATED - * - * @generated from field: bool withSwapFee = 4 [deprecated = true]; - * @deprecated - */ - withSwapFee = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v2.QuerySpotPriceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "withSwapFee", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceRequest { - return new QuerySpotPriceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceRequest { - return new QuerySpotPriceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceRequest { - return new QuerySpotPriceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpotPriceRequest | PlainMessage | undefined, b: QuerySpotPriceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpotPriceRequest, a, b); - } -} - -/** - * Deprecated: please use alternate in x/poolmanager - * - * @generated from message osmosis.gamm.v2.QuerySpotPriceResponse - * @deprecated - */ -export class QuerySpotPriceResponse extends Message { - /** - * String of the Dec. Ex) 10.203uatom - * - * @generated from field: string spot_price = 1; - */ - spotPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.gamm.v2.QuerySpotPriceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceResponse { - return new QuerySpotPriceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceResponse { - return new QuerySpotPriceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceResponse { - return new QuerySpotPriceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QuerySpotPriceResponse | PlainMessage | undefined, b: QuerySpotPriceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QuerySpotPriceResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/ibchooks/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/ibchooks/genesis_pb.ts deleted file mode 100644 index d95a29c..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibchooks/genesis_pb.ts +++ /dev/null @@ -1,46 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/ibchooks/genesis.proto (package osmosis.ibchooks, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * @generated from message osmosis.ibchooks.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: osmosis.ibchooks.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibchooks.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/ibchooks/params_pb.ts b/libs/es-client/src/protobufs/osmosis/ibchooks/params_pb.ts deleted file mode 100644 index c1e9346..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibchooks/params_pb.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/ibchooks/params.proto (package osmosis.ibchooks, 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 osmosis.ibchooks.Params - */ -export class Params extends Message { - /** - * @generated from field: repeated string allowed_async_ack_contracts = 1; - */ - allowedAsyncAckContracts: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibchooks.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allowed_async_ack_contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/ibchooks/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/ibchooks/tx_cosmes.ts deleted file mode 100644 index 09dd27d..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibchooks/tx_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/ibchooks/tx.proto (package osmosis.ibchooks, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgEmitIBCAck, MsgEmitIBCAckResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.ibchooks.Msg"; - -/** - * EmitIBCAck checks the sender can emit the ack and writes the IBC - * acknowledgement - * - * @generated from rpc osmosis.ibchooks.Msg.EmitIBCAck - */ -export const MsgEmitIBCAckService = { - typeName: TYPE_NAME, - method: "EmitIBCAck", - Request: MsgEmitIBCAck, - Response: MsgEmitIBCAckResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/ibchooks/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/ibchooks/tx_pb.ts deleted file mode 100644 index 00a92cc..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibchooks/tx_pb.ts +++ /dev/null @@ -1,100 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/ibchooks/tx.proto (package osmosis.ibchooks, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message osmosis.ibchooks.MsgEmitIBCAck - */ -export class MsgEmitIBCAck extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 packet_sequence = 2; - */ - packetSequence = protoInt64.zero; - - /** - * @generated from field: string channel = 3; - */ - channel = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibchooks.MsgEmitIBCAck"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "packet_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "channel", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEmitIBCAck { - return new MsgEmitIBCAck().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEmitIBCAck { - return new MsgEmitIBCAck().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEmitIBCAck { - return new MsgEmitIBCAck().fromJsonString(jsonString, options); - } - - static equals(a: MsgEmitIBCAck | PlainMessage | undefined, b: MsgEmitIBCAck | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEmitIBCAck, a, b); - } -} - -/** - * @generated from message osmosis.ibchooks.MsgEmitIBCAckResponse - */ -export class MsgEmitIBCAckResponse extends Message { - /** - * @generated from field: string contract_result = 1; - */ - contractResult = ""; - - /** - * @generated from field: string ibc_ack = 2; - */ - ibcAck = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibchooks.MsgEmitIBCAckResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ibc_ack", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgEmitIBCAckResponse { - return new MsgEmitIBCAckResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgEmitIBCAckResponse { - return new MsgEmitIBCAckResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgEmitIBCAckResponse { - return new MsgEmitIBCAckResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgEmitIBCAckResponse | PlainMessage | undefined, b: MsgEmitIBCAckResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgEmitIBCAckResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/genesis_pb.ts deleted file mode 100644 index d30ec67..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,50 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/ibcratelimit/v1beta1/genesis.proto (package osmosis.ibcratelimit.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the ibc-rate-limit module's genesis state. - * - * @generated from message osmosis.ibcratelimit.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params are all the parameters of the module - * - * @generated from field: osmosis.ibcratelimit.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibcratelimit.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/params_pb.ts deleted file mode 100644 index e70f27c..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/params_pb.ts +++ /dev/null @@ -1,47 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/ibcratelimit/v1beta1/params.proto (package osmosis.ibcratelimit.v1beta1, 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 ibc-rate-limit module. - * - * @generated from message osmosis.ibcratelimit.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: string contract_address = 1; - */ - contractAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibcratelimit.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_cosmes.ts deleted file mode 100644 index 2f936b8..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/ibcratelimit/v1beta1/query.proto (package osmosis.ibcratelimit.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ParamsRequest, ParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.ibcratelimit.v1beta1.Query"; - -/** - * Params defines a gRPC query method that returns the ibc-rate-limit module's - * parameters. - * - * @generated from rpc osmosis.ibcratelimit.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: ParamsRequest, - Response: ParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_pb.ts deleted file mode 100644 index 9addfc7..0000000 --- a/libs/es-client/src/protobufs/osmosis/ibcratelimit/v1beta1/query_pb.ts +++ /dev/null @@ -1,83 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/ibcratelimit/v1beta1/query.proto (package osmosis.ibcratelimit.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * ParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message osmosis.ibcratelimit.v1beta1.ParamsRequest - */ -export class ParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibcratelimit.v1beta1.ParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { - return new ParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsRequest, a, b); - } -} - -/** - * aramsResponse is the response type for the Query/Params RPC method. - * - * @generated from message osmosis.ibcratelimit.v1beta1.ParamsResponse - */ -export class ParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: osmosis.ibcratelimit.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.ibcratelimit.v1beta1.ParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { - return new ParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/gauge_pb.ts b/libs/es-client/src/protobufs/osmosis/incentives/gauge_pb.ts deleted file mode 100644 index 4582110..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/gauge_pb.ts +++ /dev/null @@ -1,156 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/gauge.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { QueryCondition } from "../lockup/lock_pb.js"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Gauge is an object that stores and distributes yields to recipients who - * satisfy certain conditions. Currently gauges support conditions around the - * duration for which a given denom is locked. - * - * @generated from message osmosis.incentives.Gauge - */ -export class Gauge extends Message { - /** - * id is the unique ID of a Gauge - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * is_perpetual is a flag to show if it's a perpetual or non-perpetual gauge - * Non-perpetual gauges distribute their tokens equally per epoch while the - * gauge is in the active period. Perpetual gauges distribute all their tokens - * at a single time and only distribute their tokens again once the gauge is - * refilled, Intended for use with incentives that get refilled daily. - * - * @generated from field: bool is_perpetual = 2; - */ - isPerpetual = false; - - /** - * distribute_to is where the gauge rewards are distributed to. - * This is queried via lock duration or by timestamp - * - * @generated from field: osmosis.lockup.QueryCondition distribute_to = 3; - */ - distributeTo?: QueryCondition; - - /** - * coins is the total amount of coins that have been in the gauge - * Can distribute multiple coin denoms - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 4; - */ - coins: Coin[] = []; - - /** - * start_time is the distribution start time - * - * @generated from field: google.protobuf.Timestamp start_time = 5; - */ - startTime?: Timestamp; - - /** - * num_epochs_paid_over is the number of total epochs distribution will be - * completed over - * - * @generated from field: uint64 num_epochs_paid_over = 6; - */ - numEpochsPaidOver = protoInt64.zero; - - /** - * filled_epochs is the number of epochs distribution has been completed on - * already - * - * @generated from field: uint64 filled_epochs = 7; - */ - filledEpochs = protoInt64.zero; - - /** - * distributed_coins are coins that have been distributed already - * - * @generated from field: repeated cosmos.base.v1beta1.Coin distributed_coins = 8; - */ - distributedCoins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.Gauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "is_perpetual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "distribute_to", kind: "message", T: QueryCondition }, - { no: 4, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "start_time", kind: "message", T: Timestamp }, - { no: 6, name: "num_epochs_paid_over", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "filled_epochs", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "distributed_coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Gauge { - return new Gauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Gauge { - return new Gauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Gauge { - return new Gauge().fromJsonString(jsonString, options); - } - - static equals(a: Gauge | PlainMessage | undefined, b: Gauge | PlainMessage | undefined): boolean { - return proto3.util.equals(Gauge, a, b); - } -} - -/** - * @generated from message osmosis.incentives.LockableDurationsInfo - */ -export class LockableDurationsInfo extends Message { - /** - * List of incentivised durations that gauges will pay out to - * - * @generated from field: repeated google.protobuf.Duration lockable_durations = 1; - */ - lockableDurations: Duration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.LockableDurationsInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromJsonString(jsonString, options); - } - - static equals(a: LockableDurationsInfo | PlainMessage | undefined, b: LockableDurationsInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(LockableDurationsInfo, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/incentives/genesis_pb.ts deleted file mode 100644 index 9f7759d..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/genesis_pb.ts +++ /dev/null @@ -1,96 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/genesis.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { Gauge } from "./gauge_pb.js"; -import { Group } from "./group_pb.js"; - -/** - * GenesisState defines the incentives module's various parameters when first - * initialized - * - * @generated from message osmosis.incentives.GenesisState - */ -export class GenesisState extends Message { - /** - * params are all the parameters of the module - * - * @generated from field: osmosis.incentives.Params params = 1; - */ - params?: Params; - - /** - * gauges are all gauges (not including group gauges) that should exist at - * genesis - * - * @generated from field: repeated osmosis.incentives.Gauge gauges = 2; - */ - gauges: Gauge[] = []; - - /** - * lockable_durations are all lockup durations that gauges can be locked for - * in order to receive incentives - * - * @generated from field: repeated google.protobuf.Duration lockable_durations = 3; - */ - lockableDurations: Duration[] = []; - - /** - * last_gauge_id is what the gauge number will increment from when creating - * the next gauge after genesis - * - * @generated from field: uint64 last_gauge_id = 4; - */ - lastGaugeId = protoInt64.zero; - - /** - * gauges are all group gauges that should exist at genesis - * - * @generated from field: repeated osmosis.incentives.Gauge group_gauges = 5; - */ - groupGauges: Gauge[] = []; - - /** - * groups are all the groups that should exist at genesis - * - * @generated from field: repeated osmosis.incentives.Group groups = 6; - */ - groups: Group[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "gauges", kind: "message", T: Gauge, repeated: true }, - { no: 3, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - { no: 4, name: "last_gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "group_gauges", kind: "message", T: Gauge, repeated: true }, - { no: 6, name: "groups", kind: "message", T: Group, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/incentives/gov_pb.ts deleted file mode 100644 index dc85520..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/gov_pb.ts +++ /dev/null @@ -1,62 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/gov.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { CreateGroup } from "./group_pb.js"; - -/** - * CreateGroupsProposal is a type for creating one or more groups via - * governance. This is useful for creating groups without having to pay - * creation fees. - * - * @generated from message osmosis.incentives.CreateGroupsProposal - */ -export class CreateGroupsProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.incentives.CreateGroup create_groups = 3; - */ - createGroups: CreateGroup[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.CreateGroupsProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "create_groups", kind: "message", T: CreateGroup, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateGroupsProposal { - return new CreateGroupsProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateGroupsProposal { - return new CreateGroupsProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateGroupsProposal { - return new CreateGroupsProposal().fromJsonString(jsonString, options); - } - - static equals(a: CreateGroupsProposal | PlainMessage | undefined, b: CreateGroupsProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateGroupsProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/group_pb.ts b/libs/es-client/src/protobufs/osmosis/incentives/group_pb.ts deleted file mode 100644 index 5ec134f..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/group_pb.ts +++ /dev/null @@ -1,272 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/group.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Gauge } from "./gauge_pb.js"; - -/** - * SplittingPolicy determines the way we want to split incentives in groupGauges - * - * @generated from enum osmosis.incentives.SplittingPolicy - */ -export enum SplittingPolicy { - /** - * @generated from enum value: ByVolume = 0; - */ - ByVolume = 0, -} -// Retrieve enum metadata with: proto3.getEnumType(SplittingPolicy) -proto3.util.setEnumType(SplittingPolicy, "osmosis.incentives.SplittingPolicy", [ - { no: 0, name: "ByVolume" }, -]); - -/** - * Note that while both InternalGaugeInfo and InternalGaugeRecord could - * technically be replaced by DistrInfo and DistrRecord from the pool-incentives - * module, we create separate types here to keep our abstractions clean and - * readable (pool-incentives distribution abstractions are used in a very - * specific way that does not directly relate to gauge logic). This also helps - * us sidestep a refactor to avoid an import cycle. - * - * @generated from message osmosis.incentives.InternalGaugeInfo - */ -export class InternalGaugeInfo extends Message { - /** - * @generated from field: string total_weight = 1; - */ - totalWeight = ""; - - /** - * @generated from field: repeated osmosis.incentives.InternalGaugeRecord gauge_records = 2; - */ - gaugeRecords: InternalGaugeRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.InternalGaugeInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gauge_records", kind: "message", T: InternalGaugeRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InternalGaugeInfo { - return new InternalGaugeInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InternalGaugeInfo { - return new InternalGaugeInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InternalGaugeInfo { - return new InternalGaugeInfo().fromJsonString(jsonString, options); - } - - static equals(a: InternalGaugeInfo | PlainMessage | undefined, b: InternalGaugeInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(InternalGaugeInfo, a, b); - } -} - -/** - * @generated from message osmosis.incentives.InternalGaugeRecord - */ -export class InternalGaugeRecord extends Message { - /** - * @generated from field: uint64 gauge_id = 1; - */ - gaugeId = protoInt64.zero; - - /** - * CurrentWeight is the current weight of this gauge being distributed to for - * this epoch. For instance, for volume splitting policy, this stores the - * volume generated in the last epoch of the linked pool. - * - * @generated from field: string current_weight = 2; - */ - currentWeight = ""; - - /** - * CumulativeWeight serves as a snapshot of the accumulator being tracked - * based on splitting policy. For instance, for volume splitting policy, this - * stores the cumulative volume for the linked pool at time of last update. - * - * @generated from field: string cumulative_weight = 3; - */ - cumulativeWeight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.InternalGaugeRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "current_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "cumulative_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InternalGaugeRecord { - return new InternalGaugeRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InternalGaugeRecord { - return new InternalGaugeRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InternalGaugeRecord { - return new InternalGaugeRecord().fromJsonString(jsonString, options); - } - - static equals(a: InternalGaugeRecord | PlainMessage | undefined, b: InternalGaugeRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(InternalGaugeRecord, a, b); - } -} - -/** - * Group is an object that stores a 1:1 mapped gauge ID, a list of pool gauge - * info, and a splitting policy. These are grouped into a single abstraction to - * allow for distribution of group incentives to internal gauges according to - * the specified splitting policy. - * - * @generated from message osmosis.incentives.Group - */ -export class Group extends Message { - /** - * @generated from field: uint64 group_gauge_id = 1; - */ - groupGaugeId = protoInt64.zero; - - /** - * @generated from field: osmosis.incentives.InternalGaugeInfo internal_gauge_info = 2; - */ - internalGaugeInfo?: InternalGaugeInfo; - - /** - * @generated from field: osmosis.incentives.SplittingPolicy splitting_policy = 3; - */ - splittingPolicy = SplittingPolicy.ByVolume; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.Group"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "internal_gauge_info", kind: "message", T: InternalGaugeInfo }, - { no: 3, name: "splitting_policy", kind: "enum", T: proto3.getEnumType(SplittingPolicy) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Group { - return new Group().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Group { - return new Group().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Group { - return new Group().fromJsonString(jsonString, options); - } - - static equals(a: Group | PlainMessage | undefined, b: Group | PlainMessage | undefined): boolean { - return proto3.util.equals(Group, a, b); - } -} - -/** - * CreateGroup is called via governance to create a new group. - * It takes an array of pool IDs to split the incentives across. - * - * @generated from message osmosis.incentives.CreateGroup - */ -export class CreateGroup extends Message { - /** - * @generated from field: repeated uint64 pool_ids = 1; - */ - poolIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.CreateGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateGroup { - return new CreateGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateGroup { - return new CreateGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateGroup { - return new CreateGroup().fromJsonString(jsonString, options); - } - - static equals(a: CreateGroup | PlainMessage | undefined, b: CreateGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateGroup, a, b); - } -} - -/** - * GroupsWithGauge is a helper struct that stores a group and its - * associated gauge. - * - * @generated from message osmosis.incentives.GroupsWithGauge - */ -export class GroupsWithGauge extends Message { - /** - * @generated from field: osmosis.incentives.Group group = 1; - */ - group?: Group; - - /** - * @generated from field: osmosis.incentives.Gauge gauge = 2; - */ - gauge?: Gauge; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.GroupsWithGauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group", kind: "message", T: Group }, - { no: 2, name: "gauge", kind: "message", T: Gauge }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GroupsWithGauge { - return new GroupsWithGauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GroupsWithGauge { - return new GroupsWithGauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GroupsWithGauge { - return new GroupsWithGauge().fromJsonString(jsonString, options); - } - - static equals(a: GroupsWithGauge | PlainMessage | undefined, b: GroupsWithGauge | PlainMessage | undefined): boolean { - return proto3.util.equals(GroupsWithGauge, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/params_pb.ts b/libs/es-client/src/protobufs/osmosis/incentives/params_pb.ts deleted file mode 100644 index 8c1c13b..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/params_pb.ts +++ /dev/null @@ -1,101 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/params.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Params holds parameters for the incentives module - * - * @generated from message osmosis.incentives.Params - */ -export class Params extends Message { - /** - * distr_epoch_identifier is what epoch type distribution will be triggered by - * (day, week, etc.) - * - * @generated from field: string distr_epoch_identifier = 1; - */ - distrEpochIdentifier = ""; - - /** - * group_creation_fee is the fee required to create a new group - * It is only charged to all addresses other than incentive module account - * or addresses in the unrestricted_creator_whitelist - * - * @generated from field: repeated cosmos.base.v1beta1.Coin group_creation_fee = 2; - */ - groupCreationFee: Coin[] = []; - - /** - * unrestricted_creator_whitelist is a list of addresses that are - * allowed to bypass restrictions on permissionless Group - * creation. In the future, we might expand these to creating gauges - * as well. - * The goal of this is to allow a subdao to manage incentives efficiently - * without being stopped by 5 day governance process or a high fee. - * At the same time, it prevents spam by having a fee for all - * other users. - * - * @generated from field: repeated string unrestricted_creator_whitelist = 3; - */ - unrestrictedCreatorWhitelist: string[] = []; - - /** - * internal_uptime is the uptime used for internal incentives on pools that - * use NoLock gauges (currently only Concentrated Liquidity pools). - * - * Since Group gauges route through internal gauges, this parameter affects - * the uptime of those incentives as well (i.e. distributions through volume - * splitting incentives will use this uptime). - * - * @generated from field: google.protobuf.Duration internal_uptime = 4; - */ - internalUptime?: Duration; - - /** - * min_value_for_distribution is the minimum amount a token must be worth - * in order to be eligible for distribution. If the token is worth - * less than this amount (or the route between the two denoms is not - * registered), it will not be distributed and is forfeited to the remaining - * distributees that are eligible. - * - * @generated from field: cosmos.base.v1beta1.Coin min_value_for_distribution = 5; - */ - minValueForDistribution?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "distr_epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_creation_fee", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "unrestricted_creator_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "internal_uptime", kind: "message", T: Duration }, - { no: 5, name: "min_value_for_distribution", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/incentives/query_cosmes.ts deleted file mode 100644 index bfb4fa4..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/query_cosmes.ts +++ /dev/null @@ -1,224 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/incentives/query.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ActiveGaugesPerDenomRequest, ActiveGaugesPerDenomResponse, ActiveGaugesRequest, ActiveGaugesResponse, GaugeByIDRequest, GaugeByIDResponse, GaugesRequest, GaugesResponse, ModuleToDistributeCoinsRequest, ModuleToDistributeCoinsResponse, ParamsRequest, ParamsResponse, QueryAllGroupsGaugesRequest, QueryAllGroupsGaugesResponse, QueryAllGroupsRequest, QueryAllGroupsResponse, QueryAllGroupsWithGaugeRequest, QueryAllGroupsWithGaugeResponse, QueryCurrentWeightByGroupGaugeIDRequest, QueryCurrentWeightByGroupGaugeIDResponse, QueryExternalGaugesRequest, QueryExternalGaugesResponse, QueryGaugesByPoolIDRequest, QueryGaugesByPoolIDResponse, QueryGroupByGroupGaugeIDRequest, QueryGroupByGroupGaugeIDResponse, QueryInternalGaugesRequest, QueryInternalGaugesResponse, QueryLockableDurationsRequest, QueryLockableDurationsResponse, RewardsEstRequest, RewardsEstResponse, UpcomingGaugesPerDenomRequest, UpcomingGaugesPerDenomResponse, UpcomingGaugesRequest, UpcomingGaugesResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.incentives.Query"; - -/** - * ModuleToDistributeCoins returns coins that are going to be distributed - * - * @generated from rpc osmosis.incentives.Query.ModuleToDistributeCoins - */ -export const QueryModuleToDistributeCoinsService = { - typeName: TYPE_NAME, - method: "ModuleToDistributeCoins", - Request: ModuleToDistributeCoinsRequest, - Response: ModuleToDistributeCoinsResponse, -} as const; - -/** - * GaugeByID returns gauges by their respective ID - * - * @generated from rpc osmosis.incentives.Query.GaugeByID - */ -export const QueryGaugeByIDService = { - typeName: TYPE_NAME, - method: "GaugeByID", - Request: GaugeByIDRequest, - Response: GaugeByIDResponse, -} as const; - -/** - * Gauges returns both upcoming and active gauges - * - * @generated from rpc osmosis.incentives.Query.Gauges - */ -export const QueryGaugesService = { - typeName: TYPE_NAME, - method: "Gauges", - Request: GaugesRequest, - Response: GaugesResponse, -} as const; - -/** - * ActiveGauges returns active gauges - * - * @generated from rpc osmosis.incentives.Query.ActiveGauges - */ -export const QueryActiveGaugesService = { - typeName: TYPE_NAME, - method: "ActiveGauges", - Request: ActiveGaugesRequest, - Response: ActiveGaugesResponse, -} as const; - -/** - * ActiveGaugesPerDenom returns active gauges by denom - * - * @generated from rpc osmosis.incentives.Query.ActiveGaugesPerDenom - */ -export const QueryActiveGaugesPerDenomService = { - typeName: TYPE_NAME, - method: "ActiveGaugesPerDenom", - Request: ActiveGaugesPerDenomRequest, - Response: ActiveGaugesPerDenomResponse, -} as const; - -/** - * Returns scheduled gauges that have not yet occurred - * - * @generated from rpc osmosis.incentives.Query.UpcomingGauges - */ -export const QueryUpcomingGaugesService = { - typeName: TYPE_NAME, - method: "UpcomingGauges", - Request: UpcomingGaugesRequest, - Response: UpcomingGaugesResponse, -} as const; - -/** - * UpcomingGaugesPerDenom returns scheduled gauges that have not yet occurred - * by denom - * - * @generated from rpc osmosis.incentives.Query.UpcomingGaugesPerDenom - */ -export const QueryUpcomingGaugesPerDenomService = { - typeName: TYPE_NAME, - method: "UpcomingGaugesPerDenom", - Request: UpcomingGaugesPerDenomRequest, - Response: UpcomingGaugesPerDenomResponse, -} as const; - -/** - * RewardsEst returns an estimate of the rewards from now until a specified - * time in the future The querier either provides an address or a set of locks - * for which they want to find the associated rewards - * - * @generated from rpc osmosis.incentives.Query.RewardsEst - */ -export const QueryRewardsEstService = { - typeName: TYPE_NAME, - method: "RewardsEst", - Request: RewardsEstRequest, - Response: RewardsEstResponse, -} as const; - -/** - * LockableDurations returns lockable durations that are valid to distribute - * incentives for - * - * @generated from rpc osmosis.incentives.Query.LockableDurations - */ -export const QueryLockableDurationsService = { - typeName: TYPE_NAME, - method: "LockableDurations", - Request: QueryLockableDurationsRequest, - Response: QueryLockableDurationsResponse, -} as const; - -/** - * AllGroups returns all groups - * - * @generated from rpc osmosis.incentives.Query.AllGroups - */ -export const QueryAllGroupsService = { - typeName: TYPE_NAME, - method: "AllGroups", - Request: QueryAllGroupsRequest, - Response: QueryAllGroupsResponse, -} as const; - -/** - * AllGroupsGauges returns all group gauges - * - * @generated from rpc osmosis.incentives.Query.AllGroupsGauges - */ -export const QueryAllGroupsGaugesService = { - typeName: TYPE_NAME, - method: "AllGroupsGauges", - Request: QueryAllGroupsGaugesRequest, - Response: QueryAllGroupsGaugesResponse, -} as const; - -/** - * AllGroupsWithGauge returns all groups with their group gauge - * - * @generated from rpc osmosis.incentives.Query.AllGroupsWithGauge - */ -export const QueryAllGroupsWithGaugeService = { - typeName: TYPE_NAME, - method: "AllGroupsWithGauge", - Request: QueryAllGroupsWithGaugeRequest, - Response: QueryAllGroupsWithGaugeResponse, -} as const; - -/** - * GroupByGroupGaugeID returns a group given its group gauge ID - * - * @generated from rpc osmosis.incentives.Query.GroupByGroupGaugeID - */ -export const QueryGroupByGroupGaugeIDService = { - typeName: TYPE_NAME, - method: "GroupByGroupGaugeID", - Request: QueryGroupByGroupGaugeIDRequest, - Response: QueryGroupByGroupGaugeIDResponse, -} as const; - -/** - * CurrentWeightByGroupGaugeID returns the current weight since the - * the last epoch given a group gauge ID - * - * @generated from rpc osmosis.incentives.Query.CurrentWeightByGroupGaugeID - */ -export const QueryCurrentWeightByGroupGaugeIDService = { - typeName: TYPE_NAME, - method: "CurrentWeightByGroupGaugeID", - Request: QueryCurrentWeightByGroupGaugeIDRequest, - Response: QueryCurrentWeightByGroupGaugeIDResponse, -} as const; - -/** - * @generated from rpc osmosis.incentives.Query.InternalGauges - */ -export const QueryInternalGaugesService = { - typeName: TYPE_NAME, - method: "InternalGauges", - Request: QueryInternalGaugesRequest, - Response: QueryInternalGaugesResponse, -} as const; - -/** - * @generated from rpc osmosis.incentives.Query.ExternalGauges - */ -export const QueryExternalGaugesService = { - typeName: TYPE_NAME, - method: "ExternalGauges", - Request: QueryExternalGaugesRequest, - Response: QueryExternalGaugesResponse, -} as const; - -/** - * @generated from rpc osmosis.incentives.Query.GaugesByPoolID - */ -export const QueryGaugesByPoolIDService = { - typeName: TYPE_NAME, - method: "GaugesByPoolID", - Request: QueryGaugesByPoolIDRequest, - Response: QueryGaugesByPoolIDResponse, -} as const; - -/** - * Params returns incentives module params. - * - * @generated from rpc osmosis.incentives.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: ParamsRequest, - Response: ParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/query_pb.ts b/libs/es-client/src/protobufs/osmosis/incentives/query_pb.ts deleted file mode 100644 index 199b52f..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/query_pb.ts +++ /dev/null @@ -1,1494 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/query.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { Gauge } from "./gauge_pb.js"; -import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Group, GroupsWithGauge } from "./group_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * @generated from message osmosis.incentives.ModuleToDistributeCoinsRequest - */ -export class ModuleToDistributeCoinsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ModuleToDistributeCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleToDistributeCoinsRequest { - return new ModuleToDistributeCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleToDistributeCoinsRequest { - return new ModuleToDistributeCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleToDistributeCoinsRequest { - return new ModuleToDistributeCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ModuleToDistributeCoinsRequest | PlainMessage | undefined, b: ModuleToDistributeCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleToDistributeCoinsRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.ModuleToDistributeCoinsResponse - */ -export class ModuleToDistributeCoinsResponse extends Message { - /** - * Coins that have yet to be distributed - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ModuleToDistributeCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleToDistributeCoinsResponse { - return new ModuleToDistributeCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleToDistributeCoinsResponse { - return new ModuleToDistributeCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleToDistributeCoinsResponse { - return new ModuleToDistributeCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ModuleToDistributeCoinsResponse | PlainMessage | undefined, b: ModuleToDistributeCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleToDistributeCoinsResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.GaugeByIDRequest - */ -export class GaugeByIDRequest extends Message { - /** - * Gauge ID being queried - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.GaugeByIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugeByIDRequest { - return new GaugeByIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugeByIDRequest { - return new GaugeByIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugeByIDRequest { - return new GaugeByIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: GaugeByIDRequest | PlainMessage | undefined, b: GaugeByIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugeByIDRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.GaugeByIDResponse - */ -export class GaugeByIDResponse extends Message { - /** - * Gauge that corresponds to provided gauge ID - * - * @generated from field: osmosis.incentives.Gauge gauge = 1; - */ - gauge?: Gauge; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.GaugeByIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge", kind: "message", T: Gauge }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugeByIDResponse { - return new GaugeByIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugeByIDResponse { - return new GaugeByIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugeByIDResponse { - return new GaugeByIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: GaugeByIDResponse | PlainMessage | undefined, b: GaugeByIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugeByIDResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.GaugesRequest - */ -export class GaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.GaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugesRequest { - return new GaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugesRequest { - return new GaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugesRequest { - return new GaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: GaugesRequest | PlainMessage | undefined, b: GaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugesRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.GaugesResponse - */ -export class GaugesResponse extends Message { - /** - * Upcoming and active gauges - * - * @generated from field: repeated osmosis.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.GaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugesResponse { - return new GaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugesResponse { - return new GaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugesResponse { - return new GaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GaugesResponse | PlainMessage | undefined, b: GaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugesResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.ActiveGaugesRequest - */ -export class ActiveGaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ActiveGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesRequest { - return new ActiveGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesRequest { - return new ActiveGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesRequest { - return new ActiveGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesRequest | PlainMessage | undefined, b: ActiveGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.ActiveGaugesResponse - */ -export class ActiveGaugesResponse extends Message { - /** - * Active gauges only - * - * @generated from field: repeated osmosis.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ActiveGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesResponse { - return new ActiveGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesResponse { - return new ActiveGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesResponse { - return new ActiveGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesResponse | PlainMessage | undefined, b: ActiveGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.ActiveGaugesPerDenomRequest - */ -export class ActiveGaugesPerDenomRequest extends Message { - /** - * Desired denom when querying active gauges - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ActiveGaugesPerDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesPerDenomRequest { - return new ActiveGaugesPerDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesPerDenomRequest { - return new ActiveGaugesPerDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesPerDenomRequest { - return new ActiveGaugesPerDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesPerDenomRequest | PlainMessage | undefined, b: ActiveGaugesPerDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesPerDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.ActiveGaugesPerDenomResponse - */ -export class ActiveGaugesPerDenomResponse extends Message { - /** - * Active gauges that match denom in query - * - * @generated from field: repeated osmosis.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ActiveGaugesPerDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveGaugesPerDenomResponse { - return new ActiveGaugesPerDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveGaugesPerDenomResponse { - return new ActiveGaugesPerDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveGaugesPerDenomResponse { - return new ActiveGaugesPerDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: ActiveGaugesPerDenomResponse | PlainMessage | undefined, b: ActiveGaugesPerDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveGaugesPerDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.UpcomingGaugesRequest - */ -export class UpcomingGaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.UpcomingGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesRequest { - return new UpcomingGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesRequest { - return new UpcomingGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesRequest { - return new UpcomingGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesRequest | PlainMessage | undefined, b: UpcomingGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.UpcomingGaugesResponse - */ -export class UpcomingGaugesResponse extends Message { - /** - * Gauges whose distribution is upcoming - * - * @generated from field: repeated osmosis.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.UpcomingGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesResponse { - return new UpcomingGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesResponse { - return new UpcomingGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesResponse { - return new UpcomingGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesResponse | PlainMessage | undefined, b: UpcomingGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.UpcomingGaugesPerDenomRequest - */ -export class UpcomingGaugesPerDenomRequest extends Message { - /** - * Filter for upcoming gauges that match specific denom - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.UpcomingGaugesPerDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesPerDenomRequest { - return new UpcomingGaugesPerDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesPerDenomRequest { - return new UpcomingGaugesPerDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesPerDenomRequest { - return new UpcomingGaugesPerDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesPerDenomRequest | PlainMessage | undefined, b: UpcomingGaugesPerDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesPerDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.UpcomingGaugesPerDenomResponse - */ -export class UpcomingGaugesPerDenomResponse extends Message { - /** - * Upcoming gauges that match denom in query - * - * @generated from field: repeated osmosis.incentives.Gauge upcoming_gauges = 1; - */ - upcomingGauges: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.UpcomingGaugesPerDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "upcoming_gauges", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpcomingGaugesPerDenomResponse { - return new UpcomingGaugesPerDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpcomingGaugesPerDenomResponse { - return new UpcomingGaugesPerDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpcomingGaugesPerDenomResponse { - return new UpcomingGaugesPerDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpcomingGaugesPerDenomResponse | PlainMessage | undefined, b: UpcomingGaugesPerDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpcomingGaugesPerDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.RewardsEstRequest - */ -export class RewardsEstRequest extends Message { - /** - * Address that is being queried for future estimated rewards - * - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * Lock IDs included in future reward estimation - * - * @generated from field: repeated uint64 lock_ids = 2; - */ - lockIds: bigint[] = []; - - /** - * Upper time limit of reward estimation - * Lower limit is current epoch - * - * @generated from field: int64 end_epoch = 3; - */ - endEpoch = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.RewardsEstRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lock_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 3, name: "end_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RewardsEstRequest { - return new RewardsEstRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RewardsEstRequest { - return new RewardsEstRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RewardsEstRequest { - return new RewardsEstRequest().fromJsonString(jsonString, options); - } - - static equals(a: RewardsEstRequest | PlainMessage | undefined, b: RewardsEstRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RewardsEstRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.RewardsEstResponse - */ -export class RewardsEstResponse extends Message { - /** - * Estimated coin rewards that will be received at provided address - * from specified locks between current time and end epoch - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.RewardsEstResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RewardsEstResponse { - return new RewardsEstResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RewardsEstResponse { - return new RewardsEstResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RewardsEstResponse { - return new RewardsEstResponse().fromJsonString(jsonString, options); - } - - static equals(a: RewardsEstResponse | PlainMessage | undefined, b: RewardsEstResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RewardsEstResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryLockableDurationsRequest - */ -export class QueryLockableDurationsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryLockableDurationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryLockableDurationsRequest | PlainMessage | undefined, b: QueryLockableDurationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLockableDurationsRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryLockableDurationsResponse - */ -export class QueryLockableDurationsResponse extends Message { - /** - * Time durations that users can lock coins for in order to receive rewards - * - * @generated from field: repeated google.protobuf.Duration lockable_durations = 1; - */ - lockableDurations: Duration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryLockableDurationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryLockableDurationsResponse | PlainMessage | undefined, b: QueryLockableDurationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLockableDurationsResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryAllGroupsRequest - */ -export class QueryAllGroupsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryAllGroupsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGroupsRequest { - return new QueryAllGroupsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGroupsRequest { - return new QueryAllGroupsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllGroupsRequest { - return new QueryAllGroupsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllGroupsRequest | PlainMessage | undefined, b: QueryAllGroupsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllGroupsRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryAllGroupsResponse - */ -export class QueryAllGroupsResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.Group groups = 1; - */ - groups: Group[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryAllGroupsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "groups", kind: "message", T: Group, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGroupsResponse { - return new QueryAllGroupsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGroupsResponse { - return new QueryAllGroupsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllGroupsResponse { - return new QueryAllGroupsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllGroupsResponse | PlainMessage | undefined, b: QueryAllGroupsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllGroupsResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryAllGroupsGaugesRequest - */ -export class QueryAllGroupsGaugesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryAllGroupsGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGroupsGaugesRequest { - return new QueryAllGroupsGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGroupsGaugesRequest { - return new QueryAllGroupsGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllGroupsGaugesRequest { - return new QueryAllGroupsGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllGroupsGaugesRequest | PlainMessage | undefined, b: QueryAllGroupsGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllGroupsGaugesRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryAllGroupsGaugesResponse - */ -export class QueryAllGroupsGaugesResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.Gauge gauges = 1; - */ - gauges: Gauge[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryAllGroupsGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauges", kind: "message", T: Gauge, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGroupsGaugesResponse { - return new QueryAllGroupsGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGroupsGaugesResponse { - return new QueryAllGroupsGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllGroupsGaugesResponse { - return new QueryAllGroupsGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllGroupsGaugesResponse | PlainMessage | undefined, b: QueryAllGroupsGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllGroupsGaugesResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryAllGroupsWithGaugeRequest - */ -export class QueryAllGroupsWithGaugeRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryAllGroupsWithGaugeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGroupsWithGaugeRequest { - return new QueryAllGroupsWithGaugeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGroupsWithGaugeRequest { - return new QueryAllGroupsWithGaugeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllGroupsWithGaugeRequest { - return new QueryAllGroupsWithGaugeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllGroupsWithGaugeRequest | PlainMessage | undefined, b: QueryAllGroupsWithGaugeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllGroupsWithGaugeRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryAllGroupsWithGaugeResponse - */ -export class QueryAllGroupsWithGaugeResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.GroupsWithGauge groups_with_gauge = 1; - */ - groupsWithGauge: GroupsWithGauge[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryAllGroupsWithGaugeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "groups_with_gauge", kind: "message", T: GroupsWithGauge, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGroupsWithGaugeResponse { - return new QueryAllGroupsWithGaugeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGroupsWithGaugeResponse { - return new QueryAllGroupsWithGaugeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllGroupsWithGaugeResponse { - return new QueryAllGroupsWithGaugeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllGroupsWithGaugeResponse | PlainMessage | undefined, b: QueryAllGroupsWithGaugeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllGroupsWithGaugeResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryGroupByGroupGaugeIDRequest - */ -export class QueryGroupByGroupGaugeIDRequest extends Message { - /** - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryGroupByGroupGaugeIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupByGroupGaugeIDRequest { - return new QueryGroupByGroupGaugeIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupByGroupGaugeIDRequest { - return new QueryGroupByGroupGaugeIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupByGroupGaugeIDRequest { - return new QueryGroupByGroupGaugeIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupByGroupGaugeIDRequest | PlainMessage | undefined, b: QueryGroupByGroupGaugeIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupByGroupGaugeIDRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryGroupByGroupGaugeIDResponse - */ -export class QueryGroupByGroupGaugeIDResponse extends Message { - /** - * @generated from field: osmosis.incentives.Group group = 1; - */ - group?: Group; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryGroupByGroupGaugeIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group", kind: "message", T: Group }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGroupByGroupGaugeIDResponse { - return new QueryGroupByGroupGaugeIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGroupByGroupGaugeIDResponse { - return new QueryGroupByGroupGaugeIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGroupByGroupGaugeIDResponse { - return new QueryGroupByGroupGaugeIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGroupByGroupGaugeIDResponse | PlainMessage | undefined, b: QueryGroupByGroupGaugeIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGroupByGroupGaugeIDResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryCurrentWeightByGroupGaugeIDRequest - */ -export class QueryCurrentWeightByGroupGaugeIDRequest extends Message { - /** - * @generated from field: uint64 group_gauge_id = 1; - */ - groupGaugeId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryCurrentWeightByGroupGaugeIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentWeightByGroupGaugeIDRequest { - return new QueryCurrentWeightByGroupGaugeIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentWeightByGroupGaugeIDRequest { - return new QueryCurrentWeightByGroupGaugeIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentWeightByGroupGaugeIDRequest { - return new QueryCurrentWeightByGroupGaugeIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentWeightByGroupGaugeIDRequest | PlainMessage | undefined, b: QueryCurrentWeightByGroupGaugeIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentWeightByGroupGaugeIDRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryCurrentWeightByGroupGaugeIDResponse - */ -export class QueryCurrentWeightByGroupGaugeIDResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.GaugeWeight gauge_weight = 1; - */ - gaugeWeight: GaugeWeight[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryCurrentWeightByGroupGaugeIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge_weight", kind: "message", T: GaugeWeight, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCurrentWeightByGroupGaugeIDResponse { - return new QueryCurrentWeightByGroupGaugeIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCurrentWeightByGroupGaugeIDResponse { - return new QueryCurrentWeightByGroupGaugeIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCurrentWeightByGroupGaugeIDResponse { - return new QueryCurrentWeightByGroupGaugeIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryCurrentWeightByGroupGaugeIDResponse | PlainMessage | undefined, b: QueryCurrentWeightByGroupGaugeIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCurrentWeightByGroupGaugeIDResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.GaugeWeight - */ -export class GaugeWeight extends Message { - /** - * @generated from field: uint64 gauge_id = 1; - */ - gaugeId = protoInt64.zero; - - /** - * @generated from field: string weight_ratio = 2; - */ - weightRatio = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.GaugeWeight"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "weight_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GaugeWeight { - return new GaugeWeight().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GaugeWeight { - return new GaugeWeight().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GaugeWeight { - return new GaugeWeight().fromJsonString(jsonString, options); - } - - static equals(a: GaugeWeight | PlainMessage | undefined, b: GaugeWeight | PlainMessage | undefined): boolean { - return proto3.util.equals(GaugeWeight, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryInternalGaugesRequest - */ -export class QueryInternalGaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryInternalGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryInternalGaugesRequest { - return new QueryInternalGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryInternalGaugesRequest { - return new QueryInternalGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryInternalGaugesRequest { - return new QueryInternalGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryInternalGaugesRequest | PlainMessage | undefined, b: QueryInternalGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryInternalGaugesRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryInternalGaugesResponse - */ -export class QueryInternalGaugesResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.Gauge gauges = 1; - */ - gauges: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryInternalGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauges", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryInternalGaugesResponse { - return new QueryInternalGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryInternalGaugesResponse { - return new QueryInternalGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryInternalGaugesResponse { - return new QueryInternalGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryInternalGaugesResponse | PlainMessage | undefined, b: QueryInternalGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryInternalGaugesResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryExternalGaugesRequest - */ -export class QueryExternalGaugesRequest extends Message { - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryExternalGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalGaugesRequest { - return new QueryExternalGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalGaugesRequest { - return new QueryExternalGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryExternalGaugesRequest { - return new QueryExternalGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryExternalGaugesRequest | PlainMessage | undefined, b: QueryExternalGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryExternalGaugesRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryExternalGaugesResponse - */ -export class QueryExternalGaugesResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.Gauge gauges = 1; - */ - gauges: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryExternalGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauges", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalGaugesResponse { - return new QueryExternalGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalGaugesResponse { - return new QueryExternalGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryExternalGaugesResponse { - return new QueryExternalGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryExternalGaugesResponse | PlainMessage | undefined, b: QueryExternalGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryExternalGaugesResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryGaugesByPoolIDRequest - */ -export class QueryGaugesByPoolIDRequest extends Message { - /** - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * Pagination defines pagination for the request - * - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryGaugesByPoolIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGaugesByPoolIDRequest { - return new QueryGaugesByPoolIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGaugesByPoolIDRequest { - return new QueryGaugesByPoolIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGaugesByPoolIDRequest { - return new QueryGaugesByPoolIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGaugesByPoolIDRequest | PlainMessage | undefined, b: QueryGaugesByPoolIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGaugesByPoolIDRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.QueryGaugesByPoolIDResponse - */ -export class QueryGaugesByPoolIDResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.Gauge gauges = 1; - */ - gauges: Gauge[] = []; - - /** - * Pagination defines pagination for the response - * - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.QueryGaugesByPoolIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauges", kind: "message", T: Gauge, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGaugesByPoolIDResponse { - return new QueryGaugesByPoolIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGaugesByPoolIDResponse { - return new QueryGaugesByPoolIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGaugesByPoolIDResponse { - return new QueryGaugesByPoolIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGaugesByPoolIDResponse | PlainMessage | undefined, b: QueryGaugesByPoolIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGaugesByPoolIDResponse, a, b); - } -} - -/** - * @generated from message osmosis.incentives.ParamsRequest - */ -export class ParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { - return new ParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.incentives.ParamsResponse - */ -export class ParamsResponse extends Message { - /** - * @generated from field: osmosis.incentives.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.ParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { - return new ParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/incentives/tx_cosmes.ts deleted file mode 100644 index daa68a4..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/tx_cosmes.ts +++ /dev/null @@ -1,39 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/incentives/tx.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAddToGauge, MsgAddToGaugeResponse, MsgCreateGauge, MsgCreateGaugeResponse, MsgCreateGroup, MsgCreateGroupResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.incentives.Msg"; - -/** - * @generated from rpc osmosis.incentives.Msg.CreateGauge - */ -export const MsgCreateGaugeService = { - typeName: TYPE_NAME, - method: "CreateGauge", - Request: MsgCreateGauge, - Response: MsgCreateGaugeResponse, -} as const; - -/** - * @generated from rpc osmosis.incentives.Msg.AddToGauge - */ -export const MsgAddToGaugeService = { - typeName: TYPE_NAME, - method: "AddToGauge", - Request: MsgAddToGauge, - Response: MsgAddToGaugeResponse, -} as const; - -/** - * @generated from rpc osmosis.incentives.Msg.CreateGroup - */ -export const MsgCreateGroupService = { - typeName: TYPE_NAME, - method: "CreateGroup", - Request: MsgCreateGroup, - Response: MsgCreateGroupResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/incentives/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/incentives/tx_pb.ts deleted file mode 100644 index 6ab453d..0000000 --- a/libs/es-client/src/protobufs/osmosis/incentives/tx_pb.ts +++ /dev/null @@ -1,335 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/incentives/tx.proto (package osmosis.incentives, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { QueryCondition } from "../lockup/lock_pb.js"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * MsgCreateGauge creates a gauge to distribute rewards to users - * - * @generated from message osmosis.incentives.MsgCreateGauge - */ -export class MsgCreateGauge extends Message { - /** - * is_perpetual shows if it's a perpetual or non-perpetual gauge - * Non-perpetual gauges distribute their tokens equally per epoch while the - * gauge is in the active period. Perpetual gauges distribute all their tokens - * at a single time and only distribute their tokens again once the gauge is - * refilled - * - * @generated from field: bool is_perpetual = 1; - */ - isPerpetual = false; - - /** - * owner is the address of gauge creator - * - * @generated from field: string owner = 2; - */ - owner = ""; - - /** - * distribute_to show which lock the gauge should distribute to by time - * duration or by timestamp - * - * @generated from field: osmosis.lockup.QueryCondition distribute_to = 3; - */ - distributeTo?: QueryCondition; - - /** - * coins are coin(s) to be distributed by the gauge - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 4; - */ - coins: Coin[] = []; - - /** - * start_time is the distribution start time - * - * @generated from field: google.protobuf.Timestamp start_time = 5; - */ - startTime?: Timestamp; - - /** - * num_epochs_paid_over is the number of epochs distribution will be completed - * over - * - * @generated from field: uint64 num_epochs_paid_over = 6; - */ - numEpochsPaidOver = protoInt64.zero; - - /** - * pool_id is the ID of the pool that the gauge is meant to be associated - * with. if pool_id is set, then the "QueryCondition.LockQueryType" must be - * "NoLock" with all other fields of the "QueryCondition.LockQueryType" struct - * unset, including "QueryCondition.Denom". However, note that, internally, - * the empty string in "QueryCondition.Denom" ends up being overwritten with - * incentivestypes.NoLockExternalGaugeDenom() so that the gauges - * associated with a pool can be queried by this prefix if needed. - * - * @generated from field: uint64 pool_id = 7; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.MsgCreateGauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "is_perpetual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "distribute_to", kind: "message", T: QueryCondition }, - { no: 4, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 5, name: "start_time", kind: "message", T: Timestamp }, - { no: 6, name: "num_epochs_paid_over", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGauge { - return new MsgCreateGauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGauge { - return new MsgCreateGauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGauge { - return new MsgCreateGauge().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGauge | PlainMessage | undefined, b: MsgCreateGauge | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGauge, a, b); - } -} - -/** - * @generated from message osmosis.incentives.MsgCreateGaugeResponse - */ -export class MsgCreateGaugeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.MsgCreateGaugeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGaugeResponse { - return new MsgCreateGaugeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGaugeResponse { - return new MsgCreateGaugeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGaugeResponse { - return new MsgCreateGaugeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGaugeResponse | PlainMessage | undefined, b: MsgCreateGaugeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGaugeResponse, a, b); - } -} - -/** - * MsgAddToGauge adds coins to a previously created gauge - * - * @generated from message osmosis.incentives.MsgAddToGauge - */ -export class MsgAddToGauge extends Message { - /** - * owner is the gauge owner's address - * - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * gauge_id is the ID of gauge that rewards are getting added to - * - * @generated from field: uint64 gauge_id = 2; - */ - gaugeId = protoInt64.zero; - - /** - * rewards are the coin(s) to add to gauge - * - * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 3; - */ - rewards: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.MsgAddToGauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "rewards", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToGauge { - return new MsgAddToGauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToGauge { - return new MsgAddToGauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToGauge { - return new MsgAddToGauge().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToGauge | PlainMessage | undefined, b: MsgAddToGauge | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToGauge, a, b); - } -} - -/** - * @generated from message osmosis.incentives.MsgAddToGaugeResponse - */ -export class MsgAddToGaugeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.MsgAddToGaugeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToGaugeResponse { - return new MsgAddToGaugeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToGaugeResponse { - return new MsgAddToGaugeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToGaugeResponse { - return new MsgAddToGaugeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToGaugeResponse | PlainMessage | undefined, b: MsgAddToGaugeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToGaugeResponse, a, b); - } -} - -/** - * MsgCreateGroup creates a group to distribute rewards to a group of pools - * - * @generated from message osmosis.incentives.MsgCreateGroup - */ -export class MsgCreateGroup extends Message { - /** - * coins are the provided coins that the group will distribute - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - /** - * num_epochs_paid_over is the number of epochs distribution will be completed - * in. 0 means it's perpetual - * - * @generated from field: uint64 num_epochs_paid_over = 2; - */ - numEpochsPaidOver = protoInt64.zero; - - /** - * owner is the group owner's address - * - * @generated from field: string owner = 3; - */ - owner = ""; - - /** - * pool_ids are the IDs of pools that the group is comprised of - * - * @generated from field: repeated uint64 pool_ids = 4; - */ - poolIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.MsgCreateGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "num_epochs_paid_over", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroup { - return new MsgCreateGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroup { - return new MsgCreateGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroup { - return new MsgCreateGroup().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroup | PlainMessage | undefined, b: MsgCreateGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroup, a, b); - } -} - -/** - * @generated from message osmosis.incentives.MsgCreateGroupResponse - */ -export class MsgCreateGroupResponse extends Message { - /** - * group_id is the ID of the group that is created from this msg - * - * @generated from field: uint64 group_id = 1; - */ - groupId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.incentives.MsgCreateGroupResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupResponse { - return new MsgCreateGroupResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupResponse { - return new MsgCreateGroupResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupResponse { - return new MsgCreateGroupResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateGroupResponse | PlainMessage | undefined, b: MsgCreateGroupResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateGroupResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/lockup/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/lockup/genesis_pb.ts deleted file mode 100644 index 52b2630..0000000 --- a/libs/es-client/src/protobufs/osmosis/lockup/genesis_pb.ts +++ /dev/null @@ -1,67 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/genesis.proto (package osmosis.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PeriodLock, SyntheticLock } from "./lock_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the lockup module's genesis state. - * - * @generated from message osmosis.lockup.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: uint64 last_lock_id = 1; - */ - lastLockId = protoInt64.zero; - - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 2; - */ - locks: PeriodLock[] = []; - - /** - * @generated from field: repeated osmosis.lockup.SyntheticLock synthetic_locks = 3; - */ - syntheticLocks: SyntheticLock[] = []; - - /** - * @generated from field: osmosis.lockup.Params params = 4; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "last_lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - { no: 3, name: "synthetic_locks", kind: "message", T: SyntheticLock, repeated: true }, - { no: 4, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/lockup/lock_pb.ts b/libs/es-client/src/protobufs/osmosis/lockup/lock_pb.ts deleted file mode 100644 index fcb447e..0000000 --- a/libs/es-client/src/protobufs/osmosis/lockup/lock_pb.ts +++ /dev/null @@ -1,280 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/lock.proto (package osmosis.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * LockQueryType defines the type of the lock query that can - * either be by duration or start time of the lock. - * - * @generated from enum osmosis.lockup.LockQueryType - */ -export enum LockQueryType { - /** - * @generated from enum value: ByDuration = 0; - */ - ByDuration = 0, - - /** - * @generated from enum value: ByTime = 1; - */ - ByTime = 1, - - /** - * @generated from enum value: NoLock = 2; - */ - NoLock = 2, - - /** - * @generated from enum value: ByGroup = 3; - */ - ByGroup = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(LockQueryType) -proto3.util.setEnumType(LockQueryType, "osmosis.lockup.LockQueryType", [ - { no: 0, name: "ByDuration" }, - { no: 1, name: "ByTime" }, - { no: 2, name: "NoLock" }, - { no: 3, name: "ByGroup" }, -]); - -/** - * PeriodLock is a single lock unit by period defined by the x/lockup module. - * It's a record of a locked coin at a specific time. It stores owner, duration, - * unlock time and the number of coins locked. A state of a period lock is - * created upon lock creation, and deleted once the lock has been matured after - * the `duration` has passed since unbonding started. - * - * @generated from message osmosis.lockup.PeriodLock - */ -export class PeriodLock extends Message { - /** - * ID is the unique id of the lock. - * The ID of the lock is decided upon lock creation, incrementing by 1 for - * every lock. - * - * @generated from field: uint64 ID = 1; - */ - ID = protoInt64.zero; - - /** - * Owner is the account address of the lock owner. - * Only the owner can modify the state of the lock. - * - * @generated from field: string owner = 2; - */ - owner = ""; - - /** - * Duration is the time needed for a lock to mature after unlocking has - * started. - * - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - /** - * EndTime refers to the time at which the lock would mature and get deleted. - * This value is first initialized when an unlock has started for the lock, - * end time being block time + duration. - * - * @generated from field: google.protobuf.Timestamp end_time = 4; - */ - endTime?: Timestamp; - - /** - * Coins are the tokens locked within the lock, kept in the module account. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 5; - */ - coins: Coin[] = []; - - /** - * Reward Receiver Address is the address that would be receiving rewards for - * the incentives for the lock. This is set to owner by default and can be - * changed via separate msg. - * - * @generated from field: string reward_receiver_address = 6; - */ - rewardReceiverAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.PeriodLock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "duration", kind: "message", T: Duration }, - { no: 4, name: "end_time", kind: "message", T: Timestamp }, - { no: 5, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 6, name: "reward_receiver_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PeriodLock { - return new PeriodLock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PeriodLock { - return new PeriodLock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PeriodLock { - return new PeriodLock().fromJsonString(jsonString, options); - } - - static equals(a: PeriodLock | PlainMessage | undefined, b: PeriodLock | PlainMessage | undefined): boolean { - return proto3.util.equals(PeriodLock, a, b); - } -} - -/** - * QueryCondition is a struct used for querying locks upon different conditions. - * Duration field and timestamp fields could be optional, depending on the - * LockQueryType. - * - * @generated from message osmosis.lockup.QueryCondition - */ -export class QueryCondition extends Message { - /** - * LockQueryType is a type of lock query, ByLockDuration | ByLockTime - * - * @generated from field: osmosis.lockup.LockQueryType lock_query_type = 1; - */ - lockQueryType = LockQueryType.ByDuration; - - /** - * Denom represents the token denomination we are looking to lock up - * - * @generated from field: string denom = 2; - */ - denom = ""; - - /** - * Duration is used to query locks with longer duration than the specified - * duration. Duration field must not be nil when the lock query type is - * `ByLockDuration`. - * - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - /** - * Timestamp is used by locks started before the specified duration. - * Timestamp field must not be nil when the lock query type is `ByLockTime`. - * Querying locks with timestamp is currently not implemented. - * - * @generated from field: google.protobuf.Timestamp timestamp = 4; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.QueryCondition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_query_type", kind: "enum", T: proto3.getEnumType(LockQueryType) }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "duration", kind: "message", T: Duration }, - { no: 4, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryCondition { - return new QueryCondition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryCondition { - return new QueryCondition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryCondition { - return new QueryCondition().fromJsonString(jsonString, options); - } - - static equals(a: QueryCondition | PlainMessage | undefined, b: QueryCondition | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryCondition, a, b); - } -} - -/** - * SyntheticLock is creating virtual lockup where new denom is combination of - * original denom and synthetic suffix. At the time of synthetic lockup creation - * and deletion, accumulation store is also being updated and on querier side, - * they can query as freely as native lockup. - * - * @generated from message osmosis.lockup.SyntheticLock - */ -export class SyntheticLock extends Message { - /** - * Underlying Lock ID is the underlying native lock's id for this synthetic - * lockup. A synthetic lock MUST have an underlying lock. - * - * @generated from field: uint64 underlying_lock_id = 1; - */ - underlyingLockId = protoInt64.zero; - - /** - * SynthDenom is the synthetic denom that is a combination of - * gamm share + bonding status + validator address. - * - * @generated from field: string synth_denom = 2; - */ - synthDenom = ""; - - /** - * used for unbonding synthetic lockups, for active synthetic lockups, this - * value is set to uninitialized value - * - * @generated from field: google.protobuf.Timestamp end_time = 3; - */ - endTime?: Timestamp; - - /** - * Duration is the duration for a synthetic lock to mature - * at the point of unbonding has started. - * - * @generated from field: google.protobuf.Duration duration = 4; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.SyntheticLock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "underlying_lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "synth_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "end_time", kind: "message", T: Timestamp }, - { no: 4, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SyntheticLock { - return new SyntheticLock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SyntheticLock { - return new SyntheticLock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SyntheticLock { - return new SyntheticLock().fromJsonString(jsonString, options); - } - - static equals(a: SyntheticLock | PlainMessage | undefined, b: SyntheticLock | PlainMessage | undefined): boolean { - return proto3.util.equals(SyntheticLock, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/lockup/params_pb.ts b/libs/es-client/src/protobufs/osmosis/lockup/params_pb.ts deleted file mode 100644 index 68e4dad..0000000 --- a/libs/es-client/src/protobufs/osmosis/lockup/params_pb.ts +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/params.proto (package osmosis.lockup, 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 osmosis.lockup.Params - */ -export class Params extends Message { - /** - * @generated from field: repeated string force_unlock_allowed_addresses = 1; - */ - forceUnlockAllowedAddresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "force_unlock_allowed_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/lockup/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/lockup/query_cosmes.ts deleted file mode 100644 index 5e67729..0000000 --- a/libs/es-client/src/protobufs/osmosis/lockup/query_cosmes.ts +++ /dev/null @@ -1,253 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/lockup/query.proto (package osmosis.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { AccountLockedCoinsRequest, AccountLockedCoinsResponse, AccountLockedDurationRequest, AccountLockedDurationResponse, AccountLockedLongerDurationDenomRequest, AccountLockedLongerDurationDenomResponse, AccountLockedLongerDurationNotUnlockingOnlyRequest, AccountLockedLongerDurationNotUnlockingOnlyResponse, AccountLockedLongerDurationRequest, AccountLockedLongerDurationResponse, AccountLockedPastTimeDenomRequest, AccountLockedPastTimeDenomResponse, AccountLockedPastTimeNotUnlockingOnlyRequest, AccountLockedPastTimeNotUnlockingOnlyResponse, AccountLockedPastTimeRequest, AccountLockedPastTimeResponse, AccountUnlockableCoinsRequest, AccountUnlockableCoinsResponse, AccountUnlockedBeforeTimeRequest, AccountUnlockedBeforeTimeResponse, AccountUnlockingCoinsRequest, AccountUnlockingCoinsResponse, LockedDenomRequest, LockedDenomResponse, LockedRequest, LockedResponse, LockRewardReceiverRequest, LockRewardReceiverResponse, ModuleBalanceRequest, ModuleBalanceResponse, ModuleLockedAmountRequest, ModuleLockedAmountResponse, NextLockIDRequest, NextLockIDResponse, QueryParamsRequest, QueryParamsResponse, SyntheticLockupByLockupIDRequest, SyntheticLockupByLockupIDResponse, SyntheticLockupsByLockupIDRequest, SyntheticLockupsByLockupIDResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.lockup.Query"; - -/** - * Return full balance of the module - * - * @generated from rpc osmosis.lockup.Query.ModuleBalance - */ -export const QueryModuleBalanceService = { - typeName: TYPE_NAME, - method: "ModuleBalance", - Request: ModuleBalanceRequest, - Response: ModuleBalanceResponse, -} as const; - -/** - * Return locked balance of the module - * - * @generated from rpc osmosis.lockup.Query.ModuleLockedAmount - */ -export const QueryModuleLockedAmountService = { - typeName: TYPE_NAME, - method: "ModuleLockedAmount", - Request: ModuleLockedAmountRequest, - Response: ModuleLockedAmountResponse, -} as const; - -/** - * Returns unlockable coins which are not withdrawn yet - * - * @generated from rpc osmosis.lockup.Query.AccountUnlockableCoins - */ -export const QueryAccountUnlockableCoinsService = { - typeName: TYPE_NAME, - method: "AccountUnlockableCoins", - Request: AccountUnlockableCoinsRequest, - Response: AccountUnlockableCoinsResponse, -} as const; - -/** - * Returns unlocking coins - * - * @generated from rpc osmosis.lockup.Query.AccountUnlockingCoins - */ -export const QueryAccountUnlockingCoinsService = { - typeName: TYPE_NAME, - method: "AccountUnlockingCoins", - Request: AccountUnlockingCoinsRequest, - Response: AccountUnlockingCoinsResponse, -} as const; - -/** - * Return a locked coins that can't be withdrawn - * - * @generated from rpc osmosis.lockup.Query.AccountLockedCoins - */ -export const QueryAccountLockedCoinsService = { - typeName: TYPE_NAME, - method: "AccountLockedCoins", - Request: AccountLockedCoinsRequest, - Response: AccountLockedCoinsResponse, -} as const; - -/** - * Returns locked records of an account with unlock time beyond timestamp - * - * @generated from rpc osmosis.lockup.Query.AccountLockedPastTime - */ -export const QueryAccountLockedPastTimeService = { - typeName: TYPE_NAME, - method: "AccountLockedPastTime", - Request: AccountLockedPastTimeRequest, - Response: AccountLockedPastTimeResponse, -} as const; - -/** - * Returns locked records of an account with unlock time beyond timestamp - * excluding tokens started unlocking - * - * @generated from rpc osmosis.lockup.Query.AccountLockedPastTimeNotUnlockingOnly - */ -export const QueryAccountLockedPastTimeNotUnlockingOnlyService = { - typeName: TYPE_NAME, - method: "AccountLockedPastTimeNotUnlockingOnly", - Request: AccountLockedPastTimeNotUnlockingOnlyRequest, - Response: AccountLockedPastTimeNotUnlockingOnlyResponse, -} as const; - -/** - * Returns unlocked records with unlock time before timestamp - * - * @generated from rpc osmosis.lockup.Query.AccountUnlockedBeforeTime - */ -export const QueryAccountUnlockedBeforeTimeService = { - typeName: TYPE_NAME, - method: "AccountUnlockedBeforeTime", - Request: AccountUnlockedBeforeTimeRequest, - Response: AccountUnlockedBeforeTimeResponse, -} as const; - -/** - * Returns lock records by address, timestamp, denom - * - * @generated from rpc osmosis.lockup.Query.AccountLockedPastTimeDenom - */ -export const QueryAccountLockedPastTimeDenomService = { - typeName: TYPE_NAME, - method: "AccountLockedPastTimeDenom", - Request: AccountLockedPastTimeDenomRequest, - Response: AccountLockedPastTimeDenomResponse, -} as const; - -/** - * Returns total locked per denom with longer past given time - * - * @generated from rpc osmosis.lockup.Query.LockedDenom - */ -export const QueryLockedDenomService = { - typeName: TYPE_NAME, - method: "LockedDenom", - Request: LockedDenomRequest, - Response: LockedDenomResponse, -} as const; - -/** - * Returns lock record by id - * - * @generated from rpc osmosis.lockup.Query.LockedByID - */ -export const QueryLockedByIDService = { - typeName: TYPE_NAME, - method: "LockedByID", - Request: LockedRequest, - Response: LockedResponse, -} as const; - -/** - * Returns lock record by id - * - * @generated from rpc osmosis.lockup.Query.LockRewardReceiver - */ -export const QueryLockRewardReceiverService = { - typeName: TYPE_NAME, - method: "LockRewardReceiver", - Request: LockRewardReceiverRequest, - Response: LockRewardReceiverResponse, -} as const; - -/** - * Returns next lock ID - * - * @generated from rpc osmosis.lockup.Query.NextLockID - */ -export const QueryNextLockIDService = { - typeName: TYPE_NAME, - method: "NextLockID", - Request: NextLockIDRequest, - Response: NextLockIDResponse, -} as const; - -/** - * Returns synthetic lockup by native lockup id - * Deprecated: use SyntheticLockupByLockupID instead - * - * @generated from rpc osmosis.lockup.Query.SyntheticLockupsByLockupID - * @deprecated - */ -export const QuerySyntheticLockupsByLockupIDService = { - typeName: TYPE_NAME, - method: "SyntheticLockupsByLockupID", - Request: SyntheticLockupsByLockupIDRequest, - Response: SyntheticLockupsByLockupIDResponse, -} as const; - -/** - * Returns synthetic lockup by native lockup id - * - * @generated from rpc osmosis.lockup.Query.SyntheticLockupByLockupID - */ -export const QuerySyntheticLockupByLockupIDService = { - typeName: TYPE_NAME, - method: "SyntheticLockupByLockupID", - Request: SyntheticLockupByLockupIDRequest, - Response: SyntheticLockupByLockupIDResponse, -} as const; - -/** - * Returns account locked records with longer duration - * - * @generated from rpc osmosis.lockup.Query.AccountLockedLongerDuration - */ -export const QueryAccountLockedLongerDurationService = { - typeName: TYPE_NAME, - method: "AccountLockedLongerDuration", - Request: AccountLockedLongerDurationRequest, - Response: AccountLockedLongerDurationResponse, -} as const; - -/** - * Returns account locked records with a specific duration - * - * @generated from rpc osmosis.lockup.Query.AccountLockedDuration - */ -export const QueryAccountLockedDurationService = { - typeName: TYPE_NAME, - method: "AccountLockedDuration", - Request: AccountLockedDurationRequest, - Response: AccountLockedDurationResponse, -} as const; - -/** - * Returns account locked records with longer duration excluding tokens - * started unlocking - * - * @generated from rpc osmosis.lockup.Query.AccountLockedLongerDurationNotUnlockingOnly - */ -export const QueryAccountLockedLongerDurationNotUnlockingOnlyService = { - typeName: TYPE_NAME, - method: "AccountLockedLongerDurationNotUnlockingOnly", - Request: AccountLockedLongerDurationNotUnlockingOnlyRequest, - Response: AccountLockedLongerDurationNotUnlockingOnlyResponse, -} as const; - -/** - * Returns account's locked records for a denom with longer duration - * - * @generated from rpc osmosis.lockup.Query.AccountLockedLongerDurationDenom - */ -export const QueryAccountLockedLongerDurationDenomService = { - typeName: TYPE_NAME, - method: "AccountLockedLongerDurationDenom", - Request: AccountLockedLongerDurationDenomRequest, - Response: AccountLockedLongerDurationDenomResponse, -} as const; - -/** - * Params returns lockup params. - * - * @generated from rpc osmosis.lockup.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/lockup/query_pb.ts b/libs/es-client/src/protobufs/osmosis/lockup/query_pb.ts deleted file mode 100644 index 8473752..0000000 --- a/libs/es-client/src/protobufs/osmosis/lockup/query_pb.ts +++ /dev/null @@ -1,1535 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/query.proto (package osmosis.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { PeriodLock, SyntheticLock } from "./lock_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * @generated from message osmosis.lockup.ModuleBalanceRequest - */ -export class ModuleBalanceRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.ModuleBalanceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleBalanceRequest { - return new ModuleBalanceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleBalanceRequest { - return new ModuleBalanceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleBalanceRequest { - return new ModuleBalanceRequest().fromJsonString(jsonString, options); - } - - static equals(a: ModuleBalanceRequest | PlainMessage | undefined, b: ModuleBalanceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleBalanceRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.ModuleBalanceResponse - */ -export class ModuleBalanceResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.ModuleBalanceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleBalanceResponse { - return new ModuleBalanceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleBalanceResponse { - return new ModuleBalanceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleBalanceResponse { - return new ModuleBalanceResponse().fromJsonString(jsonString, options); - } - - static equals(a: ModuleBalanceResponse | PlainMessage | undefined, b: ModuleBalanceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleBalanceResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.ModuleLockedAmountRequest - */ -export class ModuleLockedAmountRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.ModuleLockedAmountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleLockedAmountRequest { - return new ModuleLockedAmountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleLockedAmountRequest { - return new ModuleLockedAmountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleLockedAmountRequest { - return new ModuleLockedAmountRequest().fromJsonString(jsonString, options); - } - - static equals(a: ModuleLockedAmountRequest | PlainMessage | undefined, b: ModuleLockedAmountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleLockedAmountRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.ModuleLockedAmountResponse - */ -export class ModuleLockedAmountResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.ModuleLockedAmountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleLockedAmountResponse { - return new ModuleLockedAmountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleLockedAmountResponse { - return new ModuleLockedAmountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleLockedAmountResponse { - return new ModuleLockedAmountResponse().fromJsonString(jsonString, options); - } - - static equals(a: ModuleLockedAmountResponse | PlainMessage | undefined, b: ModuleLockedAmountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleLockedAmountResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountUnlockableCoinsRequest - */ -export class AccountUnlockableCoinsRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountUnlockableCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockableCoinsRequest { - return new AccountUnlockableCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockableCoinsRequest { - return new AccountUnlockableCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockableCoinsRequest { - return new AccountUnlockableCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockableCoinsRequest | PlainMessage | undefined, b: AccountUnlockableCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockableCoinsRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountUnlockableCoinsResponse - */ -export class AccountUnlockableCoinsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountUnlockableCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockableCoinsResponse { - return new AccountUnlockableCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockableCoinsResponse { - return new AccountUnlockableCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockableCoinsResponse { - return new AccountUnlockableCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockableCoinsResponse | PlainMessage | undefined, b: AccountUnlockableCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockableCoinsResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountUnlockingCoinsRequest - */ -export class AccountUnlockingCoinsRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountUnlockingCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockingCoinsRequest { - return new AccountUnlockingCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockingCoinsRequest { - return new AccountUnlockingCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockingCoinsRequest { - return new AccountUnlockingCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockingCoinsRequest | PlainMessage | undefined, b: AccountUnlockingCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockingCoinsRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountUnlockingCoinsResponse - */ -export class AccountUnlockingCoinsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountUnlockingCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockingCoinsResponse { - return new AccountUnlockingCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockingCoinsResponse { - return new AccountUnlockingCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockingCoinsResponse { - return new AccountUnlockingCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockingCoinsResponse | PlainMessage | undefined, b: AccountUnlockingCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockingCoinsResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedCoinsRequest - */ -export class AccountLockedCoinsRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedCoinsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedCoinsRequest { - return new AccountLockedCoinsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedCoinsRequest { - return new AccountLockedCoinsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedCoinsRequest { - return new AccountLockedCoinsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedCoinsRequest | PlainMessage | undefined, b: AccountLockedCoinsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedCoinsRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedCoinsResponse - */ -export class AccountLockedCoinsResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedCoinsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedCoinsResponse { - return new AccountLockedCoinsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedCoinsResponse { - return new AccountLockedCoinsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedCoinsResponse { - return new AccountLockedCoinsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedCoinsResponse | PlainMessage | undefined, b: AccountLockedCoinsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedCoinsResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedPastTimeRequest - */ -export class AccountLockedPastTimeRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedPastTimeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeRequest { - return new AccountLockedPastTimeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeRequest { - return new AccountLockedPastTimeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeRequest { - return new AccountLockedPastTimeRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeRequest | PlainMessage | undefined, b: AccountLockedPastTimeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedPastTimeResponse - */ -export class AccountLockedPastTimeResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedPastTimeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeResponse { - return new AccountLockedPastTimeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeResponse { - return new AccountLockedPastTimeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeResponse { - return new AccountLockedPastTimeResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeResponse | PlainMessage | undefined, b: AccountLockedPastTimeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedPastTimeNotUnlockingOnlyRequest - */ -export class AccountLockedPastTimeNotUnlockingOnlyRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedPastTimeNotUnlockingOnlyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyRequest { - return new AccountLockedPastTimeNotUnlockingOnlyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyRequest { - return new AccountLockedPastTimeNotUnlockingOnlyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyRequest { - return new AccountLockedPastTimeNotUnlockingOnlyRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeNotUnlockingOnlyRequest | PlainMessage | undefined, b: AccountLockedPastTimeNotUnlockingOnlyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeNotUnlockingOnlyRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedPastTimeNotUnlockingOnlyResponse - */ -export class AccountLockedPastTimeNotUnlockingOnlyResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedPastTimeNotUnlockingOnlyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyResponse { - return new AccountLockedPastTimeNotUnlockingOnlyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyResponse { - return new AccountLockedPastTimeNotUnlockingOnlyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeNotUnlockingOnlyResponse { - return new AccountLockedPastTimeNotUnlockingOnlyResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeNotUnlockingOnlyResponse | PlainMessage | undefined, b: AccountLockedPastTimeNotUnlockingOnlyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeNotUnlockingOnlyResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountUnlockedBeforeTimeRequest - */ -export class AccountUnlockedBeforeTimeRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountUnlockedBeforeTimeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockedBeforeTimeRequest { - return new AccountUnlockedBeforeTimeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockedBeforeTimeRequest { - return new AccountUnlockedBeforeTimeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockedBeforeTimeRequest { - return new AccountUnlockedBeforeTimeRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockedBeforeTimeRequest | PlainMessage | undefined, b: AccountUnlockedBeforeTimeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockedBeforeTimeRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountUnlockedBeforeTimeResponse - */ -export class AccountUnlockedBeforeTimeResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountUnlockedBeforeTimeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountUnlockedBeforeTimeResponse { - return new AccountUnlockedBeforeTimeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountUnlockedBeforeTimeResponse { - return new AccountUnlockedBeforeTimeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountUnlockedBeforeTimeResponse { - return new AccountUnlockedBeforeTimeResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountUnlockedBeforeTimeResponse | PlainMessage | undefined, b: AccountUnlockedBeforeTimeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountUnlockedBeforeTimeResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedPastTimeDenomRequest - */ -export class AccountLockedPastTimeDenomRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 2; - */ - timestamp?: Timestamp; - - /** - * @generated from field: string denom = 3; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedPastTimeDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeDenomRequest { - return new AccountLockedPastTimeDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeDenomRequest { - return new AccountLockedPastTimeDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeDenomRequest { - return new AccountLockedPastTimeDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeDenomRequest | PlainMessage | undefined, b: AccountLockedPastTimeDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedPastTimeDenomResponse - */ -export class AccountLockedPastTimeDenomResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedPastTimeDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedPastTimeDenomResponse { - return new AccountLockedPastTimeDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedPastTimeDenomResponse { - return new AccountLockedPastTimeDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedPastTimeDenomResponse { - return new AccountLockedPastTimeDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedPastTimeDenomResponse | PlainMessage | undefined, b: AccountLockedPastTimeDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedPastTimeDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.LockedDenomRequest - */ -export class LockedDenomRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.LockedDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedDenomRequest { - return new LockedDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedDenomRequest { - return new LockedDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedDenomRequest { - return new LockedDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: LockedDenomRequest | PlainMessage | undefined, b: LockedDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.LockedDenomResponse - */ -export class LockedDenomResponse extends Message { - /** - * @generated from field: string amount = 1; - */ - amount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.LockedDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedDenomResponse { - return new LockedDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedDenomResponse { - return new LockedDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedDenomResponse { - return new LockedDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: LockedDenomResponse | PlainMessage | undefined, b: LockedDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.LockedRequest - */ -export class LockedRequest extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.LockedRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedRequest { - return new LockedRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedRequest { - return new LockedRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedRequest { - return new LockedRequest().fromJsonString(jsonString, options); - } - - static equals(a: LockedRequest | PlainMessage | undefined, b: LockedRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.LockedResponse - */ -export class LockedResponse extends Message { - /** - * @generated from field: osmosis.lockup.PeriodLock lock = 1; - */ - lock?: PeriodLock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.LockedResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock", kind: "message", T: PeriodLock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockedResponse { - return new LockedResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockedResponse { - return new LockedResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockedResponse { - return new LockedResponse().fromJsonString(jsonString, options); - } - - static equals(a: LockedResponse | PlainMessage | undefined, b: LockedResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LockedResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.LockRewardReceiverRequest - */ -export class LockRewardReceiverRequest extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.LockRewardReceiverRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockRewardReceiverRequest { - return new LockRewardReceiverRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockRewardReceiverRequest { - return new LockRewardReceiverRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockRewardReceiverRequest { - return new LockRewardReceiverRequest().fromJsonString(jsonString, options); - } - - static equals(a: LockRewardReceiverRequest | PlainMessage | undefined, b: LockRewardReceiverRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LockRewardReceiverRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.LockRewardReceiverResponse - */ -export class LockRewardReceiverResponse extends Message { - /** - * @generated from field: string reward_receiver = 1; - */ - rewardReceiver = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.LockRewardReceiverResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reward_receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockRewardReceiverResponse { - return new LockRewardReceiverResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockRewardReceiverResponse { - return new LockRewardReceiverResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockRewardReceiverResponse { - return new LockRewardReceiverResponse().fromJsonString(jsonString, options); - } - - static equals(a: LockRewardReceiverResponse | PlainMessage | undefined, b: LockRewardReceiverResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LockRewardReceiverResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.NextLockIDRequest - */ -export class NextLockIDRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.NextLockIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NextLockIDRequest { - return new NextLockIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NextLockIDRequest { - return new NextLockIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NextLockIDRequest { - return new NextLockIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: NextLockIDRequest | PlainMessage | undefined, b: NextLockIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NextLockIDRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.NextLockIDResponse - */ -export class NextLockIDResponse extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.NextLockIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NextLockIDResponse { - return new NextLockIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NextLockIDResponse { - return new NextLockIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NextLockIDResponse { - return new NextLockIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: NextLockIDResponse | PlainMessage | undefined, b: NextLockIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NextLockIDResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.SyntheticLockupsByLockupIDRequest - * @deprecated - */ -export class SyntheticLockupsByLockupIDRequest extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.SyntheticLockupsByLockupIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SyntheticLockupsByLockupIDRequest { - return new SyntheticLockupsByLockupIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SyntheticLockupsByLockupIDRequest { - return new SyntheticLockupsByLockupIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SyntheticLockupsByLockupIDRequest { - return new SyntheticLockupsByLockupIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: SyntheticLockupsByLockupIDRequest | PlainMessage | undefined, b: SyntheticLockupsByLockupIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SyntheticLockupsByLockupIDRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.SyntheticLockupsByLockupIDResponse - * @deprecated - */ -export class SyntheticLockupsByLockupIDResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.SyntheticLock synthetic_locks = 1; - */ - syntheticLocks: SyntheticLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.SyntheticLockupsByLockupIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "synthetic_locks", kind: "message", T: SyntheticLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SyntheticLockupsByLockupIDResponse { - return new SyntheticLockupsByLockupIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SyntheticLockupsByLockupIDResponse { - return new SyntheticLockupsByLockupIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SyntheticLockupsByLockupIDResponse { - return new SyntheticLockupsByLockupIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: SyntheticLockupsByLockupIDResponse | PlainMessage | undefined, b: SyntheticLockupsByLockupIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SyntheticLockupsByLockupIDResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.SyntheticLockupByLockupIDRequest - */ -export class SyntheticLockupByLockupIDRequest extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.SyntheticLockupByLockupIDRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SyntheticLockupByLockupIDRequest { - return new SyntheticLockupByLockupIDRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SyntheticLockupByLockupIDRequest { - return new SyntheticLockupByLockupIDRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SyntheticLockupByLockupIDRequest { - return new SyntheticLockupByLockupIDRequest().fromJsonString(jsonString, options); - } - - static equals(a: SyntheticLockupByLockupIDRequest | PlainMessage | undefined, b: SyntheticLockupByLockupIDRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SyntheticLockupByLockupIDRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.SyntheticLockupByLockupIDResponse - */ -export class SyntheticLockupByLockupIDResponse extends Message { - /** - * @generated from field: osmosis.lockup.SyntheticLock synthetic_lock = 1; - */ - syntheticLock?: SyntheticLock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.SyntheticLockupByLockupIDResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "synthetic_lock", kind: "message", T: SyntheticLock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SyntheticLockupByLockupIDResponse { - return new SyntheticLockupByLockupIDResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SyntheticLockupByLockupIDResponse { - return new SyntheticLockupByLockupIDResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SyntheticLockupByLockupIDResponse { - return new SyntheticLockupByLockupIDResponse().fromJsonString(jsonString, options); - } - - static equals(a: SyntheticLockupByLockupIDResponse | PlainMessage | undefined, b: SyntheticLockupByLockupIDResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SyntheticLockupByLockupIDResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedLongerDurationRequest - */ -export class AccountLockedLongerDurationRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedLongerDurationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationRequest { - return new AccountLockedLongerDurationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationRequest { - return new AccountLockedLongerDurationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationRequest { - return new AccountLockedLongerDurationRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationRequest | PlainMessage | undefined, b: AccountLockedLongerDurationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedLongerDurationResponse - */ -export class AccountLockedLongerDurationResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedLongerDurationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationResponse { - return new AccountLockedLongerDurationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationResponse { - return new AccountLockedLongerDurationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationResponse { - return new AccountLockedLongerDurationResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationResponse | PlainMessage | undefined, b: AccountLockedLongerDurationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedDurationRequest - */ -export class AccountLockedDurationRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedDurationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedDurationRequest { - return new AccountLockedDurationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedDurationRequest { - return new AccountLockedDurationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedDurationRequest { - return new AccountLockedDurationRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedDurationRequest | PlainMessage | undefined, b: AccountLockedDurationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedDurationRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedDurationResponse - */ -export class AccountLockedDurationResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedDurationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedDurationResponse { - return new AccountLockedDurationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedDurationResponse { - return new AccountLockedDurationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedDurationResponse { - return new AccountLockedDurationResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedDurationResponse | PlainMessage | undefined, b: AccountLockedDurationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedDurationResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedLongerDurationNotUnlockingOnlyRequest - */ -export class AccountLockedLongerDurationNotUnlockingOnlyRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedLongerDurationNotUnlockingOnlyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyRequest { - return new AccountLockedLongerDurationNotUnlockingOnlyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyRequest { - return new AccountLockedLongerDurationNotUnlockingOnlyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyRequest { - return new AccountLockedLongerDurationNotUnlockingOnlyRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationNotUnlockingOnlyRequest | PlainMessage | undefined, b: AccountLockedLongerDurationNotUnlockingOnlyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationNotUnlockingOnlyRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedLongerDurationNotUnlockingOnlyResponse - */ -export class AccountLockedLongerDurationNotUnlockingOnlyResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedLongerDurationNotUnlockingOnlyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyResponse { - return new AccountLockedLongerDurationNotUnlockingOnlyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyResponse { - return new AccountLockedLongerDurationNotUnlockingOnlyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationNotUnlockingOnlyResponse { - return new AccountLockedLongerDurationNotUnlockingOnlyResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationNotUnlockingOnlyResponse | PlainMessage | undefined, b: AccountLockedLongerDurationNotUnlockingOnlyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationNotUnlockingOnlyResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedLongerDurationDenomRequest - */ -export class AccountLockedLongerDurationDenomRequest extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - /** - * @generated from field: string denom = 3; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedLongerDurationDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationDenomRequest { - return new AccountLockedLongerDurationDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationDenomRequest { - return new AccountLockedLongerDurationDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationDenomRequest { - return new AccountLockedLongerDurationDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationDenomRequest | PlainMessage | undefined, b: AccountLockedLongerDurationDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.AccountLockedLongerDurationDenomResponse - */ -export class AccountLockedLongerDurationDenomResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock locks = 1; - */ - locks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.AccountLockedLongerDurationDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "locks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountLockedLongerDurationDenomResponse { - return new AccountLockedLongerDurationDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountLockedLongerDurationDenomResponse { - return new AccountLockedLongerDurationDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountLockedLongerDurationDenomResponse { - return new AccountLockedLongerDurationDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: AccountLockedLongerDurationDenomResponse | PlainMessage | undefined, b: AccountLockedLongerDurationDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountLockedLongerDurationDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.lockup.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * @generated from field: osmosis.lockup.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/lockup/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/lockup/tx_cosmes.ts deleted file mode 100644 index 1d3c514..0000000 --- a/libs/es-client/src/protobufs/osmosis/lockup/tx_cosmes.ts +++ /dev/null @@ -1,79 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/lockup/tx.proto (package osmosis.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgBeginUnlocking, MsgBeginUnlockingAll, MsgBeginUnlockingAllResponse, MsgBeginUnlockingResponse, MsgExtendLockup, MsgExtendLockupResponse, MsgForceUnlock, MsgForceUnlockResponse, MsgLockTokens, MsgLockTokensResponse, MsgSetRewardReceiverAddress, MsgSetRewardReceiverAddressResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.lockup.Msg"; - -/** - * LockTokens lock tokens - * - * @generated from rpc osmosis.lockup.Msg.LockTokens - */ -export const MsgLockTokensService = { - typeName: TYPE_NAME, - method: "LockTokens", - Request: MsgLockTokens, - Response: MsgLockTokensResponse, -} as const; - -/** - * BeginUnlockingAll begin unlocking all tokens - * - * @generated from rpc osmosis.lockup.Msg.BeginUnlockingAll - */ -export const MsgBeginUnlockingAllService = { - typeName: TYPE_NAME, - method: "BeginUnlockingAll", - Request: MsgBeginUnlockingAll, - Response: MsgBeginUnlockingAllResponse, -} as const; - -/** - * MsgBeginUnlocking begins unlocking tokens by lock ID - * - * @generated from rpc osmosis.lockup.Msg.BeginUnlocking - */ -export const MsgBeginUnlockingService = { - typeName: TYPE_NAME, - method: "BeginUnlocking", - Request: MsgBeginUnlocking, - Response: MsgBeginUnlockingResponse, -} as const; - -/** - * MsgEditLockup edits the existing lockups by lock ID - * - * @generated from rpc osmosis.lockup.Msg.ExtendLockup - */ -export const MsgExtendLockupService = { - typeName: TYPE_NAME, - method: "ExtendLockup", - Request: MsgExtendLockup, - Response: MsgExtendLockupResponse, -} as const; - -/** - * @generated from rpc osmosis.lockup.Msg.ForceUnlock - */ -export const MsgForceUnlockService = { - typeName: TYPE_NAME, - method: "ForceUnlock", - Request: MsgForceUnlock, - Response: MsgForceUnlockResponse, -} as const; - -/** - * SetRewardReceiverAddress edits the reward receiver for the given lock ID - * - * @generated from rpc osmosis.lockup.Msg.SetRewardReceiverAddress - */ -export const MsgSetRewardReceiverAddressService = { - typeName: TYPE_NAME, - method: "SetRewardReceiverAddress", - Request: MsgSetRewardReceiverAddress, - Response: MsgSetRewardReceiverAddressResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/lockup/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/lockup/tx_pb.ts deleted file mode 100644 index 23856fb..0000000 --- a/libs/es-client/src/protobufs/osmosis/lockup/tx_pb.ts +++ /dev/null @@ -1,616 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/lockup/tx.proto (package osmosis.lockup, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { PeriodLock } from "./lock_pb.js"; - -/** - * @generated from message osmosis.lockup.MsgLockTokens - */ -export class MsgLockTokens extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 3; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgLockTokens"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - { no: 3, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLockTokens { - return new MsgLockTokens().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLockTokens { - return new MsgLockTokens().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLockTokens { - return new MsgLockTokens().fromJsonString(jsonString, options); - } - - static equals(a: MsgLockTokens | PlainMessage | undefined, b: MsgLockTokens | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLockTokens, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgLockTokensResponse - */ -export class MsgLockTokensResponse extends Message { - /** - * @generated from field: uint64 ID = 1; - */ - ID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgLockTokensResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLockTokensResponse { - return new MsgLockTokensResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLockTokensResponse { - return new MsgLockTokensResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLockTokensResponse { - return new MsgLockTokensResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgLockTokensResponse | PlainMessage | undefined, b: MsgLockTokensResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLockTokensResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgBeginUnlockingAll - */ -export class MsgBeginUnlockingAll extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgBeginUnlockingAll"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlockingAll { - return new MsgBeginUnlockingAll().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlockingAll { - return new MsgBeginUnlockingAll().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlockingAll { - return new MsgBeginUnlockingAll().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlockingAll | PlainMessage | undefined, b: MsgBeginUnlockingAll | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlockingAll, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgBeginUnlockingAllResponse - */ -export class MsgBeginUnlockingAllResponse extends Message { - /** - * @generated from field: repeated osmosis.lockup.PeriodLock unlocks = 1; - */ - unlocks: PeriodLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgBeginUnlockingAllResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "unlocks", kind: "message", T: PeriodLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlockingAllResponse { - return new MsgBeginUnlockingAllResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlockingAllResponse { - return new MsgBeginUnlockingAllResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlockingAllResponse { - return new MsgBeginUnlockingAllResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlockingAllResponse | PlainMessage | undefined, b: MsgBeginUnlockingAllResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlockingAllResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgBeginUnlocking - */ -export class MsgBeginUnlocking extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 ID = 2; - */ - ID = protoInt64.zero; - - /** - * Amount of unlocking coins. Unlock all if not set. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 3; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgBeginUnlocking"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlocking { - return new MsgBeginUnlocking().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlocking { - return new MsgBeginUnlocking().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlocking { - return new MsgBeginUnlocking().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlocking | PlainMessage | undefined, b: MsgBeginUnlocking | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlocking, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgBeginUnlockingResponse - */ -export class MsgBeginUnlockingResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - /** - * @generated from field: uint64 unlockingLockID = 2; - */ - unlockingLockID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgBeginUnlockingResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "unlockingLockID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBeginUnlockingResponse { - return new MsgBeginUnlockingResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBeginUnlockingResponse { - return new MsgBeginUnlockingResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBeginUnlockingResponse { - return new MsgBeginUnlockingResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgBeginUnlockingResponse | PlainMessage | undefined, b: MsgBeginUnlockingResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBeginUnlockingResponse, a, b); - } -} - -/** - * MsgExtendLockup extends the existing lockup's duration. - * The new duration is longer than the original. - * - * @generated from message osmosis.lockup.MsgExtendLockup - */ -export class MsgExtendLockup extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 ID = 2; - */ - ID = protoInt64.zero; - - /** - * duration to be set. fails if lower than the current duration, or is - * unlocking - * - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgExtendLockup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExtendLockup { - return new MsgExtendLockup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExtendLockup { - return new MsgExtendLockup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExtendLockup { - return new MsgExtendLockup().fromJsonString(jsonString, options); - } - - static equals(a: MsgExtendLockup | PlainMessage | undefined, b: MsgExtendLockup | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExtendLockup, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgExtendLockupResponse - */ -export class MsgExtendLockupResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgExtendLockupResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgExtendLockupResponse { - return new MsgExtendLockupResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgExtendLockupResponse { - return new MsgExtendLockupResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgExtendLockupResponse { - return new MsgExtendLockupResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgExtendLockupResponse | PlainMessage | undefined, b: MsgExtendLockupResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgExtendLockupResponse, a, b); - } -} - -/** - * MsgForceUnlock unlocks locks immediately for - * addresses registered via governance. - * - * @generated from message osmosis.lockup.MsgForceUnlock - */ -export class MsgForceUnlock extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 ID = 2; - */ - ID = protoInt64.zero; - - /** - * Amount of unlocking coins. Unlock all if not set. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 3; - */ - coins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgForceUnlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceUnlock { - return new MsgForceUnlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceUnlock { - return new MsgForceUnlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgForceUnlock { - return new MsgForceUnlock().fromJsonString(jsonString, options); - } - - static equals(a: MsgForceUnlock | PlainMessage | undefined, b: MsgForceUnlock | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgForceUnlock, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgForceUnlockResponse - */ -export class MsgForceUnlockResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgForceUnlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceUnlockResponse { - return new MsgForceUnlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceUnlockResponse { - return new MsgForceUnlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgForceUnlockResponse { - return new MsgForceUnlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgForceUnlockResponse | PlainMessage | undefined, b: MsgForceUnlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgForceUnlockResponse, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgSetRewardReceiverAddress - */ -export class MsgSetRewardReceiverAddress extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 lockID = 2; - */ - lockID = protoInt64.zero; - - /** - * @generated from field: string reward_receiver = 3; - */ - rewardReceiver = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgSetRewardReceiverAddress"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lockID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "reward_receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRewardReceiverAddress { - return new MsgSetRewardReceiverAddress().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRewardReceiverAddress { - return new MsgSetRewardReceiverAddress().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetRewardReceiverAddress { - return new MsgSetRewardReceiverAddress().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetRewardReceiverAddress | PlainMessage | undefined, b: MsgSetRewardReceiverAddress | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetRewardReceiverAddress, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgSetRewardReceiverAddressResponse - */ -export class MsgSetRewardReceiverAddressResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgSetRewardReceiverAddressResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRewardReceiverAddressResponse { - return new MsgSetRewardReceiverAddressResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRewardReceiverAddressResponse { - return new MsgSetRewardReceiverAddressResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetRewardReceiverAddressResponse { - return new MsgSetRewardReceiverAddressResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetRewardReceiverAddressResponse | PlainMessage | undefined, b: MsgSetRewardReceiverAddressResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetRewardReceiverAddressResponse, a, b); - } -} - -/** - * DEPRECATED - * Following messages are deprecated but kept to support indexing. - * - * @generated from message osmosis.lockup.MsgUnlockPeriodLock - */ -export class MsgUnlockPeriodLock extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - /** - * @generated from field: uint64 ID = 2; - */ - ID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgUnlockPeriodLock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlockPeriodLock { - return new MsgUnlockPeriodLock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlockPeriodLock { - return new MsgUnlockPeriodLock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlockPeriodLock { - return new MsgUnlockPeriodLock().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlockPeriodLock | PlainMessage | undefined, b: MsgUnlockPeriodLock | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlockPeriodLock, a, b); - } -} - -/** - * @generated from message osmosis.lockup.MsgUnlockTokens - */ -export class MsgUnlockTokens extends Message { - /** - * @generated from field: string owner = 1; - */ - owner = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.lockup.MsgUnlockTokens"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlockTokens { - return new MsgUnlockTokens().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlockTokens { - return new MsgUnlockTokens().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlockTokens { - return new MsgUnlockTokens().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlockTokens | PlainMessage | undefined, b: MsgUnlockTokens | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlockTokens, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/mint/v1beta1/genesis_pb.ts deleted file mode 100644 index 62e9075..0000000 --- a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,67 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/mint/v1beta1/genesis.proto (package osmosis.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Minter, Params } from "./mint_pb.js"; - -/** - * GenesisState defines the mint module's genesis state. - * - * @generated from message osmosis.mint.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * minter is an abstraction for holding current rewards information. - * - * @generated from field: osmosis.mint.v1beta1.Minter minter = 1; - */ - minter?: Minter; - - /** - * params defines all the parameters of the mint module. - * - * @generated from field: osmosis.mint.v1beta1.Params params = 2; - */ - params?: Params; - - /** - * reduction_started_epoch is the first epoch in which the reduction of mint - * begins. - * - * @generated from field: int64 reduction_started_epoch = 3; - */ - reductionStartedEpoch = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "minter", kind: "message", T: Minter }, - { no: 2, name: "params", kind: "message", T: Params }, - { no: 3, name: "reduction_started_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/mint_pb.ts b/libs/es-client/src/protobufs/osmosis/mint/v1beta1/mint_pb.ts deleted file mode 100644 index bb7166e..0000000 --- a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/mint_pb.ts +++ /dev/null @@ -1,272 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/mint/v1beta1/mint.proto (package osmosis.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Minter represents the minting state. - * - * @generated from message osmosis.mint.v1beta1.Minter - */ -export class Minter extends Message { - /** - * epoch_provisions represent rewards for the current epoch. - * - * @generated from field: string epoch_provisions = 1; - */ - epochProvisions = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.Minter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_provisions", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Minter { - return new Minter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Minter { - return new Minter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Minter { - return new Minter().fromJsonString(jsonString, options); - } - - static equals(a: Minter | PlainMessage | undefined, b: Minter | PlainMessage | undefined): boolean { - return proto3.util.equals(Minter, a, b); - } -} - -/** - * WeightedAddress represents an address with a weight assigned to it. - * The weight is used to determine the proportion of the total minted - * tokens to be minted to the address. - * - * @generated from message osmosis.mint.v1beta1.WeightedAddress - */ -export class WeightedAddress extends Message { - /** - * @generated from field: string address = 1; - */ - address = ""; - - /** - * @generated from field: string weight = 2; - */ - weight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.WeightedAddress"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WeightedAddress { - return new WeightedAddress().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WeightedAddress { - return new WeightedAddress().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WeightedAddress { - return new WeightedAddress().fromJsonString(jsonString, options); - } - - static equals(a: WeightedAddress | PlainMessage | undefined, b: WeightedAddress | PlainMessage | undefined): boolean { - return proto3.util.equals(WeightedAddress, a, b); - } -} - -/** - * DistributionProportions defines the distribution proportions of the minted - * denom. In other words, defines which stakeholders will receive the minted - * denoms and how much. - * - * @generated from message osmosis.mint.v1beta1.DistributionProportions - */ -export class DistributionProportions extends Message { - /** - * staking defines the proportion of the minted mint_denom that is to be - * allocated as staking rewards. - * - * @generated from field: string staking = 1; - */ - staking = ""; - - /** - * pool_incentives defines the proportion of the minted mint_denom that is - * to be allocated as pool incentives. - * - * @generated from field: string pool_incentives = 2; - */ - poolIncentives = ""; - - /** - * developer_rewards defines the proportion of the minted mint_denom that is - * to be allocated to developer rewards address. - * - * @generated from field: string developer_rewards = 3; - */ - developerRewards = ""; - - /** - * community_pool defines the proportion of the minted mint_denom that is - * to be allocated to the community pool. - * - * @generated from field: string community_pool = 4; - */ - communityPool = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.DistributionProportions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "staking", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_incentives", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "developer_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "community_pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributionProportions { - return new DistributionProportions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributionProportions { - return new DistributionProportions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributionProportions { - return new DistributionProportions().fromJsonString(jsonString, options); - } - - static equals(a: DistributionProportions | PlainMessage | undefined, b: DistributionProportions | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributionProportions, a, b); - } -} - -/** - * Params holds parameters for the x/mint module. - * - * @generated from message osmosis.mint.v1beta1.Params - */ -export class Params extends Message { - /** - * mint_denom is the denom of the coin to mint. - * - * @generated from field: string mint_denom = 1; - */ - mintDenom = ""; - - /** - * genesis_epoch_provisions epoch provisions from the first epoch. - * - * @generated from field: string genesis_epoch_provisions = 2; - */ - genesisEpochProvisions = ""; - - /** - * epoch_identifier mint epoch identifier e.g. (day, week). - * - * @generated from field: string epoch_identifier = 3; - */ - epochIdentifier = ""; - - /** - * reduction_period_in_epochs the number of epochs it takes - * to reduce the rewards. - * - * @generated from field: int64 reduction_period_in_epochs = 4; - */ - reductionPeriodInEpochs = protoInt64.zero; - - /** - * reduction_factor is the reduction multiplier to execute - * at the end of each period set by reduction_period_in_epochs. - * - * @generated from field: string reduction_factor = 5; - */ - reductionFactor = ""; - - /** - * distribution_proportions defines the distribution proportions of the minted - * denom. In other words, defines which stakeholders will receive the minted - * denoms and how much. - * - * @generated from field: osmosis.mint.v1beta1.DistributionProportions distribution_proportions = 6; - */ - distributionProportions?: DistributionProportions; - - /** - * weighted_developer_rewards_receivers is the address to receive developer - * rewards with weights assignedt to each address. The final amount that each - * address receives is: epoch_provisions * - * distribution_proportions.developer_rewards * Address's Weight. - * - * @generated from field: repeated osmosis.mint.v1beta1.WeightedAddress weighted_developer_rewards_receivers = 7; - */ - weightedDeveloperRewardsReceivers: WeightedAddress[] = []; - - /** - * minting_rewards_distribution_start_epoch start epoch to distribute minting - * rewards - * - * @generated from field: int64 minting_rewards_distribution_start_epoch = 8; - */ - mintingRewardsDistributionStartEpoch = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "mint_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "genesis_epoch_provisions", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "reduction_period_in_epochs", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "reduction_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "distribution_proportions", kind: "message", T: DistributionProportions }, - { no: 7, name: "weighted_developer_rewards_receivers", kind: "message", T: WeightedAddress, repeated: true }, - { no: 8, name: "minting_rewards_distribution_start_epoch", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts deleted file mode 100644 index 00d12db..0000000 --- a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/mint/v1beta1/query.proto (package osmosis.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryEpochProvisionsRequest, QueryEpochProvisionsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.mint.v1beta1.Query"; - -/** - * Params returns the total set of minting parameters. - * - * @generated from rpc osmosis.mint.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * EpochProvisions returns the current minting epoch provisions value. - * - * @generated from rpc osmosis.mint.v1beta1.Query.EpochProvisions - */ -export const QueryEpochProvisionsService = { - typeName: TYPE_NAME, - method: "EpochProvisions", - Request: QueryEpochProvisionsRequest, - Response: QueryEpochProvisionsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_pb.ts deleted file mode 100644 index 5bc4b69..0000000 --- a/libs/es-client/src/protobufs/osmosis/mint/v1beta1/query_pb.ts +++ /dev/null @@ -1,159 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/mint/v1beta1/query.proto (package osmosis.mint.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./mint_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message osmosis.mint.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message osmosis.mint.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: osmosis.mint.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryEpochProvisionsRequest is the request type for the - * Query/EpochProvisions RPC method. - * - * @generated from message osmosis.mint.v1beta1.QueryEpochProvisionsRequest - */ -export class QueryEpochProvisionsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.QueryEpochProvisionsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochProvisionsRequest { - return new QueryEpochProvisionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochProvisionsRequest { - return new QueryEpochProvisionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochProvisionsRequest { - return new QueryEpochProvisionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochProvisionsRequest | PlainMessage | undefined, b: QueryEpochProvisionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochProvisionsRequest, a, b); - } -} - -/** - * QueryEpochProvisionsResponse is the response type for the - * Query/EpochProvisions RPC method. - * - * @generated from message osmosis.mint.v1beta1.QueryEpochProvisionsResponse - */ -export class QueryEpochProvisionsResponse extends Message { - /** - * epoch_provisions is the current minting per epoch provisions value. - * - * @generated from field: bytes epoch_provisions = 1; - */ - epochProvisions = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.mint.v1beta1.QueryEpochProvisionsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_provisions", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEpochProvisionsResponse { - return new QueryEpochProvisionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEpochProvisionsResponse { - return new QueryEpochProvisionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEpochProvisionsResponse { - return new QueryEpochProvisionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEpochProvisionsResponse | PlainMessage | undefined, b: QueryEpochProvisionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEpochProvisionsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/genesis_pb.ts deleted file mode 100644 index ce00876..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,82 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolincentives/v1beta1/genesis.proto (package osmosis.poolincentives.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3 } from "@bufbuild/protobuf"; -import { AnyPoolToInternalGauges, ConcentratedPoolToNoLockGauges, DistrInfo, Params } from "./incentives_pb.js"; - -/** - * GenesisState defines the pool incentives module's genesis state. - * - * @generated from message osmosis.poolincentives.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines all the parameters of the module. - * - * @generated from field: osmosis.poolincentives.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * @generated from field: repeated google.protobuf.Duration lockable_durations = 2; - */ - lockableDurations: Duration[] = []; - - /** - * @generated from field: osmosis.poolincentives.v1beta1.DistrInfo distr_info = 3; - */ - distrInfo?: DistrInfo; - - /** - * any_pool_to_internal_gauges defines the gauges for any pool to internal - * pool. For every pool type (e.g. LP, Concentrated, etc), there is one such - * link - * - * @generated from field: osmosis.poolincentives.v1beta1.AnyPoolToInternalGauges any_pool_to_internal_gauges = 4; - */ - anyPoolToInternalGauges?: AnyPoolToInternalGauges; - - /** - * concentrated_pool_to_no_lock_gauges defines the no lock gauges for - * concentrated pool. This only exists between concentrated pool and no lock - * gauges. Both external and internal gauges are included. - * - * @generated from field: osmosis.poolincentives.v1beta1.ConcentratedPoolToNoLockGauges concentrated_pool_to_no_lock_gauges = 5; - */ - concentratedPoolToNoLockGauges?: ConcentratedPoolToNoLockGauges; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - { no: 3, name: "distr_info", kind: "message", T: DistrInfo }, - { no: 4, name: "any_pool_to_internal_gauges", kind: "message", T: AnyPoolToInternalGauges }, - { no: 5, name: "concentrated_pool_to_no_lock_gauges", kind: "message", T: ConcentratedPoolToNoLockGauges }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/gov_pb.ts deleted file mode 100644 index 9fd9ee3..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/gov_pb.ts +++ /dev/null @@ -1,123 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolincentives/v1beta1/gov.proto (package osmosis.poolincentives.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { DistrRecord } from "./incentives_pb.js"; - -/** - * ReplacePoolIncentivesProposal is a gov Content type for updating the pool - * incentives. If a ReplacePoolIncentivesProposal passes, the proposal’s records - * override the existing DistrRecords set in the module. Each record has a - * specified gauge id and weight, and the incentives are distributed to each - * gauge according to weight/total_weight. The incentives are put in the fee - * pool and it is allocated to gauges and community pool by the DistrRecords - * configuration. Note that gaugeId=0 represents the community pool. - * - * @generated from message osmosis.poolincentives.v1beta1.ReplacePoolIncentivesProposal - */ -export class ReplacePoolIncentivesProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.DistrRecord records = 3; - */ - records: DistrRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.ReplacePoolIncentivesProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "records", kind: "message", T: DistrRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ReplacePoolIncentivesProposal { - return new ReplacePoolIncentivesProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ReplacePoolIncentivesProposal { - return new ReplacePoolIncentivesProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ReplacePoolIncentivesProposal { - return new ReplacePoolIncentivesProposal().fromJsonString(jsonString, options); - } - - static equals(a: ReplacePoolIncentivesProposal | PlainMessage | undefined, b: ReplacePoolIncentivesProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(ReplacePoolIncentivesProposal, a, b); - } -} - -/** - * For example: if the existing DistrRecords were: - * [(Gauge 0, 5), (Gauge 1, 6), (Gauge 2, 6)] - * An UpdatePoolIncentivesProposal includes - * [(Gauge 1, 0), (Gauge 2, 4), (Gauge 3, 10)] - * This would delete Gauge 1, Edit Gauge 2, and Add Gauge 3 - * The result DistrRecords in state would be: - * [(Gauge 0, 5), (Gauge 2, 4), (Gauge 3, 10)] - * - * @generated from message osmosis.poolincentives.v1beta1.UpdatePoolIncentivesProposal - */ -export class UpdatePoolIncentivesProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.DistrRecord records = 3; - */ - records: DistrRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.UpdatePoolIncentivesProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "records", kind: "message", T: DistrRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdatePoolIncentivesProposal { - return new UpdatePoolIncentivesProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdatePoolIncentivesProposal { - return new UpdatePoolIncentivesProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdatePoolIncentivesProposal { - return new UpdatePoolIncentivesProposal().fromJsonString(jsonString, options); - } - - static equals(a: UpdatePoolIncentivesProposal | PlainMessage | undefined, b: UpdatePoolIncentivesProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdatePoolIncentivesProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/incentives_pb.ts b/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/incentives_pb.ts deleted file mode 100644 index 4aeabee..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/incentives_pb.ts +++ /dev/null @@ -1,296 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolincentives/v1beta1/incentives.proto (package osmosis.poolincentives.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message osmosis.poolincentives.v1beta1.Params - */ -export class Params extends Message { - /** - * minted_denom is the denomination of the coin expected to be minted by the - * minting module. Pool-incentives module doesn’t actually mint the coin - * itself, but rather manages the distribution of coins that matches the - * defined minted_denom. - * - * @generated from field: string minted_denom = 1; - */ - mintedDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "minted_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.LockableDurationsInfo - */ -export class LockableDurationsInfo extends Message { - /** - * @generated from field: repeated google.protobuf.Duration lockable_durations = 1; - */ - lockableDurations: Duration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.LockableDurationsInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockableDurationsInfo { - return new LockableDurationsInfo().fromJsonString(jsonString, options); - } - - static equals(a: LockableDurationsInfo | PlainMessage | undefined, b: LockableDurationsInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(LockableDurationsInfo, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.DistrInfo - */ -export class DistrInfo extends Message { - /** - * @generated from field: string total_weight = 1; - */ - totalWeight = ""; - - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.DistrRecord records = 2; - */ - records: DistrRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.DistrInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "records", kind: "message", T: DistrRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistrInfo { - return new DistrInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistrInfo { - return new DistrInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistrInfo { - return new DistrInfo().fromJsonString(jsonString, options); - } - - static equals(a: DistrInfo | PlainMessage | undefined, b: DistrInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(DistrInfo, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.DistrRecord - */ -export class DistrRecord extends Message { - /** - * @generated from field: uint64 gauge_id = 1; - */ - gaugeId = protoInt64.zero; - - /** - * @generated from field: string weight = 2; - */ - weight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.DistrRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistrRecord { - return new DistrRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistrRecord { - return new DistrRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistrRecord { - return new DistrRecord().fromJsonString(jsonString, options); - } - - static equals(a: DistrRecord | PlainMessage | undefined, b: DistrRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(DistrRecord, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.PoolToGauge - */ -export class PoolToGauge extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: uint64 gauge_id = 2; - */ - gaugeId = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Duration duration = 3; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.PoolToGauge"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolToGauge { - return new PoolToGauge().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolToGauge { - return new PoolToGauge().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolToGauge { - return new PoolToGauge().fromJsonString(jsonString, options); - } - - static equals(a: PoolToGauge | PlainMessage | undefined, b: PoolToGauge | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolToGauge, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.AnyPoolToInternalGauges - */ -export class AnyPoolToInternalGauges extends Message { - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.PoolToGauge pool_to_gauge = 2; - */ - poolToGauge: PoolToGauge[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.AnyPoolToInternalGauges"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "pool_to_gauge", kind: "message", T: PoolToGauge, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AnyPoolToInternalGauges { - return new AnyPoolToInternalGauges().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AnyPoolToInternalGauges { - return new AnyPoolToInternalGauges().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AnyPoolToInternalGauges { - return new AnyPoolToInternalGauges().fromJsonString(jsonString, options); - } - - static equals(a: AnyPoolToInternalGauges | PlainMessage | undefined, b: AnyPoolToInternalGauges | PlainMessage | undefined): boolean { - return proto3.util.equals(AnyPoolToInternalGauges, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.ConcentratedPoolToNoLockGauges - */ -export class ConcentratedPoolToNoLockGauges extends Message { - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.PoolToGauge pool_to_gauge = 1; - */ - poolToGauge: PoolToGauge[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.ConcentratedPoolToNoLockGauges"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_to_gauge", kind: "message", T: PoolToGauge, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConcentratedPoolToNoLockGauges { - return new ConcentratedPoolToNoLockGauges().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConcentratedPoolToNoLockGauges { - return new ConcentratedPoolToNoLockGauges().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConcentratedPoolToNoLockGauges { - return new ConcentratedPoolToNoLockGauges().fromJsonString(jsonString, options); - } - - static equals(a: ConcentratedPoolToNoLockGauges | PlainMessage | undefined, b: ConcentratedPoolToNoLockGauges | PlainMessage | undefined): boolean { - return proto3.util.equals(ConcentratedPoolToNoLockGauges, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_cosmes.ts deleted file mode 100644 index c2b8b78..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,81 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/poolincentives/v1beta1/query.proto (package osmosis.poolincentives.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryDistrInfoRequest, QueryDistrInfoResponse, QueryExternalIncentiveGaugesRequest, QueryExternalIncentiveGaugesResponse, QueryGaugeIdsRequest, QueryGaugeIdsResponse, QueryIncentivizedPoolsRequest, QueryIncentivizedPoolsResponse, QueryLockableDurationsRequest, QueryLockableDurationsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.poolincentives.v1beta1.Query"; - -/** - * GaugeIds takes the pool id and returns the matching gauge ids and durations - * - * @generated from rpc osmosis.poolincentives.v1beta1.Query.GaugeIds - */ -export const QueryGaugeIdsService = { - typeName: TYPE_NAME, - method: "GaugeIds", - Request: QueryGaugeIdsRequest, - Response: QueryGaugeIdsResponse, -} as const; - -/** - * DistrInfo returns the pool's matching gauge ids and weights. - * - * @generated from rpc osmosis.poolincentives.v1beta1.Query.DistrInfo - */ -export const QueryDistrInfoService = { - typeName: TYPE_NAME, - method: "DistrInfo", - Request: QueryDistrInfoRequest, - Response: QueryDistrInfoResponse, -} as const; - -/** - * Params returns pool incentives params. - * - * @generated from rpc osmosis.poolincentives.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * LockableDurations returns lock durations for pools. - * - * @generated from rpc osmosis.poolincentives.v1beta1.Query.LockableDurations - */ -export const QueryLockableDurationsService = { - typeName: TYPE_NAME, - method: "LockableDurations", - Request: QueryLockableDurationsRequest, - Response: QueryLockableDurationsResponse, -} as const; - -/** - * IncentivizedPools returns currently incentivized pools - * - * @generated from rpc osmosis.poolincentives.v1beta1.Query.IncentivizedPools - */ -export const QueryIncentivizedPoolsService = { - typeName: TYPE_NAME, - method: "IncentivizedPools", - Request: QueryIncentivizedPoolsRequest, - Response: QueryIncentivizedPoolsResponse, -} as const; - -/** - * ExternalIncentiveGauges returns external incentive gauges. - * - * @generated from rpc osmosis.poolincentives.v1beta1.Query.ExternalIncentiveGauges - */ -export const QueryExternalIncentiveGaugesService = { - typeName: TYPE_NAME, - method: "ExternalIncentiveGauges", - Request: QueryExternalIncentiveGaugesRequest, - Response: QueryExternalIncentiveGaugesResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_pb.ts deleted file mode 100644 index 66c601c..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/query_pb.ts +++ /dev/null @@ -1,522 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolincentives/v1beta1/query.proto (package osmosis.poolincentives.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { DistrInfo, Params } from "./incentives_pb.js"; -import { Gauge } from "../../incentives/gauge_pb.js"; - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryGaugeIdsRequest - */ -export class QueryGaugeIdsRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryGaugeIdsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGaugeIdsRequest { - return new QueryGaugeIdsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGaugeIdsRequest { - return new QueryGaugeIdsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGaugeIdsRequest { - return new QueryGaugeIdsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGaugeIdsRequest | PlainMessage | undefined, b: QueryGaugeIdsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGaugeIdsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryGaugeIdsResponse - */ -export class QueryGaugeIdsResponse extends Message { - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.QueryGaugeIdsResponse.GaugeIdWithDuration gauge_ids_with_duration = 1; - */ - gaugeIdsWithDuration: QueryGaugeIdsResponse_GaugeIdWithDuration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryGaugeIdsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge_ids_with_duration", kind: "message", T: QueryGaugeIdsResponse_GaugeIdWithDuration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGaugeIdsResponse { - return new QueryGaugeIdsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGaugeIdsResponse { - return new QueryGaugeIdsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGaugeIdsResponse { - return new QueryGaugeIdsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGaugeIdsResponse | PlainMessage | undefined, b: QueryGaugeIdsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGaugeIdsResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryGaugeIdsResponse.GaugeIdWithDuration - */ -export class QueryGaugeIdsResponse_GaugeIdWithDuration extends Message { - /** - * @generated from field: uint64 gauge_id = 1; - */ - gaugeId = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Duration duration = 2; - */ - duration?: Duration; - - /** - * @generated from field: string gauge_incentive_percentage = 3; - */ - gaugeIncentivePercentage = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryGaugeIdsResponse.GaugeIdWithDuration"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "duration", kind: "message", T: Duration }, - { no: 3, name: "gauge_incentive_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGaugeIdsResponse_GaugeIdWithDuration { - return new QueryGaugeIdsResponse_GaugeIdWithDuration().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGaugeIdsResponse_GaugeIdWithDuration { - return new QueryGaugeIdsResponse_GaugeIdWithDuration().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGaugeIdsResponse_GaugeIdWithDuration { - return new QueryGaugeIdsResponse_GaugeIdWithDuration().fromJsonString(jsonString, options); - } - - static equals(a: QueryGaugeIdsResponse_GaugeIdWithDuration | PlainMessage | undefined, b: QueryGaugeIdsResponse_GaugeIdWithDuration | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGaugeIdsResponse_GaugeIdWithDuration, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryDistrInfoRequest - */ -export class QueryDistrInfoRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryDistrInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDistrInfoRequest { - return new QueryDistrInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDistrInfoRequest { - return new QueryDistrInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDistrInfoRequest { - return new QueryDistrInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDistrInfoRequest | PlainMessage | undefined, b: QueryDistrInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDistrInfoRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryDistrInfoResponse - */ -export class QueryDistrInfoResponse extends Message { - /** - * @generated from field: osmosis.poolincentives.v1beta1.DistrInfo distr_info = 1; - */ - distrInfo?: DistrInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryDistrInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "distr_info", kind: "message", T: DistrInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDistrInfoResponse { - return new QueryDistrInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDistrInfoResponse { - return new QueryDistrInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDistrInfoResponse { - return new QueryDistrInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDistrInfoResponse | PlainMessage | undefined, b: QueryDistrInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDistrInfoResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * @generated from field: osmosis.poolincentives.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryLockableDurationsRequest - */ -export class QueryLockableDurationsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryLockableDurationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLockableDurationsRequest { - return new QueryLockableDurationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryLockableDurationsRequest | PlainMessage | undefined, b: QueryLockableDurationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLockableDurationsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryLockableDurationsResponse - */ -export class QueryLockableDurationsResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Duration lockable_durations = 1; - */ - lockableDurations: Duration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryLockableDurationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lockable_durations", kind: "message", T: Duration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryLockableDurationsResponse { - return new QueryLockableDurationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryLockableDurationsResponse | PlainMessage | undefined, b: QueryLockableDurationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryLockableDurationsResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryIncentivizedPoolsRequest - */ -export class QueryIncentivizedPoolsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryIncentivizedPoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPoolsRequest { - return new QueryIncentivizedPoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPoolsRequest { - return new QueryIncentivizedPoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPoolsRequest { - return new QueryIncentivizedPoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPoolsRequest | PlainMessage | undefined, b: QueryIncentivizedPoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.IncentivizedPool - */ -export class IncentivizedPool extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Duration lockable_duration = 2; - */ - lockableDuration?: Duration; - - /** - * @generated from field: uint64 gauge_id = 3; - */ - gaugeId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.IncentivizedPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "lockable_duration", kind: "message", T: Duration }, - { no: 3, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IncentivizedPool { - return new IncentivizedPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IncentivizedPool { - return new IncentivizedPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IncentivizedPool { - return new IncentivizedPool().fromJsonString(jsonString, options); - } - - static equals(a: IncentivizedPool | PlainMessage | undefined, b: IncentivizedPool | PlainMessage | undefined): boolean { - return proto3.util.equals(IncentivizedPool, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryIncentivizedPoolsResponse - */ -export class QueryIncentivizedPoolsResponse extends Message { - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.IncentivizedPool incentivized_pools = 1; - */ - incentivizedPools: IncentivizedPool[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryIncentivizedPoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "incentivized_pools", kind: "message", T: IncentivizedPool, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryIncentivizedPoolsResponse { - return new QueryIncentivizedPoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryIncentivizedPoolsResponse { - return new QueryIncentivizedPoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryIncentivizedPoolsResponse { - return new QueryIncentivizedPoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryIncentivizedPoolsResponse | PlainMessage | undefined, b: QueryIncentivizedPoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryIncentivizedPoolsResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryExternalIncentiveGaugesRequest - */ -export class QueryExternalIncentiveGaugesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryExternalIncentiveGaugesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalIncentiveGaugesRequest { - return new QueryExternalIncentiveGaugesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalIncentiveGaugesRequest { - return new QueryExternalIncentiveGaugesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryExternalIncentiveGaugesRequest { - return new QueryExternalIncentiveGaugesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryExternalIncentiveGaugesRequest | PlainMessage | undefined, b: QueryExternalIncentiveGaugesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryExternalIncentiveGaugesRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolincentives.v1beta1.QueryExternalIncentiveGaugesResponse - */ -export class QueryExternalIncentiveGaugesResponse extends Message { - /** - * @generated from field: repeated osmosis.incentives.Gauge data = 1; - */ - data: Gauge[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.QueryExternalIncentiveGaugesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "message", T: Gauge, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryExternalIncentiveGaugesResponse { - return new QueryExternalIncentiveGaugesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryExternalIncentiveGaugesResponse { - return new QueryExternalIncentiveGaugesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryExternalIncentiveGaugesResponse { - return new QueryExternalIncentiveGaugesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryExternalIncentiveGaugesResponse | PlainMessage | undefined, b: QueryExternalIncentiveGaugesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryExternalIncentiveGaugesResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/shared_pb.ts b/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/shared_pb.ts deleted file mode 100644 index 1c38151..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolincentives/v1beta1/shared_pb.ts +++ /dev/null @@ -1,104 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolincentives/v1beta1/shared.proto (package osmosis.poolincentives.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * MigrationRecords contains all the links between balancer and concentrated - * pools. - * - * This is copied over from the gamm proto file in order to circumnavigate - * the circular dependency between the two modules. - * - * @generated from message osmosis.poolincentives.v1beta1.MigrationRecords - */ -export class MigrationRecords extends Message { - /** - * @generated from field: repeated osmosis.poolincentives.v1beta1.BalancerToConcentratedPoolLink balancer_to_concentrated_pool_links = 1; - */ - balancerToConcentratedPoolLinks: BalancerToConcentratedPoolLink[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.MigrationRecords"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balancer_to_concentrated_pool_links", kind: "message", T: BalancerToConcentratedPoolLink, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MigrationRecords { - return new MigrationRecords().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MigrationRecords { - return new MigrationRecords().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MigrationRecords { - return new MigrationRecords().fromJsonString(jsonString, options); - } - - static equals(a: MigrationRecords | PlainMessage | undefined, b: MigrationRecords | PlainMessage | undefined): boolean { - return proto3.util.equals(MigrationRecords, a, b); - } -} - -/** - * BalancerToConcentratedPoolLink defines a single link between a single - * balancer pool and a single concentrated liquidity pool. This link is used to - * allow a balancer pool to migrate to a single canonical full range - * concentrated liquidity pool position - * A balancer pool can be linked to a maximum of one cl pool, and a cl pool can - * be linked to a maximum of one balancer pool. - * - * This is copied over from the gamm proto file in order to circumnavigate - * the circular dependency between the two modules. - * - * @generated from message osmosis.poolincentives.v1beta1.BalancerToConcentratedPoolLink - */ -export class BalancerToConcentratedPoolLink extends Message { - /** - * @generated from field: uint64 balancer_pool_id = 1; - */ - balancerPoolId = protoInt64.zero; - - /** - * @generated from field: uint64 cl_pool_id = 2; - */ - clPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolincentives.v1beta1.BalancerToConcentratedPoolLink"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "balancer_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "cl_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BalancerToConcentratedPoolLink { - return new BalancerToConcentratedPoolLink().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BalancerToConcentratedPoolLink { - return new BalancerToConcentratedPoolLink().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BalancerToConcentratedPoolLink { - return new BalancerToConcentratedPoolLink().fromJsonString(jsonString, options); - } - - static equals(a: BalancerToConcentratedPoolLink | PlainMessage | undefined, b: BalancerToConcentratedPoolLink | PlainMessage | undefined): boolean { - return proto3.util.equals(BalancerToConcentratedPoolLink, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts deleted file mode 100644 index 0a74c25..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,401 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/genesis.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { ModuleRoute } from "./module_route_pb.js"; -import { DenomPairTakerFee } from "./tx_pb.js"; - -/** - * Params holds parameters for the poolmanager module - * - * @generated from message osmosis.poolmanager.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin pool_creation_fee = 1; - */ - poolCreationFee: Coin[] = []; - - /** - * taker_fee_params is the container of taker fee parameters. - * - * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeParams taker_fee_params = 2; - */ - takerFeeParams?: TakerFeeParams; - - /** - * authorized_quote_denoms is a list of quote denoms that can be used as - * token1 when creating a concentrated pool. We limit the quote assets to a - * small set for the purposes of having convenient price increments stemming - * from tick to price conversion. These increments are in a human readable - * magnitude only for token1 as a quote. For limit orders in the future, this - * will be a desirable property in terms of UX as to allow users to set limit - * orders at prices in terms of token1 (quote asset) that are easy to reason - * about. - * - * @generated from field: repeated string authorized_quote_denoms = 3; - */ - authorizedQuoteDenoms: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_creation_fee", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "taker_fee_params", kind: "message", T: TakerFeeParams }, - { no: 3, name: "authorized_quote_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * GenesisState defines the poolmanager module's genesis state. - * - * @generated from message osmosis.poolmanager.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * the next_pool_id - * - * @generated from field: uint64 next_pool_id = 1; - */ - nextPoolId = protoInt64.zero; - - /** - * params is the container of poolmanager parameters. - * - * @generated from field: osmosis.poolmanager.v1beta1.Params params = 2; - */ - params?: Params; - - /** - * pool_routes is the container of the mappings from pool id to pool type. - * - * @generated from field: repeated osmosis.poolmanager.v1beta1.ModuleRoute pool_routes = 3; - */ - poolRoutes: ModuleRoute[] = []; - - /** - * KVStore state - * - * @generated from field: osmosis.poolmanager.v1beta1.TakerFeesTracker taker_fees_tracker = 4; - */ - takerFeesTracker?: TakerFeesTracker; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.PoolVolume pool_volumes = 5; - */ - poolVolumes: PoolVolume[] = []; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.DenomPairTakerFee denom_pair_taker_fee_store = 6; - */ - denomPairTakerFeeStore: DenomPairTakerFee[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "next_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "params", kind: "message", T: Params }, - { no: 3, name: "pool_routes", kind: "message", T: ModuleRoute, repeated: true }, - { no: 4, name: "taker_fees_tracker", kind: "message", T: TakerFeesTracker }, - { no: 5, name: "pool_volumes", kind: "message", T: PoolVolume, repeated: true }, - { no: 6, name: "denom_pair_taker_fee_store", kind: "message", T: DenomPairTakerFee, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * TakerFeeParams consolidates the taker fee parameters for the poolmanager. - * - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeParams - */ -export class TakerFeeParams extends Message { - /** - * default_taker_fee is the fee used when creating a new pool that doesn't - * fall under a custom pool taker fee or stableswap taker fee category. - * - * @generated from field: string default_taker_fee = 1; - */ - defaultTakerFee = ""; - - /** - * osmo_taker_fee_distribution defines the distribution of taker fees - * generated in OSMO. As of this writing, it has two categories: - * - staking_rewards: the percent of the taker fee that gets distributed to - * stakers. - * - community_pool: the percent of the taker fee that gets sent to the - * community pool. - * - * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage osmo_taker_fee_distribution = 2; - */ - osmoTakerFeeDistribution?: TakerFeeDistributionPercentage; - - /** - * non_osmo_taker_fee_distribution defines the distribution of taker fees - * generated in non-OSMO. As of this writing, it has two categories: - * - staking_rewards: the percent of the taker fee that gets swapped to OSMO - * and then distributed to stakers. - * - community_pool: the percent of the taker fee that gets sent to the - * community pool. Note: If the non-OSMO asset is an authorized_quote_denom, - * that denom is sent directly to the community pool. Otherwise, it is - * swapped to the community_pool_denom_to_swap_non_whitelisted_assets_to and - * then sent to the community pool as that denom. - * - * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage non_osmo_taker_fee_distribution = 3; - */ - nonOsmoTakerFeeDistribution?: TakerFeeDistributionPercentage; - - /** - * admin_addresses is a list of addresses that are allowed to set and remove - * custom taker fees for denom pairs. Governance also has the ability to set - * and remove custom taker fees for denom pairs, but with the normal - * governance delay. - * - * @generated from field: repeated string admin_addresses = 4; - */ - adminAddresses: string[] = []; - - /** - * community_pool_denom_to_swap_non_whitelisted_assets_to is the denom that - * non-whitelisted taker fees will be swapped to before being sent to - * the community pool. - * - * @generated from field: string community_pool_denom_to_swap_non_whitelisted_assets_to = 5; - */ - communityPoolDenomToSwapNonWhitelistedAssetsTo = ""; - - /** - * reduced_fee_whitelist is a list of addresses that are - * allowed to pay a reduce taker fee when performing a swap - * (i.e. swap without paying the taker fee). - * It is intended to be used for integrators who meet qualifying factors - * that are approved by governance. - * Initially, the taker fee is allowed to be bypassed completely. However - * In the future, we will charge a reduced taker fee instead of no fee at all. - * - * @generated from field: repeated string reduced_fee_whitelist = 6; - */ - reducedFeeWhitelist: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "default_taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "osmo_taker_fee_distribution", kind: "message", T: TakerFeeDistributionPercentage }, - { no: 3, name: "non_osmo_taker_fee_distribution", kind: "message", T: TakerFeeDistributionPercentage }, - { no: 4, name: "admin_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "community_pool_denom_to_swap_non_whitelisted_assets_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "reduced_fee_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeParams { - return new TakerFeeParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeParams { - return new TakerFeeParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeParams { - return new TakerFeeParams().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeParams | PlainMessage | undefined, b: TakerFeeParams | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeParams, a, b); - } -} - -/** - * TakerFeeDistributionPercentage defines what percent of the taker fee category - * gets distributed to the available categories. - * - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage - */ -export class TakerFeeDistributionPercentage extends Message { - /** - * @generated from field: string staking_rewards = 1; - */ - stakingRewards = ""; - - /** - * @generated from field: string community_pool = 2; - */ - communityPool = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "staking_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "community_pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeDistributionPercentage { - return new TakerFeeDistributionPercentage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeDistributionPercentage { - return new TakerFeeDistributionPercentage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeDistributionPercentage { - return new TakerFeeDistributionPercentage().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeDistributionPercentage | PlainMessage | undefined, b: TakerFeeDistributionPercentage | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeDistributionPercentage, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TakerFeesTracker - */ -export class TakerFeesTracker extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin taker_fees_to_stakers = 1; - */ - takerFeesToStakers: Coin[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin taker_fees_to_community_pool = 2; - */ - takerFeesToCommunityPool: Coin[] = []; - - /** - * @generated from field: int64 height_accounting_starts_from = 3; - */ - heightAccountingStartsFrom = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeesTracker"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "taker_fees_to_stakers", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "taker_fees_to_community_pool", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "height_accounting_starts_from", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeesTracker { - return new TakerFeesTracker().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeesTracker { - return new TakerFeesTracker().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeesTracker { - return new TakerFeesTracker().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeesTracker | PlainMessage | undefined, b: TakerFeesTracker | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeesTracker, a, b); - } -} - -/** - * PoolVolume stores the KVStore entries for each pool's volume, which - * is used in export/import genesis. - * - * @generated from message osmosis.poolmanager.v1beta1.PoolVolume - */ -export class PoolVolume extends Message { - /** - * pool_id is the id of the pool. - * - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * pool_volume is the cumulative volume of the pool. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin pool_volume = 2; - */ - poolVolume: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.PoolVolume"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pool_volume", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolVolume { - return new PoolVolume().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolVolume { - return new PoolVolume().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolVolume { - return new PoolVolume().fromJsonString(jsonString, options); - } - - static equals(a: PoolVolume | PlainMessage | undefined, b: PoolVolume | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolVolume, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/gov_pb.ts deleted file mode 100644 index f9cbe13..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/gov_pb.ts +++ /dev/null @@ -1,61 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/gov.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { DenomPairTakerFee } from "./tx_pb.js"; - -/** - * DenomPairTakerFeeProposal is a type for adding/removing a custom taker fee(s) - * for one or more denom pairs. - * - * @generated from message osmosis.poolmanager.v1beta1.DenomPairTakerFeeProposal - */ -export class DenomPairTakerFeeProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.DenomPairTakerFee denom_pair_taker_fee = 3; - */ - denomPairTakerFee: DenomPairTakerFee[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.DenomPairTakerFeeProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "denom_pair_taker_fee", kind: "message", T: DenomPairTakerFee, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DenomPairTakerFeeProposal { - return new DenomPairTakerFeeProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DenomPairTakerFeeProposal { - return new DenomPairTakerFeeProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DenomPairTakerFeeProposal { - return new DenomPairTakerFeeProposal().fromJsonString(jsonString, options); - } - - static equals(a: DenomPairTakerFeeProposal | PlainMessage | undefined, b: DenomPairTakerFeeProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(DenomPairTakerFeeProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/module_route_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/module_route_pb.ts deleted file mode 100644 index 6c47500..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/module_route_pb.ts +++ /dev/null @@ -1,103 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/module_route.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * PoolType is an enumeration of all supported pool types. - * - * @generated from enum osmosis.poolmanager.v1beta1.PoolType - */ -export enum PoolType { - /** - * Balancer is the standard xy=k curve. Its pool model is defined in x/gamm. - * - * @generated from enum value: Balancer = 0; - */ - Balancer = 0, - - /** - * Stableswap is the Solidly cfmm stable swap curve. Its pool model is defined - * in x/gamm. - * - * @generated from enum value: Stableswap = 1; - */ - Stableswap = 1, - - /** - * Concentrated is the pool model specific to concentrated liquidity. It is - * defined in x/concentrated-liquidity. - * - * @generated from enum value: Concentrated = 2; - */ - Concentrated = 2, - - /** - * CosmWasm is the pool model specific to CosmWasm. It is defined in - * x/cosmwasmpool. - * - * @generated from enum value: CosmWasm = 3; - */ - CosmWasm = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(PoolType) -proto3.util.setEnumType(PoolType, "osmosis.poolmanager.v1beta1.PoolType", [ - { no: 0, name: "Balancer" }, - { no: 1, name: "Stableswap" }, - { no: 2, name: "Concentrated" }, - { no: 3, name: "CosmWasm" }, -]); - -/** - * ModuleRouter defines a route encapsulating pool type. - * It is used as the value of a mapping from pool id to the pool type, - * allowing the pool manager to know which module to route swaps to given the - * pool id. - * - * @generated from message osmosis.poolmanager.v1beta1.ModuleRoute - */ -export class ModuleRoute extends Message { - /** - * pool_type specifies the type of the pool - * - * @generated from field: osmosis.poolmanager.v1beta1.PoolType pool_type = 1; - */ - poolType = PoolType.Balancer; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.ModuleRoute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_type", kind: "enum", T: proto3.getEnumType(PoolType) }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ModuleRoute { - return new ModuleRoute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ModuleRoute { - return new ModuleRoute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ModuleRoute { - return new ModuleRoute().fromJsonString(jsonString, options); - } - - static equals(a: ModuleRoute | PlainMessage | undefined, b: ModuleRoute | PlainMessage | undefined): boolean { - return proto3.util.equals(ModuleRoute, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts deleted file mode 100644 index 48e0165..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,369 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/query.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - AllPoolsRequest, - AllPoolsResponse, - AllRegisteredAlloyedPoolsRequest, - AllRegisteredAlloyedPoolsResponse, - AllTakerFeeShareAccumulatorsRequest, - AllTakerFeeShareAccumulatorsResponse, - AllTakerFeeShareAgreementsRequest, - AllTakerFeeShareAgreementsResponse, - EstimateSinglePoolSwapExactAmountInRequest, - EstimateSinglePoolSwapExactAmountOutRequest, - EstimateSwapExactAmountInRequest, - EstimateSwapExactAmountInResponse, - EstimateSwapExactAmountInWithPrimitiveTypesRequest, - EstimateSwapExactAmountOutRequest, - EstimateSwapExactAmountOutResponse, - EstimateSwapExactAmountOutWithPrimitiveTypesRequest, - EstimateTradeBasedOnPriceImpactRequest, - EstimateTradeBasedOnPriceImpactResponse, - ListPoolsByDenomRequest, - ListPoolsByDenomResponse, - NumPoolsRequest, - NumPoolsResponse, - ParamsRequest, - ParamsResponse, - PoolRequest, - PoolResponse, - RegisteredAlloyedPoolFromDenomRequest, - RegisteredAlloyedPoolFromDenomResponse, - RegisteredAlloyedPoolFromPoolIdRequest, - RegisteredAlloyedPoolFromPoolIdResponse, - SpotPriceRequest, - SpotPriceResponse, - TakerFeeShareAgreementFromDenomRequest, - TakerFeeShareAgreementFromDenomResponse, - TakerFeeShareDenomsToAccruedValueRequest, - TakerFeeShareDenomsToAccruedValueResponse, - TotalLiquidityRequest, - TotalLiquidityResponse, - TotalPoolLiquidityRequest, - TotalPoolLiquidityResponse, - TotalVolumeForPoolRequest, - TotalVolumeForPoolResponse, - TradingPairTakerFeeRequest, - TradingPairTakerFeeResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "osmosis.poolmanager.v1beta1.Query"; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: ParamsRequest, - Response: ParamsResponse, -} as const; - -/** - * Estimates swap amount out given in. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSwapExactAmountIn - */ -export const QueryEstimateSwapExactAmountInService = { - typeName: TYPE_NAME, - method: "EstimateSwapExactAmountIn", - Request: EstimateSwapExactAmountInRequest, - Response: EstimateSwapExactAmountInResponse, -} as const; - -/** - * EstimateSwapExactAmountInWithPrimitiveTypes is an alternative query for - * EstimateSwapExactAmountIn. Supports query via GRPC-Gateway by using - * primitive types instead of repeated structs. Each index in the - * routes_pool_id field corresponds to the respective routes_token_out_denom - * value, thus they are required to have the same length and are grouped - * together as pairs. - * example usage: - * http://0.0.0.0:1317/osmosis/poolmanager/v1beta1/1/estimate/ - * swap_exact_amount_in_with_primitive_types?token_in=100000stake&routes_token_out_denom=uatom - * &routes_token_out_denom=uion&routes_pool_id=1&routes_pool_id=2 - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSwapExactAmountInWithPrimitiveTypes - */ -export const QueryEstimateSwapExactAmountInWithPrimitiveTypesService = { - typeName: TYPE_NAME, - method: "EstimateSwapExactAmountInWithPrimitiveTypes", - Request: EstimateSwapExactAmountInWithPrimitiveTypesRequest, - Response: EstimateSwapExactAmountInResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSinglePoolSwapExactAmountIn - */ -export const QueryEstimateSinglePoolSwapExactAmountInService = { - typeName: TYPE_NAME, - method: "EstimateSinglePoolSwapExactAmountIn", - Request: EstimateSinglePoolSwapExactAmountInRequest, - Response: EstimateSwapExactAmountInResponse, -} as const; - -/** - * Estimates swap amount in given out. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSwapExactAmountOut - */ -export const QueryEstimateSwapExactAmountOutService = { - typeName: TYPE_NAME, - method: "EstimateSwapExactAmountOut", - Request: EstimateSwapExactAmountOutRequest, - Response: EstimateSwapExactAmountOutResponse, -} as const; - -/** - * Estimates swap amount in given out. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSwapExactAmountOutWithPrimitiveTypes - */ -export const QueryEstimateSwapExactAmountOutWithPrimitiveTypesService = { - typeName: TYPE_NAME, - method: "EstimateSwapExactAmountOutWithPrimitiveTypes", - Request: EstimateSwapExactAmountOutWithPrimitiveTypesRequest, - Response: EstimateSwapExactAmountOutResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateSinglePoolSwapExactAmountOut - */ -export const QueryEstimateSinglePoolSwapExactAmountOutService = { - typeName: TYPE_NAME, - method: "EstimateSinglePoolSwapExactAmountOut", - Request: EstimateSinglePoolSwapExactAmountOutRequest, - Response: EstimateSwapExactAmountOutResponse, -} as const; - -/** - * Returns the total number of pools existing in Osmosis. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.NumPools - */ -export const QueryNumPoolsService = { - typeName: TYPE_NAME, - method: "NumPools", - Request: NumPoolsRequest, - Response: NumPoolsResponse, -} as const; - -/** - * Pool returns the Pool specified by the pool id - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.Pool - */ -export const QueryPoolService = { - typeName: TYPE_NAME, - method: "Pool", - Request: PoolRequest, - Response: PoolResponse, -} as const; - -/** - * AllPools returns all pools on the Osmosis chain sorted by IDs. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.AllPools - */ -export const QueryAllPoolsService = { - typeName: TYPE_NAME, - method: "AllPools", - Request: AllPoolsRequest, - Response: AllPoolsResponse, -} as const; - -/** - * ListPoolsByDenom return all pools by denom - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.ListPoolsByDenom - */ -export const QueryListPoolsByDenomService = { - typeName: TYPE_NAME, - method: "ListPoolsByDenom", - Request: ListPoolsByDenomRequest, - Response: ListPoolsByDenomResponse, -} as const; - -/** - * SpotPrice defines a gRPC query handler that returns the spot price given - * a base denomination and a quote denomination. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.SpotPrice - */ -export const QuerySpotPriceService = { - typeName: TYPE_NAME, - method: "SpotPrice", - Request: SpotPriceRequest, - Response: SpotPriceResponse, -} as const; - -/** - * TotalPoolLiquidity returns the total liquidity of the specified pool. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.TotalPoolLiquidity - */ -export const QueryTotalPoolLiquidityService = { - typeName: TYPE_NAME, - method: "TotalPoolLiquidity", - Request: TotalPoolLiquidityRequest, - Response: TotalPoolLiquidityResponse, -} as const; - -/** - * TotalLiquidity returns the total liquidity across all pools. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.TotalLiquidity - */ -export const QueryTotalLiquidityService = { - typeName: TYPE_NAME, - method: "TotalLiquidity", - Request: TotalLiquidityRequest, - Response: TotalLiquidityResponse, -} as const; - -/** - * TotalVolumeForPool returns the total volume of the specified pool. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.TotalVolumeForPool - */ -export const QueryTotalVolumeForPoolService = { - typeName: TYPE_NAME, - method: "TotalVolumeForPool", - Request: TotalVolumeForPoolRequest, - Response: TotalVolumeForPoolResponse, -} as const; - -/** - * TradingPairTakerFee returns the taker fee for a given set of denoms - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.TradingPairTakerFee - */ -export const QueryTradingPairTakerFeeService = { - typeName: TYPE_NAME, - method: "TradingPairTakerFee", - Request: TradingPairTakerFeeRequest, - Response: TradingPairTakerFeeResponse, -} as const; - -/** - * EstimateTradeBasedOnPriceImpact returns an estimated trade based on price - * impact, if a trade cannot be estimated a 0 input and 0 output would be - * returned. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.EstimateTradeBasedOnPriceImpact - */ -export const QueryEstimateTradeBasedOnPriceImpactService = { - typeName: TYPE_NAME, - method: "EstimateTradeBasedOnPriceImpact", - Request: EstimateTradeBasedOnPriceImpactRequest, - Response: EstimateTradeBasedOnPriceImpactResponse, -} as const; - -/** - * AllTakerFeeShareAgreements returns all taker fee share agreements. - * A taker fee share agreement includes the denom of the denom getting the - * taker fees, the percent of the taker fees that the denom gets when it is - * in the route being traded against, and the address that the taker fees are - * sent to at epoch. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.AllTakerFeeShareAgreements - */ -export const QueryAllTakerFeeShareAgreementsService = { - typeName: TYPE_NAME, - method: "AllTakerFeeShareAgreements", - Request: AllTakerFeeShareAgreementsRequest, - Response: AllTakerFeeShareAgreementsResponse, -} as const; - -/** - * TakerFeeShareAgreementFromDenom returns the taker fee share agreement for a - * given denom. A taker fee share agreement includes the denom of the denom - * getting the taker fees, the percent of the taker fees that the denom gets - * when it is in the route being traded against, and the address that the - * taker fees are sent to at epoch. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.TakerFeeShareAgreementFromDenom - */ -export const QueryTakerFeeShareAgreementFromDenomService = { - typeName: TYPE_NAME, - method: "TakerFeeShareAgreementFromDenom", - Request: TakerFeeShareAgreementFromDenomRequest, - Response: TakerFeeShareAgreementFromDenomResponse, -} as const; - -/** - * TakerFeeShareDenomsToAccruedValue returns the accrued value (as an Int) of - * the given taker fee denom (the collected fees) for the given fee share - * denom (the denom with the taker fee share agreement) - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.TakerFeeShareDenomsToAccruedValue - */ -export const QueryTakerFeeShareDenomsToAccruedValueService = { - typeName: TYPE_NAME, - method: "TakerFeeShareDenomsToAccruedValue", - Request: TakerFeeShareDenomsToAccruedValueRequest, - Response: TakerFeeShareDenomsToAccruedValueResponse, -} as const; - -/** - * AllTakerFeeShareAccumulators returns all taker fee share accumulators. A - * taker fee share accumulator includes the denom of the denom getting the - * taker fees, and an accumulated value of coins that the denom has accrued - * since the last time it was distributed in the epoch prior. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.AllTakerFeeShareAccumulators - */ -export const QueryAllTakerFeeShareAccumulatorsService = { - typeName: TYPE_NAME, - method: "AllTakerFeeShareAccumulators", - Request: AllTakerFeeShareAccumulatorsRequest, - Response: AllTakerFeeShareAccumulatorsResponse, -} as const; - -/** - * RegisteredAlloyedPoolFromDenom returns the registered alloyed pool state - * from the given denom. The registered alloyed pool contains the pool's - * contract address, along with the current distribution composition of taker - * fee share denoms within the alloyed pool. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.RegisteredAlloyedPoolFromDenom - */ -export const QueryRegisteredAlloyedPoolFromDenomService = { - typeName: TYPE_NAME, - method: "RegisteredAlloyedPoolFromDenom", - Request: RegisteredAlloyedPoolFromDenomRequest, - Response: RegisteredAlloyedPoolFromDenomResponse, -} as const; - -/** - * RegisteredAlloyedPoolFromPoolId returns the registered alloyed pool state - * from the given pool id. The registered alloyed pool contains the pool's - * contract address, along with the current distribution composition of taker - * fee share denoms within the alloyed pool. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.RegisteredAlloyedPoolFromPoolId - */ -export const QueryRegisteredAlloyedPoolFromPoolIdService = { - typeName: TYPE_NAME, - method: "RegisteredAlloyedPoolFromPoolId", - Request: RegisteredAlloyedPoolFromPoolIdRequest, - Response: RegisteredAlloyedPoolFromPoolIdResponse, -} as const; - -/** - * AllRegisteredAlloyedPools returns all registered alloyed pools. The - * registered alloyed pool contains the pool's contract address, along with - * the current distribution composition of taker fee share denoms within the - * alloyed pool. - * - * @generated from rpc osmosis.poolmanager.v1beta1.Query.AllRegisteredAlloyedPools - */ -export const QueryAllRegisteredAlloyedPoolsService = { - typeName: TYPE_NAME, - method: "AllRegisteredAlloyedPools", - Request: AllRegisteredAlloyedPoolsRequest, - Response: AllRegisteredAlloyedPoolsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts deleted file mode 100644 index 23c66a6..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/query_pb.ts +++ /dev/null @@ -1,1820 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/query.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./genesis_pb.js"; -import { SwapAmountInRoute, SwapAmountOutRoute } from "./swap_route_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { AlloyContractTakerFeeShareState, TakerFeeShareAgreement, TakerFeeSkimAccumulator } from "./taker_fee_share_pb.js"; - -/** - * =============================== Params - * - * @generated from message osmosis.poolmanager.v1beta1.ParamsRequest - */ -export class ParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.ParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { - return new ParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.ParamsResponse - */ -export class ParamsResponse extends Message { - /** - * @generated from field: osmosis.poolmanager.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.ParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { - return new ParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsResponse, a, b); - } -} - -/** - * =============================== EstimateSwapExactAmountIn - * - * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInRequest - */ -export class EstimateSwapExactAmountInRequest extends Message { - /** - * DEPRECATED - * - * @generated from field: string sender = 1 [deprecated = true]; - * @deprecated - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2 [deprecated = true]; - * @deprecated - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in = 3; - */ - tokenIn = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountInRoute routes = 4; - */ - routes: SwapAmountInRoute[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountInRequest { - return new EstimateSwapExactAmountInRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountInRequest { - return new EstimateSwapExactAmountInRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountInRequest { - return new EstimateSwapExactAmountInRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSwapExactAmountInRequest | PlainMessage | undefined, b: EstimateSwapExactAmountInRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSwapExactAmountInRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInWithPrimitiveTypesRequest - */ -export class EstimateSwapExactAmountInWithPrimitiveTypesRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1 [deprecated = true]; - * @deprecated - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in = 2; - */ - tokenIn = ""; - - /** - * @generated from field: repeated uint64 routes_pool_id = 3; - */ - routesPoolId: bigint[] = []; - - /** - * @generated from field: repeated string routes_token_out_denom = 4; - */ - routesTokenOutDenom: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInWithPrimitiveTypesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "routes_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 4, name: "routes_token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { - return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { - return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { - return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSwapExactAmountInWithPrimitiveTypesRequest | PlainMessage | undefined, b: EstimateSwapExactAmountInWithPrimitiveTypesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSwapExactAmountInWithPrimitiveTypesRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountInRequest - */ -export class EstimateSinglePoolSwapExactAmountInRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in = 2; - */ - tokenIn = ""; - - /** - * @generated from field: string token_out_denom = 3; - */ - tokenOutDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountInRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSinglePoolSwapExactAmountInRequest { - return new EstimateSinglePoolSwapExactAmountInRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSinglePoolSwapExactAmountInRequest { - return new EstimateSinglePoolSwapExactAmountInRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSinglePoolSwapExactAmountInRequest { - return new EstimateSinglePoolSwapExactAmountInRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSinglePoolSwapExactAmountInRequest | PlainMessage | undefined, b: EstimateSinglePoolSwapExactAmountInRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSinglePoolSwapExactAmountInRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInResponse - */ -export class EstimateSwapExactAmountInResponse extends Message { - /** - * @generated from field: string token_out_amount = 1; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountInResponse { - return new EstimateSwapExactAmountInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountInResponse { - return new EstimateSwapExactAmountInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountInResponse { - return new EstimateSwapExactAmountInResponse().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSwapExactAmountInResponse | PlainMessage | undefined, b: EstimateSwapExactAmountInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSwapExactAmountInResponse, a, b); - } -} - -/** - * =============================== EstimateSwapExactAmountOut - * - * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutRequest - */ -export class EstimateSwapExactAmountOutRequest extends Message { - /** - * DEPRECATED - * - * @generated from field: string sender = 1 [deprecated = true]; - * @deprecated - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2 [deprecated = true]; - * @deprecated - */ - poolId = protoInt64.zero; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountOutRoute routes = 3; - */ - routes: SwapAmountOutRoute[] = []; - - /** - * @generated from field: string token_out = 4; - */ - tokenOut = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, - { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountOutRequest { - return new EstimateSwapExactAmountOutRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountOutRequest { - return new EstimateSwapExactAmountOutRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountOutRequest { - return new EstimateSwapExactAmountOutRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSwapExactAmountOutRequest | PlainMessage | undefined, b: EstimateSwapExactAmountOutRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSwapExactAmountOutRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutWithPrimitiveTypesRequest - */ -export class EstimateSwapExactAmountOutWithPrimitiveTypesRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1 [deprecated = true]; - * @deprecated - */ - poolId = protoInt64.zero; - - /** - * @generated from field: repeated uint64 routes_pool_id = 2; - */ - routesPoolId: bigint[] = []; - - /** - * @generated from field: repeated string routes_token_in_denom = 3; - */ - routesTokenInDenom: string[] = []; - - /** - * @generated from field: string token_out = 4; - */ - tokenOut = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutWithPrimitiveTypesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "routes_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 3, name: "routes_token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { - return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { - return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { - return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSwapExactAmountOutWithPrimitiveTypesRequest | PlainMessage | undefined, b: EstimateSwapExactAmountOutWithPrimitiveTypesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSwapExactAmountOutWithPrimitiveTypesRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountOutRequest - */ -export class EstimateSinglePoolSwapExactAmountOutRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in_denom = 2; - */ - tokenInDenom = ""; - - /** - * @generated from field: string token_out = 3; - */ - tokenOut = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountOutRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSinglePoolSwapExactAmountOutRequest { - return new EstimateSinglePoolSwapExactAmountOutRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSinglePoolSwapExactAmountOutRequest { - return new EstimateSinglePoolSwapExactAmountOutRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSinglePoolSwapExactAmountOutRequest { - return new EstimateSinglePoolSwapExactAmountOutRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSinglePoolSwapExactAmountOutRequest | PlainMessage | undefined, b: EstimateSinglePoolSwapExactAmountOutRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSinglePoolSwapExactAmountOutRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutResponse - */ -export class EstimateSwapExactAmountOutResponse extends Message { - /** - * @generated from field: string token_in_amount = 1; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountOutResponse { - return new EstimateSwapExactAmountOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountOutResponse { - return new EstimateSwapExactAmountOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountOutResponse { - return new EstimateSwapExactAmountOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSwapExactAmountOutResponse | PlainMessage | undefined, b: EstimateSwapExactAmountOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSwapExactAmountOutResponse, a, b); - } -} - -/** - * =============================== NumPools - * - * @generated from message osmosis.poolmanager.v1beta1.NumPoolsRequest - */ -export class NumPoolsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.NumPoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NumPoolsRequest { - return new NumPoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NumPoolsRequest { - return new NumPoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NumPoolsRequest { - return new NumPoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: NumPoolsRequest | PlainMessage | undefined, b: NumPoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NumPoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.NumPoolsResponse - */ -export class NumPoolsResponse extends Message { - /** - * @generated from field: uint64 num_pools = 1; - */ - numPools = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.NumPoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "num_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NumPoolsResponse { - return new NumPoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NumPoolsResponse { - return new NumPoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NumPoolsResponse { - return new NumPoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: NumPoolsResponse | PlainMessage | undefined, b: NumPoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NumPoolsResponse, a, b); - } -} - -/** - * =============================== Pool - * - * @generated from message osmosis.poolmanager.v1beta1.PoolRequest - */ -export class PoolRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.PoolRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolRequest { - return new PoolRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolRequest { - return new PoolRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolRequest { - return new PoolRequest().fromJsonString(jsonString, options); - } - - static equals(a: PoolRequest | PlainMessage | undefined, b: PoolRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.PoolResponse - */ -export class PoolResponse extends Message { - /** - * @generated from field: google.protobuf.Any pool = 1; - */ - pool?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.PoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolResponse { - return new PoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolResponse { - return new PoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolResponse { - return new PoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: PoolResponse | PlainMessage | undefined, b: PoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolResponse, a, b); - } -} - -/** - * =============================== AllPools - * - * @generated from message osmosis.poolmanager.v1beta1.AllPoolsRequest - */ -export class AllPoolsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllPoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllPoolsRequest { - return new AllPoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllPoolsRequest { - return new AllPoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllPoolsRequest { - return new AllPoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AllPoolsRequest | PlainMessage | undefined, b: AllPoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AllPoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.AllPoolsResponse - */ -export class AllPoolsResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllPoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllPoolsResponse { - return new AllPoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllPoolsResponse { - return new AllPoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllPoolsResponse { - return new AllPoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AllPoolsResponse | PlainMessage | undefined, b: AllPoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AllPoolsResponse, a, b); - } -} - -/** - * ======================================================= - * ListPoolsByDenomRequest - * - * @generated from message osmosis.poolmanager.v1beta1.ListPoolsByDenomRequest - */ -export class ListPoolsByDenomRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.ListPoolsByDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListPoolsByDenomRequest { - return new ListPoolsByDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListPoolsByDenomRequest { - return new ListPoolsByDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListPoolsByDenomRequest { - return new ListPoolsByDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListPoolsByDenomRequest | PlainMessage | undefined, b: ListPoolsByDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListPoolsByDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.ListPoolsByDenomResponse - */ -export class ListPoolsByDenomResponse extends Message { - /** - * @generated from field: repeated google.protobuf.Any pools = 1; - */ - pools: Any[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.ListPoolsByDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListPoolsByDenomResponse { - return new ListPoolsByDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListPoolsByDenomResponse { - return new ListPoolsByDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListPoolsByDenomResponse { - return new ListPoolsByDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListPoolsByDenomResponse | PlainMessage | undefined, b: ListPoolsByDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListPoolsByDenomResponse, a, b); - } -} - -/** - * ========================================================== - * SpotPriceRequest defines the gRPC request structure for a SpotPrice - * query. - * - * @generated from message osmosis.poolmanager.v1beta1.SpotPriceRequest - */ -export class SpotPriceRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset_denom = 2; - */ - baseAssetDenom = ""; - - /** - * @generated from field: string quote_asset_denom = 3; - */ - quoteAssetDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.SpotPriceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceRequest { - return new SpotPriceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceRequest { - return new SpotPriceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SpotPriceRequest { - return new SpotPriceRequest().fromJsonString(jsonString, options); - } - - static equals(a: SpotPriceRequest | PlainMessage | undefined, b: SpotPriceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SpotPriceRequest, a, b); - } -} - -/** - * SpotPriceResponse defines the gRPC response structure for a SpotPrice - * query. - * - * @generated from message osmosis.poolmanager.v1beta1.SpotPriceResponse - */ -export class SpotPriceResponse extends Message { - /** - * String of the Dec. Ex) 10.203uatom - * - * @generated from field: string spot_price = 1; - */ - spotPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.SpotPriceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceResponse { - return new SpotPriceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceResponse { - return new SpotPriceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SpotPriceResponse { - return new SpotPriceResponse().fromJsonString(jsonString, options); - } - - static equals(a: SpotPriceResponse | PlainMessage | undefined, b: SpotPriceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SpotPriceResponse, a, b); - } -} - -/** - * =============================== TotalPoolLiquidity - * - * @generated from message osmosis.poolmanager.v1beta1.TotalPoolLiquidityRequest - */ -export class TotalPoolLiquidityRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TotalPoolLiquidityRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalPoolLiquidityRequest { - return new TotalPoolLiquidityRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalPoolLiquidityRequest { - return new TotalPoolLiquidityRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalPoolLiquidityRequest { - return new TotalPoolLiquidityRequest().fromJsonString(jsonString, options); - } - - static equals(a: TotalPoolLiquidityRequest | PlainMessage | undefined, b: TotalPoolLiquidityRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalPoolLiquidityRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TotalPoolLiquidityResponse - */ -export class TotalPoolLiquidityResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin liquidity = 1; - */ - liquidity: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TotalPoolLiquidityResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalPoolLiquidityResponse { - return new TotalPoolLiquidityResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalPoolLiquidityResponse { - return new TotalPoolLiquidityResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalPoolLiquidityResponse { - return new TotalPoolLiquidityResponse().fromJsonString(jsonString, options); - } - - static equals(a: TotalPoolLiquidityResponse | PlainMessage | undefined, b: TotalPoolLiquidityResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalPoolLiquidityResponse, a, b); - } -} - -/** - * =============================== TotalLiquidity - * - * @generated from message osmosis.poolmanager.v1beta1.TotalLiquidityRequest - */ -export class TotalLiquidityRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TotalLiquidityRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalLiquidityRequest { - return new TotalLiquidityRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalLiquidityRequest { - return new TotalLiquidityRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalLiquidityRequest { - return new TotalLiquidityRequest().fromJsonString(jsonString, options); - } - - static equals(a: TotalLiquidityRequest | PlainMessage | undefined, b: TotalLiquidityRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalLiquidityRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TotalLiquidityResponse - */ -export class TotalLiquidityResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin liquidity = 1; - */ - liquidity: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TotalLiquidityResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalLiquidityResponse { - return new TotalLiquidityResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalLiquidityResponse { - return new TotalLiquidityResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalLiquidityResponse { - return new TotalLiquidityResponse().fromJsonString(jsonString, options); - } - - static equals(a: TotalLiquidityResponse | PlainMessage | undefined, b: TotalLiquidityResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalLiquidityResponse, a, b); - } -} - -/** - * =============================== TotalVolumeForPool - * - * @generated from message osmosis.poolmanager.v1beta1.TotalVolumeForPoolRequest - */ -export class TotalVolumeForPoolRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TotalVolumeForPoolRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalVolumeForPoolRequest { - return new TotalVolumeForPoolRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalVolumeForPoolRequest { - return new TotalVolumeForPoolRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalVolumeForPoolRequest { - return new TotalVolumeForPoolRequest().fromJsonString(jsonString, options); - } - - static equals(a: TotalVolumeForPoolRequest | PlainMessage | undefined, b: TotalVolumeForPoolRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalVolumeForPoolRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TotalVolumeForPoolResponse - */ -export class TotalVolumeForPoolResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin volume = 1; - */ - volume: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TotalVolumeForPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "volume", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalVolumeForPoolResponse { - return new TotalVolumeForPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalVolumeForPoolResponse { - return new TotalVolumeForPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalVolumeForPoolResponse { - return new TotalVolumeForPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: TotalVolumeForPoolResponse | PlainMessage | undefined, b: TotalVolumeForPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalVolumeForPoolResponse, a, b); - } -} - -/** - * =============================== TradingPairTakerFee - * - * @generated from message osmosis.poolmanager.v1beta1.TradingPairTakerFeeRequest - */ -export class TradingPairTakerFeeRequest extends Message { - /** - * @generated from field: string denom_0 = 1; - */ - denom0 = ""; - - /** - * @generated from field: string denom_1 = 2; - */ - denom1 = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TradingPairTakerFeeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom_0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom_1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TradingPairTakerFeeRequest { - return new TradingPairTakerFeeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TradingPairTakerFeeRequest { - return new TradingPairTakerFeeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TradingPairTakerFeeRequest { - return new TradingPairTakerFeeRequest().fromJsonString(jsonString, options); - } - - static equals(a: TradingPairTakerFeeRequest | PlainMessage | undefined, b: TradingPairTakerFeeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TradingPairTakerFeeRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TradingPairTakerFeeResponse - */ -export class TradingPairTakerFeeResponse extends Message { - /** - * @generated from field: string taker_fee = 1; - */ - takerFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TradingPairTakerFeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TradingPairTakerFeeResponse { - return new TradingPairTakerFeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TradingPairTakerFeeResponse { - return new TradingPairTakerFeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TradingPairTakerFeeResponse { - return new TradingPairTakerFeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: TradingPairTakerFeeResponse | PlainMessage | undefined, b: TradingPairTakerFeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TradingPairTakerFeeResponse, a, b); - } -} - -/** - * EstimateTradeBasedOnPriceImpactRequest represents a request to estimate a - * trade for Balancer/StableSwap/Concentrated liquidity pool types based on the - * given parameters. - * - * @generated from message osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactRequest - */ -export class EstimateTradeBasedOnPriceImpactRequest extends Message { - /** - * from_coin is the total amount of tokens that the user wants to sell. - * - * @generated from field: cosmos.base.v1beta1.Coin from_coin = 1; - */ - fromCoin?: Coin; - - /** - * to_coin_denom is the denom identifier of the token that the user wants to - * buy. - * - * @generated from field: string to_coin_denom = 2; - */ - toCoinDenom = ""; - - /** - * pool_id is the identifier of the liquidity pool that the trade will occur - * on. - * - * @generated from field: uint64 pool_id = 3; - */ - poolId = protoInt64.zero; - - /** - * max_price_impact is the maximum percentage that the user is willing - * to affect the price of the liquidity pool. - * - * @generated from field: string max_price_impact = 4; - */ - maxPriceImpact = ""; - - /** - * external_price is an optional external price that the user can enter. - * It adjusts the MaxPriceImpact as the SpotPrice of a pool can be changed at - * any time. - * - * @generated from field: string external_price = 5; - */ - externalPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "from_coin", kind: "message", T: Coin }, - { no: 2, name: "to_coin_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "max_price_impact", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "external_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateTradeBasedOnPriceImpactRequest { - return new EstimateTradeBasedOnPriceImpactRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateTradeBasedOnPriceImpactRequest { - return new EstimateTradeBasedOnPriceImpactRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateTradeBasedOnPriceImpactRequest { - return new EstimateTradeBasedOnPriceImpactRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateTradeBasedOnPriceImpactRequest | PlainMessage | undefined, b: EstimateTradeBasedOnPriceImpactRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateTradeBasedOnPriceImpactRequest, a, b); - } -} - -/** - * EstimateTradeBasedOnPriceImpactResponse represents the response data - * for an estimated trade based on price impact. If a trade fails to be - * estimated the response would be 0,0 for input_coin and output_coin and will - * not error. - * - * @generated from message osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse - */ -export class EstimateTradeBasedOnPriceImpactResponse extends Message { - /** - * input_coin is the actual input amount that would be tradeable - * under the specified price impact. - * - * @generated from field: cosmos.base.v1beta1.Coin input_coin = 1; - */ - inputCoin?: Coin; - - /** - * output_coin is the amount of tokens of the ToCoinDenom type - * that will be received for the actual InputCoin trade. - * - * @generated from field: cosmos.base.v1beta1.Coin output_coin = 2; - */ - outputCoin?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "input_coin", kind: "message", T: Coin }, - { no: 2, name: "output_coin", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateTradeBasedOnPriceImpactResponse { - return new EstimateTradeBasedOnPriceImpactResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateTradeBasedOnPriceImpactResponse { - return new EstimateTradeBasedOnPriceImpactResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateTradeBasedOnPriceImpactResponse { - return new EstimateTradeBasedOnPriceImpactResponse().fromJsonString(jsonString, options); - } - - static equals(a: EstimateTradeBasedOnPriceImpactResponse | PlainMessage | undefined, b: EstimateTradeBasedOnPriceImpactResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateTradeBasedOnPriceImpactResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.AllTakerFeeShareAgreementsRequest - */ -export class AllTakerFeeShareAgreementsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAgreementsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAgreementsRequest { - return new AllTakerFeeShareAgreementsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAgreementsRequest { - return new AllTakerFeeShareAgreementsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAgreementsRequest { - return new AllTakerFeeShareAgreementsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AllTakerFeeShareAgreementsRequest | PlainMessage | undefined, b: AllTakerFeeShareAgreementsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AllTakerFeeShareAgreementsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse - */ -export class AllTakerFeeShareAgreementsResponse extends Message { - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.TakerFeeShareAgreement taker_fee_share_agreements = 1; - */ - takerFeeShareAgreements: TakerFeeShareAgreement[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "taker_fee_share_agreements", kind: "message", T: TakerFeeShareAgreement, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAgreementsResponse { - return new AllTakerFeeShareAgreementsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAgreementsResponse { - return new AllTakerFeeShareAgreementsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAgreementsResponse { - return new AllTakerFeeShareAgreementsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AllTakerFeeShareAgreementsResponse | PlainMessage | undefined, b: AllTakerFeeShareAgreementsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AllTakerFeeShareAgreementsResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomRequest - */ -export class TakerFeeShareAgreementFromDenomRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareAgreementFromDenomRequest { - return new TakerFeeShareAgreementFromDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareAgreementFromDenomRequest { - return new TakerFeeShareAgreementFromDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareAgreementFromDenomRequest { - return new TakerFeeShareAgreementFromDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeShareAgreementFromDenomRequest | PlainMessage | undefined, b: TakerFeeShareAgreementFromDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeShareAgreementFromDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse - */ -export class TakerFeeShareAgreementFromDenomResponse extends Message { - /** - * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeShareAgreement taker_fee_share_agreement = 1; - */ - takerFeeShareAgreement?: TakerFeeShareAgreement; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "taker_fee_share_agreement", kind: "message", T: TakerFeeShareAgreement }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareAgreementFromDenomResponse { - return new TakerFeeShareAgreementFromDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareAgreementFromDenomResponse { - return new TakerFeeShareAgreementFromDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareAgreementFromDenomResponse { - return new TakerFeeShareAgreementFromDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeShareAgreementFromDenomResponse | PlainMessage | undefined, b: TakerFeeShareAgreementFromDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeShareAgreementFromDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueRequest - */ -export class TakerFeeShareDenomsToAccruedValueRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: string takerFeeDenom = 2; - */ - takerFeeDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "takerFeeDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareDenomsToAccruedValueRequest { - return new TakerFeeShareDenomsToAccruedValueRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareDenomsToAccruedValueRequest { - return new TakerFeeShareDenomsToAccruedValueRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareDenomsToAccruedValueRequest { - return new TakerFeeShareDenomsToAccruedValueRequest().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeShareDenomsToAccruedValueRequest | PlainMessage | undefined, b: TakerFeeShareDenomsToAccruedValueRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeShareDenomsToAccruedValueRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse - */ -export class TakerFeeShareDenomsToAccruedValueResponse extends Message { - /** - * @generated from field: string amount = 1; - */ - amount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareDenomsToAccruedValueResponse { - return new TakerFeeShareDenomsToAccruedValueResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareDenomsToAccruedValueResponse { - return new TakerFeeShareDenomsToAccruedValueResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareDenomsToAccruedValueResponse { - return new TakerFeeShareDenomsToAccruedValueResponse().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeShareDenomsToAccruedValueResponse | PlainMessage | undefined, b: TakerFeeShareDenomsToAccruedValueResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeShareDenomsToAccruedValueResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsRequest - */ -export class AllTakerFeeShareAccumulatorsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAccumulatorsRequest { - return new AllTakerFeeShareAccumulatorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAccumulatorsRequest { - return new AllTakerFeeShareAccumulatorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAccumulatorsRequest { - return new AllTakerFeeShareAccumulatorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AllTakerFeeShareAccumulatorsRequest | PlainMessage | undefined, b: AllTakerFeeShareAccumulatorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AllTakerFeeShareAccumulatorsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse - */ -export class AllTakerFeeShareAccumulatorsResponse extends Message { - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.TakerFeeSkimAccumulator taker_fee_skim_accumulators = 1; - */ - takerFeeSkimAccumulators: TakerFeeSkimAccumulator[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "taker_fee_skim_accumulators", kind: "message", T: TakerFeeSkimAccumulator, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllTakerFeeShareAccumulatorsResponse { - return new AllTakerFeeShareAccumulatorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllTakerFeeShareAccumulatorsResponse { - return new AllTakerFeeShareAccumulatorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllTakerFeeShareAccumulatorsResponse { - return new AllTakerFeeShareAccumulatorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AllTakerFeeShareAccumulatorsResponse | PlainMessage | undefined, b: AllTakerFeeShareAccumulatorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AllTakerFeeShareAccumulatorsResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomRequest - */ -export class RegisteredAlloyedPoolFromDenomRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromDenomRequest { - return new RegisteredAlloyedPoolFromDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromDenomRequest { - return new RegisteredAlloyedPoolFromDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromDenomRequest { - return new RegisteredAlloyedPoolFromDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: RegisteredAlloyedPoolFromDenomRequest | PlainMessage | undefined, b: RegisteredAlloyedPoolFromDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RegisteredAlloyedPoolFromDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse - */ -export class RegisteredAlloyedPoolFromDenomResponse extends Message { - /** - * @generated from field: osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState contract_state = 1; - */ - contractState?: AlloyContractTakerFeeShareState; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_state", kind: "message", T: AlloyContractTakerFeeShareState }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromDenomResponse { - return new RegisteredAlloyedPoolFromDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromDenomResponse { - return new RegisteredAlloyedPoolFromDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromDenomResponse { - return new RegisteredAlloyedPoolFromDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: RegisteredAlloyedPoolFromDenomResponse | PlainMessage | undefined, b: RegisteredAlloyedPoolFromDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RegisteredAlloyedPoolFromDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdRequest - */ -export class RegisteredAlloyedPoolFromPoolIdRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromPoolIdRequest { - return new RegisteredAlloyedPoolFromPoolIdRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromPoolIdRequest { - return new RegisteredAlloyedPoolFromPoolIdRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromPoolIdRequest { - return new RegisteredAlloyedPoolFromPoolIdRequest().fromJsonString(jsonString, options); - } - - static equals(a: RegisteredAlloyedPoolFromPoolIdRequest | PlainMessage | undefined, b: RegisteredAlloyedPoolFromPoolIdRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(RegisteredAlloyedPoolFromPoolIdRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse - */ -export class RegisteredAlloyedPoolFromPoolIdResponse extends Message { - /** - * @generated from field: osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState contract_state = 1; - */ - contractState?: AlloyContractTakerFeeShareState; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_state", kind: "message", T: AlloyContractTakerFeeShareState }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RegisteredAlloyedPoolFromPoolIdResponse { - return new RegisteredAlloyedPoolFromPoolIdResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RegisteredAlloyedPoolFromPoolIdResponse { - return new RegisteredAlloyedPoolFromPoolIdResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RegisteredAlloyedPoolFromPoolIdResponse { - return new RegisteredAlloyedPoolFromPoolIdResponse().fromJsonString(jsonString, options); - } - - static equals(a: RegisteredAlloyedPoolFromPoolIdResponse | PlainMessage | undefined, b: RegisteredAlloyedPoolFromPoolIdResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(RegisteredAlloyedPoolFromPoolIdResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsRequest - */ -export class AllRegisteredAlloyedPoolsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllRegisteredAlloyedPoolsRequest { - return new AllRegisteredAlloyedPoolsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllRegisteredAlloyedPoolsRequest { - return new AllRegisteredAlloyedPoolsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllRegisteredAlloyedPoolsRequest { - return new AllRegisteredAlloyedPoolsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AllRegisteredAlloyedPoolsRequest | PlainMessage | undefined, b: AllRegisteredAlloyedPoolsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AllRegisteredAlloyedPoolsRequest, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse - */ -export class AllRegisteredAlloyedPoolsResponse extends Message { - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState contract_states = 1; - */ - contractStates: AlloyContractTakerFeeShareState[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_states", kind: "message", T: AlloyContractTakerFeeShareState, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllRegisteredAlloyedPoolsResponse { - return new AllRegisteredAlloyedPoolsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllRegisteredAlloyedPoolsResponse { - return new AllRegisteredAlloyedPoolsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllRegisteredAlloyedPoolsResponse { - return new AllRegisteredAlloyedPoolsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AllRegisteredAlloyedPoolsResponse | PlainMessage | undefined, b: AllRegisteredAlloyedPoolsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AllRegisteredAlloyedPoolsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/swap_route_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/swap_route_pb.ts deleted file mode 100644 index cd5223c..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/swap_route_pb.ts +++ /dev/null @@ -1,180 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/swap_route.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message osmosis.poolmanager.v1beta1.SwapAmountInRoute - */ -export class SwapAmountInRoute extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_out_denom = 2; - */ - tokenOutDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.SwapAmountInRoute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapAmountInRoute { - return new SwapAmountInRoute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapAmountInRoute { - return new SwapAmountInRoute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapAmountInRoute { - return new SwapAmountInRoute().fromJsonString(jsonString, options); - } - - static equals(a: SwapAmountInRoute | PlainMessage | undefined, b: SwapAmountInRoute | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapAmountInRoute, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.SwapAmountOutRoute - */ -export class SwapAmountOutRoute extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string token_in_denom = 2; - */ - tokenInDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.SwapAmountOutRoute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapAmountOutRoute { - return new SwapAmountOutRoute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapAmountOutRoute { - return new SwapAmountOutRoute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapAmountOutRoute { - return new SwapAmountOutRoute().fromJsonString(jsonString, options); - } - - static equals(a: SwapAmountOutRoute | PlainMessage | undefined, b: SwapAmountOutRoute | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapAmountOutRoute, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.SwapAmountInSplitRoute - */ -export class SwapAmountInSplitRoute extends Message { - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountInRoute pools = 1; - */ - pools: SwapAmountInRoute[] = []; - - /** - * @generated from field: string token_in_amount = 2; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.SwapAmountInSplitRoute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: SwapAmountInRoute, repeated: true }, - { no: 2, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapAmountInSplitRoute { - return new SwapAmountInSplitRoute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapAmountInSplitRoute { - return new SwapAmountInSplitRoute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapAmountInSplitRoute { - return new SwapAmountInSplitRoute().fromJsonString(jsonString, options); - } - - static equals(a: SwapAmountInSplitRoute | PlainMessage | undefined, b: SwapAmountInSplitRoute | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapAmountInSplitRoute, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.SwapAmountOutSplitRoute - */ -export class SwapAmountOutSplitRoute extends Message { - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountOutRoute pools = 1; - */ - pools: SwapAmountOutRoute[] = []; - - /** - * @generated from field: string token_out_amount = 2; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.SwapAmountOutSplitRoute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pools", kind: "message", T: SwapAmountOutRoute, repeated: true }, - { no: 2, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SwapAmountOutSplitRoute { - return new SwapAmountOutSplitRoute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SwapAmountOutSplitRoute { - return new SwapAmountOutSplitRoute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SwapAmountOutSplitRoute { - return new SwapAmountOutSplitRoute().fromJsonString(jsonString, options); - } - - static equals(a: SwapAmountOutSplitRoute | PlainMessage | undefined, b: SwapAmountOutSplitRoute | PlainMessage | undefined): boolean { - return proto3.util.equals(SwapAmountOutSplitRoute, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/taker_fee_share_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/taker_fee_share_pb.ts deleted file mode 100644 index 5e1167b..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/taker_fee_share_pb.ts +++ /dev/null @@ -1,182 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/taker_fee_share.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * TakerFeeShareAgreement represents the agreement between the Osmosis protocol - * and a specific denom to share a certain percent of taker fees generated in - * any route that contains said denom. For example, if the agreement specifies a - * 10% skim_percent, this means 10% of the taker fees generated in a swap route - * containing the specified denom will be sent to the address specified - * in the skim_address field at the end of each epoch. These skim_percents are - * additive, so if three taker fee agreements have skim percents of 10%, 20%, - * and 30%, the total skim percent for the route will be 60%. - * - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeShareAgreement - */ -export class TakerFeeShareAgreement extends Message { - /** - * denom is the denom that has the taker fee share agreement. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * skim_percent is the percentage of taker fees that will be skimmed for the - * denom, in the event that the denom is included in the swap route. - * - * @generated from field: string skim_percent = 2; - */ - skimPercent = ""; - - /** - * skim_address is the address belonging to the respective denom - * that the skimmed taker fees will be sent to at the end of each epoch. - * - * @generated from field: string skim_address = 3; - */ - skimAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeShareAgreement"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "skim_percent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "skim_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeShareAgreement { - return new TakerFeeShareAgreement().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeShareAgreement { - return new TakerFeeShareAgreement().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeShareAgreement { - return new TakerFeeShareAgreement().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeShareAgreement | PlainMessage | undefined, b: TakerFeeShareAgreement | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeShareAgreement, a, b); - } -} - -/** - * TakerFeeSkimAccumulator accumulates the total skimmed taker fees for each - * denom that has a taker fee share agreement. - * - * @generated from message osmosis.poolmanager.v1beta1.TakerFeeSkimAccumulator - */ -export class TakerFeeSkimAccumulator extends Message { - /** - * denom is the denom that has the taker fee share agreement. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * skimmed_taker_fees is the total skimmed taker fees for the denom. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin skimmed_taker_fees = 2; - */ - skimmedTakerFees: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeSkimAccumulator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "skimmed_taker_fees", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeSkimAccumulator { - return new TakerFeeSkimAccumulator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeSkimAccumulator { - return new TakerFeeSkimAccumulator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TakerFeeSkimAccumulator { - return new TakerFeeSkimAccumulator().fromJsonString(jsonString, options); - } - - static equals(a: TakerFeeSkimAccumulator | PlainMessage | undefined, b: TakerFeeSkimAccumulator | PlainMessage | undefined): boolean { - return proto3.util.equals(TakerFeeSkimAccumulator, a, b); - } -} - -/** - * AlloyContractTakerFeeShareState contains the contract address of the alloyed - * asset pool, along with the adjusted taker fee share agreements for any asset - * within the alloyed asset pool that has a taker fee share agreement. If for - * instance there are two denoms, and denomA makes up 50 percent and denomB - * makes up 50 percent, and denom A has a taker fee share agreement with a skim - * percent of 10%, then the adjusted taker fee share agreement for denomA will - * be 5%. - * - * @generated from message osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState - */ -export class AlloyContractTakerFeeShareState extends Message { - /** - * contract_address is the address of the alloyed asset pool contract. - * - * @generated from field: string contract_address = 1; - */ - contractAddress = ""; - - /** - * taker_fee_share_agreements is the adjusted taker fee share agreements for - * any asset within the alloyed asset pool that has a taker fee share - * agreement. - * - * @generated from field: repeated osmosis.poolmanager.v1beta1.TakerFeeShareAgreement taker_fee_share_agreements = 2; - */ - takerFeeShareAgreements: TakerFeeShareAgreement[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.AlloyContractTakerFeeShareState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "taker_fee_share_agreements", kind: "message", T: TakerFeeShareAgreement, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AlloyContractTakerFeeShareState { - return new AlloyContractTakerFeeShareState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AlloyContractTakerFeeShareState { - return new AlloyContractTakerFeeShareState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AlloyContractTakerFeeShareState { - return new AlloyContractTakerFeeShareState().fromJsonString(jsonString, options); - } - - static equals(a: AlloyContractTakerFeeShareState | PlainMessage | undefined, b: AlloyContractTakerFeeShareState | PlainMessage | undefined): boolean { - return proto3.util.equals(AlloyContractTakerFeeShareState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tracked_volume_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tracked_volume_pb.ts deleted file mode 100644 index fdefbb9..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tracked_volume_pb.ts +++ /dev/null @@ -1,46 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/tracked_volume.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * @generated from message osmosis.poolmanager.v1beta1.TrackedVolume - */ -export class TrackedVolume extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.TrackedVolume"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TrackedVolume { - return new TrackedVolume().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TrackedVolume { - return new TrackedVolume().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TrackedVolume { - return new TrackedVolume().fromJsonString(jsonString, options); - } - - static equals(a: TrackedVolume | PlainMessage | undefined, b: TrackedVolume | PlainMessage | undefined): boolean { - return proto3.util.equals(TrackedVolume, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts deleted file mode 100644 index bd8eee6..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,79 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/tx.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgSetDenomPairTakerFee, MsgSetDenomPairTakerFeeResponse, MsgSetRegisteredAlloyedPool, MsgSetRegisteredAlloyedPoolResponse, MsgSetTakerFeeShareAgreementForDenom, MsgSetTakerFeeShareAgreementForDenomResponse, MsgSplitRouteSwapExactAmountIn, MsgSplitRouteSwapExactAmountInResponse, MsgSplitRouteSwapExactAmountOut, MsgSplitRouteSwapExactAmountOutResponse, MsgSwapExactAmountIn, MsgSwapExactAmountInResponse, MsgSwapExactAmountOut, MsgSwapExactAmountOutResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.poolmanager.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SwapExactAmountIn - */ -export const MsgSwapExactAmountInService = { - typeName: TYPE_NAME, - method: "SwapExactAmountIn", - Request: MsgSwapExactAmountIn, - Response: MsgSwapExactAmountInResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SwapExactAmountOut - */ -export const MsgSwapExactAmountOutService = { - typeName: TYPE_NAME, - method: "SwapExactAmountOut", - Request: MsgSwapExactAmountOut, - Response: MsgSwapExactAmountOutResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SplitRouteSwapExactAmountIn - */ -export const MsgSplitRouteSwapExactAmountInService = { - typeName: TYPE_NAME, - method: "SplitRouteSwapExactAmountIn", - Request: MsgSplitRouteSwapExactAmountIn, - Response: MsgSplitRouteSwapExactAmountInResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SplitRouteSwapExactAmountOut - */ -export const MsgSplitRouteSwapExactAmountOutService = { - typeName: TYPE_NAME, - method: "SplitRouteSwapExactAmountOut", - Request: MsgSplitRouteSwapExactAmountOut, - Response: MsgSplitRouteSwapExactAmountOutResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SetDenomPairTakerFee - */ -export const MsgSetDenomPairTakerFeeService = { - typeName: TYPE_NAME, - method: "SetDenomPairTakerFee", - Request: MsgSetDenomPairTakerFee, - Response: MsgSetDenomPairTakerFeeResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SetTakerFeeShareAgreementForDenom - */ -export const MsgSetTakerFeeShareAgreementForDenomService = { - typeName: TYPE_NAME, - method: "SetTakerFeeShareAgreementForDenom", - Request: MsgSetTakerFeeShareAgreementForDenom, - Response: MsgSetTakerFeeShareAgreementForDenomResponse, -} as const; - -/** - * @generated from rpc osmosis.poolmanager.v1beta1.Msg.SetRegisteredAlloyedPool - */ -export const MsgSetRegisteredAlloyedPoolService = { - typeName: TYPE_NAME, - method: "SetRegisteredAlloyedPool", - Request: MsgSetRegisteredAlloyedPool, - Response: MsgSetRegisteredAlloyedPoolResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts deleted file mode 100644 index 586cd5d..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v1beta1/tx_pb.ts +++ /dev/null @@ -1,715 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v1beta1/tx.proto (package osmosis.poolmanager.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { SwapAmountInRoute, SwapAmountInSplitRoute, SwapAmountOutRoute, SwapAmountOutSplitRoute } from "./swap_route_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * ===================== MsgSwapExactAmountIn - * - * @generated from message osmosis.poolmanager.v1beta1.MsgSwapExactAmountIn - */ -export class MsgSwapExactAmountIn extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountInRoute routes = 2; - */ - routes: SwapAmountInRoute[] = []; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_in = 3; - */ - tokenIn?: Coin; - - /** - * @generated from field: string token_out_min_amount = 4; - */ - tokenOutMinAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSwapExactAmountIn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, - { no: 3, name: "token_in", kind: "message", T: Coin }, - { no: 4, name: "token_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountIn { - return new MsgSwapExactAmountIn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountIn { - return new MsgSwapExactAmountIn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountIn { - return new MsgSwapExactAmountIn().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountIn | PlainMessage | undefined, b: MsgSwapExactAmountIn | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountIn, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.MsgSwapExactAmountInResponse - */ -export class MsgSwapExactAmountInResponse extends Message { - /** - * @generated from field: string token_out_amount = 1; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSwapExactAmountInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountInResponse { - return new MsgSwapExactAmountInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountInResponse { - return new MsgSwapExactAmountInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountInResponse { - return new MsgSwapExactAmountInResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountInResponse | PlainMessage | undefined, b: MsgSwapExactAmountInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountInResponse, a, b); - } -} - -/** - * ===================== MsgSplitRouteSwapExactAmountIn - * - * @generated from message osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn - */ -export class MsgSplitRouteSwapExactAmountIn extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountInSplitRoute routes = 2; - */ - routes: SwapAmountInSplitRoute[] = []; - - /** - * @generated from field: string token_in_denom = 3; - */ - tokenInDenom = ""; - - /** - * @generated from field: string token_out_min_amount = 4; - */ - tokenOutMinAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "routes", kind: "message", T: SwapAmountInSplitRoute, repeated: true }, - { no: 3, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_out_min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSplitRouteSwapExactAmountIn { - return new MsgSplitRouteSwapExactAmountIn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSplitRouteSwapExactAmountIn { - return new MsgSplitRouteSwapExactAmountIn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSplitRouteSwapExactAmountIn { - return new MsgSplitRouteSwapExactAmountIn().fromJsonString(jsonString, options); - } - - static equals(a: MsgSplitRouteSwapExactAmountIn | PlainMessage | undefined, b: MsgSplitRouteSwapExactAmountIn | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSplitRouteSwapExactAmountIn, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountInResponse - */ -export class MsgSplitRouteSwapExactAmountInResponse extends Message { - /** - * @generated from field: string token_out_amount = 1; - */ - tokenOutAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountInResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSplitRouteSwapExactAmountInResponse { - return new MsgSplitRouteSwapExactAmountInResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSplitRouteSwapExactAmountInResponse { - return new MsgSplitRouteSwapExactAmountInResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSplitRouteSwapExactAmountInResponse { - return new MsgSplitRouteSwapExactAmountInResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSplitRouteSwapExactAmountInResponse | PlainMessage | undefined, b: MsgSplitRouteSwapExactAmountInResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSplitRouteSwapExactAmountInResponse, a, b); - } -} - -/** - * ===================== MsgSwapExactAmountOut - * - * @generated from message osmosis.poolmanager.v1beta1.MsgSwapExactAmountOut - */ -export class MsgSwapExactAmountOut extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountOutRoute routes = 2; - */ - routes: SwapAmountOutRoute[] = []; - - /** - * @generated from field: string token_in_max_amount = 3; - */ - tokenInMaxAmount = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_out = 4; - */ - tokenOut?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSwapExactAmountOut"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, - { no: 3, name: "token_in_max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_out", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOut { - return new MsgSwapExactAmountOut().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOut { - return new MsgSwapExactAmountOut().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOut { - return new MsgSwapExactAmountOut().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountOut | PlainMessage | undefined, b: MsgSwapExactAmountOut | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountOut, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.MsgSwapExactAmountOutResponse - */ -export class MsgSwapExactAmountOutResponse extends Message { - /** - * @generated from field: string token_in_amount = 1; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSwapExactAmountOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSwapExactAmountOutResponse { - return new MsgSwapExactAmountOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSwapExactAmountOutResponse { - return new MsgSwapExactAmountOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSwapExactAmountOutResponse { - return new MsgSwapExactAmountOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSwapExactAmountOutResponse | PlainMessage | undefined, b: MsgSwapExactAmountOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSwapExactAmountOutResponse, a, b); - } -} - -/** - * ===================== MsgSplitRouteSwapExactAmountOut - * - * @generated from message osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut - */ -export class MsgSplitRouteSwapExactAmountOut extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.SwapAmountOutSplitRoute routes = 2; - */ - routes: SwapAmountOutSplitRoute[] = []; - - /** - * @generated from field: string token_out_denom = 3; - */ - tokenOutDenom = ""; - - /** - * @generated from field: string token_in_max_amount = 4; - */ - tokenInMaxAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "routes", kind: "message", T: SwapAmountOutSplitRoute, repeated: true }, - { no: 3, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "token_in_max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSplitRouteSwapExactAmountOut { - return new MsgSplitRouteSwapExactAmountOut().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSplitRouteSwapExactAmountOut { - return new MsgSplitRouteSwapExactAmountOut().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSplitRouteSwapExactAmountOut { - return new MsgSplitRouteSwapExactAmountOut().fromJsonString(jsonString, options); - } - - static equals(a: MsgSplitRouteSwapExactAmountOut | PlainMessage | undefined, b: MsgSplitRouteSwapExactAmountOut | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSplitRouteSwapExactAmountOut, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOutResponse - */ -export class MsgSplitRouteSwapExactAmountOutResponse extends Message { - /** - * @generated from field: string token_in_amount = 1; - */ - tokenInAmount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOutResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSplitRouteSwapExactAmountOutResponse { - return new MsgSplitRouteSwapExactAmountOutResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSplitRouteSwapExactAmountOutResponse { - return new MsgSplitRouteSwapExactAmountOutResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSplitRouteSwapExactAmountOutResponse { - return new MsgSplitRouteSwapExactAmountOutResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSplitRouteSwapExactAmountOutResponse | PlainMessage | undefined, b: MsgSplitRouteSwapExactAmountOutResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSplitRouteSwapExactAmountOutResponse, a, b); - } -} - -/** - * ===================== MsgSetDenomPairTakerFee - * - * @generated from message osmosis.poolmanager.v1beta1.MsgSetDenomPairTakerFee - */ -export class MsgSetDenomPairTakerFee extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated osmosis.poolmanager.v1beta1.DenomPairTakerFee denom_pair_taker_fee = 2; - */ - denomPairTakerFee: DenomPairTakerFee[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetDenomPairTakerFee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom_pair_taker_fee", kind: "message", T: DenomPairTakerFee, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomPairTakerFee { - return new MsgSetDenomPairTakerFee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomPairTakerFee { - return new MsgSetDenomPairTakerFee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomPairTakerFee { - return new MsgSetDenomPairTakerFee().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetDenomPairTakerFee | PlainMessage | undefined, b: MsgSetDenomPairTakerFee | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetDenomPairTakerFee, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.MsgSetDenomPairTakerFeeResponse - */ -export class MsgSetDenomPairTakerFeeResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetDenomPairTakerFeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomPairTakerFeeResponse { - return new MsgSetDenomPairTakerFeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomPairTakerFeeResponse { - return new MsgSetDenomPairTakerFeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomPairTakerFeeResponse { - return new MsgSetDenomPairTakerFeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetDenomPairTakerFeeResponse | PlainMessage | undefined, b: MsgSetDenomPairTakerFeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetDenomPairTakerFeeResponse, a, b); - } -} - -/** - * ===================== MsgSetTakerFeeShareAgreementForDenom - * - * @generated from message osmosis.poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenom - */ -export class MsgSetTakerFeeShareAgreementForDenom extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * denom is the denom that the taker fee share agreement is being set for. - * Ex. If this is set to "nBTC", then any trade route that includes "nBTC" - * will have the skim_percent skimmed from the taker fees and sent to the - * skim_address. - * - * @generated from field: string denom = 2; - */ - denom = ""; - - /** - * skim_percent is the percentage of taker fees that will be skimmed for the - * bridge provider, in the event that the bridge provider's denom is included - * in the swap route. - * - * @generated from field: string skim_percent = 3; - */ - skimPercent = ""; - - /** - * skim_address is the address belonging to the respective bridge provider - * that the skimmed taker fees will be sent to at the end of each epoch. - * - * @generated from field: string skim_address = 4; - */ - skimAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "skim_percent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "skim_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetTakerFeeShareAgreementForDenom { - return new MsgSetTakerFeeShareAgreementForDenom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetTakerFeeShareAgreementForDenom { - return new MsgSetTakerFeeShareAgreementForDenom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetTakerFeeShareAgreementForDenom { - return new MsgSetTakerFeeShareAgreementForDenom().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetTakerFeeShareAgreementForDenom | PlainMessage | undefined, b: MsgSetTakerFeeShareAgreementForDenom | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetTakerFeeShareAgreementForDenom, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse - */ -export class MsgSetTakerFeeShareAgreementForDenomResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetTakerFeeShareAgreementForDenomResponse { - return new MsgSetTakerFeeShareAgreementForDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetTakerFeeShareAgreementForDenomResponse { - return new MsgSetTakerFeeShareAgreementForDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetTakerFeeShareAgreementForDenomResponse { - return new MsgSetTakerFeeShareAgreementForDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetTakerFeeShareAgreementForDenomResponse | PlainMessage | undefined, b: MsgSetTakerFeeShareAgreementForDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetTakerFeeShareAgreementForDenomResponse, a, b); - } -} - -/** - * ===================== MsgSetRegisteredAlloyedPool - * - * @generated from message osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPool - */ -export class MsgSetRegisteredAlloyedPool extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * pool_id is the id of the pool that is being registered as an alloyed pool. - * Only alloyed pools that intend to be used in taker fee revenue sharing - * should be registered. - * - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRegisteredAlloyedPool { - return new MsgSetRegisteredAlloyedPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRegisteredAlloyedPool { - return new MsgSetRegisteredAlloyedPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetRegisteredAlloyedPool { - return new MsgSetRegisteredAlloyedPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetRegisteredAlloyedPool | PlainMessage | undefined, b: MsgSetRegisteredAlloyedPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetRegisteredAlloyedPool, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPoolResponse - */ -export class MsgSetRegisteredAlloyedPoolResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.MsgSetRegisteredAlloyedPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetRegisteredAlloyedPoolResponse { - return new MsgSetRegisteredAlloyedPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetRegisteredAlloyedPoolResponse { - return new MsgSetRegisteredAlloyedPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetRegisteredAlloyedPoolResponse { - return new MsgSetRegisteredAlloyedPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetRegisteredAlloyedPoolResponse | PlainMessage | undefined, b: MsgSetRegisteredAlloyedPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetRegisteredAlloyedPoolResponse, a, b); - } -} - -/** - * @generated from message osmosis.poolmanager.v1beta1.DenomPairTakerFee - */ -export class DenomPairTakerFee extends Message { - /** - * DEPRECATED: Now that we are using uni-directional trading pairs, we are - * using tokenInDenom and tokenOutDenom instead of denom0 and denom1 to - * prevent confusion. - * - * @generated from field: string denom0 = 1 [deprecated = true]; - * @deprecated - */ - denom0 = ""; - - /** - * @generated from field: string denom1 = 2 [deprecated = true]; - * @deprecated - */ - denom1 = ""; - - /** - * @generated from field: string taker_fee = 3; - */ - takerFee = ""; - - /** - * @generated from field: string tokenInDenom = 4; - */ - tokenInDenom = ""; - - /** - * @generated from field: string tokenOutDenom = 5; - */ - tokenOutDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v1beta1.DenomPairTakerFee"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "tokenInDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "tokenOutDenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DenomPairTakerFee { - return new DenomPairTakerFee().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DenomPairTakerFee { - return new DenomPairTakerFee().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DenomPairTakerFee { - return new DenomPairTakerFee().fromJsonString(jsonString, options); - } - - static equals(a: DenomPairTakerFee | PlainMessage | undefined, b: DenomPairTakerFee | PlainMessage | undefined): boolean { - return proto3.util.equals(DenomPairTakerFee, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_cosmes.ts deleted file mode 100644 index 6e27ff2..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_cosmes.ts +++ /dev/null @@ -1,25 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v2/query.proto (package osmosis.poolmanager.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { SpotPriceRequest, SpotPriceResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.poolmanager.v2.Query"; - -/** - * SpotPriceV2 defines a gRPC query handler that returns the spot price given - * a base denomination and a quote denomination. - * The returned spot price has 36 decimal places. However, some of - * modules perform sig fig rounding so most of the rightmost decimals can be - * zeroes. - * - * @generated from rpc osmosis.poolmanager.v2.Query.SpotPriceV2 - */ -export const QuerySpotPriceV2Service = { - typeName: TYPE_NAME, - method: "SpotPriceV2", - Request: SpotPriceRequest, - Response: SpotPriceResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_pb.ts b/libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_pb.ts deleted file mode 100644 index ca942e2..0000000 --- a/libs/es-client/src/protobufs/osmosis/poolmanager/v2/query_pb.ts +++ /dev/null @@ -1,102 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/poolmanager/v2/query.proto (package osmosis.poolmanager.v2, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * SpotPriceRequest defines the gRPC request structure for a SpotPrice - * query. - * - * @generated from message osmosis.poolmanager.v2.SpotPriceRequest - */ -export class SpotPriceRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset_denom = 2; - */ - baseAssetDenom = ""; - - /** - * @generated from field: string quote_asset_denom = 3; - */ - quoteAssetDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v2.SpotPriceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceRequest { - return new SpotPriceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceRequest { - return new SpotPriceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SpotPriceRequest { - return new SpotPriceRequest().fromJsonString(jsonString, options); - } - - static equals(a: SpotPriceRequest | PlainMessage | undefined, b: SpotPriceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SpotPriceRequest, a, b); - } -} - -/** - * SpotPriceResponse defines the gRPC response structure for a SpotPrice - * query. - * - * @generated from message osmosis.poolmanager.v2.SpotPriceResponse - */ -export class SpotPriceResponse extends Message { - /** - * String of the BigDec. Ex) 10.203uatom - * - * @generated from field: string spot_price = 1; - */ - spotPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.poolmanager.v2.SpotPriceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceResponse { - return new SpotPriceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceResponse { - return new SpotPriceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SpotPriceResponse { - return new SpotPriceResponse().fromJsonString(jsonString, options); - } - - static equals(a: SpotPriceResponse | PlainMessage | undefined, b: SpotPriceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SpotPriceResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts deleted file mode 100644 index 6e64a70..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,161 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/genesis.proto (package osmosis.protorev.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { BaseDenom, CyclicArbTracker, InfoByPoolType, PoolWeights, TokenPairArbRoutes } from "./protorev_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * GenesisState defines the protorev module's genesis state. - * - * @generated from message osmosis.protorev.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * Parameters for the protorev module. - * - * @generated from field: osmosis.protorev.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * Token pair arb routes for the protorev module (hot routes). - * - * @generated from field: repeated osmosis.protorev.v1beta1.TokenPairArbRoutes token_pair_arb_routes = 2; - */ - tokenPairArbRoutes: TokenPairArbRoutes[] = []; - - /** - * The base denominations being used to create cyclic arbitrage routes via the - * highest liquidity method. - * - * @generated from field: repeated osmosis.protorev.v1beta1.BaseDenom base_denoms = 3; - */ - baseDenoms: BaseDenom[] = []; - - /** - * DEPRECATED: pool_weights are weights that are being used to calculate the - * compute cost of each route. This field is deprecated. - * It is replaced by the `info_by_pool_type` field. - * - * @generated from field: osmosis.protorev.v1beta1.PoolWeights pool_weights = 4 [deprecated = true]; - * @deprecated - */ - poolWeights?: PoolWeights; - - /** - * The number of days since module genesis. - * - * @generated from field: uint64 days_since_module_genesis = 5; - */ - daysSinceModuleGenesis = protoInt64.zero; - - /** - * The fees the developer account has accumulated over time. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin developer_fees = 6; - */ - developerFees: Coin[] = []; - - /** - * The latest block height that the module has processed. - * - * @generated from field: uint64 latest_block_height = 7; - */ - latestBlockHeight = protoInt64.zero; - - /** - * The developer account address of the module. - * - * @generated from field: string developer_address = 8; - */ - developerAddress = ""; - - /** - * Max pool points per block i.e. the maximum compute time (in ms) - * that protorev can use per block. - * - * @generated from field: uint64 max_pool_points_per_block = 9; - */ - maxPoolPointsPerBlock = protoInt64.zero; - - /** - * Max pool points per tx i.e. the maximum compute time (in ms) that - * protorev can use per tx. - * - * @generated from field: uint64 max_pool_points_per_tx = 10; - */ - maxPoolPointsPerTx = protoInt64.zero; - - /** - * The number of pool points that have been consumed in the current block. - * - * @generated from field: uint64 point_count_for_block = 11; - */ - pointCountForBlock = protoInt64.zero; - - /** - * All of the profits that have been accumulated by the module. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin profits = 12; - */ - profits: Coin[] = []; - - /** - * Information that is used to estimate execution time / gas - * consumption of a swap on a given pool type. - * - * @generated from field: osmosis.protorev.v1beta1.InfoByPoolType info_by_pool_type = 13; - */ - infoByPoolType?: InfoByPoolType; - - /** - * @generated from field: osmosis.protorev.v1beta1.CyclicArbTracker cyclic_arb_tracker = 14; - */ - cyclicArbTracker?: CyclicArbTracker; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "token_pair_arb_routes", kind: "message", T: TokenPairArbRoutes, repeated: true }, - { no: 3, name: "base_denoms", kind: "message", T: BaseDenom, repeated: true }, - { no: 4, name: "pool_weights", kind: "message", T: PoolWeights }, - { no: 5, name: "days_since_module_genesis", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "developer_fees", kind: "message", T: Coin, repeated: true }, - { no: 7, name: "latest_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "developer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "max_pool_points_per_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 10, name: "max_pool_points_per_tx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 11, name: "point_count_for_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 12, name: "profits", kind: "message", T: Coin, repeated: true }, - { no: 13, name: "info_by_pool_type", kind: "message", T: InfoByPoolType }, - { no: 14, name: "cyclic_arb_tracker", kind: "message", T: CyclicArbTracker }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/gov_pb.ts deleted file mode 100644 index 36a645a..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/gov_pb.ts +++ /dev/null @@ -1,113 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/gov.proto (package osmosis.protorev.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * SetProtoRevEnabledProposal is a gov Content type to update whether the - * protorev module is enabled - * - * @generated from message osmosis.protorev.v1beta1.SetProtoRevEnabledProposal - */ -export class SetProtoRevEnabledProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: bool enabled = 3; - */ - enabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.SetProtoRevEnabledProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SetProtoRevEnabledProposal { - return new SetProtoRevEnabledProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SetProtoRevEnabledProposal { - return new SetProtoRevEnabledProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SetProtoRevEnabledProposal { - return new SetProtoRevEnabledProposal().fromJsonString(jsonString, options); - } - - static equals(a: SetProtoRevEnabledProposal | PlainMessage | undefined, b: SetProtoRevEnabledProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(SetProtoRevEnabledProposal, a, b); - } -} - -/** - * SetProtoRevAdminAccountProposal is a gov Content type to set the admin - * account that will receive permissions to alter hot routes and set the - * developer address that will be receiving a share of profits from the module - * - * @generated from message osmosis.protorev.v1beta1.SetProtoRevAdminAccountProposal - */ -export class SetProtoRevAdminAccountProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: string account = 3; - */ - account = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.SetProtoRevAdminAccountProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SetProtoRevAdminAccountProposal { - return new SetProtoRevAdminAccountProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SetProtoRevAdminAccountProposal { - return new SetProtoRevAdminAccountProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SetProtoRevAdminAccountProposal { - return new SetProtoRevAdminAccountProposal().fromJsonString(jsonString, options); - } - - static equals(a: SetProtoRevAdminAccountProposal | PlainMessage | undefined, b: SetProtoRevAdminAccountProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(SetProtoRevAdminAccountProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/params_pb.ts deleted file mode 100644 index 7e59957..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/params_pb.ts +++ /dev/null @@ -1,57 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/params.proto (package osmosis.protorev.v1beta1, 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 osmosis.protorev.v1beta1.Params - */ -export class Params extends Message { - /** - * Boolean whether the protorev module is enabled. - * - * @generated from field: bool enabled = 1; - */ - enabled = false; - - /** - * The admin account (settings manager) of the protorev module. - * - * @generated from field: string admin = 2; - */ - admin = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts deleted file mode 100644 index add6efb..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/protorev_pb.ts +++ /dev/null @@ -1,786 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/protorev.proto (package osmosis.protorev.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { TakerFeesTracker } from "../../poolmanager/v1beta1/genesis_pb.js"; -import { TxFeesTracker } from "../../txfees/v1beta1/genesis_pb.js"; - -/** - * TokenPairArbRoutes tracks all of the hot routes for a given pair of tokens - * - * @generated from message osmosis.protorev.v1beta1.TokenPairArbRoutes - */ -export class TokenPairArbRoutes extends Message { - /** - * Stores all of the possible hot paths for a given pair of tokens - * - * @generated from field: repeated osmosis.protorev.v1beta1.Route arb_routes = 1; - */ - arbRoutes: Route[] = []; - - /** - * Token denomination of the first asset - * - * @generated from field: string token_in = 2; - */ - tokenIn = ""; - - /** - * Token denomination of the second asset - * - * @generated from field: string token_out = 3; - */ - tokenOut = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.TokenPairArbRoutes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "arb_routes", kind: "message", T: Route, repeated: true }, - { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TokenPairArbRoutes { - return new TokenPairArbRoutes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TokenPairArbRoutes { - return new TokenPairArbRoutes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TokenPairArbRoutes { - return new TokenPairArbRoutes().fromJsonString(jsonString, options); - } - - static equals(a: TokenPairArbRoutes | PlainMessage | undefined, b: TokenPairArbRoutes | PlainMessage | undefined): boolean { - return proto3.util.equals(TokenPairArbRoutes, a, b); - } -} - -/** - * Route is a hot route for a given pair of tokens - * - * @generated from message osmosis.protorev.v1beta1.Route - */ -export class Route extends Message { - /** - * The pool IDs that are traversed in the directed cyclic graph (traversed - * left - * -> right) - * - * @generated from field: repeated osmosis.protorev.v1beta1.Trade trades = 1; - */ - trades: Trade[] = []; - - /** - * The step size that will be used to find the optimal swap amount in the - * binary search - * - * @generated from field: string step_size = 2; - */ - stepSize = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.Route"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "trades", kind: "message", T: Trade, repeated: true }, - { no: 2, name: "step_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Route { - return new Route().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Route { - return new Route().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Route { - return new Route().fromJsonString(jsonString, options); - } - - static equals(a: Route | PlainMessage | undefined, b: Route | PlainMessage | undefined): boolean { - return proto3.util.equals(Route, a, b); - } -} - -/** - * Trade is a single trade in a route - * - * @generated from message osmosis.protorev.v1beta1.Trade - */ -export class Trade extends Message { - /** - * The pool id of the pool that is traded on - * - * @generated from field: uint64 pool = 1; - */ - pool = protoInt64.zero; - - /** - * The denom of the token that is traded - * - * @generated from field: string token_in = 2; - */ - tokenIn = ""; - - /** - * The denom of the token that is received - * - * @generated from field: string token_out = 3; - */ - tokenOut = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.Trade"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Trade { - return new Trade().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Trade { - return new Trade().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Trade { - return new Trade().fromJsonString(jsonString, options); - } - - static equals(a: Trade | PlainMessage | undefined, b: Trade | PlainMessage | undefined): boolean { - return proto3.util.equals(Trade, a, b); - } -} - -/** - * RouteStatistics contains the number of trades the module has executed after a - * swap on a given route and the profits from the trades - * - * @generated from message osmosis.protorev.v1beta1.RouteStatistics - */ -export class RouteStatistics extends Message { - /** - * profits is the total profit from all trades on this route - * - * @generated from field: repeated cosmos.base.v1beta1.Coin profits = 1; - */ - profits: Coin[] = []; - - /** - * number_of_trades is the number of trades the module has executed using this - * route - * - * @generated from field: string number_of_trades = 2; - */ - numberOfTrades = ""; - - /** - * route is the route that was used (pool ids along the arbitrage route) - * - * @generated from field: repeated uint64 route = 3; - */ - route: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.RouteStatistics"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "profits", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "number_of_trades", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "route", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RouteStatistics { - return new RouteStatistics().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RouteStatistics { - return new RouteStatistics().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RouteStatistics { - return new RouteStatistics().fromJsonString(jsonString, options); - } - - static equals(a: RouteStatistics | PlainMessage | undefined, b: RouteStatistics | PlainMessage | undefined): boolean { - return proto3.util.equals(RouteStatistics, a, b); - } -} - -/** - * PoolWeights contains the weights of all of the different pool types. This - * distinction is made and necessary because the execution time ranges - * significantly between the different pool types. Each weight roughly - * corresponds to the amount of time (in ms) it takes to execute a swap on that - * pool type. - * - * DEPRECATED: This field is deprecated and will be removed in the next - * release. It is replaced by the `info_by_pool_type` field. - * - * @generated from message osmosis.protorev.v1beta1.PoolWeights - */ -export class PoolWeights extends Message { - /** - * The weight of a stableswap pool - * - * @generated from field: uint64 stable_weight = 1; - */ - stableWeight = protoInt64.zero; - - /** - * The weight of a balancer pool - * - * @generated from field: uint64 balancer_weight = 2; - */ - balancerWeight = protoInt64.zero; - - /** - * The weight of a concentrated pool - * - * @generated from field: uint64 concentrated_weight = 3; - */ - concentratedWeight = protoInt64.zero; - - /** - * The weight of a cosmwasm pool - * - * @generated from field: uint64 cosmwasm_weight = 4; - */ - cosmwasmWeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.PoolWeights"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "stable_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "balancer_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "concentrated_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "cosmwasm_weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PoolWeights { - return new PoolWeights().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PoolWeights { - return new PoolWeights().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PoolWeights { - return new PoolWeights().fromJsonString(jsonString, options); - } - - static equals(a: PoolWeights | PlainMessage | undefined, b: PoolWeights | PlainMessage | undefined): boolean { - return proto3.util.equals(PoolWeights, a, b); - } -} - -/** - * InfoByPoolType contains information pertaining to how expensive (in terms of - * gas and time) it is to execute a swap on a given pool type. This distinction - * is made and necessary because the execution time ranges significantly between - * the different pool types. - * - * @generated from message osmosis.protorev.v1beta1.InfoByPoolType - */ -export class InfoByPoolType extends Message { - /** - * The stable pool info - * - * @generated from field: osmosis.protorev.v1beta1.StablePoolInfo stable = 1; - */ - stable?: StablePoolInfo; - - /** - * The balancer pool info - * - * @generated from field: osmosis.protorev.v1beta1.BalancerPoolInfo balancer = 2; - */ - balancer?: BalancerPoolInfo; - - /** - * The concentrated pool info - * - * @generated from field: osmosis.protorev.v1beta1.ConcentratedPoolInfo concentrated = 3; - */ - concentrated?: ConcentratedPoolInfo; - - /** - * The cosmwasm pool info - * - * @generated from field: osmosis.protorev.v1beta1.CosmwasmPoolInfo cosmwasm = 4; - */ - cosmwasm?: CosmwasmPoolInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.InfoByPoolType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "stable", kind: "message", T: StablePoolInfo }, - { no: 2, name: "balancer", kind: "message", T: BalancerPoolInfo }, - { no: 3, name: "concentrated", kind: "message", T: ConcentratedPoolInfo }, - { no: 4, name: "cosmwasm", kind: "message", T: CosmwasmPoolInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InfoByPoolType { - return new InfoByPoolType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InfoByPoolType { - return new InfoByPoolType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InfoByPoolType { - return new InfoByPoolType().fromJsonString(jsonString, options); - } - - static equals(a: InfoByPoolType | PlainMessage | undefined, b: InfoByPoolType | PlainMessage | undefined): boolean { - return proto3.util.equals(InfoByPoolType, a, b); - } -} - -/** - * StablePoolInfo contains meta data pertaining to a stableswap pool type. - * - * @generated from message osmosis.protorev.v1beta1.StablePoolInfo - */ -export class StablePoolInfo extends Message { - /** - * The weight of a stableswap pool - * - * @generated from field: uint64 weight = 1; - */ - weight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.StablePoolInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StablePoolInfo { - return new StablePoolInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StablePoolInfo { - return new StablePoolInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StablePoolInfo { - return new StablePoolInfo().fromJsonString(jsonString, options); - } - - static equals(a: StablePoolInfo | PlainMessage | undefined, b: StablePoolInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(StablePoolInfo, a, b); - } -} - -/** - * BalancerPoolInfo contains meta data pertaining to a balancer pool type. - * - * @generated from message osmosis.protorev.v1beta1.BalancerPoolInfo - */ -export class BalancerPoolInfo extends Message { - /** - * The weight of a balancer pool - * - * @generated from field: uint64 weight = 1; - */ - weight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.BalancerPoolInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BalancerPoolInfo { - return new BalancerPoolInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BalancerPoolInfo { - return new BalancerPoolInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BalancerPoolInfo { - return new BalancerPoolInfo().fromJsonString(jsonString, options); - } - - static equals(a: BalancerPoolInfo | PlainMessage | undefined, b: BalancerPoolInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(BalancerPoolInfo, a, b); - } -} - -/** - * ConcentratedPoolInfo contains meta data pertaining to a concentrated pool - * type. - * - * @generated from message osmosis.protorev.v1beta1.ConcentratedPoolInfo - */ -export class ConcentratedPoolInfo extends Message { - /** - * The weight of a concentrated pool - * - * @generated from field: uint64 weight = 1; - */ - weight = protoInt64.zero; - - /** - * The maximum number of ticks we can move when rebalancing - * - * @generated from field: uint64 max_ticks_crossed = 2; - */ - maxTicksCrossed = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.ConcentratedPoolInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "max_ticks_crossed", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConcentratedPoolInfo { - return new ConcentratedPoolInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConcentratedPoolInfo { - return new ConcentratedPoolInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConcentratedPoolInfo { - return new ConcentratedPoolInfo().fromJsonString(jsonString, options); - } - - static equals(a: ConcentratedPoolInfo | PlainMessage | undefined, b: ConcentratedPoolInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ConcentratedPoolInfo, a, b); - } -} - -/** - * CosmwasmPoolInfo contains meta data pertaining to a cosmwasm pool type. - * - * @generated from message osmosis.protorev.v1beta1.CosmwasmPoolInfo - */ -export class CosmwasmPoolInfo extends Message { - /** - * The weight of a cosmwasm pool (by contract address) - * - * @generated from field: repeated osmosis.protorev.v1beta1.WeightMap weight_maps = 1; - */ - weightMaps: WeightMap[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.CosmwasmPoolInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "weight_maps", kind: "message", T: WeightMap, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CosmwasmPoolInfo { - return new CosmwasmPoolInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CosmwasmPoolInfo { - return new CosmwasmPoolInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CosmwasmPoolInfo { - return new CosmwasmPoolInfo().fromJsonString(jsonString, options); - } - - static equals(a: CosmwasmPoolInfo | PlainMessage | undefined, b: CosmwasmPoolInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(CosmwasmPoolInfo, a, b); - } -} - -/** - * WeightMap maps a contract address to a weight. The weight of an address - * corresponds to the amount of ms required to execute a swap on that contract. - * - * @generated from message osmosis.protorev.v1beta1.WeightMap - */ -export class WeightMap extends Message { - /** - * The weight of a cosmwasm pool (by contract address) - * - * @generated from field: uint64 weight = 1; - */ - weight = protoInt64.zero; - - /** - * The contract address - * - * @generated from field: string contract_address = 2; - */ - contractAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.WeightMap"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "weight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WeightMap { - return new WeightMap().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WeightMap { - return new WeightMap().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WeightMap { - return new WeightMap().fromJsonString(jsonString, options); - } - - static equals(a: WeightMap | PlainMessage | undefined, b: WeightMap | PlainMessage | undefined): boolean { - return proto3.util.equals(WeightMap, a, b); - } -} - -/** - * BaseDenom represents a single base denom that the module uses for its - * arbitrage trades. It contains the denom name alongside the step size of the - * binary search that is used to find the optimal swap amount - * - * @generated from message osmosis.protorev.v1beta1.BaseDenom - */ -export class BaseDenom extends Message { - /** - * The denom i.e. name of the base denom (ex. uosmo) - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * The step size of the binary search that is used to find the optimal swap - * amount - * - * @generated from field: string step_size = 2; - */ - stepSize = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.BaseDenom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "step_size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BaseDenom { - return new BaseDenom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BaseDenom { - return new BaseDenom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BaseDenom { - return new BaseDenom().fromJsonString(jsonString, options); - } - - static equals(a: BaseDenom | PlainMessage | undefined, b: BaseDenom | PlainMessage | undefined): boolean { - return proto3.util.equals(BaseDenom, a, b); - } -} - -/** - * BaseDenoms represents all of the base denoms that the module uses for its - * arbitrage trades. - * - * @generated from message osmosis.protorev.v1beta1.BaseDenoms - */ -export class BaseDenoms extends Message { - /** - * @generated from field: repeated osmosis.protorev.v1beta1.BaseDenom base_denoms = 1; - */ - baseDenoms: BaseDenom[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.BaseDenoms"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_denoms", kind: "message", T: BaseDenom, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BaseDenoms { - return new BaseDenoms().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BaseDenoms { - return new BaseDenoms().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BaseDenoms { - return new BaseDenoms().fromJsonString(jsonString, options); - } - - static equals(a: BaseDenoms | PlainMessage | undefined, b: BaseDenoms | PlainMessage | undefined): boolean { - return proto3.util.equals(BaseDenoms, a, b); - } -} - -/** - * @generated from message osmosis.protorev.v1beta1.AllProtocolRevenue - */ -export class AllProtocolRevenue extends Message { - /** - * @generated from field: osmosis.poolmanager.v1beta1.TakerFeesTracker taker_fees_tracker = 1; - */ - takerFeesTracker?: TakerFeesTracker; - - /** - * DEPRECATED - * - * @generated from field: osmosis.txfees.v1beta1.TxFeesTracker tx_fees_tracker = 2 [deprecated = true]; - * @deprecated - */ - txFeesTracker?: TxFeesTracker; - - /** - * @generated from field: osmosis.protorev.v1beta1.CyclicArbTracker cyclic_arb_tracker = 3; - */ - cyclicArbTracker?: CyclicArbTracker; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.AllProtocolRevenue"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "taker_fees_tracker", kind: "message", T: TakerFeesTracker }, - { no: 2, name: "tx_fees_tracker", kind: "message", T: TxFeesTracker }, - { no: 3, name: "cyclic_arb_tracker", kind: "message", T: CyclicArbTracker }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllProtocolRevenue { - return new AllProtocolRevenue().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllProtocolRevenue { - return new AllProtocolRevenue().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllProtocolRevenue { - return new AllProtocolRevenue().fromJsonString(jsonString, options); - } - - static equals(a: AllProtocolRevenue | PlainMessage | undefined, b: AllProtocolRevenue | PlainMessage | undefined): boolean { - return proto3.util.equals(AllProtocolRevenue, a, b); - } -} - -/** - * @generated from message osmosis.protorev.v1beta1.CyclicArbTracker - */ -export class CyclicArbTracker extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin cyclic_arb = 1; - */ - cyclicArb: Coin[] = []; - - /** - * @generated from field: int64 height_accounting_starts_from = 2; - */ - heightAccountingStartsFrom = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.CyclicArbTracker"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cyclic_arb", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "height_accounting_starts_from", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CyclicArbTracker { - return new CyclicArbTracker().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CyclicArbTracker { - return new CyclicArbTracker().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CyclicArbTracker { - return new CyclicArbTracker().fromJsonString(jsonString, options); - } - - static equals(a: CyclicArbTracker | PlainMessage | undefined, b: CyclicArbTracker | PlainMessage | undefined): boolean { - return proto3.util.equals(CyclicArbTracker, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts deleted file mode 100644 index a91d936..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,212 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/query.proto (package osmosis.protorev.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryGetAllProtocolRevenueRequest, QueryGetAllProtocolRevenueResponse, QueryGetProtoRevAdminAccountRequest, QueryGetProtoRevAdminAccountResponse, QueryGetProtoRevAllProfitsRequest, QueryGetProtoRevAllProfitsResponse, QueryGetProtoRevAllRouteStatisticsRequest, QueryGetProtoRevAllRouteStatisticsResponse, QueryGetProtoRevBaseDenomsRequest, QueryGetProtoRevBaseDenomsResponse, QueryGetProtoRevDeveloperAccountRequest, QueryGetProtoRevDeveloperAccountResponse, QueryGetProtoRevEnabledRequest, QueryGetProtoRevEnabledResponse, QueryGetProtoRevInfoByPoolTypeRequest, QueryGetProtoRevInfoByPoolTypeResponse, QueryGetProtoRevMaxPoolPointsPerBlockRequest, QueryGetProtoRevMaxPoolPointsPerBlockResponse, QueryGetProtoRevMaxPoolPointsPerTxRequest, QueryGetProtoRevMaxPoolPointsPerTxResponse, QueryGetProtoRevNumberOfTradesRequest, QueryGetProtoRevNumberOfTradesResponse, QueryGetProtoRevPoolRequest, QueryGetProtoRevPoolResponse, QueryGetProtoRevProfitsByDenomRequest, QueryGetProtoRevProfitsByDenomResponse, QueryGetProtoRevStatisticsByRouteRequest, QueryGetProtoRevStatisticsByRouteResponse, QueryGetProtoRevTokenPairArbRoutesRequest, QueryGetProtoRevTokenPairArbRoutesResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.protorev.v1beta1.Query"; - -/** - * Params queries the parameters of the module. - * - * @generated from rpc osmosis.protorev.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * GetProtoRevNumberOfTrades queries the number of arbitrage trades the module - * has executed - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevNumberOfTrades - */ -export const QueryGetProtoRevNumberOfTradesService = { - typeName: TYPE_NAME, - method: "GetProtoRevNumberOfTrades", - Request: QueryGetProtoRevNumberOfTradesRequest, - Response: QueryGetProtoRevNumberOfTradesResponse, -} as const; - -/** - * GetProtoRevProfitsByDenom queries the profits of the module by denom - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevProfitsByDenom - */ -export const QueryGetProtoRevProfitsByDenomService = { - typeName: TYPE_NAME, - method: "GetProtoRevProfitsByDenom", - Request: QueryGetProtoRevProfitsByDenomRequest, - Response: QueryGetProtoRevProfitsByDenomResponse, -} as const; - -/** - * GetProtoRevAllProfits queries all of the profits from the module - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevAllProfits - */ -export const QueryGetProtoRevAllProfitsService = { - typeName: TYPE_NAME, - method: "GetProtoRevAllProfits", - Request: QueryGetProtoRevAllProfitsRequest, - Response: QueryGetProtoRevAllProfitsResponse, -} as const; - -/** - * GetProtoRevStatisticsByRoute queries the number of arbitrages and profits - * that have been executed for a given route - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevStatisticsByRoute - */ -export const QueryGetProtoRevStatisticsByRouteService = { - typeName: TYPE_NAME, - method: "GetProtoRevStatisticsByRoute", - Request: QueryGetProtoRevStatisticsByRouteRequest, - Response: QueryGetProtoRevStatisticsByRouteResponse, -} as const; - -/** - * GetProtoRevAllRouteStatistics queries all of routes that the module has - * arbitraged against and the number of trades and profits that have been - * accumulated for each route - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevAllRouteStatistics - */ -export const QueryGetProtoRevAllRouteStatisticsService = { - typeName: TYPE_NAME, - method: "GetProtoRevAllRouteStatistics", - Request: QueryGetProtoRevAllRouteStatisticsRequest, - Response: QueryGetProtoRevAllRouteStatisticsResponse, -} as const; - -/** - * GetProtoRevTokenPairArbRoutes queries all of the hot routes that the module - * is currently arbitraging - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevTokenPairArbRoutes - */ -export const QueryGetProtoRevTokenPairArbRoutesService = { - typeName: TYPE_NAME, - method: "GetProtoRevTokenPairArbRoutes", - Request: QueryGetProtoRevTokenPairArbRoutesRequest, - Response: QueryGetProtoRevTokenPairArbRoutesResponse, -} as const; - -/** - * GetProtoRevAdminAccount queries the admin account of the module - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevAdminAccount - */ -export const QueryGetProtoRevAdminAccountService = { - typeName: TYPE_NAME, - method: "GetProtoRevAdminAccount", - Request: QueryGetProtoRevAdminAccountRequest, - Response: QueryGetProtoRevAdminAccountResponse, -} as const; - -/** - * GetProtoRevDeveloperAccount queries the developer account of the module - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevDeveloperAccount - */ -export const QueryGetProtoRevDeveloperAccountService = { - typeName: TYPE_NAME, - method: "GetProtoRevDeveloperAccount", - Request: QueryGetProtoRevDeveloperAccountRequest, - Response: QueryGetProtoRevDeveloperAccountResponse, -} as const; - -/** - * GetProtoRevInfoByPoolType queries pool type information that is currently - * being utilized by the module - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevInfoByPoolType - */ -export const QueryGetProtoRevInfoByPoolTypeService = { - typeName: TYPE_NAME, - method: "GetProtoRevInfoByPoolType", - Request: QueryGetProtoRevInfoByPoolTypeRequest, - Response: QueryGetProtoRevInfoByPoolTypeResponse, -} as const; - -/** - * GetProtoRevMaxPoolPointsPerTx queries the maximum number of pool points - * that can be consumed per transaction - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevMaxPoolPointsPerTx - */ -export const QueryGetProtoRevMaxPoolPointsPerTxService = { - typeName: TYPE_NAME, - method: "GetProtoRevMaxPoolPointsPerTx", - Request: QueryGetProtoRevMaxPoolPointsPerTxRequest, - Response: QueryGetProtoRevMaxPoolPointsPerTxResponse, -} as const; - -/** - * GetProtoRevMaxPoolPointsPerBlock queries the maximum number of pool points - * that can consumed per block - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevMaxPoolPointsPerBlock - */ -export const QueryGetProtoRevMaxPoolPointsPerBlockService = { - typeName: TYPE_NAME, - method: "GetProtoRevMaxPoolPointsPerBlock", - Request: QueryGetProtoRevMaxPoolPointsPerBlockRequest, - Response: QueryGetProtoRevMaxPoolPointsPerBlockResponse, -} as const; - -/** - * GetProtoRevBaseDenoms queries the base denoms that the module is currently - * utilizing for arbitrage - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevBaseDenoms - */ -export const QueryGetProtoRevBaseDenomsService = { - typeName: TYPE_NAME, - method: "GetProtoRevBaseDenoms", - Request: QueryGetProtoRevBaseDenomsRequest, - Response: QueryGetProtoRevBaseDenomsResponse, -} as const; - -/** - * GetProtoRevEnabled queries whether the module is enabled or not - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevEnabled - */ -export const QueryGetProtoRevEnabledService = { - typeName: TYPE_NAME, - method: "GetProtoRevEnabled", - Request: QueryGetProtoRevEnabledRequest, - Response: QueryGetProtoRevEnabledResponse, -} as const; - -/** - * GetProtoRevPool queries the pool id used via the highest liquidity method - * for arbitrage route building given a pair of denominations - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetProtoRevPool - */ -export const QueryGetProtoRevPoolService = { - typeName: TYPE_NAME, - method: "GetProtoRevPool", - Request: QueryGetProtoRevPoolRequest, - Response: QueryGetProtoRevPoolResponse, -} as const; - -/** - * GetAllProtocolRevenue queries all of the protocol revenue that has been - * accumulated by any module - * - * @generated from rpc osmosis.protorev.v1beta1.Query.GetAllProtocolRevenue - */ -export const QueryGetAllProtocolRevenueService = { - typeName: TYPE_NAME, - method: "GetAllProtocolRevenue", - Request: QueryGetAllProtocolRevenueRequest, - Response: QueryGetAllProtocolRevenueResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts deleted file mode 100644 index 0c2af40..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/query_pb.ts +++ /dev/null @@ -1,1256 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/query.proto (package osmosis.protorev.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { AllProtocolRevenue, BaseDenom, InfoByPoolType, RouteStatistics, TokenPairArbRoutes } from "./protorev_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: osmosis.protorev.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryGetProtoRevNumberOfTradesRequest is request type for the - * Query/GetProtoRevNumberOfTrades RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevNumberOfTradesRequest - */ -export class QueryGetProtoRevNumberOfTradesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevNumberOfTradesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevNumberOfTradesRequest { - return new QueryGetProtoRevNumberOfTradesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevNumberOfTradesRequest { - return new QueryGetProtoRevNumberOfTradesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevNumberOfTradesRequest { - return new QueryGetProtoRevNumberOfTradesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevNumberOfTradesRequest | PlainMessage | undefined, b: QueryGetProtoRevNumberOfTradesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevNumberOfTradesRequest, a, b); - } -} - -/** - * QueryGetProtoRevNumberOfTradesResponse is response type for the - * Query/GetProtoRevNumberOfTrades RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevNumberOfTradesResponse - */ -export class QueryGetProtoRevNumberOfTradesResponse extends Message { - /** - * number_of_trades is the number of trades the module has executed - * - * @generated from field: string number_of_trades = 1; - */ - numberOfTrades = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevNumberOfTradesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "number_of_trades", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevNumberOfTradesResponse { - return new QueryGetProtoRevNumberOfTradesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevNumberOfTradesResponse { - return new QueryGetProtoRevNumberOfTradesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevNumberOfTradesResponse { - return new QueryGetProtoRevNumberOfTradesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevNumberOfTradesResponse | PlainMessage | undefined, b: QueryGetProtoRevNumberOfTradesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevNumberOfTradesResponse, a, b); - } -} - -/** - * QueryGetProtoRevProfitsByDenomRequest is request type for the - * Query/GetProtoRevProfitsByDenom RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevProfitsByDenomRequest - */ -export class QueryGetProtoRevProfitsByDenomRequest extends Message { - /** - * denom is the denom to query profits by - * - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevProfitsByDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevProfitsByDenomRequest { - return new QueryGetProtoRevProfitsByDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevProfitsByDenomRequest { - return new QueryGetProtoRevProfitsByDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevProfitsByDenomRequest { - return new QueryGetProtoRevProfitsByDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevProfitsByDenomRequest | PlainMessage | undefined, b: QueryGetProtoRevProfitsByDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevProfitsByDenomRequest, a, b); - } -} - -/** - * QueryGetProtoRevProfitsByDenomResponse is response type for the - * Query/GetProtoRevProfitsByDenom RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevProfitsByDenomResponse - */ -export class QueryGetProtoRevProfitsByDenomResponse extends Message { - /** - * profit is the profits of the module by the selected denom - * - * @generated from field: cosmos.base.v1beta1.Coin profit = 1; - */ - profit?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevProfitsByDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "profit", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevProfitsByDenomResponse { - return new QueryGetProtoRevProfitsByDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevProfitsByDenomResponse { - return new QueryGetProtoRevProfitsByDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevProfitsByDenomResponse { - return new QueryGetProtoRevProfitsByDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevProfitsByDenomResponse | PlainMessage | undefined, b: QueryGetProtoRevProfitsByDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevProfitsByDenomResponse, a, b); - } -} - -/** - * QueryGetProtoRevAllProfitsRequest is request type for the - * Query/GetProtoRevAllProfits RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevAllProfitsRequest - */ -export class QueryGetProtoRevAllProfitsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevAllProfitsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevAllProfitsRequest { - return new QueryGetProtoRevAllProfitsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevAllProfitsRequest { - return new QueryGetProtoRevAllProfitsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevAllProfitsRequest { - return new QueryGetProtoRevAllProfitsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevAllProfitsRequest | PlainMessage | undefined, b: QueryGetProtoRevAllProfitsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevAllProfitsRequest, a, b); - } -} - -/** - * QueryGetProtoRevAllProfitsResponse is response type for the - * Query/GetProtoRevAllProfits RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevAllProfitsResponse - */ -export class QueryGetProtoRevAllProfitsResponse extends Message { - /** - * profits is a list of all of the profits from the module - * - * @generated from field: repeated cosmos.base.v1beta1.Coin profits = 1; - */ - profits: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevAllProfitsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "profits", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevAllProfitsResponse { - return new QueryGetProtoRevAllProfitsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevAllProfitsResponse { - return new QueryGetProtoRevAllProfitsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevAllProfitsResponse { - return new QueryGetProtoRevAllProfitsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevAllProfitsResponse | PlainMessage | undefined, b: QueryGetProtoRevAllProfitsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevAllProfitsResponse, a, b); - } -} - -/** - * QueryGetProtoRevStatisticsByPoolRequest is request type for the - * Query/GetProtoRevStatisticsByRoute RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevStatisticsByRouteRequest - */ -export class QueryGetProtoRevStatisticsByRouteRequest extends Message { - /** - * route is the set of pool ids to query statistics by i.e. 1,2,3 - * - * @generated from field: repeated uint64 route = 1; - */ - route: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevStatisticsByRouteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "route", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevStatisticsByRouteRequest { - return new QueryGetProtoRevStatisticsByRouteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevStatisticsByRouteRequest { - return new QueryGetProtoRevStatisticsByRouteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevStatisticsByRouteRequest { - return new QueryGetProtoRevStatisticsByRouteRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevStatisticsByRouteRequest | PlainMessage | undefined, b: QueryGetProtoRevStatisticsByRouteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevStatisticsByRouteRequest, a, b); - } -} - -/** - * QueryGetProtoRevStatisticsByRouteResponse is response type for the - * Query/GetProtoRevStatisticsByRoute RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevStatisticsByRouteResponse - */ -export class QueryGetProtoRevStatisticsByRouteResponse extends Message { - /** - * statistics contains the number of trades the module has executed after a - * swap on a given pool and the profits from the trades - * - * @generated from field: osmosis.protorev.v1beta1.RouteStatistics statistics = 1; - */ - statistics?: RouteStatistics; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevStatisticsByRouteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "statistics", kind: "message", T: RouteStatistics }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevStatisticsByRouteResponse { - return new QueryGetProtoRevStatisticsByRouteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevStatisticsByRouteResponse { - return new QueryGetProtoRevStatisticsByRouteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevStatisticsByRouteResponse { - return new QueryGetProtoRevStatisticsByRouteResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevStatisticsByRouteResponse | PlainMessage | undefined, b: QueryGetProtoRevStatisticsByRouteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevStatisticsByRouteResponse, a, b); - } -} - -/** - * QueryGetProtoRevAllRouteStatisticsRequest is request type for the - * Query/GetProtoRevAllRouteStatistics RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevAllRouteStatisticsRequest - */ -export class QueryGetProtoRevAllRouteStatisticsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevAllRouteStatisticsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevAllRouteStatisticsRequest { - return new QueryGetProtoRevAllRouteStatisticsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevAllRouteStatisticsRequest { - return new QueryGetProtoRevAllRouteStatisticsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevAllRouteStatisticsRequest { - return new QueryGetProtoRevAllRouteStatisticsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevAllRouteStatisticsRequest | PlainMessage | undefined, b: QueryGetProtoRevAllRouteStatisticsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevAllRouteStatisticsRequest, a, b); - } -} - -/** - * QueryGetProtoRevAllRouteStatisticsResponse is response type for the - * Query/GetProtoRevAllRouteStatistics RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevAllRouteStatisticsResponse - */ -export class QueryGetProtoRevAllRouteStatisticsResponse extends Message { - /** - * statistics contains the number of trades/profits the module has executed on - * all routes it has successfully executed a trade on - * - * @generated from field: repeated osmosis.protorev.v1beta1.RouteStatistics statistics = 1; - */ - statistics: RouteStatistics[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevAllRouteStatisticsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "statistics", kind: "message", T: RouteStatistics, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevAllRouteStatisticsResponse { - return new QueryGetProtoRevAllRouteStatisticsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevAllRouteStatisticsResponse { - return new QueryGetProtoRevAllRouteStatisticsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevAllRouteStatisticsResponse { - return new QueryGetProtoRevAllRouteStatisticsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevAllRouteStatisticsResponse | PlainMessage | undefined, b: QueryGetProtoRevAllRouteStatisticsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevAllRouteStatisticsResponse, a, b); - } -} - -/** - * QueryGetProtoRevTokenPairArbRoutesRequest is request type for the - * Query/GetProtoRevTokenPairArbRoutes RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevTokenPairArbRoutesRequest - */ -export class QueryGetProtoRevTokenPairArbRoutesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevTokenPairArbRoutesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevTokenPairArbRoutesRequest { - return new QueryGetProtoRevTokenPairArbRoutesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevTokenPairArbRoutesRequest { - return new QueryGetProtoRevTokenPairArbRoutesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevTokenPairArbRoutesRequest { - return new QueryGetProtoRevTokenPairArbRoutesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevTokenPairArbRoutesRequest | PlainMessage | undefined, b: QueryGetProtoRevTokenPairArbRoutesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevTokenPairArbRoutesRequest, a, b); - } -} - -/** - * QueryGetProtoRevTokenPairArbRoutesResponse is response type for the - * Query/GetProtoRevTokenPairArbRoutes RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevTokenPairArbRoutesResponse - */ -export class QueryGetProtoRevTokenPairArbRoutesResponse extends Message { - /** - * routes is a list of all of the hot routes that the module is currently - * arbitraging - * - * @generated from field: repeated osmosis.protorev.v1beta1.TokenPairArbRoutes routes = 1; - */ - routes: TokenPairArbRoutes[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevTokenPairArbRoutesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "routes", kind: "message", T: TokenPairArbRoutes, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevTokenPairArbRoutesResponse { - return new QueryGetProtoRevTokenPairArbRoutesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevTokenPairArbRoutesResponse { - return new QueryGetProtoRevTokenPairArbRoutesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevTokenPairArbRoutesResponse { - return new QueryGetProtoRevTokenPairArbRoutesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevTokenPairArbRoutesResponse | PlainMessage | undefined, b: QueryGetProtoRevTokenPairArbRoutesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevTokenPairArbRoutesResponse, a, b); - } -} - -/** - * QueryGetProtoRevAdminAccountRequest is request type for the - * Query/GetProtoRevAdminAccount RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevAdminAccountRequest - */ -export class QueryGetProtoRevAdminAccountRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevAdminAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevAdminAccountRequest { - return new QueryGetProtoRevAdminAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevAdminAccountRequest { - return new QueryGetProtoRevAdminAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevAdminAccountRequest { - return new QueryGetProtoRevAdminAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevAdminAccountRequest | PlainMessage | undefined, b: QueryGetProtoRevAdminAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevAdminAccountRequest, a, b); - } -} - -/** - * QueryGetProtoRevAdminAccountResponse is response type for the - * Query/GetProtoRevAdminAccount RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevAdminAccountResponse - */ -export class QueryGetProtoRevAdminAccountResponse extends Message { - /** - * admin_account is the admin account of the module - * - * @generated from field: string admin_account = 1; - */ - adminAccount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevAdminAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevAdminAccountResponse { - return new QueryGetProtoRevAdminAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevAdminAccountResponse { - return new QueryGetProtoRevAdminAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevAdminAccountResponse { - return new QueryGetProtoRevAdminAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevAdminAccountResponse | PlainMessage | undefined, b: QueryGetProtoRevAdminAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevAdminAccountResponse, a, b); - } -} - -/** - * QueryGetProtoRevDeveloperAccountRequest is request type for the - * Query/GetProtoRevDeveloperAccount RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevDeveloperAccountRequest - */ -export class QueryGetProtoRevDeveloperAccountRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevDeveloperAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevDeveloperAccountRequest { - return new QueryGetProtoRevDeveloperAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevDeveloperAccountRequest { - return new QueryGetProtoRevDeveloperAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevDeveloperAccountRequest { - return new QueryGetProtoRevDeveloperAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevDeveloperAccountRequest | PlainMessage | undefined, b: QueryGetProtoRevDeveloperAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevDeveloperAccountRequest, a, b); - } -} - -/** - * QueryGetProtoRevDeveloperAccountResponse is response type for the - * Query/GetProtoRevDeveloperAccount RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevDeveloperAccountResponse - */ -export class QueryGetProtoRevDeveloperAccountResponse extends Message { - /** - * developer_account is the developer account of the module - * - * @generated from field: string developer_account = 1; - */ - developerAccount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevDeveloperAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "developer_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevDeveloperAccountResponse { - return new QueryGetProtoRevDeveloperAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevDeveloperAccountResponse { - return new QueryGetProtoRevDeveloperAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevDeveloperAccountResponse { - return new QueryGetProtoRevDeveloperAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevDeveloperAccountResponse | PlainMessage | undefined, b: QueryGetProtoRevDeveloperAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevDeveloperAccountResponse, a, b); - } -} - -/** - * QueryGetProtoRevInfoByPoolTypeRequest is request type for the - * Query/GetProtoRevInfoByPoolType RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevInfoByPoolTypeRequest - */ -export class QueryGetProtoRevInfoByPoolTypeRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevInfoByPoolTypeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevInfoByPoolTypeRequest { - return new QueryGetProtoRevInfoByPoolTypeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevInfoByPoolTypeRequest { - return new QueryGetProtoRevInfoByPoolTypeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevInfoByPoolTypeRequest { - return new QueryGetProtoRevInfoByPoolTypeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevInfoByPoolTypeRequest | PlainMessage | undefined, b: QueryGetProtoRevInfoByPoolTypeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevInfoByPoolTypeRequest, a, b); - } -} - -/** - * QueryGetProtoRevInfoByPoolTypeResponse is response type for the - * Query/GetProtoRevInfoByPoolType RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevInfoByPoolTypeResponse - */ -export class QueryGetProtoRevInfoByPoolTypeResponse extends Message { - /** - * InfoByPoolType contains all information pertaining to how different - * pool types are handled by the module. - * - * @generated from field: osmosis.protorev.v1beta1.InfoByPoolType info_by_pool_type = 1; - */ - infoByPoolType?: InfoByPoolType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevInfoByPoolTypeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "info_by_pool_type", kind: "message", T: InfoByPoolType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevInfoByPoolTypeResponse { - return new QueryGetProtoRevInfoByPoolTypeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevInfoByPoolTypeResponse { - return new QueryGetProtoRevInfoByPoolTypeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevInfoByPoolTypeResponse { - return new QueryGetProtoRevInfoByPoolTypeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevInfoByPoolTypeResponse | PlainMessage | undefined, b: QueryGetProtoRevInfoByPoolTypeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevInfoByPoolTypeResponse, a, b); - } -} - -/** - * QueryGetProtoRevMaxPoolPointsPerBlockRequest is request type for the - * Query/GetProtoRevMaxPoolPointsPerBlock RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerBlockRequest - */ -export class QueryGetProtoRevMaxPoolPointsPerBlockRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerBlockRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevMaxPoolPointsPerBlockRequest { - return new QueryGetProtoRevMaxPoolPointsPerBlockRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevMaxPoolPointsPerBlockRequest { - return new QueryGetProtoRevMaxPoolPointsPerBlockRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevMaxPoolPointsPerBlockRequest { - return new QueryGetProtoRevMaxPoolPointsPerBlockRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevMaxPoolPointsPerBlockRequest | PlainMessage | undefined, b: QueryGetProtoRevMaxPoolPointsPerBlockRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevMaxPoolPointsPerBlockRequest, a, b); - } -} - -/** - * QueryGetProtoRevMaxPoolPointsPerBlockResponse is response type for the - * Query/GetProtoRevMaxPoolPointsPerBlock RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerBlockResponse - */ -export class QueryGetProtoRevMaxPoolPointsPerBlockResponse extends Message { - /** - * max_pool_points_per_block is the maximum number of pool points that can be - * consumed per block - * - * @generated from field: uint64 max_pool_points_per_block = 1; - */ - maxPoolPointsPerBlock = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerBlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_pool_points_per_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevMaxPoolPointsPerBlockResponse { - return new QueryGetProtoRevMaxPoolPointsPerBlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevMaxPoolPointsPerBlockResponse { - return new QueryGetProtoRevMaxPoolPointsPerBlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevMaxPoolPointsPerBlockResponse { - return new QueryGetProtoRevMaxPoolPointsPerBlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevMaxPoolPointsPerBlockResponse | PlainMessage | undefined, b: QueryGetProtoRevMaxPoolPointsPerBlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevMaxPoolPointsPerBlockResponse, a, b); - } -} - -/** - * QueryGetProtoRevMaxPoolPointsPerTxRequest is request type for the - * Query/GetProtoRevMaxPoolPointsPerTx RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerTxRequest - */ -export class QueryGetProtoRevMaxPoolPointsPerTxRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerTxRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevMaxPoolPointsPerTxRequest { - return new QueryGetProtoRevMaxPoolPointsPerTxRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevMaxPoolPointsPerTxRequest { - return new QueryGetProtoRevMaxPoolPointsPerTxRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevMaxPoolPointsPerTxRequest { - return new QueryGetProtoRevMaxPoolPointsPerTxRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevMaxPoolPointsPerTxRequest | PlainMessage | undefined, b: QueryGetProtoRevMaxPoolPointsPerTxRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevMaxPoolPointsPerTxRequest, a, b); - } -} - -/** - * QueryGetProtoRevMaxPoolPointsPerTxResponse is response type for the - * Query/GetProtoRevMaxPoolPointsPerTx RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerTxResponse - */ -export class QueryGetProtoRevMaxPoolPointsPerTxResponse extends Message { - /** - * max_pool_points_per_tx is the maximum number of pool points that can be - * consumed per transaction - * - * @generated from field: uint64 max_pool_points_per_tx = 1; - */ - maxPoolPointsPerTx = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevMaxPoolPointsPerTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_pool_points_per_tx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevMaxPoolPointsPerTxResponse { - return new QueryGetProtoRevMaxPoolPointsPerTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevMaxPoolPointsPerTxResponse { - return new QueryGetProtoRevMaxPoolPointsPerTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevMaxPoolPointsPerTxResponse { - return new QueryGetProtoRevMaxPoolPointsPerTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevMaxPoolPointsPerTxResponse | PlainMessage | undefined, b: QueryGetProtoRevMaxPoolPointsPerTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevMaxPoolPointsPerTxResponse, a, b); - } -} - -/** - * QueryGetProtoRevBaseDenomsRequest is request type for the - * Query/GetProtoRevBaseDenoms RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevBaseDenomsRequest - */ -export class QueryGetProtoRevBaseDenomsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevBaseDenomsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevBaseDenomsRequest { - return new QueryGetProtoRevBaseDenomsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevBaseDenomsRequest { - return new QueryGetProtoRevBaseDenomsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevBaseDenomsRequest { - return new QueryGetProtoRevBaseDenomsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevBaseDenomsRequest | PlainMessage | undefined, b: QueryGetProtoRevBaseDenomsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevBaseDenomsRequest, a, b); - } -} - -/** - * QueryGetProtoRevBaseDenomsResponse is response type for the - * Query/GetProtoRevBaseDenoms RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevBaseDenomsResponse - */ -export class QueryGetProtoRevBaseDenomsResponse extends Message { - /** - * base_denoms is a list of all of the base denoms and step sizes - * - * @generated from field: repeated osmosis.protorev.v1beta1.BaseDenom base_denoms = 1; - */ - baseDenoms: BaseDenom[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevBaseDenomsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_denoms", kind: "message", T: BaseDenom, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevBaseDenomsResponse { - return new QueryGetProtoRevBaseDenomsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevBaseDenomsResponse { - return new QueryGetProtoRevBaseDenomsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevBaseDenomsResponse { - return new QueryGetProtoRevBaseDenomsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevBaseDenomsResponse | PlainMessage | undefined, b: QueryGetProtoRevBaseDenomsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevBaseDenomsResponse, a, b); - } -} - -/** - * QueryGetProtoRevEnabledRequest is request type for the - * Query/GetProtoRevEnabled RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevEnabledRequest - */ -export class QueryGetProtoRevEnabledRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevEnabledRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevEnabledRequest { - return new QueryGetProtoRevEnabledRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevEnabledRequest { - return new QueryGetProtoRevEnabledRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevEnabledRequest { - return new QueryGetProtoRevEnabledRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevEnabledRequest | PlainMessage | undefined, b: QueryGetProtoRevEnabledRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevEnabledRequest, a, b); - } -} - -/** - * QueryGetProtoRevEnabledResponse is response type for the - * Query/GetProtoRevEnabled RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevEnabledResponse - */ -export class QueryGetProtoRevEnabledResponse extends Message { - /** - * enabled is whether the module is enabled - * - * @generated from field: bool enabled = 1; - */ - enabled = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevEnabledResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevEnabledResponse { - return new QueryGetProtoRevEnabledResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevEnabledResponse { - return new QueryGetProtoRevEnabledResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevEnabledResponse { - return new QueryGetProtoRevEnabledResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevEnabledResponse | PlainMessage | undefined, b: QueryGetProtoRevEnabledResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevEnabledResponse, a, b); - } -} - -/** - * QueryGetProtoRevPoolRequest is request type for the - * Query/GetProtoRevPool RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevPoolRequest - */ -export class QueryGetProtoRevPoolRequest extends Message { - /** - * base_denom is the base denom set in protorev for the denom pair to pool - * mapping - * - * @generated from field: string base_denom = 1; - */ - baseDenom = ""; - - /** - * other_denom is the other denom for the denom pair to pool mapping - * - * @generated from field: string other_denom = 2; - */ - otherDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevPoolRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "other_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevPoolRequest { - return new QueryGetProtoRevPoolRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevPoolRequest { - return new QueryGetProtoRevPoolRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevPoolRequest { - return new QueryGetProtoRevPoolRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevPoolRequest | PlainMessage | undefined, b: QueryGetProtoRevPoolRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevPoolRequest, a, b); - } -} - -/** - * QueryGetProtoRevPoolResponse is response type for the - * Query/GetProtoRevPool RPC method. - * - * @generated from message osmosis.protorev.v1beta1.QueryGetProtoRevPoolResponse - */ -export class QueryGetProtoRevPoolResponse extends Message { - /** - * pool_id is the pool_id stored for the denom pair - * - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetProtoRevPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetProtoRevPoolResponse { - return new QueryGetProtoRevPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetProtoRevPoolResponse { - return new QueryGetProtoRevPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetProtoRevPoolResponse { - return new QueryGetProtoRevPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetProtoRevPoolResponse | PlainMessage | undefined, b: QueryGetProtoRevPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetProtoRevPoolResponse, a, b); - } -} - -/** - * @generated from message osmosis.protorev.v1beta1.QueryGetAllProtocolRevenueRequest - */ -export class QueryGetAllProtocolRevenueRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetAllProtocolRevenueRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAllProtocolRevenueRequest { - return new QueryGetAllProtocolRevenueRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAllProtocolRevenueRequest { - return new QueryGetAllProtocolRevenueRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetAllProtocolRevenueRequest { - return new QueryGetAllProtocolRevenueRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetAllProtocolRevenueRequest | PlainMessage | undefined, b: QueryGetAllProtocolRevenueRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetAllProtocolRevenueRequest, a, b); - } -} - -/** - * @generated from message osmosis.protorev.v1beta1.QueryGetAllProtocolRevenueResponse - */ -export class QueryGetAllProtocolRevenueResponse extends Message { - /** - * @generated from field: osmosis.protorev.v1beta1.AllProtocolRevenue all_protocol_revenue = 1; - */ - allProtocolRevenue?: AllProtocolRevenue; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.QueryGetAllProtocolRevenueResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "all_protocol_revenue", kind: "message", T: AllProtocolRevenue }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetAllProtocolRevenueResponse { - return new QueryGetAllProtocolRevenueResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetAllProtocolRevenueResponse { - return new QueryGetAllProtocolRevenueResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryGetAllProtocolRevenueResponse { - return new QueryGetAllProtocolRevenueResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryGetAllProtocolRevenueResponse | PlainMessage | undefined, b: QueryGetAllProtocolRevenueResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryGetAllProtocolRevenueResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts deleted file mode 100644 index e5e7d09..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,87 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/tx.proto (package osmosis.protorev.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgSetBaseDenoms, MsgSetBaseDenomsResponse, MsgSetDeveloperAccount, MsgSetDeveloperAccountResponse, MsgSetHotRoutes, MsgSetHotRoutesResponse, MsgSetInfoByPoolType, MsgSetInfoByPoolTypeResponse, MsgSetMaxPoolPointsPerBlock, MsgSetMaxPoolPointsPerBlockResponse, MsgSetMaxPoolPointsPerTx, MsgSetMaxPoolPointsPerTxResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.protorev.v1beta1.Msg"; - -/** - * SetHotRoutes sets the hot routes that will be explored when creating - * cyclic arbitrage routes. Can only be called by the admin account. - * - * @generated from rpc osmosis.protorev.v1beta1.Msg.SetHotRoutes - */ -export const MsgSetHotRoutesService = { - typeName: TYPE_NAME, - method: "SetHotRoutes", - Request: MsgSetHotRoutes, - Response: MsgSetHotRoutesResponse, -} as const; - -/** - * SetDeveloperAccount sets the account that can withdraw a portion of the - * profits from the protorev module. This will be Skip's address. - * - * @generated from rpc osmosis.protorev.v1beta1.Msg.SetDeveloperAccount - */ -export const MsgSetDeveloperAccountService = { - typeName: TYPE_NAME, - method: "SetDeveloperAccount", - Request: MsgSetDeveloperAccount, - Response: MsgSetDeveloperAccountResponse, -} as const; - -/** - * SetMaxPoolPointsPerTx sets the maximum number of pool points that can be - * consumed per transaction. Can only be called by the admin account. - * - * @generated from rpc osmosis.protorev.v1beta1.Msg.SetMaxPoolPointsPerTx - */ -export const MsgSetMaxPoolPointsPerTxService = { - typeName: TYPE_NAME, - method: "SetMaxPoolPointsPerTx", - Request: MsgSetMaxPoolPointsPerTx, - Response: MsgSetMaxPoolPointsPerTxResponse, -} as const; - -/** - * SetMaxPoolPointsPerBlock sets the maximum number of pool points that can be - * consumed per block. Can only be called by the admin account. - * - * @generated from rpc osmosis.protorev.v1beta1.Msg.SetMaxPoolPointsPerBlock - */ -export const MsgSetMaxPoolPointsPerBlockService = { - typeName: TYPE_NAME, - method: "SetMaxPoolPointsPerBlock", - Request: MsgSetMaxPoolPointsPerBlock, - Response: MsgSetMaxPoolPointsPerBlockResponse, -} as const; - -/** - * SetInfoByPoolType sets the pool type information needed to make smart - * assumptions about swapping on different pool types - * - * @generated from rpc osmosis.protorev.v1beta1.Msg.SetInfoByPoolType - */ -export const MsgSetInfoByPoolTypeService = { - typeName: TYPE_NAME, - method: "SetInfoByPoolType", - Request: MsgSetInfoByPoolType, - Response: MsgSetInfoByPoolTypeResponse, -} as const; - -/** - * SetBaseDenoms sets the base denoms that will be used to create cyclic - * arbitrage routes. Can only be called by the admin account. - * - * @generated from rpc osmosis.protorev.v1beta1.Msg.SetBaseDenoms - */ -export const MsgSetBaseDenomsService = { - typeName: TYPE_NAME, - method: "SetBaseDenoms", - Request: MsgSetBaseDenoms, - Response: MsgSetBaseDenomsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts deleted file mode 100644 index 47e8c6f..0000000 --- a/libs/es-client/src/protobufs/osmosis/protorev/v1beta1/tx_pb.ts +++ /dev/null @@ -1,559 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/protorev/v1beta1/tx.proto (package osmosis.protorev.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { BaseDenom, InfoByPoolType, PoolWeights, TokenPairArbRoutes } from "./protorev_pb.js"; - -/** - * MsgSetHotRoutes defines the Msg/SetHotRoutes request type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetHotRoutes - */ -export class MsgSetHotRoutes extends Message { - /** - * admin is the account that is authorized to set the hot routes. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * hot_routes is the list of hot routes to set. - * - * @generated from field: repeated osmosis.protorev.v1beta1.TokenPairArbRoutes hot_routes = 2; - */ - hotRoutes: TokenPairArbRoutes[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetHotRoutes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "hot_routes", kind: "message", T: TokenPairArbRoutes, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetHotRoutes { - return new MsgSetHotRoutes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetHotRoutes { - return new MsgSetHotRoutes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetHotRoutes { - return new MsgSetHotRoutes().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetHotRoutes | PlainMessage | undefined, b: MsgSetHotRoutes | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetHotRoutes, a, b); - } -} - -/** - * MsgSetHotRoutesResponse defines the Msg/SetHotRoutes response type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetHotRoutesResponse - */ -export class MsgSetHotRoutesResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetHotRoutesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetHotRoutesResponse { - return new MsgSetHotRoutesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetHotRoutesResponse { - return new MsgSetHotRoutesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetHotRoutesResponse { - return new MsgSetHotRoutesResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetHotRoutesResponse | PlainMessage | undefined, b: MsgSetHotRoutesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetHotRoutesResponse, a, b); - } -} - -/** - * MsgSetDeveloperAccount defines the Msg/SetDeveloperAccount request type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetDeveloperAccount - */ -export class MsgSetDeveloperAccount extends Message { - /** - * admin is the account that is authorized to set the developer account. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * developer_account is the account that will receive a portion of the profits - * from the protorev module. - * - * @generated from field: string developer_account = 2; - */ - developerAccount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetDeveloperAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "developer_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDeveloperAccount { - return new MsgSetDeveloperAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDeveloperAccount { - return new MsgSetDeveloperAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetDeveloperAccount { - return new MsgSetDeveloperAccount().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetDeveloperAccount | PlainMessage | undefined, b: MsgSetDeveloperAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetDeveloperAccount, a, b); - } -} - -/** - * MsgSetDeveloperAccountResponse defines the Msg/SetDeveloperAccount response - * type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetDeveloperAccountResponse - */ -export class MsgSetDeveloperAccountResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetDeveloperAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDeveloperAccountResponse { - return new MsgSetDeveloperAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDeveloperAccountResponse { - return new MsgSetDeveloperAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetDeveloperAccountResponse { - return new MsgSetDeveloperAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetDeveloperAccountResponse | PlainMessage | undefined, b: MsgSetDeveloperAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetDeveloperAccountResponse, a, b); - } -} - -/** - * MsgSetInfoByPoolType defines the Msg/SetInfoByPoolType request type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetInfoByPoolType - */ -export class MsgSetInfoByPoolType extends Message { - /** - * admin is the account that is authorized to set the pool weights. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * info_by_pool_type contains information about the pool types. - * - * @generated from field: osmosis.protorev.v1beta1.InfoByPoolType info_by_pool_type = 2; - */ - infoByPoolType?: InfoByPoolType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetInfoByPoolType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "info_by_pool_type", kind: "message", T: InfoByPoolType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetInfoByPoolType { - return new MsgSetInfoByPoolType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetInfoByPoolType { - return new MsgSetInfoByPoolType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetInfoByPoolType { - return new MsgSetInfoByPoolType().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetInfoByPoolType | PlainMessage | undefined, b: MsgSetInfoByPoolType | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetInfoByPoolType, a, b); - } -} - -/** - * MsgSetInfoByPoolTypeResponse defines the Msg/SetInfoByPoolType response type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetInfoByPoolTypeResponse - */ -export class MsgSetInfoByPoolTypeResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetInfoByPoolTypeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetInfoByPoolTypeResponse { - return new MsgSetInfoByPoolTypeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetInfoByPoolTypeResponse { - return new MsgSetInfoByPoolTypeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetInfoByPoolTypeResponse { - return new MsgSetInfoByPoolTypeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetInfoByPoolTypeResponse | PlainMessage | undefined, b: MsgSetInfoByPoolTypeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetInfoByPoolTypeResponse, a, b); - } -} - -/** - * MsgSetMaxPoolPointsPerTx defines the Msg/SetMaxPoolPointsPerTx request type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerTx - */ -export class MsgSetMaxPoolPointsPerTx extends Message { - /** - * admin is the account that is authorized to set the max pool points per tx. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * max_pool_points_per_tx is the maximum number of pool points that can be - * consumed per transaction. - * - * @generated from field: uint64 max_pool_points_per_tx = 2; - */ - maxPoolPointsPerTx = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "max_pool_points_per_tx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetMaxPoolPointsPerTx { - return new MsgSetMaxPoolPointsPerTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetMaxPoolPointsPerTx { - return new MsgSetMaxPoolPointsPerTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetMaxPoolPointsPerTx { - return new MsgSetMaxPoolPointsPerTx().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetMaxPoolPointsPerTx | PlainMessage | undefined, b: MsgSetMaxPoolPointsPerTx | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetMaxPoolPointsPerTx, a, b); - } -} - -/** - * MsgSetMaxPoolPointsPerTxResponse defines the Msg/SetMaxPoolPointsPerTx - * response type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerTxResponse - */ -export class MsgSetMaxPoolPointsPerTxResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerTxResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetMaxPoolPointsPerTxResponse { - return new MsgSetMaxPoolPointsPerTxResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetMaxPoolPointsPerTxResponse { - return new MsgSetMaxPoolPointsPerTxResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetMaxPoolPointsPerTxResponse { - return new MsgSetMaxPoolPointsPerTxResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetMaxPoolPointsPerTxResponse | PlainMessage | undefined, b: MsgSetMaxPoolPointsPerTxResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetMaxPoolPointsPerTxResponse, a, b); - } -} - -/** - * MsgSetMaxPoolPointsPerBlock defines the Msg/SetMaxPoolPointsPerBlock request - * type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerBlock - */ -export class MsgSetMaxPoolPointsPerBlock extends Message { - /** - * admin is the account that is authorized to set the max pool points per - * block. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * max_pool_points_per_block is the maximum number of pool points that can be - * consumed per block. - * - * @generated from field: uint64 max_pool_points_per_block = 2; - */ - maxPoolPointsPerBlock = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "max_pool_points_per_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetMaxPoolPointsPerBlock { - return new MsgSetMaxPoolPointsPerBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetMaxPoolPointsPerBlock { - return new MsgSetMaxPoolPointsPerBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetMaxPoolPointsPerBlock { - return new MsgSetMaxPoolPointsPerBlock().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetMaxPoolPointsPerBlock | PlainMessage | undefined, b: MsgSetMaxPoolPointsPerBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetMaxPoolPointsPerBlock, a, b); - } -} - -/** - * MsgSetMaxPoolPointsPerBlockResponse defines the - * Msg/SetMaxPoolPointsPerBlock response type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerBlockResponse - */ -export class MsgSetMaxPoolPointsPerBlockResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetMaxPoolPointsPerBlockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetMaxPoolPointsPerBlockResponse { - return new MsgSetMaxPoolPointsPerBlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetMaxPoolPointsPerBlockResponse { - return new MsgSetMaxPoolPointsPerBlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetMaxPoolPointsPerBlockResponse { - return new MsgSetMaxPoolPointsPerBlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetMaxPoolPointsPerBlockResponse | PlainMessage | undefined, b: MsgSetMaxPoolPointsPerBlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetMaxPoolPointsPerBlockResponse, a, b); - } -} - -/** - * MsgSetBaseDenoms defines the Msg/SetBaseDenoms request type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetBaseDenoms - */ -export class MsgSetBaseDenoms extends Message { - /** - * admin is the account that is authorized to set the base denoms. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * base_denoms is the list of base denoms to set. - * - * @generated from field: repeated osmosis.protorev.v1beta1.BaseDenom base_denoms = 2; - */ - baseDenoms: BaseDenom[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetBaseDenoms"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "base_denoms", kind: "message", T: BaseDenom, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBaseDenoms { - return new MsgSetBaseDenoms().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBaseDenoms { - return new MsgSetBaseDenoms().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetBaseDenoms { - return new MsgSetBaseDenoms().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetBaseDenoms | PlainMessage | undefined, b: MsgSetBaseDenoms | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetBaseDenoms, a, b); - } -} - -/** - * Deprecated, but must be retained in the file to allow indexers - * to index blocks since genesis - * - * @generated from message osmosis.protorev.v1beta1.MsgSetBaseDenomsResponse - */ -export class MsgSetBaseDenomsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetBaseDenomsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBaseDenomsResponse { - return new MsgSetBaseDenomsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBaseDenomsResponse { - return new MsgSetBaseDenomsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetBaseDenomsResponse { - return new MsgSetBaseDenomsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetBaseDenomsResponse | PlainMessage | undefined, b: MsgSetBaseDenomsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetBaseDenomsResponse, a, b); - } -} - -/** - * MsgSetPoolWeights defines the Msg/SetPoolWeights request type. - * - * @generated from message osmosis.protorev.v1beta1.MsgSetPoolWeights - */ -export class MsgSetPoolWeights extends Message { - /** - * admin is the account that is authorized to set the pool weights. - * - * @generated from field: string admin = 1; - */ - admin = ""; - - /** - * pool_weights is the list of pool weights to set. - * - * @generated from field: osmosis.protorev.v1beta1.PoolWeights pool_weights = 2; - */ - poolWeights?: PoolWeights; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.protorev.v1beta1.MsgSetPoolWeights"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_weights", kind: "message", T: PoolWeights }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetPoolWeights { - return new MsgSetPoolWeights().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetPoolWeights { - return new MsgSetPoolWeights().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetPoolWeights { - return new MsgSetPoolWeights().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetPoolWeights | PlainMessage | undefined, b: MsgSetPoolWeights | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetPoolWeights, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts deleted file mode 100644 index 80eb356..0000000 --- a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,120 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/smartaccount/v1beta1/genesis.proto (package osmosis.smartaccount.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { AccountAuthenticator } from "./models_pb.js"; -import { Params } from "./params_pb.js"; - -/** - * AuthenticatorData represents a genesis exported account with Authenticators. - * The address is used as the key, and the account authenticators are stored in - * the authenticators field. - * - * @generated from message osmosis.smartaccount.v1beta1.AuthenticatorData - */ -export class AuthenticatorData extends Message { - /** - * address is an account address, one address can have many authenticators - * - * @generated from field: string address = 1; - */ - address = ""; - - /** - * authenticators are the account's authenticators, these can be multiple - * types including SignatureVerification, AllOfs, CosmWasmAuthenticators, etc - * - * @generated from field: repeated osmosis.smartaccount.v1beta1.AccountAuthenticator authenticators = 2; - */ - authenticators: AccountAuthenticator[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.AuthenticatorData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authenticators", kind: "message", T: AccountAuthenticator, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AuthenticatorData { - return new AuthenticatorData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AuthenticatorData { - return new AuthenticatorData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AuthenticatorData { - return new AuthenticatorData().fromJsonString(jsonString, options); - } - - static equals(a: AuthenticatorData | PlainMessage | undefined, b: AuthenticatorData | PlainMessage | undefined): boolean { - return proto3.util.equals(AuthenticatorData, a, b); - } -} - -/** - * GenesisState defines the authenticator module's genesis state. - * - * @generated from message osmosis.smartaccount.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params define the parameters for the authenticator module. - * - * @generated from field: osmosis.smartaccount.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * next_authenticator_id is the next available authenticator ID. - * - * @generated from field: uint64 next_authenticator_id = 2; - */ - nextAuthenticatorId = protoInt64.zero; - - /** - * authenticator_data contains the data for multiple accounts, each with their - * authenticators. - * - * @generated from field: repeated osmosis.smartaccount.v1beta1.AuthenticatorData authenticator_data = 3; - */ - authenticatorData: AuthenticatorData[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "next_authenticator_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "authenticator_data", kind: "message", T: AuthenticatorData, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts b/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts deleted file mode 100644 index 5c2aecc..0000000 --- a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/models_pb.ts +++ /dev/null @@ -1,72 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/smartaccount/v1beta1/models.proto (package osmosis.smartaccount.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * AccountAuthenticator represents a foundational model for all authenticators. - * It provides extensibility by allowing concrete types to interpret and - * validate transactions based on the encapsulated data. - * - * @generated from message osmosis.smartaccount.v1beta1.AccountAuthenticator - */ -export class AccountAuthenticator extends Message { - /** - * ID uniquely identifies the authenticator instance. - * - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * Type specifies the category of the AccountAuthenticator. - * This type information is essential for differentiating authenticators - * and ensuring precise data retrieval from the storage layer. - * - * @generated from field: string type = 2; - */ - type = ""; - - /** - * Config is a versatile field used in conjunction with the specific type of - * account authenticator to facilitate complex authentication processes. - * The interpretation of this field is overloaded, enabling multiple - * authenticators to utilize it for their respective purposes. - * - * @generated from field: bytes config = 3; - */ - config = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.AccountAuthenticator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "config", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AccountAuthenticator { - return new AccountAuthenticator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AccountAuthenticator { - return new AccountAuthenticator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AccountAuthenticator { - return new AccountAuthenticator().fromJsonString(jsonString, options); - } - - static equals(a: AccountAuthenticator | PlainMessage | undefined, b: AccountAuthenticator | PlainMessage | undefined): boolean { - return proto3.util.equals(AccountAuthenticator, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts deleted file mode 100644 index 127b969..0000000 --- a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/params_pb.ts +++ /dev/null @@ -1,70 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/smartaccount/v1beta1/params.proto (package osmosis.smartaccount.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message osmosis.smartaccount.v1beta1.Params - */ -export class Params extends Message { - /** - * MaximumUnauthenticatedGas defines the maximum amount of gas that can be - * used to authenticate a transaction in ante handler without having fee payer - * authenticated. - * - * @generated from field: uint64 maximum_unauthenticated_gas = 1; - */ - maximumUnauthenticatedGas = protoInt64.zero; - - /** - * IsSmartAccountActive defines the state of the authenticator. - * If set to false, the authenticator module will not be used - * and the classic cosmos sdk authentication will be used instead. - * - * @generated from field: bool is_smart_account_active = 2; - */ - isSmartAccountActive = false; - - /** - * CircuitBreakerControllers defines list of addresses that are allowed to - * set is_smart_account_active without going through governance. - * - * @generated from field: repeated string circuit_breaker_controllers = 3; - */ - circuitBreakerControllers: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "maximum_unauthenticated_gas", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "is_smart_account_active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "circuit_breaker_controllers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts deleted file mode 100644 index c3e2db1..0000000 --- a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,41 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/smartaccount/v1beta1/query.proto (package osmosis.smartaccount.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { GetAuthenticatorRequest, GetAuthenticatorResponse, GetAuthenticatorsRequest, GetAuthenticatorsResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.smartaccount.v1beta1.Query"; - -/** - * Parameters queries the parameters of the module. - * - * @generated from rpc osmosis.smartaccount.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * @generated from rpc osmosis.smartaccount.v1beta1.Query.GetAuthenticator - */ -export const QueryGetAuthenticatorService = { - typeName: TYPE_NAME, - method: "GetAuthenticator", - Request: GetAuthenticatorRequest, - Response: GetAuthenticatorResponse, -} as const; - -/** - * @generated from rpc osmosis.smartaccount.v1beta1.Query.GetAuthenticators - */ -export const QueryGetAuthenticatorsService = { - typeName: TYPE_NAME, - method: "GetAuthenticators", - Request: GetAuthenticatorsRequest, - Response: GetAuthenticatorsResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts deleted file mode 100644 index 32733a4..0000000 --- a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/query_pb.ts +++ /dev/null @@ -1,246 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/smartaccount/v1beta1/query.proto (package osmosis.smartaccount.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { AccountAuthenticator } from "./models_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message osmosis.smartaccount.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message osmosis.smartaccount.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: osmosis.smartaccount.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * MsgGetAuthenticatorsRequest defines the Msg/GetAuthenticators request type. - * - * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorsRequest - */ -export class GetAuthenticatorsRequest extends Message { - /** - * @generated from field: string account = 1; - */ - account = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorsRequest { - return new GetAuthenticatorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorsRequest { - return new GetAuthenticatorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorsRequest { - return new GetAuthenticatorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAuthenticatorsRequest | PlainMessage | undefined, b: GetAuthenticatorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthenticatorsRequest, a, b); - } -} - -/** - * MsgGetAuthenticatorsResponse defines the Msg/GetAuthenticators response type. - * - * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorsResponse - */ -export class GetAuthenticatorsResponse extends Message { - /** - * @generated from field: repeated osmosis.smartaccount.v1beta1.AccountAuthenticator account_authenticators = 1; - */ - accountAuthenticators: AccountAuthenticator[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account_authenticators", kind: "message", T: AccountAuthenticator, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorsResponse { - return new GetAuthenticatorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorsResponse { - return new GetAuthenticatorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorsResponse { - return new GetAuthenticatorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAuthenticatorsResponse | PlainMessage | undefined, b: GetAuthenticatorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthenticatorsResponse, a, b); - } -} - -/** - * MsgGetAuthenticatorRequest defines the Msg/GetAuthenticator request type. - * - * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorRequest - */ -export class GetAuthenticatorRequest extends Message { - /** - * @generated from field: string account = 1; - */ - account = ""; - - /** - * @generated from field: uint64 authenticator_id = 2; - */ - authenticatorId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authenticator_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorRequest { - return new GetAuthenticatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorRequest { - return new GetAuthenticatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorRequest { - return new GetAuthenticatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAuthenticatorRequest | PlainMessage | undefined, b: GetAuthenticatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthenticatorRequest, a, b); - } -} - -/** - * MsgGetAuthenticatorResponse defines the Msg/GetAuthenticator response type. - * - * @generated from message osmosis.smartaccount.v1beta1.GetAuthenticatorResponse - */ -export class GetAuthenticatorResponse extends Message { - /** - * @generated from field: osmosis.smartaccount.v1beta1.AccountAuthenticator account_authenticator = 1; - */ - accountAuthenticator?: AccountAuthenticator; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.GetAuthenticatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account_authenticator", kind: "message", T: AccountAuthenticator }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthenticatorResponse { - return new GetAuthenticatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthenticatorResponse { - return new GetAuthenticatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAuthenticatorResponse { - return new GetAuthenticatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAuthenticatorResponse | PlainMessage | undefined, b: GetAuthenticatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthenticatorResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts deleted file mode 100644 index d89b954..0000000 --- a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,42 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/smartaccount/v1beta1/tx.proto (package osmosis.smartaccount.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgAddAuthenticator, MsgAddAuthenticatorResponse, MsgRemoveAuthenticator, MsgRemoveAuthenticatorResponse, MsgSetActiveState, MsgSetActiveStateResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.smartaccount.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.smartaccount.v1beta1.Msg.AddAuthenticator - */ -export const MsgAddAuthenticatorService = { - typeName: TYPE_NAME, - method: "AddAuthenticator", - Request: MsgAddAuthenticator, - Response: MsgAddAuthenticatorResponse, -} as const; - -/** - * @generated from rpc osmosis.smartaccount.v1beta1.Msg.RemoveAuthenticator - */ -export const MsgRemoveAuthenticatorService = { - typeName: TYPE_NAME, - method: "RemoveAuthenticator", - Request: MsgRemoveAuthenticator, - Response: MsgRemoveAuthenticatorResponse, -} as const; - -/** - * SetActiveState sets the active state of the authenticator. - * Primarily used for circuit breaking. - * - * @generated from rpc osmosis.smartaccount.v1beta1.Msg.SetActiveState - */ -export const MsgSetActiveStateService = { - typeName: TYPE_NAME, - method: "SetActiveState", - Request: MsgSetActiveState, - Response: MsgSetActiveStateResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts deleted file mode 100644 index 281fdff..0000000 --- a/libs/es-client/src/protobufs/osmosis/smartaccount/v1beta1/tx_pb.ts +++ /dev/null @@ -1,301 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/smartaccount/v1beta1/tx.proto (package osmosis.smartaccount.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * MsgAddAuthenticatorRequest defines the Msg/AddAuthenticator request type. - * - * @generated from message osmosis.smartaccount.v1beta1.MsgAddAuthenticator - */ -export class MsgAddAuthenticator extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: string authenticator_type = 2; - */ - authenticatorType = ""; - - /** - * @generated from field: bytes data = 3; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.MsgAddAuthenticator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authenticator_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddAuthenticator { - return new MsgAddAuthenticator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddAuthenticator { - return new MsgAddAuthenticator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddAuthenticator { - return new MsgAddAuthenticator().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddAuthenticator | PlainMessage | undefined, b: MsgAddAuthenticator | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddAuthenticator, a, b); - } -} - -/** - * MsgAddAuthenticatorResponse defines the Msg/AddAuthenticator response type. - * - * @generated from message osmosis.smartaccount.v1beta1.MsgAddAuthenticatorResponse - */ -export class MsgAddAuthenticatorResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.MsgAddAuthenticatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddAuthenticatorResponse { - return new MsgAddAuthenticatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddAuthenticatorResponse { - return new MsgAddAuthenticatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddAuthenticatorResponse { - return new MsgAddAuthenticatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddAuthenticatorResponse | PlainMessage | undefined, b: MsgAddAuthenticatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddAuthenticatorResponse, a, b); - } -} - -/** - * MsgRemoveAuthenticatorRequest defines the Msg/RemoveAuthenticator request - * type. - * - * @generated from message osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator - */ -export class MsgRemoveAuthenticator extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 id = 2; - */ - id = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAuthenticator { - return new MsgRemoveAuthenticator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAuthenticator { - return new MsgRemoveAuthenticator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAuthenticator { - return new MsgRemoveAuthenticator().fromJsonString(jsonString, options); - } - - static equals(a: MsgRemoveAuthenticator | PlainMessage | undefined, b: MsgRemoveAuthenticator | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRemoveAuthenticator, a, b); - } -} - -/** - * MsgRemoveAuthenticatorResponse defines the Msg/RemoveAuthenticator response - * type. - * - * @generated from message osmosis.smartaccount.v1beta1.MsgRemoveAuthenticatorResponse - */ -export class MsgRemoveAuthenticatorResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.MsgRemoveAuthenticatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveAuthenticatorResponse { - return new MsgRemoveAuthenticatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveAuthenticatorResponse { - return new MsgRemoveAuthenticatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRemoveAuthenticatorResponse { - return new MsgRemoveAuthenticatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRemoveAuthenticatorResponse | PlainMessage | undefined, b: MsgRemoveAuthenticatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRemoveAuthenticatorResponse, a, b); - } -} - -/** - * @generated from message osmosis.smartaccount.v1beta1.MsgSetActiveState - */ -export class MsgSetActiveState extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: bool active = 2; - */ - active = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.MsgSetActiveState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetActiveState { - return new MsgSetActiveState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetActiveState { - return new MsgSetActiveState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetActiveState { - return new MsgSetActiveState().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetActiveState | PlainMessage | undefined, b: MsgSetActiveState | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetActiveState, a, b); - } -} - -/** - * @generated from message osmosis.smartaccount.v1beta1.MsgSetActiveStateResponse - */ -export class MsgSetActiveStateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.MsgSetActiveStateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetActiveStateResponse { - return new MsgSetActiveStateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetActiveStateResponse { - return new MsgSetActiveStateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetActiveStateResponse { - return new MsgSetActiveStateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetActiveStateResponse | PlainMessage | undefined, b: MsgSetActiveStateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetActiveStateResponse, a, b); - } -} - -/** - * TxExtension allows for additional authenticator-specific data in - * transactions. - * - * @generated from message osmosis.smartaccount.v1beta1.TxExtension - */ -export class TxExtension extends Message { - /** - * selected_authenticators holds the authenticator_id for the chosen - * authenticator per message. - * - * @generated from field: repeated uint64 selected_authenticators = 1; - */ - selectedAuthenticators: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.smartaccount.v1beta1.TxExtension"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "selected_authenticators", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxExtension { - return new TxExtension().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxExtension { - return new TxExtension().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxExtension { - return new TxExtension().fromJsonString(jsonString, options); - } - - static equals(a: TxExtension | PlainMessage | undefined, b: TxExtension | PlainMessage | undefined): boolean { - return proto3.util.equals(TxExtension, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/store/v1beta1/tree_pb.ts b/libs/es-client/src/protobufs/osmosis/store/v1beta1/tree_pb.ts deleted file mode 100644 index aeb9bba..0000000 --- a/libs/es-client/src/protobufs/osmosis/store/v1beta1/tree_pb.ts +++ /dev/null @@ -1,125 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/store/v1beta1/tree.proto (package osmosis.store.v1beta1, 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 osmosis.store.v1beta1.Node - */ -export class Node extends Message { - /** - * @generated from field: repeated osmosis.store.v1beta1.Child children = 1; - */ - children: Child[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.store.v1beta1.Node"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "children", kind: "message", T: Child, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Node { - return new Node().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Node { - return new Node().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Node { - return new Node().fromJsonString(jsonString, options); - } - - static equals(a: Node | PlainMessage | undefined, b: Node | PlainMessage | undefined): boolean { - return proto3.util.equals(Node, a, b); - } -} - -/** - * @generated from message osmosis.store.v1beta1.Child - */ -export class Child extends Message { - /** - * @generated from field: bytes index = 1; - */ - index = new Uint8Array(0); - - /** - * @generated from field: string accumulation = 2; - */ - accumulation = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.store.v1beta1.Child"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "accumulation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Child { - return new Child().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Child { - return new Child().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Child { - return new Child().fromJsonString(jsonString, options); - } - - static equals(a: Child | PlainMessage | undefined, b: Child | PlainMessage | undefined): boolean { - return proto3.util.equals(Child, a, b); - } -} - -/** - * @generated from message osmosis.store.v1beta1.Leaf - */ -export class Leaf extends Message { - /** - * @generated from field: osmosis.store.v1beta1.Child leaf = 1; - */ - leaf?: Child; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.store.v1beta1.Leaf"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "leaf", kind: "message", T: Child }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Leaf { - return new Leaf().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Leaf { - return new Leaf().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Leaf { - return new Leaf().fromJsonString(jsonString, options); - } - - static equals(a: Leaf | PlainMessage | undefined, b: Leaf | PlainMessage | undefined): boolean { - return proto3.util.equals(Leaf, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/superfluid/genesis_pb.ts deleted file mode 100644 index bb416de..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/genesis_pb.ts +++ /dev/null @@ -1,82 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/superfluid/genesis.proto (package osmosis.superfluid, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { LockIdIntermediaryAccountConnection, OsmoEquivalentMultiplierRecord, SuperfluidAsset, SuperfluidIntermediaryAccount } from "./superfluid_pb.js"; - -/** - * GenesisState defines the module's genesis state. - * - * @generated from message osmosis.superfluid.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: osmosis.superfluid.Params params = 1; - */ - params?: Params; - - /** - * superfluid_assets defines the registered superfluid assets that have been - * registered via governance. - * - * @generated from field: repeated osmosis.superfluid.SuperfluidAsset superfluid_assets = 2; - */ - superfluidAssets: SuperfluidAsset[] = []; - - /** - * osmo_equivalent_multipliers is the records of osmo equivalent amount of - * each superfluid registered pool, updated every epoch. - * - * @generated from field: repeated osmosis.superfluid.OsmoEquivalentMultiplierRecord osmo_equivalent_multipliers = 3; - */ - osmoEquivalentMultipliers: OsmoEquivalentMultiplierRecord[] = []; - - /** - * intermediary_accounts is a secondary account for superfluid staking that - * plays an intermediary role between validators and the delegators. - * - * @generated from field: repeated osmosis.superfluid.SuperfluidIntermediaryAccount intermediary_accounts = 4; - */ - intermediaryAccounts: SuperfluidIntermediaryAccount[] = []; - - /** - * @generated from field: repeated osmosis.superfluid.LockIdIntermediaryAccountConnection intemediary_account_connections = 5; - */ - intemediaryAccountConnections: LockIdIntermediaryAccountConnection[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "superfluid_assets", kind: "message", T: SuperfluidAsset, repeated: true }, - { no: 3, name: "osmo_equivalent_multipliers", kind: "message", T: OsmoEquivalentMultiplierRecord, repeated: true }, - { no: 4, name: "intermediary_accounts", kind: "message", T: SuperfluidIntermediaryAccount, repeated: true }, - { no: 5, name: "intemediary_account_connections", kind: "message", T: LockIdIntermediaryAccountConnection, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/params_pb.ts b/libs/es-client/src/protobufs/osmosis/superfluid/params_pb.ts deleted file mode 100644 index 3ca546a..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/params_pb.ts +++ /dev/null @@ -1,52 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/superfluid/params.proto (package osmosis.superfluid, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Params holds parameters for the superfluid module - * - * @generated from message osmosis.superfluid.Params - */ -export class Params extends Message { - /** - * minimum_risk_factor is to be cut on OSMO equivalent value of lp tokens for - * superfluid staking, default: 5%. The minimum risk factor works - * to counter-balance the staked amount on chain's exposure to various asset - * volatilities, and have base staking be 'resistant' to volatility. - * - * @generated from field: string minimum_risk_factor = 1; - */ - minimumRiskFactor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "minimum_risk_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/superfluid/query_cosmes.ts deleted file mode 100644 index 0326ba6..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/query_cosmes.ts +++ /dev/null @@ -1,263 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/superfluid/query.proto (package osmosis.superfluid, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - AllAssetsRequest, - AllAssetsResponse, - AllIntermediaryAccountsRequest, - AllIntermediaryAccountsResponse, - AssetMultiplierRequest, - AssetMultiplierResponse, - AssetTypeRequest, - AssetTypeResponse, - ConnectedIntermediaryAccountRequest, - ConnectedIntermediaryAccountResponse, - EstimateSuperfluidDelegatedAmountByValidatorDenomRequest, - EstimateSuperfluidDelegatedAmountByValidatorDenomResponse, - QueryParamsRequest, - QueryParamsResponse, - QueryRestSupplyRequest, - QueryRestSupplyResponse, - QueryTotalDelegationByDelegatorRequest, - QueryTotalDelegationByDelegatorResponse, - QueryTotalDelegationByValidatorForDenomRequest, - QueryTotalDelegationByValidatorForDenomResponse, - QueryUnpoolWhitelistRequest, - QueryUnpoolWhitelistResponse, - SuperfluidDelegationAmountRequest, - SuperfluidDelegationAmountResponse, - SuperfluidDelegationsByDelegatorRequest, - SuperfluidDelegationsByDelegatorResponse, - SuperfluidDelegationsByValidatorDenomRequest, - SuperfluidDelegationsByValidatorDenomResponse, - SuperfluidUndelegationsByDelegatorRequest, - SuperfluidUndelegationsByDelegatorResponse, - TotalSuperfluidDelegationsRequest, - TotalSuperfluidDelegationsResponse, - UserConcentratedSuperfluidPositionsDelegatedRequest, - UserConcentratedSuperfluidPositionsDelegatedResponse, - UserConcentratedSuperfluidPositionsUndelegatingRequest, - UserConcentratedSuperfluidPositionsUndelegatingResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "osmosis.superfluid.Query"; - -/** - * Params returns the total set of superfluid parameters. - * - * @generated from rpc osmosis.superfluid.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * Returns superfluid asset type, whether if it's a native asset or an lp - * share. - * - * @generated from rpc osmosis.superfluid.Query.AssetType - */ -export const QueryAssetTypeService = { - typeName: TYPE_NAME, - method: "AssetType", - Request: AssetTypeRequest, - Response: AssetTypeResponse, -} as const; - -/** - * Returns all registered superfluid assets. - * - * @generated from rpc osmosis.superfluid.Query.AllAssets - */ -export const QueryAllAssetsService = { - typeName: TYPE_NAME, - method: "AllAssets", - Request: AllAssetsRequest, - Response: AllAssetsResponse, -} as const; - -/** - * Returns the osmo equivalent multiplier used in the most recent epoch. - * - * @generated from rpc osmosis.superfluid.Query.AssetMultiplier - */ -export const QueryAssetMultiplierService = { - typeName: TYPE_NAME, - method: "AssetMultiplier", - Request: AssetMultiplierRequest, - Response: AssetMultiplierResponse, -} as const; - -/** - * Returns all superfluid intermediary accounts. - * - * @generated from rpc osmosis.superfluid.Query.AllIntermediaryAccounts - */ -export const QueryAllIntermediaryAccountsService = { - typeName: TYPE_NAME, - method: "AllIntermediaryAccounts", - Request: AllIntermediaryAccountsRequest, - Response: AllIntermediaryAccountsResponse, -} as const; - -/** - * Returns intermediary account connected to a superfluid staked lock by id - * - * @generated from rpc osmosis.superfluid.Query.ConnectedIntermediaryAccount - */ -export const QueryConnectedIntermediaryAccountService = { - typeName: TYPE_NAME, - method: "ConnectedIntermediaryAccount", - Request: ConnectedIntermediaryAccountRequest, - Response: ConnectedIntermediaryAccountResponse, -} as const; - -/** - * Returns the amount of delegations of specific denom for all validators - * - * @generated from rpc osmosis.superfluid.Query.TotalDelegationByValidatorForDenom - */ -export const QueryTotalDelegationByValidatorForDenomService = { - typeName: TYPE_NAME, - method: "TotalDelegationByValidatorForDenom", - Request: QueryTotalDelegationByValidatorForDenomRequest, - Response: QueryTotalDelegationByValidatorForDenomResponse, -} as const; - -/** - * Returns the total amount of osmo superfluidly staked. - * Response is denominated in uosmo. - * - * @generated from rpc osmosis.superfluid.Query.TotalSuperfluidDelegations - */ -export const QueryTotalSuperfluidDelegationsService = { - typeName: TYPE_NAME, - method: "TotalSuperfluidDelegations", - Request: TotalSuperfluidDelegationsRequest, - Response: TotalSuperfluidDelegationsResponse, -} as const; - -/** - * Returns the coins superfluid delegated for the delegator, validator, denom - * triplet - * - * @generated from rpc osmosis.superfluid.Query.SuperfluidDelegationAmount - */ -export const QuerySuperfluidDelegationAmountService = { - typeName: TYPE_NAME, - method: "SuperfluidDelegationAmount", - Request: SuperfluidDelegationAmountRequest, - Response: SuperfluidDelegationAmountResponse, -} as const; - -/** - * Returns all the delegated superfluid positions for a specific delegator. - * - * @generated from rpc osmosis.superfluid.Query.SuperfluidDelegationsByDelegator - */ -export const QuerySuperfluidDelegationsByDelegatorService = { - typeName: TYPE_NAME, - method: "SuperfluidDelegationsByDelegator", - Request: SuperfluidDelegationsByDelegatorRequest, - Response: SuperfluidDelegationsByDelegatorResponse, -} as const; - -/** - * Returns all the undelegating superfluid positions for a specific delegator. - * - * @generated from rpc osmosis.superfluid.Query.SuperfluidUndelegationsByDelegator - */ -export const QuerySuperfluidUndelegationsByDelegatorService = { - typeName: TYPE_NAME, - method: "SuperfluidUndelegationsByDelegator", - Request: SuperfluidUndelegationsByDelegatorRequest, - Response: SuperfluidUndelegationsByDelegatorResponse, -} as const; - -/** - * Returns all the superfluid positions of a specific denom delegated to one - * validator - * - * @generated from rpc osmosis.superfluid.Query.SuperfluidDelegationsByValidatorDenom - */ -export const QuerySuperfluidDelegationsByValidatorDenomService = { - typeName: TYPE_NAME, - method: "SuperfluidDelegationsByValidatorDenom", - Request: SuperfluidDelegationsByValidatorDenomRequest, - Response: SuperfluidDelegationsByValidatorDenomResponse, -} as const; - -/** - * Returns the amount of a specific denom delegated to a specific validator - * This is labeled an estimate, because the way it calculates the amount can - * lead rounding errors from the true delegated amount - * - * @generated from rpc osmosis.superfluid.Query.EstimateSuperfluidDelegatedAmountByValidatorDenom - */ -export const QueryEstimateSuperfluidDelegatedAmountByValidatorDenomService = { - typeName: TYPE_NAME, - method: "EstimateSuperfluidDelegatedAmountByValidatorDenom", - Request: EstimateSuperfluidDelegatedAmountByValidatorDenomRequest, - Response: EstimateSuperfluidDelegatedAmountByValidatorDenomResponse, -} as const; - -/** - * Returns the specified delegations for a specific delegator - * - * @generated from rpc osmosis.superfluid.Query.TotalDelegationByDelegator - */ -export const QueryTotalDelegationByDelegatorService = { - typeName: TYPE_NAME, - method: "TotalDelegationByDelegator", - Request: QueryTotalDelegationByDelegatorRequest, - Response: QueryTotalDelegationByDelegatorResponse, -} as const; - -/** - * Returns a list of whitelisted pool ids to unpool. - * - * @generated from rpc osmosis.superfluid.Query.UnpoolWhitelist - */ -export const QueryUnpoolWhitelistService = { - typeName: TYPE_NAME, - method: "UnpoolWhitelist", - Request: QueryUnpoolWhitelistRequest, - Response: QueryUnpoolWhitelistResponse, -} as const; - -/** - * Returns all of a user's full range CL positions that are superfluid staked. - * - * @generated from rpc osmosis.superfluid.Query.UserConcentratedSuperfluidPositionsDelegated - */ -export const QueryUserConcentratedSuperfluidPositionsDelegatedService = { - typeName: TYPE_NAME, - method: "UserConcentratedSuperfluidPositionsDelegated", - Request: UserConcentratedSuperfluidPositionsDelegatedRequest, - Response: UserConcentratedSuperfluidPositionsDelegatedResponse, -} as const; - -/** - * @generated from rpc osmosis.superfluid.Query.UserConcentratedSuperfluidPositionsUndelegating - */ -export const QueryUserConcentratedSuperfluidPositionsUndelegatingService = { - typeName: TYPE_NAME, - method: "UserConcentratedSuperfluidPositionsUndelegating", - Request: UserConcentratedSuperfluidPositionsUndelegatingRequest, - Response: UserConcentratedSuperfluidPositionsUndelegatingResponse, -} as const; - -/** - * @generated from rpc osmosis.superfluid.Query.RestSupply - */ -export const QueryRestSupplyService = { - typeName: TYPE_NAME, - method: "RestSupply", - Request: QueryRestSupplyRequest, - Response: QueryRestSupplyResponse, -} as const; diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/query_pb.ts b/libs/es-client/src/protobufs/osmosis/superfluid/query_pb.ts deleted file mode 100644 index cdc41de..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/query_pb.ts +++ /dev/null @@ -1,1510 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/superfluid/query.proto (package osmosis.superfluid, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { ConcentratedPoolUserPositionRecord, OsmoEquivalentMultiplierRecord, SuperfluidAsset, SuperfluidAssetType, SuperfluidDelegationRecord } from "./superfluid_pb.js"; -import { PageRequest, PageResponse } from "../../cosmos/base/query/v1beta1/pagination_pb.js"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { SyntheticLock } from "../lockup/lock_pb.js"; -import { DelegationResponse } from "../../cosmos/staking/v1beta1/staking_pb.js"; - -/** - * @generated from message osmosis.superfluid.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: osmosis.superfluid.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AssetTypeRequest - */ -export class AssetTypeRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AssetTypeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AssetTypeRequest { - return new AssetTypeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AssetTypeRequest { - return new AssetTypeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AssetTypeRequest { - return new AssetTypeRequest().fromJsonString(jsonString, options); - } - - static equals(a: AssetTypeRequest | PlainMessage | undefined, b: AssetTypeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AssetTypeRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AssetTypeResponse - */ -export class AssetTypeResponse extends Message { - /** - * @generated from field: osmosis.superfluid.SuperfluidAssetType asset_type = 1; - */ - assetType = SuperfluidAssetType.SuperfluidAssetTypeNative; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AssetTypeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "asset_type", kind: "enum", T: proto3.getEnumType(SuperfluidAssetType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AssetTypeResponse { - return new AssetTypeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AssetTypeResponse { - return new AssetTypeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AssetTypeResponse { - return new AssetTypeResponse().fromJsonString(jsonString, options); - } - - static equals(a: AssetTypeResponse | PlainMessage | undefined, b: AssetTypeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AssetTypeResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AllAssetsRequest - */ -export class AllAssetsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AllAssetsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllAssetsRequest { - return new AllAssetsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllAssetsRequest { - return new AllAssetsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllAssetsRequest { - return new AllAssetsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AllAssetsRequest | PlainMessage | undefined, b: AllAssetsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AllAssetsRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AllAssetsResponse - */ -export class AllAssetsResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.SuperfluidAsset assets = 1; - */ - assets: SuperfluidAsset[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AllAssetsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "assets", kind: "message", T: SuperfluidAsset, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllAssetsResponse { - return new AllAssetsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllAssetsResponse { - return new AllAssetsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllAssetsResponse { - return new AllAssetsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AllAssetsResponse | PlainMessage | undefined, b: AllAssetsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AllAssetsResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AssetMultiplierRequest - */ -export class AssetMultiplierRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AssetMultiplierRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AssetMultiplierRequest { - return new AssetMultiplierRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AssetMultiplierRequest { - return new AssetMultiplierRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AssetMultiplierRequest { - return new AssetMultiplierRequest().fromJsonString(jsonString, options); - } - - static equals(a: AssetMultiplierRequest | PlainMessage | undefined, b: AssetMultiplierRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AssetMultiplierRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AssetMultiplierResponse - */ -export class AssetMultiplierResponse extends Message { - /** - * @generated from field: osmosis.superfluid.OsmoEquivalentMultiplierRecord osmo_equivalent_multiplier = 1; - */ - osmoEquivalentMultiplier?: OsmoEquivalentMultiplierRecord; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AssetMultiplierResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "osmo_equivalent_multiplier", kind: "message", T: OsmoEquivalentMultiplierRecord }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AssetMultiplierResponse { - return new AssetMultiplierResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AssetMultiplierResponse { - return new AssetMultiplierResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AssetMultiplierResponse { - return new AssetMultiplierResponse().fromJsonString(jsonString, options); - } - - static equals(a: AssetMultiplierResponse | PlainMessage | undefined, b: AssetMultiplierResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AssetMultiplierResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidIntermediaryAccountInfo - */ -export class SuperfluidIntermediaryAccountInfo extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: string val_addr = 2; - */ - valAddr = ""; - - /** - * @generated from field: uint64 gauge_id = 3; - */ - gaugeId = protoInt64.zero; - - /** - * @generated from field: string address = 4; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidIntermediaryAccountInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidIntermediaryAccountInfo { - return new SuperfluidIntermediaryAccountInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidIntermediaryAccountInfo { - return new SuperfluidIntermediaryAccountInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidIntermediaryAccountInfo { - return new SuperfluidIntermediaryAccountInfo().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidIntermediaryAccountInfo | PlainMessage | undefined, b: SuperfluidIntermediaryAccountInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidIntermediaryAccountInfo, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AllIntermediaryAccountsRequest - */ -export class AllIntermediaryAccountsRequest extends Message { - /** - * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; - */ - pagination?: PageRequest; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AllIntermediaryAccountsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllIntermediaryAccountsRequest { - return new AllIntermediaryAccountsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllIntermediaryAccountsRequest { - return new AllIntermediaryAccountsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllIntermediaryAccountsRequest { - return new AllIntermediaryAccountsRequest().fromJsonString(jsonString, options); - } - - static equals(a: AllIntermediaryAccountsRequest | PlainMessage | undefined, b: AllIntermediaryAccountsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AllIntermediaryAccountsRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.AllIntermediaryAccountsResponse - */ -export class AllIntermediaryAccountsResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.SuperfluidIntermediaryAccountInfo accounts = 1; - */ - accounts: SuperfluidIntermediaryAccountInfo[] = []; - - /** - * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; - */ - pagination?: PageResponse; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.AllIntermediaryAccountsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "accounts", kind: "message", T: SuperfluidIntermediaryAccountInfo, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AllIntermediaryAccountsResponse { - return new AllIntermediaryAccountsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AllIntermediaryAccountsResponse { - return new AllIntermediaryAccountsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AllIntermediaryAccountsResponse { - return new AllIntermediaryAccountsResponse().fromJsonString(jsonString, options); - } - - static equals(a: AllIntermediaryAccountsResponse | PlainMessage | undefined, b: AllIntermediaryAccountsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AllIntermediaryAccountsResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.ConnectedIntermediaryAccountRequest - */ -export class ConnectedIntermediaryAccountRequest extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.ConnectedIntermediaryAccountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectedIntermediaryAccountRequest { - return new ConnectedIntermediaryAccountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectedIntermediaryAccountRequest { - return new ConnectedIntermediaryAccountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConnectedIntermediaryAccountRequest { - return new ConnectedIntermediaryAccountRequest().fromJsonString(jsonString, options); - } - - static equals(a: ConnectedIntermediaryAccountRequest | PlainMessage | undefined, b: ConnectedIntermediaryAccountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ConnectedIntermediaryAccountRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.ConnectedIntermediaryAccountResponse - */ -export class ConnectedIntermediaryAccountResponse extends Message { - /** - * @generated from field: osmosis.superfluid.SuperfluidIntermediaryAccountInfo account = 1; - */ - account?: SuperfluidIntermediaryAccountInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.ConnectedIntermediaryAccountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "account", kind: "message", T: SuperfluidIntermediaryAccountInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectedIntermediaryAccountResponse { - return new ConnectedIntermediaryAccountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectedIntermediaryAccountResponse { - return new ConnectedIntermediaryAccountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConnectedIntermediaryAccountResponse { - return new ConnectedIntermediaryAccountResponse().fromJsonString(jsonString, options); - } - - static equals(a: ConnectedIntermediaryAccountResponse | PlainMessage | undefined, b: ConnectedIntermediaryAccountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ConnectedIntermediaryAccountResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryTotalDelegationByValidatorForDenomRequest - */ -export class QueryTotalDelegationByValidatorForDenomRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryTotalDelegationByValidatorForDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalDelegationByValidatorForDenomRequest { - return new QueryTotalDelegationByValidatorForDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalDelegationByValidatorForDenomRequest { - return new QueryTotalDelegationByValidatorForDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalDelegationByValidatorForDenomRequest { - return new QueryTotalDelegationByValidatorForDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalDelegationByValidatorForDenomRequest | PlainMessage | undefined, b: QueryTotalDelegationByValidatorForDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalDelegationByValidatorForDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryTotalDelegationByValidatorForDenomResponse - */ -export class QueryTotalDelegationByValidatorForDenomResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.Delegations assets = 1; - */ - assets: Delegations[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryTotalDelegationByValidatorForDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "assets", kind: "message", T: Delegations, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalDelegationByValidatorForDenomResponse { - return new QueryTotalDelegationByValidatorForDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalDelegationByValidatorForDenomResponse { - return new QueryTotalDelegationByValidatorForDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalDelegationByValidatorForDenomResponse { - return new QueryTotalDelegationByValidatorForDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalDelegationByValidatorForDenomResponse | PlainMessage | undefined, b: QueryTotalDelegationByValidatorForDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalDelegationByValidatorForDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.Delegations - */ -export class Delegations extends Message { - /** - * @generated from field: string val_addr = 1; - */ - valAddr = ""; - - /** - * @generated from field: string amount_sfsd = 2; - */ - amountSfsd = ""; - - /** - * @generated from field: string osmo_equivalent = 3; - */ - osmoEquivalent = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.Delegations"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount_sfsd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "osmo_equivalent", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Delegations { - return new Delegations().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Delegations { - return new Delegations().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Delegations { - return new Delegations().fromJsonString(jsonString, options); - } - - static equals(a: Delegations | PlainMessage | undefined, b: Delegations | PlainMessage | undefined): boolean { - return proto3.util.equals(Delegations, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.TotalSuperfluidDelegationsRequest - */ -export class TotalSuperfluidDelegationsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.TotalSuperfluidDelegationsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalSuperfluidDelegationsRequest { - return new TotalSuperfluidDelegationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalSuperfluidDelegationsRequest { - return new TotalSuperfluidDelegationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalSuperfluidDelegationsRequest { - return new TotalSuperfluidDelegationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: TotalSuperfluidDelegationsRequest | PlainMessage | undefined, b: TotalSuperfluidDelegationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalSuperfluidDelegationsRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.TotalSuperfluidDelegationsResponse - */ -export class TotalSuperfluidDelegationsResponse extends Message { - /** - * @generated from field: string total_delegations = 1; - */ - totalDelegations = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.TotalSuperfluidDelegationsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_delegations", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TotalSuperfluidDelegationsResponse { - return new TotalSuperfluidDelegationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TotalSuperfluidDelegationsResponse { - return new TotalSuperfluidDelegationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TotalSuperfluidDelegationsResponse { - return new TotalSuperfluidDelegationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: TotalSuperfluidDelegationsResponse | PlainMessage | undefined, b: TotalSuperfluidDelegationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TotalSuperfluidDelegationsResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidDelegationAmountRequest - */ -export class SuperfluidDelegationAmountRequest extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: string denom = 3; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidDelegationAmountRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidDelegationAmountRequest { - return new SuperfluidDelegationAmountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidDelegationAmountRequest { - return new SuperfluidDelegationAmountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidDelegationAmountRequest { - return new SuperfluidDelegationAmountRequest().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidDelegationAmountRequest | PlainMessage | undefined, b: SuperfluidDelegationAmountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidDelegationAmountRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidDelegationAmountResponse - */ -export class SuperfluidDelegationAmountResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin amount = 1; - */ - amount: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidDelegationAmountResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidDelegationAmountResponse { - return new SuperfluidDelegationAmountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidDelegationAmountResponse { - return new SuperfluidDelegationAmountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidDelegationAmountResponse { - return new SuperfluidDelegationAmountResponse().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidDelegationAmountResponse | PlainMessage | undefined, b: SuperfluidDelegationAmountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidDelegationAmountResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidDelegationsByDelegatorRequest - */ -export class SuperfluidDelegationsByDelegatorRequest extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidDelegationsByDelegatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidDelegationsByDelegatorRequest { - return new SuperfluidDelegationsByDelegatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidDelegationsByDelegatorRequest { - return new SuperfluidDelegationsByDelegatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidDelegationsByDelegatorRequest { - return new SuperfluidDelegationsByDelegatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidDelegationsByDelegatorRequest | PlainMessage | undefined, b: SuperfluidDelegationsByDelegatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidDelegationsByDelegatorRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidDelegationsByDelegatorResponse - */ -export class SuperfluidDelegationsByDelegatorResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.SuperfluidDelegationRecord superfluid_delegation_records = 1; - */ - superfluidDelegationRecords: SuperfluidDelegationRecord[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin total_delegated_coins = 2; - */ - totalDelegatedCoins: Coin[] = []; - - /** - * @generated from field: cosmos.base.v1beta1.Coin total_equivalent_staked_amount = 3; - */ - totalEquivalentStakedAmount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidDelegationsByDelegatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "superfluid_delegation_records", kind: "message", T: SuperfluidDelegationRecord, repeated: true }, - { no: 2, name: "total_delegated_coins", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "total_equivalent_staked_amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidDelegationsByDelegatorResponse { - return new SuperfluidDelegationsByDelegatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidDelegationsByDelegatorResponse { - return new SuperfluidDelegationsByDelegatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidDelegationsByDelegatorResponse { - return new SuperfluidDelegationsByDelegatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidDelegationsByDelegatorResponse | PlainMessage | undefined, b: SuperfluidDelegationsByDelegatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidDelegationsByDelegatorResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidUndelegationsByDelegatorRequest - */ -export class SuperfluidUndelegationsByDelegatorRequest extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string denom = 2; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidUndelegationsByDelegatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidUndelegationsByDelegatorRequest { - return new SuperfluidUndelegationsByDelegatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidUndelegationsByDelegatorRequest { - return new SuperfluidUndelegationsByDelegatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidUndelegationsByDelegatorRequest { - return new SuperfluidUndelegationsByDelegatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidUndelegationsByDelegatorRequest | PlainMessage | undefined, b: SuperfluidUndelegationsByDelegatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidUndelegationsByDelegatorRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidUndelegationsByDelegatorResponse - */ -export class SuperfluidUndelegationsByDelegatorResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.SuperfluidDelegationRecord superfluid_delegation_records = 1; - */ - superfluidDelegationRecords: SuperfluidDelegationRecord[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin total_undelegated_coins = 2; - */ - totalUndelegatedCoins: Coin[] = []; - - /** - * @generated from field: repeated osmosis.lockup.SyntheticLock synthetic_locks = 3; - */ - syntheticLocks: SyntheticLock[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidUndelegationsByDelegatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "superfluid_delegation_records", kind: "message", T: SuperfluidDelegationRecord, repeated: true }, - { no: 2, name: "total_undelegated_coins", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "synthetic_locks", kind: "message", T: SyntheticLock, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidUndelegationsByDelegatorResponse { - return new SuperfluidUndelegationsByDelegatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidUndelegationsByDelegatorResponse { - return new SuperfluidUndelegationsByDelegatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidUndelegationsByDelegatorResponse { - return new SuperfluidUndelegationsByDelegatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidUndelegationsByDelegatorResponse | PlainMessage | undefined, b: SuperfluidUndelegationsByDelegatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidUndelegationsByDelegatorResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidDelegationsByValidatorDenomRequest - */ -export class SuperfluidDelegationsByValidatorDenomRequest extends Message { - /** - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * @generated from field: string denom = 2; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidDelegationsByValidatorDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidDelegationsByValidatorDenomRequest { - return new SuperfluidDelegationsByValidatorDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidDelegationsByValidatorDenomRequest { - return new SuperfluidDelegationsByValidatorDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidDelegationsByValidatorDenomRequest { - return new SuperfluidDelegationsByValidatorDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidDelegationsByValidatorDenomRequest | PlainMessage | undefined, b: SuperfluidDelegationsByValidatorDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidDelegationsByValidatorDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.SuperfluidDelegationsByValidatorDenomResponse - */ -export class SuperfluidDelegationsByValidatorDenomResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.SuperfluidDelegationRecord superfluid_delegation_records = 1; - */ - superfluidDelegationRecords: SuperfluidDelegationRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidDelegationsByValidatorDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "superfluid_delegation_records", kind: "message", T: SuperfluidDelegationRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidDelegationsByValidatorDenomResponse { - return new SuperfluidDelegationsByValidatorDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidDelegationsByValidatorDenomResponse { - return new SuperfluidDelegationsByValidatorDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidDelegationsByValidatorDenomResponse { - return new SuperfluidDelegationsByValidatorDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidDelegationsByValidatorDenomResponse | PlainMessage | undefined, b: SuperfluidDelegationsByValidatorDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidDelegationsByValidatorDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.EstimateSuperfluidDelegatedAmountByValidatorDenomRequest - */ -export class EstimateSuperfluidDelegatedAmountByValidatorDenomRequest extends Message { - /** - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * @generated from field: string denom = 2; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.EstimateSuperfluidDelegatedAmountByValidatorDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSuperfluidDelegatedAmountByValidatorDenomRequest { - return new EstimateSuperfluidDelegatedAmountByValidatorDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSuperfluidDelegatedAmountByValidatorDenomRequest { - return new EstimateSuperfluidDelegatedAmountByValidatorDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSuperfluidDelegatedAmountByValidatorDenomRequest { - return new EstimateSuperfluidDelegatedAmountByValidatorDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSuperfluidDelegatedAmountByValidatorDenomRequest | PlainMessage | undefined, b: EstimateSuperfluidDelegatedAmountByValidatorDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSuperfluidDelegatedAmountByValidatorDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.EstimateSuperfluidDelegatedAmountByValidatorDenomResponse - */ -export class EstimateSuperfluidDelegatedAmountByValidatorDenomResponse extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin total_delegated_coins = 1; - */ - totalDelegatedCoins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.EstimateSuperfluidDelegatedAmountByValidatorDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_delegated_coins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSuperfluidDelegatedAmountByValidatorDenomResponse { - return new EstimateSuperfluidDelegatedAmountByValidatorDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSuperfluidDelegatedAmountByValidatorDenomResponse { - return new EstimateSuperfluidDelegatedAmountByValidatorDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EstimateSuperfluidDelegatedAmountByValidatorDenomResponse { - return new EstimateSuperfluidDelegatedAmountByValidatorDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: EstimateSuperfluidDelegatedAmountByValidatorDenomResponse | PlainMessage | undefined, b: EstimateSuperfluidDelegatedAmountByValidatorDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(EstimateSuperfluidDelegatedAmountByValidatorDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryTotalDelegationByDelegatorRequest - */ -export class QueryTotalDelegationByDelegatorRequest extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryTotalDelegationByDelegatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalDelegationByDelegatorRequest { - return new QueryTotalDelegationByDelegatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalDelegationByDelegatorRequest { - return new QueryTotalDelegationByDelegatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalDelegationByDelegatorRequest { - return new QueryTotalDelegationByDelegatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalDelegationByDelegatorRequest | PlainMessage | undefined, b: QueryTotalDelegationByDelegatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalDelegationByDelegatorRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryTotalDelegationByDelegatorResponse - */ -export class QueryTotalDelegationByDelegatorResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.SuperfluidDelegationRecord superfluid_delegation_records = 1; - */ - superfluidDelegationRecords: SuperfluidDelegationRecord[] = []; - - /** - * @generated from field: repeated cosmos.staking.v1beta1.DelegationResponse delegation_response = 2; - */ - delegationResponse: DelegationResponse[] = []; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin total_delegated_coins = 3; - */ - totalDelegatedCoins: Coin[] = []; - - /** - * @generated from field: cosmos.base.v1beta1.Coin total_equivalent_staked_amount = 4; - */ - totalEquivalentStakedAmount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryTotalDelegationByDelegatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "superfluid_delegation_records", kind: "message", T: SuperfluidDelegationRecord, repeated: true }, - { no: 2, name: "delegation_response", kind: "message", T: DelegationResponse, repeated: true }, - { no: 3, name: "total_delegated_coins", kind: "message", T: Coin, repeated: true }, - { no: 4, name: "total_equivalent_staked_amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalDelegationByDelegatorResponse { - return new QueryTotalDelegationByDelegatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalDelegationByDelegatorResponse { - return new QueryTotalDelegationByDelegatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryTotalDelegationByDelegatorResponse { - return new QueryTotalDelegationByDelegatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryTotalDelegationByDelegatorResponse | PlainMessage | undefined, b: QueryTotalDelegationByDelegatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryTotalDelegationByDelegatorResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryUnpoolWhitelistRequest - */ -export class QueryUnpoolWhitelistRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryUnpoolWhitelistRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnpoolWhitelistRequest { - return new QueryUnpoolWhitelistRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnpoolWhitelistRequest { - return new QueryUnpoolWhitelistRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnpoolWhitelistRequest { - return new QueryUnpoolWhitelistRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnpoolWhitelistRequest | PlainMessage | undefined, b: QueryUnpoolWhitelistRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnpoolWhitelistRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryUnpoolWhitelistResponse - */ -export class QueryUnpoolWhitelistResponse extends Message { - /** - * @generated from field: repeated uint64 pool_ids = 1; - */ - poolIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryUnpoolWhitelistResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnpoolWhitelistResponse { - return new QueryUnpoolWhitelistResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnpoolWhitelistResponse { - return new QueryUnpoolWhitelistResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryUnpoolWhitelistResponse { - return new QueryUnpoolWhitelistResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryUnpoolWhitelistResponse | PlainMessage | undefined, b: QueryUnpoolWhitelistResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryUnpoolWhitelistResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.UserConcentratedSuperfluidPositionsDelegatedRequest - */ -export class UserConcentratedSuperfluidPositionsDelegatedRequest extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.UserConcentratedSuperfluidPositionsDelegatedRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserConcentratedSuperfluidPositionsDelegatedRequest { - return new UserConcentratedSuperfluidPositionsDelegatedRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserConcentratedSuperfluidPositionsDelegatedRequest { - return new UserConcentratedSuperfluidPositionsDelegatedRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserConcentratedSuperfluidPositionsDelegatedRequest { - return new UserConcentratedSuperfluidPositionsDelegatedRequest().fromJsonString(jsonString, options); - } - - static equals(a: UserConcentratedSuperfluidPositionsDelegatedRequest | PlainMessage | undefined, b: UserConcentratedSuperfluidPositionsDelegatedRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UserConcentratedSuperfluidPositionsDelegatedRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.UserConcentratedSuperfluidPositionsDelegatedResponse - */ -export class UserConcentratedSuperfluidPositionsDelegatedResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.ConcentratedPoolUserPositionRecord cl_pool_user_position_records = 1; - */ - clPoolUserPositionRecords: ConcentratedPoolUserPositionRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.UserConcentratedSuperfluidPositionsDelegatedResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cl_pool_user_position_records", kind: "message", T: ConcentratedPoolUserPositionRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserConcentratedSuperfluidPositionsDelegatedResponse { - return new UserConcentratedSuperfluidPositionsDelegatedResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserConcentratedSuperfluidPositionsDelegatedResponse { - return new UserConcentratedSuperfluidPositionsDelegatedResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserConcentratedSuperfluidPositionsDelegatedResponse { - return new UserConcentratedSuperfluidPositionsDelegatedResponse().fromJsonString(jsonString, options); - } - - static equals(a: UserConcentratedSuperfluidPositionsDelegatedResponse | PlainMessage | undefined, b: UserConcentratedSuperfluidPositionsDelegatedResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UserConcentratedSuperfluidPositionsDelegatedResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.UserConcentratedSuperfluidPositionsUndelegatingRequest - */ -export class UserConcentratedSuperfluidPositionsUndelegatingRequest extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.UserConcentratedSuperfluidPositionsUndelegatingRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserConcentratedSuperfluidPositionsUndelegatingRequest { - return new UserConcentratedSuperfluidPositionsUndelegatingRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserConcentratedSuperfluidPositionsUndelegatingRequest { - return new UserConcentratedSuperfluidPositionsUndelegatingRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserConcentratedSuperfluidPositionsUndelegatingRequest { - return new UserConcentratedSuperfluidPositionsUndelegatingRequest().fromJsonString(jsonString, options); - } - - static equals(a: UserConcentratedSuperfluidPositionsUndelegatingRequest | PlainMessage | undefined, b: UserConcentratedSuperfluidPositionsUndelegatingRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UserConcentratedSuperfluidPositionsUndelegatingRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.UserConcentratedSuperfluidPositionsUndelegatingResponse - */ -export class UserConcentratedSuperfluidPositionsUndelegatingResponse extends Message { - /** - * @generated from field: repeated osmosis.superfluid.ConcentratedPoolUserPositionRecord cl_pool_user_position_records = 1; - */ - clPoolUserPositionRecords: ConcentratedPoolUserPositionRecord[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.UserConcentratedSuperfluidPositionsUndelegatingResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cl_pool_user_position_records", kind: "message", T: ConcentratedPoolUserPositionRecord, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserConcentratedSuperfluidPositionsUndelegatingResponse { - return new UserConcentratedSuperfluidPositionsUndelegatingResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserConcentratedSuperfluidPositionsUndelegatingResponse { - return new UserConcentratedSuperfluidPositionsUndelegatingResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserConcentratedSuperfluidPositionsUndelegatingResponse { - return new UserConcentratedSuperfluidPositionsUndelegatingResponse().fromJsonString(jsonString, options); - } - - static equals(a: UserConcentratedSuperfluidPositionsUndelegatingResponse | PlainMessage | undefined, b: UserConcentratedSuperfluidPositionsUndelegatingResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UserConcentratedSuperfluidPositionsUndelegatingResponse, a, b); - } -} - -/** - * THIS QUERY IS TEMPORARY - * - * @generated from message osmosis.superfluid.QueryRestSupplyRequest - */ -export class QueryRestSupplyRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryRestSupplyRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRestSupplyRequest { - return new QueryRestSupplyRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRestSupplyRequest { - return new QueryRestSupplyRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRestSupplyRequest { - return new QueryRestSupplyRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryRestSupplyRequest | PlainMessage | undefined, b: QueryRestSupplyRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRestSupplyRequest, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.QueryRestSupplyResponse - */ -export class QueryRestSupplyResponse extends Message { - /** - * amount is the supply of the coin. - * - * @generated from field: cosmos.base.v1beta1.Coin amount = 1; - */ - amount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.QueryRestSupplyResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRestSupplyResponse { - return new QueryRestSupplyResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRestSupplyResponse { - return new QueryRestSupplyResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryRestSupplyResponse { - return new QueryRestSupplyResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryRestSupplyResponse | PlainMessage | undefined, b: QueryRestSupplyResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryRestSupplyResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/superfluid_pb.ts b/libs/es-client/src/protobufs/osmosis/superfluid/superfluid_pb.ts deleted file mode 100644 index b547ca4..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/superfluid_pb.ts +++ /dev/null @@ -1,414 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/superfluid/superfluid.proto (package osmosis.superfluid, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; -import { SyntheticLock } from "../lockup/lock_pb.js"; - -/** - * SuperfluidAssetType indicates whether the superfluid asset is - * a native token, lp share of a pool, or concentrated share of a pool - * - * @generated from enum osmosis.superfluid.SuperfluidAssetType - */ -export enum SuperfluidAssetType { - /** - * @generated from enum value: SuperfluidAssetTypeNative = 0; - */ - SuperfluidAssetTypeNative = 0, - - /** - * @generated from enum value: SuperfluidAssetTypeLPShare = 1; - */ - SuperfluidAssetTypeLPShare = 1, - - /** - * SuperfluidAssetTypeLendingShare = 3; // for now not exist - * - * @generated from enum value: SuperfluidAssetTypeConcentratedShare = 2; - */ - SuperfluidAssetTypeConcentratedShare = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(SuperfluidAssetType) -proto3.util.setEnumType(SuperfluidAssetType, "osmosis.superfluid.SuperfluidAssetType", [ - { no: 0, name: "SuperfluidAssetTypeNative" }, - { no: 1, name: "SuperfluidAssetTypeLPShare" }, - { no: 2, name: "SuperfluidAssetTypeConcentratedShare" }, -]); - -/** - * SuperfluidAsset stores the pair of superfluid asset type and denom pair - * - * @generated from message osmosis.superfluid.SuperfluidAsset - */ -export class SuperfluidAsset extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * AssetType indicates whether the superfluid asset is a native token or an lp - * share - * - * @generated from field: osmosis.superfluid.SuperfluidAssetType asset_type = 2; - */ - assetType = SuperfluidAssetType.SuperfluidAssetTypeNative; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidAsset"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "asset_type", kind: "enum", T: proto3.getEnumType(SuperfluidAssetType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidAsset { - return new SuperfluidAsset().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidAsset { - return new SuperfluidAsset().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidAsset { - return new SuperfluidAsset().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidAsset | PlainMessage | undefined, b: SuperfluidAsset | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidAsset, a, b); - } -} - -/** - * SuperfluidIntermediaryAccount takes the role of intermediary between LP token - * and OSMO tokens for superfluid staking. The intermediary account is the - * actual account responsible for delegation, not the validator account itself. - * - * @generated from message osmosis.superfluid.SuperfluidIntermediaryAccount - */ -export class SuperfluidIntermediaryAccount extends Message { - /** - * Denom indicates the denom of the superfluid asset. - * - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: string val_addr = 2; - */ - valAddr = ""; - - /** - * perpetual gauge for rewards distribution - * - * @generated from field: uint64 gauge_id = 3; - */ - gaugeId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidIntermediaryAccount"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidIntermediaryAccount { - return new SuperfluidIntermediaryAccount().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidIntermediaryAccount { - return new SuperfluidIntermediaryAccount().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidIntermediaryAccount { - return new SuperfluidIntermediaryAccount().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidIntermediaryAccount | PlainMessage | undefined, b: SuperfluidIntermediaryAccount | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidIntermediaryAccount, a, b); - } -} - -/** - * The Osmo-Equivalent-Multiplier Record for epoch N refers to the osmo worth we - * treat an LP share as having, for all of epoch N. Eventually this is intended - * to be set as the Time-weighted-average-osmo-backing for the entire duration - * of epoch N-1. (Thereby locking what's in use for epoch N as based on the - * prior epochs rewards) However for now, this is not the TWAP but instead the - * spot price at the boundary. For different types of assets in the future, it - * could change. - * - * @generated from message osmosis.superfluid.OsmoEquivalentMultiplierRecord - */ -export class OsmoEquivalentMultiplierRecord extends Message { - /** - * @generated from field: int64 epoch_number = 1; - */ - epochNumber = protoInt64.zero; - - /** - * superfluid asset denom, can be LP token or native token - * - * @generated from field: string denom = 2; - */ - denom = ""; - - /** - * @generated from field: string multiplier = 3; - */ - multiplier = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.OsmoEquivalentMultiplierRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "epoch_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "multiplier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OsmoEquivalentMultiplierRecord { - return new OsmoEquivalentMultiplierRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OsmoEquivalentMultiplierRecord { - return new OsmoEquivalentMultiplierRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OsmoEquivalentMultiplierRecord { - return new OsmoEquivalentMultiplierRecord().fromJsonString(jsonString, options); - } - - static equals(a: OsmoEquivalentMultiplierRecord | PlainMessage | undefined, b: OsmoEquivalentMultiplierRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(OsmoEquivalentMultiplierRecord, a, b); - } -} - -/** - * SuperfluidDelegationRecord is a struct used to indicate superfluid - * delegations of an account in the state machine in a user friendly form. - * - * @generated from message osmosis.superfluid.SuperfluidDelegationRecord - */ -export class SuperfluidDelegationRecord extends Message { - /** - * @generated from field: string delegator_address = 1; - */ - delegatorAddress = ""; - - /** - * @generated from field: string validator_address = 2; - */ - validatorAddress = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin delegation_amount = 3; - */ - delegationAmount?: Coin; - - /** - * @generated from field: cosmos.base.v1beta1.Coin equivalent_staked_amount = 4; - */ - equivalentStakedAmount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.SuperfluidDelegationRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "delegation_amount", kind: "message", T: Coin }, - { no: 4, name: "equivalent_staked_amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SuperfluidDelegationRecord { - return new SuperfluidDelegationRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SuperfluidDelegationRecord { - return new SuperfluidDelegationRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SuperfluidDelegationRecord { - return new SuperfluidDelegationRecord().fromJsonString(jsonString, options); - } - - static equals(a: SuperfluidDelegationRecord | PlainMessage | undefined, b: SuperfluidDelegationRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(SuperfluidDelegationRecord, a, b); - } -} - -/** - * LockIdIntermediaryAccountConnection is a struct used to indicate the - * relationship between the underlying lock id and superfluid delegation done - * via lp shares. - * - * @generated from message osmosis.superfluid.LockIdIntermediaryAccountConnection - */ -export class LockIdIntermediaryAccountConnection extends Message { - /** - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - /** - * @generated from field: string intermediary_account = 2; - */ - intermediaryAccount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.LockIdIntermediaryAccountConnection"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "intermediary_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LockIdIntermediaryAccountConnection { - return new LockIdIntermediaryAccountConnection().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LockIdIntermediaryAccountConnection { - return new LockIdIntermediaryAccountConnection().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LockIdIntermediaryAccountConnection { - return new LockIdIntermediaryAccountConnection().fromJsonString(jsonString, options); - } - - static equals(a: LockIdIntermediaryAccountConnection | PlainMessage | undefined, b: LockIdIntermediaryAccountConnection | PlainMessage | undefined): boolean { - return proto3.util.equals(LockIdIntermediaryAccountConnection, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.UnpoolWhitelistedPools - */ -export class UnpoolWhitelistedPools extends Message { - /** - * @generated from field: repeated uint64 ids = 1; - */ - ids: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.UnpoolWhitelistedPools"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UnpoolWhitelistedPools { - return new UnpoolWhitelistedPools().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UnpoolWhitelistedPools { - return new UnpoolWhitelistedPools().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UnpoolWhitelistedPools { - return new UnpoolWhitelistedPools().fromJsonString(jsonString, options); - } - - static equals(a: UnpoolWhitelistedPools | PlainMessage | undefined, b: UnpoolWhitelistedPools | PlainMessage | undefined): boolean { - return proto3.util.equals(UnpoolWhitelistedPools, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.ConcentratedPoolUserPositionRecord - */ -export class ConcentratedPoolUserPositionRecord extends Message { - /** - * @generated from field: string validator_address = 1; - */ - validatorAddress = ""; - - /** - * @generated from field: uint64 position_id = 2; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: uint64 lock_id = 3; - */ - lockId = protoInt64.zero; - - /** - * @generated from field: osmosis.lockup.SyntheticLock synthetic_lock = 4; - */ - syntheticLock?: SyntheticLock; - - /** - * @generated from field: cosmos.base.v1beta1.Coin delegation_amount = 5; - */ - delegationAmount?: Coin; - - /** - * @generated from field: cosmos.base.v1beta1.Coin equivalent_staked_amount = 6; - */ - equivalentStakedAmount?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.ConcentratedPoolUserPositionRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "synthetic_lock", kind: "message", T: SyntheticLock }, - { no: 5, name: "delegation_amount", kind: "message", T: Coin }, - { no: 6, name: "equivalent_staked_amount", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConcentratedPoolUserPositionRecord { - return new ConcentratedPoolUserPositionRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConcentratedPoolUserPositionRecord { - return new ConcentratedPoolUserPositionRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConcentratedPoolUserPositionRecord { - return new ConcentratedPoolUserPositionRecord().fromJsonString(jsonString, options); - } - - static equals(a: ConcentratedPoolUserPositionRecord | PlainMessage | undefined, b: ConcentratedPoolUserPositionRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(ConcentratedPoolUserPositionRecord, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/superfluid/tx_cosmes.ts deleted file mode 100644 index 5ae7ebb..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/tx_cosmes.ts +++ /dev/null @@ -1,143 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/superfluid/tx.proto (package osmosis.superfluid, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - MsgAddToConcentratedLiquiditySuperfluidPosition, - MsgAddToConcentratedLiquiditySuperfluidPositionResponse, - MsgCreateFullRangePositionAndSuperfluidDelegate, - MsgCreateFullRangePositionAndSuperfluidDelegateResponse, - MsgLockAndSuperfluidDelegate, - MsgLockAndSuperfluidDelegateResponse, - MsgSuperfluidDelegate, - MsgSuperfluidDelegateResponse, - MsgSuperfluidUnbondLock, - MsgSuperfluidUnbondLockResponse, - MsgSuperfluidUndelegate, - MsgSuperfluidUndelegateAndUnbondLock, - MsgSuperfluidUndelegateAndUnbondLockResponse, - MsgSuperfluidUndelegateResponse, - MsgUnbondConvertAndStake, - MsgUnbondConvertAndStakeResponse, - MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition, - MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse, - MsgUnPoolWhitelistedPool, - MsgUnPoolWhitelistedPoolResponse, -} from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.superfluid.Msg"; - -/** - * Execute superfluid delegation for a lockup - * - * @generated from rpc osmosis.superfluid.Msg.SuperfluidDelegate - */ -export const MsgSuperfluidDelegateService = { - typeName: TYPE_NAME, - method: "SuperfluidDelegate", - Request: MsgSuperfluidDelegate, - Response: MsgSuperfluidDelegateResponse, -} as const; - -/** - * Execute superfluid undelegation for a lockup - * - * @generated from rpc osmosis.superfluid.Msg.SuperfluidUndelegate - */ -export const MsgSuperfluidUndelegateService = { - typeName: TYPE_NAME, - method: "SuperfluidUndelegate", - Request: MsgSuperfluidUndelegate, - Response: MsgSuperfluidUndelegateResponse, -} as const; - -/** - * For a given lock that is being superfluidly undelegated, - * also unbond the underlying lock. - * - * @generated from rpc osmosis.superfluid.Msg.SuperfluidUnbondLock - */ -export const MsgSuperfluidUnbondLockService = { - typeName: TYPE_NAME, - method: "SuperfluidUnbondLock", - Request: MsgSuperfluidUnbondLock, - Response: MsgSuperfluidUnbondLockResponse, -} as const; - -/** - * Superfluid undelegate and unbond partial amount of the underlying lock. - * - * @generated from rpc osmosis.superfluid.Msg.SuperfluidUndelegateAndUnbondLock - */ -export const MsgSuperfluidUndelegateAndUnbondLockService = { - typeName: TYPE_NAME, - method: "SuperfluidUndelegateAndUnbondLock", - Request: MsgSuperfluidUndelegateAndUnbondLock, - Response: MsgSuperfluidUndelegateAndUnbondLockResponse, -} as const; - -/** - * Execute lockup lock and superfluid delegation in a single msg - * - * @generated from rpc osmosis.superfluid.Msg.LockAndSuperfluidDelegate - */ -export const MsgLockAndSuperfluidDelegateService = { - typeName: TYPE_NAME, - method: "LockAndSuperfluidDelegate", - Request: MsgLockAndSuperfluidDelegate, - Response: MsgLockAndSuperfluidDelegateResponse, -} as const; - -/** - * @generated from rpc osmosis.superfluid.Msg.CreateFullRangePositionAndSuperfluidDelegate - */ -export const MsgCreateFullRangePositionAndSuperfluidDelegateService = { - typeName: TYPE_NAME, - method: "CreateFullRangePositionAndSuperfluidDelegate", - Request: MsgCreateFullRangePositionAndSuperfluidDelegate, - Response: MsgCreateFullRangePositionAndSuperfluidDelegateResponse, -} as const; - -/** - * @generated from rpc osmosis.superfluid.Msg.UnPoolWhitelistedPool - */ -export const MsgUnPoolWhitelistedPoolService = { - typeName: TYPE_NAME, - method: "UnPoolWhitelistedPool", - Request: MsgUnPoolWhitelistedPool, - Response: MsgUnPoolWhitelistedPoolResponse, -} as const; - -/** - * @generated from rpc osmosis.superfluid.Msg.UnlockAndMigrateSharesToFullRangeConcentratedPosition - */ -export const MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionService = { - typeName: TYPE_NAME, - method: "UnlockAndMigrateSharesToFullRangeConcentratedPosition", - Request: MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition, - Response: MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse, -} as const; - -/** - * @generated from rpc osmosis.superfluid.Msg.AddToConcentratedLiquiditySuperfluidPosition - */ -export const MsgAddToConcentratedLiquiditySuperfluidPositionService = { - typeName: TYPE_NAME, - method: "AddToConcentratedLiquiditySuperfluidPosition", - Request: MsgAddToConcentratedLiquiditySuperfluidPosition, - Response: MsgAddToConcentratedLiquiditySuperfluidPositionResponse, -} as const; - -/** - * UnbondConvertAndStake breaks all locks / superfluid staked assets, - * converts them to osmo then stakes the osmo to the designated validator. - * - * @generated from rpc osmosis.superfluid.Msg.UnbondConvertAndStake - */ -export const MsgUnbondConvertAndStakeService = { - typeName: TYPE_NAME, - method: "UnbondConvertAndStake", - Request: MsgUnbondConvertAndStake, - Response: MsgUnbondConvertAndStakeResponse, -} as const; diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/superfluid/tx_pb.ts deleted file mode 100644 index c31e932..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/tx_pb.ts +++ /dev/null @@ -1,959 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/superfluid/tx.proto (package osmosis.superfluid, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidDelegate - */ -export class MsgSuperfluidDelegate extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 lock_id = 2; - */ - lockId = protoInt64.zero; - - /** - * @generated from field: string val_addr = 3; - */ - valAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidDelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidDelegate { - return new MsgSuperfluidDelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidDelegate { - return new MsgSuperfluidDelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidDelegate { - return new MsgSuperfluidDelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidDelegate | PlainMessage | undefined, b: MsgSuperfluidDelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidDelegate, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidDelegateResponse - */ -export class MsgSuperfluidDelegateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidDelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidDelegateResponse { - return new MsgSuperfluidDelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidDelegateResponse { - return new MsgSuperfluidDelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidDelegateResponse { - return new MsgSuperfluidDelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidDelegateResponse | PlainMessage | undefined, b: MsgSuperfluidDelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidDelegateResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidUndelegate - */ -export class MsgSuperfluidUndelegate extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 lock_id = 2; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidUndelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidUndelegate { - return new MsgSuperfluidUndelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidUndelegate { - return new MsgSuperfluidUndelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidUndelegate { - return new MsgSuperfluidUndelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidUndelegate | PlainMessage | undefined, b: MsgSuperfluidUndelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidUndelegate, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidUndelegateResponse - */ -export class MsgSuperfluidUndelegateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidUndelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidUndelegateResponse { - return new MsgSuperfluidUndelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidUndelegateResponse { - return new MsgSuperfluidUndelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidUndelegateResponse { - return new MsgSuperfluidUndelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidUndelegateResponse | PlainMessage | undefined, b: MsgSuperfluidUndelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidUndelegateResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidUnbondLock - */ -export class MsgSuperfluidUnbondLock extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 lock_id = 2; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidUnbondLock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidUnbondLock { - return new MsgSuperfluidUnbondLock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidUnbondLock { - return new MsgSuperfluidUnbondLock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidUnbondLock { - return new MsgSuperfluidUnbondLock().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidUnbondLock | PlainMessage | undefined, b: MsgSuperfluidUnbondLock | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidUnbondLock, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidUnbondLockResponse - */ -export class MsgSuperfluidUnbondLockResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidUnbondLockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidUnbondLockResponse { - return new MsgSuperfluidUnbondLockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidUnbondLockResponse { - return new MsgSuperfluidUnbondLockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidUnbondLockResponse { - return new MsgSuperfluidUnbondLockResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidUnbondLockResponse | PlainMessage | undefined, b: MsgSuperfluidUnbondLockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidUnbondLockResponse, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidUndelegateAndUnbondLock - */ -export class MsgSuperfluidUndelegateAndUnbondLock extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 lock_id = 2; - */ - lockId = protoInt64.zero; - - /** - * Amount of unlocking coin. - * - * @generated from field: cosmos.base.v1beta1.Coin coin = 3; - */ - coin?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidUndelegateAndUnbondLock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "coin", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidUndelegateAndUnbondLock { - return new MsgSuperfluidUndelegateAndUnbondLock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidUndelegateAndUnbondLock { - return new MsgSuperfluidUndelegateAndUnbondLock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidUndelegateAndUnbondLock { - return new MsgSuperfluidUndelegateAndUnbondLock().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidUndelegateAndUnbondLock | PlainMessage | undefined, b: MsgSuperfluidUndelegateAndUnbondLock | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidUndelegateAndUnbondLock, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgSuperfluidUndelegateAndUnbondLockResponse - */ -export class MsgSuperfluidUndelegateAndUnbondLockResponse extends Message { - /** - * lock id of the new lock created for the remaining amount. - * returns the original lockid if the unlocked amount is equal to the - * original lock's amount. - * - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgSuperfluidUndelegateAndUnbondLockResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSuperfluidUndelegateAndUnbondLockResponse { - return new MsgSuperfluidUndelegateAndUnbondLockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSuperfluidUndelegateAndUnbondLockResponse { - return new MsgSuperfluidUndelegateAndUnbondLockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSuperfluidUndelegateAndUnbondLockResponse { - return new MsgSuperfluidUndelegateAndUnbondLockResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSuperfluidUndelegateAndUnbondLockResponse | PlainMessage | undefined, b: MsgSuperfluidUndelegateAndUnbondLockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSuperfluidUndelegateAndUnbondLockResponse, a, b); - } -} - -/** - * MsgLockAndSuperfluidDelegate locks coins with the unbonding period duration, - * and then does a superfluid lock from the newly created lockup, to the - * specified validator addr. - * - * @generated from message osmosis.superfluid.MsgLockAndSuperfluidDelegate - */ -export class MsgLockAndSuperfluidDelegate extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; - */ - coins: Coin[] = []; - - /** - * @generated from field: string val_addr = 3; - */ - valAddr = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgLockAndSuperfluidDelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLockAndSuperfluidDelegate { - return new MsgLockAndSuperfluidDelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLockAndSuperfluidDelegate { - return new MsgLockAndSuperfluidDelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLockAndSuperfluidDelegate { - return new MsgLockAndSuperfluidDelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgLockAndSuperfluidDelegate | PlainMessage | undefined, b: MsgLockAndSuperfluidDelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLockAndSuperfluidDelegate, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgLockAndSuperfluidDelegateResponse - */ -export class MsgLockAndSuperfluidDelegateResponse extends Message { - /** - * @generated from field: uint64 ID = 1; - */ - ID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgLockAndSuperfluidDelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgLockAndSuperfluidDelegateResponse { - return new MsgLockAndSuperfluidDelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgLockAndSuperfluidDelegateResponse { - return new MsgLockAndSuperfluidDelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgLockAndSuperfluidDelegateResponse { - return new MsgLockAndSuperfluidDelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgLockAndSuperfluidDelegateResponse | PlainMessage | undefined, b: MsgLockAndSuperfluidDelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgLockAndSuperfluidDelegateResponse, a, b); - } -} - -/** - * MsgCreateFullRangePositionAndSuperfluidDelegate creates a full range position - * in a concentrated liquidity pool, then superfluid delegates. - * - * @generated from message osmosis.superfluid.MsgCreateFullRangePositionAndSuperfluidDelegate - */ -export class MsgCreateFullRangePositionAndSuperfluidDelegate extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 2; - */ - coins: Coin[] = []; - - /** - * @generated from field: string val_addr = 3; - */ - valAddr = ""; - - /** - * @generated from field: uint64 pool_id = 4; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgCreateFullRangePositionAndSuperfluidDelegate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateFullRangePositionAndSuperfluidDelegate { - return new MsgCreateFullRangePositionAndSuperfluidDelegate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateFullRangePositionAndSuperfluidDelegate { - return new MsgCreateFullRangePositionAndSuperfluidDelegate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateFullRangePositionAndSuperfluidDelegate { - return new MsgCreateFullRangePositionAndSuperfluidDelegate().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateFullRangePositionAndSuperfluidDelegate | PlainMessage | undefined, b: MsgCreateFullRangePositionAndSuperfluidDelegate | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateFullRangePositionAndSuperfluidDelegate, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgCreateFullRangePositionAndSuperfluidDelegateResponse - */ -export class MsgCreateFullRangePositionAndSuperfluidDelegateResponse extends Message { - /** - * @generated from field: uint64 lockID = 1; - */ - lockID = protoInt64.zero; - - /** - * @generated from field: uint64 positionID = 2; - */ - positionID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgCreateFullRangePositionAndSuperfluidDelegateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lockID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "positionID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateFullRangePositionAndSuperfluidDelegateResponse { - return new MsgCreateFullRangePositionAndSuperfluidDelegateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateFullRangePositionAndSuperfluidDelegateResponse { - return new MsgCreateFullRangePositionAndSuperfluidDelegateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateFullRangePositionAndSuperfluidDelegateResponse { - return new MsgCreateFullRangePositionAndSuperfluidDelegateResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateFullRangePositionAndSuperfluidDelegateResponse | PlainMessage | undefined, b: MsgCreateFullRangePositionAndSuperfluidDelegateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateFullRangePositionAndSuperfluidDelegateResponse, a, b); - } -} - -/** - * MsgUnPoolWhitelistedPool Unpools every lock the sender has, that is - * associated with pool pool_id. If pool_id is not approved for unpooling by - * governance, this is a no-op. Unpooling takes the locked gamm shares, and runs - * "ExitPool" on it, to get the constituent tokens. e.g. z gamm/pool/1 tokens - * ExitPools into constituent tokens x uatom, y uosmo. Then it creates a new - * lock for every constituent token, with the duration associated with the lock. - * If the lock was unbonding, the new lockup durations should be the time left - * until unbond completion. - * - * @generated from message osmosis.superfluid.MsgUnPoolWhitelistedPool - */ -export class MsgUnPoolWhitelistedPool extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: uint64 pool_id = 2; - */ - poolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgUnPoolWhitelistedPool"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnPoolWhitelistedPool { - return new MsgUnPoolWhitelistedPool().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnPoolWhitelistedPool { - return new MsgUnPoolWhitelistedPool().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnPoolWhitelistedPool { - return new MsgUnPoolWhitelistedPool().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnPoolWhitelistedPool | PlainMessage | undefined, b: MsgUnPoolWhitelistedPool | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnPoolWhitelistedPool, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgUnPoolWhitelistedPoolResponse - */ -export class MsgUnPoolWhitelistedPoolResponse extends Message { - /** - * @generated from field: repeated uint64 exited_lock_ids = 1; - */ - exitedLockIds: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgUnPoolWhitelistedPoolResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "exited_lock_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnPoolWhitelistedPoolResponse { - return new MsgUnPoolWhitelistedPoolResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnPoolWhitelistedPoolResponse { - return new MsgUnPoolWhitelistedPoolResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnPoolWhitelistedPoolResponse { - return new MsgUnPoolWhitelistedPoolResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnPoolWhitelistedPoolResponse | PlainMessage | undefined, b: MsgUnPoolWhitelistedPoolResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnPoolWhitelistedPoolResponse, a, b); - } -} - -/** - * ===================== - * MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition - * - * @generated from message osmosis.superfluid.MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition - */ -export class MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: int64 lock_id = 2; - */ - lockId = protoInt64.zero; - - /** - * @generated from field: cosmos.base.v1beta1.Coin shares_to_migrate = 3; - */ - sharesToMigrate?: Coin; - - /** - * token_out_mins indicates minimum token to exit Balancer pool with. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin token_out_mins = 4; - */ - tokenOutMins: Coin[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lock_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "shares_to_migrate", kind: "message", T: Coin }, - { no: 4, name: "token_out_mins", kind: "message", T: Coin, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition { - return new MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition { - return new MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition { - return new MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition | PlainMessage | undefined, b: MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlockAndMigrateSharesToFullRangeConcentratedPosition, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse - */ -export class MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse extends Message { - /** - * @generated from field: string amount0 = 1; - */ - amount0 = ""; - - /** - * @generated from field: string amount1 = 2; - */ - amount1 = ""; - - /** - * @generated from field: string liquidity_created = 3; - */ - liquidityCreated = ""; - - /** - * @generated from field: google.protobuf.Timestamp join_time = 4; - */ - joinTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "liquidity_created", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "join_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse { - return new MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse { - return new MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse { - return new MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse | PlainMessage | undefined, b: MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnlockAndMigrateSharesToFullRangeConcentratedPositionResponse, a, b); - } -} - -/** - * ===================== MsgAddToConcentratedLiquiditySuperfluidPosition - * - * @generated from message osmosis.superfluid.MsgAddToConcentratedLiquiditySuperfluidPosition - */ -export class MsgAddToConcentratedLiquiditySuperfluidPosition extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_desired0 = 3; - */ - tokenDesired0?: Coin; - - /** - * @generated from field: cosmos.base.v1beta1.Coin token_desired1 = 4; - */ - tokenDesired1?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgAddToConcentratedLiquiditySuperfluidPosition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "token_desired0", kind: "message", T: Coin }, - { no: 4, name: "token_desired1", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToConcentratedLiquiditySuperfluidPosition { - return new MsgAddToConcentratedLiquiditySuperfluidPosition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToConcentratedLiquiditySuperfluidPosition { - return new MsgAddToConcentratedLiquiditySuperfluidPosition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToConcentratedLiquiditySuperfluidPosition { - return new MsgAddToConcentratedLiquiditySuperfluidPosition().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToConcentratedLiquiditySuperfluidPosition | PlainMessage | undefined, b: MsgAddToConcentratedLiquiditySuperfluidPosition | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToConcentratedLiquiditySuperfluidPosition, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgAddToConcentratedLiquiditySuperfluidPositionResponse - */ -export class MsgAddToConcentratedLiquiditySuperfluidPositionResponse extends Message { - /** - * @generated from field: uint64 position_id = 1; - */ - positionId = protoInt64.zero; - - /** - * @generated from field: string amount0 = 2; - */ - amount0 = ""; - - /** - * @generated from field: string amount1 = 3; - */ - amount1 = ""; - - /** - * new_liquidity is the final liquidity after the add. - * It includes the liquidity that existed before in the position - * and the new liquidity that was added to the position. - * - * @generated from field: string new_liquidity = 5; - */ - newLiquidity = ""; - - /** - * @generated from field: uint64 lock_id = 4; - */ - lockId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgAddToConcentratedLiquiditySuperfluidPositionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "position_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "new_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToConcentratedLiquiditySuperfluidPositionResponse { - return new MsgAddToConcentratedLiquiditySuperfluidPositionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToConcentratedLiquiditySuperfluidPositionResponse { - return new MsgAddToConcentratedLiquiditySuperfluidPositionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgAddToConcentratedLiquiditySuperfluidPositionResponse { - return new MsgAddToConcentratedLiquiditySuperfluidPositionResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgAddToConcentratedLiquiditySuperfluidPositionResponse | PlainMessage | undefined, b: MsgAddToConcentratedLiquiditySuperfluidPositionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgAddToConcentratedLiquiditySuperfluidPositionResponse, a, b); - } -} - -/** - * ===================== MsgUnbondConvertAndStake - * - * @generated from message osmosis.superfluid.MsgUnbondConvertAndStake - */ -export class MsgUnbondConvertAndStake extends Message { - /** - * lock ID to convert and stake. - * lock id with 0 should be provided if converting liquid gamm shares to stake - * - * @generated from field: uint64 lock_id = 1; - */ - lockId = protoInt64.zero; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - /** - * validator address to delegate to. - * If provided empty string, we use the validators returned from - * valset-preference module. - * - * @generated from field: string val_addr = 3; - */ - valAddr = ""; - - /** - * min_amt_to_stake indicates the minimum amount to stake after conversion - * - * @generated from field: string min_amt_to_stake = 4; - */ - minAmtToStake = ""; - - /** - * shares_to_convert indicates shares wanted to stake. - * Note that this field is only used for liquid(unlocked) gamm shares. - * For all other cases, this field would be disregarded. - * - * @generated from field: cosmos.base.v1beta1.Coin shares_to_convert = 5; - */ - sharesToConvert?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgUnbondConvertAndStake"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "lock_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "val_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "min_amt_to_stake", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "shares_to_convert", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbondConvertAndStake { - return new MsgUnbondConvertAndStake().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbondConvertAndStake { - return new MsgUnbondConvertAndStake().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnbondConvertAndStake { - return new MsgUnbondConvertAndStake().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnbondConvertAndStake | PlainMessage | undefined, b: MsgUnbondConvertAndStake | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnbondConvertAndStake, a, b); - } -} - -/** - * @generated from message osmosis.superfluid.MsgUnbondConvertAndStakeResponse - */ -export class MsgUnbondConvertAndStakeResponse extends Message { - /** - * @generated from field: string total_amt_staked = 1; - */ - totalAmtStaked = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.MsgUnbondConvertAndStakeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total_amt_staked", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnbondConvertAndStakeResponse { - return new MsgUnbondConvertAndStakeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnbondConvertAndStakeResponse { - return new MsgUnbondConvertAndStakeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUnbondConvertAndStakeResponse { - return new MsgUnbondConvertAndStakeResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUnbondConvertAndStakeResponse | PlainMessage | undefined, b: MsgUnbondConvertAndStakeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUnbondConvertAndStakeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/superfluid/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/superfluid/v1beta1/gov_pb.ts deleted file mode 100644 index 32fe4ad..0000000 --- a/libs/es-client/src/protobufs/osmosis/superfluid/v1beta1/gov_pb.ts +++ /dev/null @@ -1,171 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/superfluid/v1beta1/gov.proto (package osmosis.superfluid.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { SuperfluidAsset } from "../superfluid_pb.js"; - -/** - * SetSuperfluidAssetsProposal is a gov Content type to update the superfluid - * assets - * - * @generated from message osmosis.superfluid.v1beta1.SetSuperfluidAssetsProposal - */ -export class SetSuperfluidAssetsProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.superfluid.SuperfluidAsset assets = 3; - */ - assets: SuperfluidAsset[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.v1beta1.SetSuperfluidAssetsProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "assets", kind: "message", T: SuperfluidAsset, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SetSuperfluidAssetsProposal { - return new SetSuperfluidAssetsProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SetSuperfluidAssetsProposal { - return new SetSuperfluidAssetsProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SetSuperfluidAssetsProposal { - return new SetSuperfluidAssetsProposal().fromJsonString(jsonString, options); - } - - static equals(a: SetSuperfluidAssetsProposal | PlainMessage | undefined, b: SetSuperfluidAssetsProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(SetSuperfluidAssetsProposal, a, b); - } -} - -/** - * RemoveSuperfluidAssetsProposal is a gov Content type to remove the superfluid - * assets by denom - * - * @generated from message osmosis.superfluid.v1beta1.RemoveSuperfluidAssetsProposal - */ -export class RemoveSuperfluidAssetsProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated string superfluid_asset_denoms = 3; - */ - superfluidAssetDenoms: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.v1beta1.RemoveSuperfluidAssetsProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "superfluid_asset_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RemoveSuperfluidAssetsProposal { - return new RemoveSuperfluidAssetsProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RemoveSuperfluidAssetsProposal { - return new RemoveSuperfluidAssetsProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RemoveSuperfluidAssetsProposal { - return new RemoveSuperfluidAssetsProposal().fromJsonString(jsonString, options); - } - - static equals(a: RemoveSuperfluidAssetsProposal | PlainMessage | undefined, b: RemoveSuperfluidAssetsProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(RemoveSuperfluidAssetsProposal, a, b); - } -} - -/** - * UpdateUnpoolWhiteListProposal is a gov Content type to update the - * allowed list of pool ids. - * - * @generated from message osmosis.superfluid.v1beta1.UpdateUnpoolWhiteListProposal - */ -export class UpdateUnpoolWhiteListProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated uint64 ids = 3; - */ - ids: bigint[] = []; - - /** - * @generated from field: bool is_overwrite = 4; - */ - isOverwrite = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.superfluid.v1beta1.UpdateUnpoolWhiteListProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 4, name: "is_overwrite", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateUnpoolWhiteListProposal { - return new UpdateUnpoolWhiteListProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateUnpoolWhiteListProposal { - return new UpdateUnpoolWhiteListProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateUnpoolWhiteListProposal { - return new UpdateUnpoolWhiteListProposal().fromJsonString(jsonString, options); - } - - static equals(a: UpdateUnpoolWhiteListProposal | PlainMessage | undefined, b: UpdateUnpoolWhiteListProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateUnpoolWhiteListProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/authorityMetadata_pb.ts b/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/authorityMetadata_pb.ts deleted file mode 100644 index 6c38050..0000000 --- a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/authorityMetadata_pb.ts +++ /dev/null @@ -1,51 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/tokenfactory/v1beta1/authorityMetadata.proto (package osmosis.tokenfactory.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * DenomAuthorityMetadata specifies metadata for addresses that have specific - * capabilities over a token factory denom. Right now there is only one Admin - * permission, but is planned to be extended to the future. - * - * @generated from message osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata - */ -export class DenomAuthorityMetadata extends Message { - /** - * Can be empty for no admin, or a valid osmosis address - * - * @generated from field: string admin = 1; - */ - admin = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DenomAuthorityMetadata { - return new DenomAuthorityMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DenomAuthorityMetadata { - return new DenomAuthorityMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DenomAuthorityMetadata { - return new DenomAuthorityMetadata().fromJsonString(jsonString, options); - } - - static equals(a: DenomAuthorityMetadata | PlainMessage | undefined, b: DenomAuthorityMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(DenomAuthorityMetadata, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/genesis_pb.ts deleted file mode 100644 index 3d8d7b4..0000000 --- a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,104 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/tokenfactory/v1beta1/genesis.proto (package osmosis.tokenfactory.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { DenomAuthorityMetadata } from "./authorityMetadata_pb.js"; - -/** - * GenesisState defines the tokenfactory module's genesis state. - * - * @generated from message osmosis.tokenfactory.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: osmosis.tokenfactory.v1beta1.Params params = 1; - */ - params?: Params; - - /** - * @generated from field: repeated osmosis.tokenfactory.v1beta1.GenesisDenom factory_denoms = 2; - */ - factoryDenoms: GenesisDenom[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "factory_denoms", kind: "message", T: GenesisDenom, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * GenesisDenom defines a tokenfactory denom that is defined within genesis - * state. The structure contains DenomAuthorityMetadata which defines the - * denom's admin. - * - * @generated from message osmosis.tokenfactory.v1beta1.GenesisDenom - */ -export class GenesisDenom extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 2; - */ - authorityMetadata?: DenomAuthorityMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.GenesisDenom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisDenom { - return new GenesisDenom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisDenom { - return new GenesisDenom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisDenom { - return new GenesisDenom().fromJsonString(jsonString, options); - } - - static equals(a: GenesisDenom | PlainMessage | undefined, b: GenesisDenom | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisDenom, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/params_pb.ts deleted file mode 100644 index 9e5ba72..0000000 --- a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/params_pb.ts +++ /dev/null @@ -1,63 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/tokenfactory/v1beta1/params.proto (package osmosis.tokenfactory.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * Params defines the parameters for the tokenfactory module. - * - * @generated from message osmosis.tokenfactory.v1beta1.Params - */ -export class Params extends Message { - /** - * DenomCreationFee defines the fee to be charged on the creation of a new - * denom. The fee is drawn from the MsgCreateDenom's sender account, and - * transferred to the community pool. - * - * @generated from field: repeated cosmos.base.v1beta1.Coin denom_creation_fee = 1; - */ - denomCreationFee: Coin[] = []; - - /** - * DenomCreationGasConsume defines the gas cost for creating a new denom. - * This is intended as a spam deterrence mechanism. - * - * See: https://github.com/CosmWasm/token-factory/issues/11 - * - * @generated from field: uint64 denom_creation_gas_consume = 2; - */ - denomCreationGasConsume = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom_creation_fee", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "denom_creation_gas_consume", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts deleted file mode 100644 index cc59665..0000000 --- a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,77 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/tokenfactory/v1beta1/query.proto (package osmosis.tokenfactory.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryAllBeforeSendHooksAddressesRequest, QueryAllBeforeSendHooksAddressesResponse, QueryBeforeSendHookAddressRequest, QueryBeforeSendHookAddressResponse, QueryDenomAuthorityMetadataRequest, QueryDenomAuthorityMetadataResponse, QueryDenomsFromCreatorRequest, QueryDenomsFromCreatorResponse, QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.tokenfactory.v1beta1.Query"; - -/** - * Params defines a gRPC query method that returns the tokenfactory module's - * parameters. - * - * @generated from rpc osmosis.tokenfactory.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; - -/** - * DenomAuthorityMetadata defines a gRPC query method for fetching - * DenomAuthorityMetadata for a particular denom. - * - * @generated from rpc osmosis.tokenfactory.v1beta1.Query.DenomAuthorityMetadata - */ -export const QueryDenomAuthorityMetadataService = { - typeName: TYPE_NAME, - method: "DenomAuthorityMetadata", - Request: QueryDenomAuthorityMetadataRequest, - Response: QueryDenomAuthorityMetadataResponse, -} as const; - -/** - * DenomsFromCreator defines a gRPC query method for fetching all - * denominations created by a specific admin/creator. - * - * @generated from rpc osmosis.tokenfactory.v1beta1.Query.DenomsFromCreator - */ -export const QueryDenomsFromCreatorService = { - typeName: TYPE_NAME, - method: "DenomsFromCreator", - Request: QueryDenomsFromCreatorRequest, - Response: QueryDenomsFromCreatorResponse, -} as const; - -/** - * BeforeSendHookAddress defines a gRPC query method for - * getting the address registered for the before send hook. - * - * @generated from rpc osmosis.tokenfactory.v1beta1.Query.BeforeSendHookAddress - */ -export const QueryBeforeSendHookAddressService = { - typeName: TYPE_NAME, - method: "BeforeSendHookAddress", - Request: QueryBeforeSendHookAddressRequest, - Response: QueryBeforeSendHookAddressResponse, -} as const; - -/** - * AllBeforeSendHooksAddresses defines a gRPC query method for - * getting all addresses with before send hook registered. - * The response returns two arrays, an array with a list of denom and an array - * of before send hook addresses. The idx of denom corresponds to before send - * hook addresse's idx. - * - * @generated from rpc osmosis.tokenfactory.v1beta1.Query.AllBeforeSendHooksAddresses - */ -export const QueryAllBeforeSendHooksAddressesService = { - typeName: TYPE_NAME, - method: "AllBeforeSendHooksAddresses", - Request: QueryAllBeforeSendHooksAddressesRequest, - Response: QueryAllBeforeSendHooksAddressesResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts deleted file mode 100644 index b5270c2..0000000 --- a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/query_pb.ts +++ /dev/null @@ -1,398 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/tokenfactory/v1beta1/query.proto (package osmosis.tokenfactory.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { DenomAuthorityMetadata } from "./authorityMetadata_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: osmosis.tokenfactory.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - -/** - * QueryDenomAuthorityMetadataRequest defines the request structure for the - * DenomAuthorityMetadata gRPC query. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest - */ -export class QueryDenomAuthorityMetadataRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomAuthorityMetadataRequest { - return new QueryDenomAuthorityMetadataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomAuthorityMetadataRequest { - return new QueryDenomAuthorityMetadataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomAuthorityMetadataRequest { - return new QueryDenomAuthorityMetadataRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomAuthorityMetadataRequest | PlainMessage | undefined, b: QueryDenomAuthorityMetadataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomAuthorityMetadataRequest, a, b); - } -} - -/** - * QueryDenomAuthorityMetadataResponse defines the response structure for the - * DenomAuthorityMetadata gRPC query. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse - */ -export class QueryDenomAuthorityMetadataResponse extends Message { - /** - * @generated from field: osmosis.tokenfactory.v1beta1.DenomAuthorityMetadata authority_metadata = 1; - */ - authorityMetadata?: DenomAuthorityMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryDenomAuthorityMetadataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority_metadata", kind: "message", T: DenomAuthorityMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomAuthorityMetadataResponse { - return new QueryDenomAuthorityMetadataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomAuthorityMetadataResponse { - return new QueryDenomAuthorityMetadataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomAuthorityMetadataResponse { - return new QueryDenomAuthorityMetadataResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomAuthorityMetadataResponse | PlainMessage | undefined, b: QueryDenomAuthorityMetadataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomAuthorityMetadataResponse, a, b); - } -} - -/** - * QueryDenomsFromCreatorRequest defines the request structure for the - * DenomsFromCreator gRPC query. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest - */ -export class QueryDenomsFromCreatorRequest extends Message { - /** - * @generated from field: string creator = 1; - */ - creator = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsFromCreatorRequest { - return new QueryDenomsFromCreatorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsFromCreatorRequest { - return new QueryDenomsFromCreatorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomsFromCreatorRequest { - return new QueryDenomsFromCreatorRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomsFromCreatorRequest | PlainMessage | undefined, b: QueryDenomsFromCreatorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomsFromCreatorRequest, a, b); - } -} - -/** - * QueryDenomsFromCreatorRequest defines the response structure for the - * DenomsFromCreator gRPC query. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse - */ -export class QueryDenomsFromCreatorResponse extends Message { - /** - * @generated from field: repeated string denoms = 1; - */ - denoms: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryDenomsFromCreatorResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomsFromCreatorResponse { - return new QueryDenomsFromCreatorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomsFromCreatorResponse { - return new QueryDenomsFromCreatorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomsFromCreatorResponse { - return new QueryDenomsFromCreatorResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomsFromCreatorResponse | PlainMessage | undefined, b: QueryDenomsFromCreatorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomsFromCreatorResponse, a, b); - } -} - -/** - * @generated from message osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest - */ -export class QueryBeforeSendHookAddressRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBeforeSendHookAddressRequest { - return new QueryBeforeSendHookAddressRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBeforeSendHookAddressRequest { - return new QueryBeforeSendHookAddressRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBeforeSendHookAddressRequest { - return new QueryBeforeSendHookAddressRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBeforeSendHookAddressRequest | PlainMessage | undefined, b: QueryBeforeSendHookAddressRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBeforeSendHookAddressRequest, a, b); - } -} - -/** - * QueryBeforeSendHookAddressResponse defines the response structure for the - * DenomBeforeSendHook gRPC query. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse - */ -export class QueryBeforeSendHookAddressResponse extends Message { - /** - * @generated from field: string cosmwasm_address = 1; - */ - cosmwasmAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryBeforeSendHookAddressResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cosmwasm_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBeforeSendHookAddressResponse { - return new QueryBeforeSendHookAddressResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBeforeSendHookAddressResponse { - return new QueryBeforeSendHookAddressResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBeforeSendHookAddressResponse { - return new QueryBeforeSendHookAddressResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBeforeSendHookAddressResponse | PlainMessage | undefined, b: QueryBeforeSendHookAddressResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBeforeSendHookAddressResponse, a, b); - } -} - -/** - * @generated from message osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesRequest - */ -export class QueryAllBeforeSendHooksAddressesRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { - return new QueryAllBeforeSendHooksAddressesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { - return new QueryAllBeforeSendHooksAddressesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesRequest { - return new QueryAllBeforeSendHooksAddressesRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllBeforeSendHooksAddressesRequest, a, b); - } -} - -/** - * QueryAllBeforeSendHooksAddressesResponse defines the response structure for - * the AllBeforeSendHooksAddresses gRPC query. - * - * @generated from message osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesResponse - */ -export class QueryAllBeforeSendHooksAddressesResponse extends Message { - /** - * @generated from field: repeated string denoms = 1; - */ - denoms: string[] = []; - - /** - * @generated from field: repeated string before_send_hook_addresses = 2; - */ - beforeSendHookAddresses: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.QueryAllBeforeSendHooksAddressesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "before_send_hook_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { - return new QueryAllBeforeSendHooksAddressesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { - return new QueryAllBeforeSendHooksAddressesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryAllBeforeSendHooksAddressesResponse { - return new QueryAllBeforeSendHooksAddressesResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined, b: QueryAllBeforeSendHooksAddressesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryAllBeforeSendHooksAddressesResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_cosmes.ts deleted file mode 100644 index d9a95ba..0000000 --- a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,79 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/tokenfactory/v1beta1/tx.proto (package osmosis.tokenfactory.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgBurn, MsgBurnResponse, MsgChangeAdmin, MsgChangeAdminResponse, MsgCreateDenom, MsgCreateDenomResponse, MsgForceTransfer, MsgForceTransferResponse, MsgMint, MsgMintResponse, MsgSetBeforeSendHook, MsgSetBeforeSendHookResponse, MsgSetDenomMetadata, MsgSetDenomMetadataResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.tokenfactory.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.tokenfactory.v1beta1.Msg.CreateDenom - */ -export const MsgCreateDenomService = { - typeName: TYPE_NAME, - method: "CreateDenom", - Request: MsgCreateDenom, - Response: MsgCreateDenomResponse, -} as const; - -/** - * @generated from rpc osmosis.tokenfactory.v1beta1.Msg.Mint - */ -export const MsgMintService = { - typeName: TYPE_NAME, - method: "Mint", - Request: MsgMint, - Response: MsgMintResponse, -} as const; - -/** - * @generated from rpc osmosis.tokenfactory.v1beta1.Msg.Burn - */ -export const MsgBurnService = { - typeName: TYPE_NAME, - method: "Burn", - Request: MsgBurn, - Response: MsgBurnResponse, -} as const; - -/** - * @generated from rpc osmosis.tokenfactory.v1beta1.Msg.ChangeAdmin - */ -export const MsgChangeAdminService = { - typeName: TYPE_NAME, - method: "ChangeAdmin", - Request: MsgChangeAdmin, - Response: MsgChangeAdminResponse, -} as const; - -/** - * @generated from rpc osmosis.tokenfactory.v1beta1.Msg.SetDenomMetadata - */ -export const MsgSetDenomMetadataService = { - typeName: TYPE_NAME, - method: "SetDenomMetadata", - Request: MsgSetDenomMetadata, - Response: MsgSetDenomMetadataResponse, -} as const; - -/** - * @generated from rpc osmosis.tokenfactory.v1beta1.Msg.SetBeforeSendHook - */ -export const MsgSetBeforeSendHookService = { - typeName: TYPE_NAME, - method: "SetBeforeSendHook", - Request: MsgSetBeforeSendHook, - Response: MsgSetBeforeSendHookResponse, -} as const; - -/** - * @generated from rpc osmosis.tokenfactory.v1beta1.Msg.ForceTransfer - */ -export const MsgForceTransferService = { - typeName: TYPE_NAME, - method: "ForceTransfer", - Request: MsgForceTransfer, - Response: MsgForceTransferResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts deleted file mode 100644 index dd6f52b..0000000 --- a/libs/es-client/src/protobufs/osmosis/tokenfactory/v1beta1/tx_pb.ts +++ /dev/null @@ -1,613 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/tokenfactory/v1beta1/tx.proto (package osmosis.tokenfactory.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; -import { Metadata } from "../../../cosmos/bank/v1beta1/bank_pb.js"; - -/** - * MsgCreateDenom defines the message structure for the CreateDenom gRPC service - * method. It allows an account to create a new denom. It requires a sender - * address and a sub denomination. The (sender_address, sub_denomination) tuple - * must be unique and cannot be re-used. - * - * The resulting denom created is defined as - * . The resulting denom's admin is - * originally set to be the creator, but this can be changed later. The token - * denom does not indicate the current admin. - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgCreateDenom - */ -export class MsgCreateDenom extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * subdenom can be up to 44 "alphanumeric" characters long. - * - * @generated from field: string subdenom = 2; - */ - subdenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgCreateDenom"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "subdenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenom { - return new MsgCreateDenom().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenom { - return new MsgCreateDenom().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenom { - return new MsgCreateDenom().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateDenom | PlainMessage | undefined, b: MsgCreateDenom | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateDenom, a, b); - } -} - -/** - * MsgCreateDenomResponse is the return value of MsgCreateDenom - * It returns the full string of the newly created denom - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse - */ -export class MsgCreateDenomResponse extends Message { - /** - * @generated from field: string new_token_denom = 1; - */ - newTokenDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgCreateDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "new_token_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateDenomResponse { - return new MsgCreateDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateDenomResponse { - return new MsgCreateDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgCreateDenomResponse { - return new MsgCreateDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgCreateDenomResponse | PlainMessage | undefined, b: MsgCreateDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgCreateDenomResponse, a, b); - } -} - -/** - * MsgMint is the sdk.Msg type for allowing an admin account to mint - * more of a token. - * Only the admin of the token factory denom has permission to mint unless - * the denom does not have any admin. - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgMint - */ -export class MsgMint extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 2; - */ - amount?: Coin; - - /** - * @generated from field: string mintToAddress = 3; - */ - mintToAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgMint"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "message", T: Coin }, - { no: 3, name: "mintToAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMint { - return new MsgMint().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMint { - return new MsgMint().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMint { - return new MsgMint().fromJsonString(jsonString, options); - } - - static equals(a: MsgMint | PlainMessage | undefined, b: MsgMint | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMint, a, b); - } -} - -/** - * @generated from message osmosis.tokenfactory.v1beta1.MsgMintResponse - */ -export class MsgMintResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgMintResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgMintResponse { - return new MsgMintResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgMintResponse { - return new MsgMintResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgMintResponse { - return new MsgMintResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgMintResponse | PlainMessage | undefined, b: MsgMintResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgMintResponse, a, b); - } -} - -/** - * MsgBurn is the sdk.Msg type for allowing an admin account to burn - * a token. - * Only the admin of the token factory denom has permission to burn unless - * the denom does not have any admin. - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgBurn - */ -export class MsgBurn extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 2; - */ - amount?: Coin; - - /** - * @generated from field: string burnFromAddress = 3; - */ - burnFromAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgBurn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "message", T: Coin }, - { no: 3, name: "burnFromAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurn { - return new MsgBurn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurn { - return new MsgBurn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBurn { - return new MsgBurn().fromJsonString(jsonString, options); - } - - static equals(a: MsgBurn | PlainMessage | undefined, b: MsgBurn | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBurn, a, b); - } -} - -/** - * @generated from message osmosis.tokenfactory.v1beta1.MsgBurnResponse - */ -export class MsgBurnResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgBurnResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgBurnResponse { - return new MsgBurnResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgBurnResponse { - return new MsgBurnResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgBurnResponse { - return new MsgBurnResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgBurnResponse | PlainMessage | undefined, b: MsgBurnResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgBurnResponse, a, b); - } -} - -/** - * MsgChangeAdmin is the sdk.Msg type for allowing an admin account to reassign - * adminship of a denom to a new account - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgChangeAdmin - */ -export class MsgChangeAdmin extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: string denom = 2; - */ - denom = ""; - - /** - * @generated from field: string new_admin = 3; - */ - newAdmin = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgChangeAdmin"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdmin { - return new MsgChangeAdmin().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdmin { - return new MsgChangeAdmin().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdmin { - return new MsgChangeAdmin().fromJsonString(jsonString, options); - } - - static equals(a: MsgChangeAdmin | PlainMessage | undefined, b: MsgChangeAdmin | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChangeAdmin, a, b); - } -} - -/** - * MsgChangeAdminResponse defines the response structure for an executed - * MsgChangeAdmin message. - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse - */ -export class MsgChangeAdminResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgChangeAdminResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgChangeAdminResponse { - return new MsgChangeAdminResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgChangeAdminResponse { - return new MsgChangeAdminResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgChangeAdminResponse { - return new MsgChangeAdminResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgChangeAdminResponse | PlainMessage | undefined, b: MsgChangeAdminResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgChangeAdminResponse, a, b); - } -} - -/** - * MsgSetBeforeSendHook is the sdk.Msg type for allowing an admin account to - * assign a CosmWasm contract to call with a BeforeSend hook - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook - */ -export class MsgSetBeforeSendHook extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: string denom = 2; - */ - denom = ""; - - /** - * @generated from field: string cosmwasm_address = 3; - */ - cosmwasmAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHook"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "cosmwasm_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBeforeSendHook { - return new MsgSetBeforeSendHook().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBeforeSendHook { - return new MsgSetBeforeSendHook().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetBeforeSendHook { - return new MsgSetBeforeSendHook().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetBeforeSendHook | PlainMessage | undefined, b: MsgSetBeforeSendHook | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetBeforeSendHook, a, b); - } -} - -/** - * MsgSetBeforeSendHookResponse defines the response structure for an executed - * MsgSetBeforeSendHook message. - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse - */ -export class MsgSetBeforeSendHookResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgSetBeforeSendHookResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetBeforeSendHookResponse { - return new MsgSetBeforeSendHookResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetBeforeSendHookResponse { - return new MsgSetBeforeSendHookResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetBeforeSendHookResponse { - return new MsgSetBeforeSendHookResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetBeforeSendHookResponse | PlainMessage | undefined, b: MsgSetBeforeSendHookResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetBeforeSendHookResponse, a, b); - } -} - -/** - * MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set - * the denom's bank metadata - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata - */ -export class MsgSetDenomMetadata extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: cosmos.bank.v1beta1.Metadata metadata = 2; - */ - metadata?: Metadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgSetDenomMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "metadata", kind: "message", T: Metadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadata { - return new MsgSetDenomMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadata { - return new MsgSetDenomMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadata { - return new MsgSetDenomMetadata().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetDenomMetadata | PlainMessage | undefined, b: MsgSetDenomMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetDenomMetadata, a, b); - } -} - -/** - * MsgSetDenomMetadataResponse defines the response structure for an executed - * MsgSetDenomMetadata message. - * - * @generated from message osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse - */ -export class MsgSetDenomMetadataResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgSetDenomMetadataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetDenomMetadataResponse { - return new MsgSetDenomMetadataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetDenomMetadataResponse { - return new MsgSetDenomMetadataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetDenomMetadataResponse { - return new MsgSetDenomMetadataResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetDenomMetadataResponse | PlainMessage | undefined, b: MsgSetDenomMetadataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetDenomMetadataResponse, a, b); - } -} - -/** - * @generated from message osmosis.tokenfactory.v1beta1.MsgForceTransfer - */ -export class MsgForceTransfer extends Message { - /** - * @generated from field: string sender = 1; - */ - sender = ""; - - /** - * @generated from field: cosmos.base.v1beta1.Coin amount = 2; - */ - amount?: Coin; - - /** - * @generated from field: string transferFromAddress = 3; - */ - transferFromAddress = ""; - - /** - * @generated from field: string transferToAddress = 4; - */ - transferToAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgForceTransfer"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "message", T: Coin }, - { no: 3, name: "transferFromAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "transferToAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceTransfer { - return new MsgForceTransfer().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceTransfer { - return new MsgForceTransfer().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgForceTransfer { - return new MsgForceTransfer().fromJsonString(jsonString, options); - } - - static equals(a: MsgForceTransfer | PlainMessage | undefined, b: MsgForceTransfer | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgForceTransfer, a, b); - } -} - -/** - * @generated from message osmosis.tokenfactory.v1beta1.MsgForceTransferResponse - */ -export class MsgForceTransferResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.tokenfactory.v1beta1.MsgForceTransferResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgForceTransferResponse { - return new MsgForceTransferResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgForceTransferResponse { - return new MsgForceTransferResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgForceTransferResponse { - return new MsgForceTransferResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgForceTransferResponse | PlainMessage | undefined, b: MsgForceTransferResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgForceTransferResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/twap/v1beta1/genesis_pb.ts deleted file mode 100644 index 6c1b1e7..0000000 --- a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,103 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/twap/v1beta1/genesis.proto (package osmosis.twap.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3 } from "@bufbuild/protobuf"; -import { TwapRecord } from "./twap_record_pb.js"; - -/** - * Params holds parameters for the twap module - * - * @generated from message osmosis.twap.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: string prune_epoch_identifier = 1; - */ - pruneEpochIdentifier = ""; - - /** - * @generated from field: google.protobuf.Duration record_history_keep_period = 2; - */ - recordHistoryKeepPeriod?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "prune_epoch_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "record_history_keep_period", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * GenesisState defines the twap module's genesis state. - * - * @generated from message osmosis.twap.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * twaps is the collection of all twap records. - * - * @generated from field: repeated osmosis.twap.v1beta1.TwapRecord twaps = 1; - */ - twaps: TwapRecord[] = []; - - /** - * params is the container of twap parameters. - * - * @generated from field: osmosis.twap.v1beta1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "twaps", kind: "message", T: TwapRecord, repeated: true }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_cosmes.ts deleted file mode 100644 index 210e8f7..0000000 --- a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/twap/v1beta1/query.proto (package osmosis.twap.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ArithmeticTwapRequest, ArithmeticTwapResponse, ArithmeticTwapToNowRequest, ArithmeticTwapToNowResponse, GeometricTwapRequest, GeometricTwapResponse, GeometricTwapToNowRequest, GeometricTwapToNowResponse, ParamsRequest, ParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.twap.v1beta1.Query"; - -/** - * @generated from rpc osmosis.twap.v1beta1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: ParamsRequest, - Response: ParamsResponse, -} as const; - -/** - * @generated from rpc osmosis.twap.v1beta1.Query.ArithmeticTwap - */ -export const QueryArithmeticTwapService = { - typeName: TYPE_NAME, - method: "ArithmeticTwap", - Request: ArithmeticTwapRequest, - Response: ArithmeticTwapResponse, -} as const; - -/** - * @generated from rpc osmosis.twap.v1beta1.Query.ArithmeticTwapToNow - */ -export const QueryArithmeticTwapToNowService = { - typeName: TYPE_NAME, - method: "ArithmeticTwapToNow", - Request: ArithmeticTwapToNowRequest, - Response: ArithmeticTwapToNowResponse, -} as const; - -/** - * @generated from rpc osmosis.twap.v1beta1.Query.GeometricTwap - */ -export const QueryGeometricTwapService = { - typeName: TYPE_NAME, - method: "GeometricTwap", - Request: GeometricTwapRequest, - Response: GeometricTwapResponse, -} as const; - -/** - * @generated from rpc osmosis.twap.v1beta1.Query.GeometricTwapToNow - */ -export const QueryGeometricTwapToNowService = { - typeName: TYPE_NAME, - method: "GeometricTwapToNow", - Request: GeometricTwapToNowRequest, - Response: GeometricTwapToNowResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_pb.ts deleted file mode 100644 index c950962..0000000 --- a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/query_pb.ts +++ /dev/null @@ -1,457 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/twap/v1beta1/query.proto (package osmosis.twap.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Params } from "./genesis_pb.js"; - -/** - * @generated from message osmosis.twap.v1beta1.ArithmeticTwapRequest - */ -export class ArithmeticTwapRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset = 2; - */ - baseAsset = ""; - - /** - * @generated from field: string quote_asset = 3; - */ - quoteAsset = ""; - - /** - * @generated from field: google.protobuf.Timestamp start_time = 4; - */ - startTime?: Timestamp; - - /** - * @generated from field: google.protobuf.Timestamp end_time = 5; - */ - endTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.ArithmeticTwapRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "start_time", kind: "message", T: Timestamp }, - { no: 5, name: "end_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArithmeticTwapRequest { - return new ArithmeticTwapRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArithmeticTwapRequest { - return new ArithmeticTwapRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArithmeticTwapRequest { - return new ArithmeticTwapRequest().fromJsonString(jsonString, options); - } - - static equals(a: ArithmeticTwapRequest | PlainMessage | undefined, b: ArithmeticTwapRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ArithmeticTwapRequest, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.ArithmeticTwapResponse - */ -export class ArithmeticTwapResponse extends Message { - /** - * @generated from field: string arithmetic_twap = 1; - */ - arithmeticTwap = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.ArithmeticTwapResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "arithmetic_twap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArithmeticTwapResponse { - return new ArithmeticTwapResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArithmeticTwapResponse { - return new ArithmeticTwapResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArithmeticTwapResponse { - return new ArithmeticTwapResponse().fromJsonString(jsonString, options); - } - - static equals(a: ArithmeticTwapResponse | PlainMessage | undefined, b: ArithmeticTwapResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ArithmeticTwapResponse, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.ArithmeticTwapToNowRequest - */ -export class ArithmeticTwapToNowRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset = 2; - */ - baseAsset = ""; - - /** - * @generated from field: string quote_asset = 3; - */ - quoteAsset = ""; - - /** - * @generated from field: google.protobuf.Timestamp start_time = 4; - */ - startTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.ArithmeticTwapToNowRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "start_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArithmeticTwapToNowRequest { - return new ArithmeticTwapToNowRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArithmeticTwapToNowRequest { - return new ArithmeticTwapToNowRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArithmeticTwapToNowRequest { - return new ArithmeticTwapToNowRequest().fromJsonString(jsonString, options); - } - - static equals(a: ArithmeticTwapToNowRequest | PlainMessage | undefined, b: ArithmeticTwapToNowRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ArithmeticTwapToNowRequest, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.ArithmeticTwapToNowResponse - */ -export class ArithmeticTwapToNowResponse extends Message { - /** - * @generated from field: string arithmetic_twap = 1; - */ - arithmeticTwap = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.ArithmeticTwapToNowResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "arithmetic_twap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArithmeticTwapToNowResponse { - return new ArithmeticTwapToNowResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArithmeticTwapToNowResponse { - return new ArithmeticTwapToNowResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArithmeticTwapToNowResponse { - return new ArithmeticTwapToNowResponse().fromJsonString(jsonString, options); - } - - static equals(a: ArithmeticTwapToNowResponse | PlainMessage | undefined, b: ArithmeticTwapToNowResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ArithmeticTwapToNowResponse, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.GeometricTwapRequest - */ -export class GeometricTwapRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset = 2; - */ - baseAsset = ""; - - /** - * @generated from field: string quote_asset = 3; - */ - quoteAsset = ""; - - /** - * @generated from field: google.protobuf.Timestamp start_time = 4; - */ - startTime?: Timestamp; - - /** - * @generated from field: google.protobuf.Timestamp end_time = 5; - */ - endTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.GeometricTwapRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "start_time", kind: "message", T: Timestamp }, - { no: 5, name: "end_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GeometricTwapRequest { - return new GeometricTwapRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GeometricTwapRequest { - return new GeometricTwapRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GeometricTwapRequest { - return new GeometricTwapRequest().fromJsonString(jsonString, options); - } - - static equals(a: GeometricTwapRequest | PlainMessage | undefined, b: GeometricTwapRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GeometricTwapRequest, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.GeometricTwapResponse - */ -export class GeometricTwapResponse extends Message { - /** - * @generated from field: string geometric_twap = 1; - */ - geometricTwap = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.GeometricTwapResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "geometric_twap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GeometricTwapResponse { - return new GeometricTwapResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GeometricTwapResponse { - return new GeometricTwapResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GeometricTwapResponse { - return new GeometricTwapResponse().fromJsonString(jsonString, options); - } - - static equals(a: GeometricTwapResponse | PlainMessage | undefined, b: GeometricTwapResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GeometricTwapResponse, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.GeometricTwapToNowRequest - */ -export class GeometricTwapToNowRequest extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * @generated from field: string base_asset = 2; - */ - baseAsset = ""; - - /** - * @generated from field: string quote_asset = 3; - */ - quoteAsset = ""; - - /** - * @generated from field: google.protobuf.Timestamp start_time = 4; - */ - startTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.GeometricTwapToNowRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "base_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "quote_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "start_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GeometricTwapToNowRequest { - return new GeometricTwapToNowRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GeometricTwapToNowRequest { - return new GeometricTwapToNowRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GeometricTwapToNowRequest { - return new GeometricTwapToNowRequest().fromJsonString(jsonString, options); - } - - static equals(a: GeometricTwapToNowRequest | PlainMessage | undefined, b: GeometricTwapToNowRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GeometricTwapToNowRequest, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.GeometricTwapToNowResponse - */ -export class GeometricTwapToNowResponse extends Message { - /** - * @generated from field: string geometric_twap = 1; - */ - geometricTwap = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.GeometricTwapToNowResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "geometric_twap", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GeometricTwapToNowResponse { - return new GeometricTwapToNowResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GeometricTwapToNowResponse { - return new GeometricTwapToNowResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GeometricTwapToNowResponse { - return new GeometricTwapToNowResponse().fromJsonString(jsonString, options); - } - - static equals(a: GeometricTwapToNowResponse | PlainMessage | undefined, b: GeometricTwapToNowResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GeometricTwapToNowResponse, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.ParamsRequest - */ -export class ParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.ParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { - return new ParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { - return new ParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsRequest, a, b); - } -} - -/** - * @generated from message osmosis.twap.v1beta1.ParamsResponse - */ -export class ParamsResponse extends Message { - /** - * @generated from field: osmosis.twap.v1beta1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.ParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { - return new ParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { - return new ParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/twap_record_pb.ts b/libs/es-client/src/protobufs/osmosis/twap/v1beta1/twap_record_pb.ts deleted file mode 100644 index de6a1fc..0000000 --- a/libs/es-client/src/protobufs/osmosis/twap/v1beta1/twap_record_pb.ts +++ /dev/null @@ -1,203 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/twap/v1beta1/twap_record.proto (package osmosis.twap.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; - -/** - * A TWAP record should be indexed in state by pool_id, (asset pair), timestamp - * The asset pair assets should be lexicographically sorted. - * Technically (pool_id, asset_0_denom, asset_1_denom, height) do not need to - * appear in the struct however we view this as the wrong performance tradeoff - * given SDK today. Would rather we optimize for readability and correctness, - * than an optimal state storage format. The system bottleneck is elsewhere for - * now. - * - * @generated from message osmosis.twap.v1beta1.TwapRecord - */ -export class TwapRecord extends Message { - /** - * @generated from field: uint64 pool_id = 1; - */ - poolId = protoInt64.zero; - - /** - * Lexicographically smaller denom of the pair - * - * @generated from field: string asset0_denom = 2; - */ - asset0Denom = ""; - - /** - * Lexicographically larger denom of the pair - * - * @generated from field: string asset1_denom = 3; - */ - asset1Denom = ""; - - /** - * height this record corresponds to, for debugging purposes - * - * @generated from field: int64 height = 4; - */ - height = protoInt64.zero; - - /** - * This field should only exist until we have a global registry in the state - * machine, mapping prior block heights within {TIME RANGE} to times. - * - * @generated from field: google.protobuf.Timestamp time = 5; - */ - time?: Timestamp; - - /** - * We store the last spot prices in the struct, so that we can interpolate - * accumulator values for times between when accumulator records are stored. - * - * @generated from field: string p0_last_spot_price = 6; - */ - p0LastSpotPrice = ""; - - /** - * @generated from field: string p1_last_spot_price = 7; - */ - p1LastSpotPrice = ""; - - /** - * @generated from field: string p0_arithmetic_twap_accumulator = 8; - */ - p0ArithmeticTwapAccumulator = ""; - - /** - * @generated from field: string p1_arithmetic_twap_accumulator = 9; - */ - p1ArithmeticTwapAccumulator = ""; - - /** - * @generated from field: string geometric_twap_accumulator = 10; - */ - geometricTwapAccumulator = ""; - - /** - * This field contains the time in which the last spot price error occurred. - * It is used to alert the caller if they are getting a potentially erroneous - * TWAP, due to an unforeseen underlying error. - * - * @generated from field: google.protobuf.Timestamp last_error_time = 11; - */ - lastErrorTime?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.TwapRecord"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "asset0_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "asset1_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "time", kind: "message", T: Timestamp }, - { no: 6, name: "p0_last_spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "p1_last_spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "p0_arithmetic_twap_accumulator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "p1_arithmetic_twap_accumulator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "geometric_twap_accumulator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "last_error_time", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TwapRecord { - return new TwapRecord().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TwapRecord { - return new TwapRecord().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TwapRecord { - return new TwapRecord().fromJsonString(jsonString, options); - } - - static equals(a: TwapRecord | PlainMessage | undefined, b: TwapRecord | PlainMessage | undefined): boolean { - return proto3.util.equals(TwapRecord, a, b); - } -} - -/** - * PruningState allows us to spread out the pruning of TWAP records over time, - * instead of pruning all at once at the end of the epoch. - * - * @generated from message osmosis.twap.v1beta1.PruningState - */ -export class PruningState extends Message { - /** - * is_pruning is true if the pruning process is ongoing. - * This tells the module to continue pruning the TWAP records - * at the EndBlock. - * - * @generated from field: bool is_pruning = 1; - */ - isPruning = false; - - /** - * last_kept_time is the time of the last kept TWAP record. - * This is used to determine all TWAP records that are older than - * last_kept_time and should be pruned. - * - * @generated from field: google.protobuf.Timestamp last_kept_time = 2; - */ - lastKeptTime?: Timestamp; - - /** - * Deprecated: This field is deprecated. - * - * @generated from field: bytes last_key_seen = 3 [deprecated = true]; - * @deprecated - */ - lastKeySeen = new Uint8Array(0); - - /** - * last_seen_pool_id is the pool_id that we will begin pruning in the next - * block. This value starts at the highest pool_id at time of epoch, and - * decreases until it reaches 1. When it reaches 1, the pruning - * process is complete. - * - * @generated from field: uint64 last_seen_pool_id = 4; - */ - lastSeenPoolId = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.twap.v1beta1.PruningState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "is_pruning", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "last_kept_time", kind: "message", T: Timestamp }, - { no: 3, name: "last_key_seen", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "last_seen_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PruningState { - return new PruningState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PruningState { - return new PruningState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PruningState { - return new PruningState().fromJsonString(jsonString, options); - } - - static equals(a: PruningState | PlainMessage | undefined, b: PruningState | PlainMessage | undefined): boolean { - return proto3.util.equals(PruningState, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/feetoken_pb.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/feetoken_pb.ts deleted file mode 100644 index 7c25c04..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/feetoken_pb.ts +++ /dev/null @@ -1,56 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/feetoken.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * FeeToken is a struct that specifies a coin denom, and pool ID pair. - * This marks the token as eligible for use as a tx fee asset in Osmosis. - * Its price in osmo is derived through looking at the provided pool ID. - * The pool ID must have osmo as one of its assets. - * - * @generated from message osmosis.txfees.v1beta1.FeeToken - */ -export class FeeToken extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - /** - * @generated from field: uint64 poolID = 2; - */ - poolID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.FeeToken"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "poolID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FeeToken { - return new FeeToken().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FeeToken { - return new FeeToken().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FeeToken { - return new FeeToken().fromJsonString(jsonString, options); - } - - static equals(a: FeeToken | PlainMessage | undefined, b: FeeToken | PlainMessage | undefined): boolean { - return proto3.util.equals(FeeToken, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts deleted file mode 100644 index a84ee04..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/genesis_pb.ts +++ /dev/null @@ -1,116 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/genesis.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { FeeToken } from "./feetoken_pb.js"; -import { Params } from "./params_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * GenesisState defines the txfees module's genesis state. - * - * @generated from message osmosis.txfees.v1beta1.GenesisState - */ -export class GenesisState extends Message { - /** - * @generated from field: string basedenom = 1; - */ - basedenom = ""; - - /** - * @generated from field: repeated osmosis.txfees.v1beta1.FeeToken feetokens = 2; - */ - feetokens: FeeToken[] = []; - - /** - * DEPRECATED - * - * @generated from field: osmosis.txfees.v1beta1.TxFeesTracker txFeesTracker = 3 [deprecated = true]; - * @deprecated - */ - txFeesTracker?: TxFeesTracker; - - /** - * params is the container of txfees parameters. - * - * @generated from field: osmosis.txfees.v1beta1.Params params = 4; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "basedenom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "feetokens", kind: "message", T: FeeToken, repeated: true }, - { no: 3, name: "txFeesTracker", kind: "message", T: TxFeesTracker }, - { no: 4, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.TxFeesTracker - */ -export class TxFeesTracker extends Message { - /** - * @generated from field: repeated cosmos.base.v1beta1.Coin tx_fees = 1; - */ - txFees: Coin[] = []; - - /** - * @generated from field: int64 height_accounting_starts_from = 2; - */ - heightAccountingStartsFrom = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.TxFeesTracker"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_fees", kind: "message", T: Coin, repeated: true }, - { no: 2, name: "height_accounting_starts_from", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxFeesTracker { - return new TxFeesTracker().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxFeesTracker { - return new TxFeesTracker().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxFeesTracker { - return new TxFeesTracker().fromJsonString(jsonString, options); - } - - static equals(a: TxFeesTracker | PlainMessage | undefined, b: TxFeesTracker | PlainMessage | undefined): boolean { - return proto3.util.equals(TxFeesTracker, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/gov_pb.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/gov_pb.ts deleted file mode 100644 index e3f445c..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/gov_pb.ts +++ /dev/null @@ -1,64 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/gov.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { FeeToken } from "./feetoken_pb.js"; - -/** - * UpdateFeeTokenProposal is a gov Content type for adding new whitelisted fee - * token(s). It must specify a denom along with gamm pool ID to use as a spot - * price calculator. It can be used to add new denoms to the whitelist. It can - * also be used to update the Pool to associate with the denom. If Pool ID is - * set to 0, it will remove the denom from the whitelisted set. - * - * @generated from message osmosis.txfees.v1beta1.UpdateFeeTokenProposal - */ -export class UpdateFeeTokenProposal extends Message { - /** - * @generated from field: string title = 1; - */ - title = ""; - - /** - * @generated from field: string description = 2; - */ - description = ""; - - /** - * @generated from field: repeated osmosis.txfees.v1beta1.FeeToken feetokens = 3; - */ - feetokens: FeeToken[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.UpdateFeeTokenProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "feetokens", kind: "message", T: FeeToken, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateFeeTokenProposal { - return new UpdateFeeTokenProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateFeeTokenProposal { - return new UpdateFeeTokenProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateFeeTokenProposal { - return new UpdateFeeTokenProposal().fromJsonString(jsonString, options); - } - - static equals(a: UpdateFeeTokenProposal | PlainMessage | undefined, b: UpdateFeeTokenProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateFeeTokenProposal, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts deleted file mode 100644 index 9c5892e..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/params_pb.ts +++ /dev/null @@ -1,47 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/params.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Params holds parameters for the txfees module - * - * @generated from message osmosis.txfees.v1beta1.Params - */ -export class Params extends Message { - /** - * @generated from field: repeated string whitelisted_fee_token_setters = 1; - */ - whitelistedFeeTokenSetters: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "whitelisted_fee_token_setters", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts deleted file mode 100644 index 1d1397d..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,71 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/query.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryBaseDenomRequest, QueryBaseDenomResponse, QueryDenomPoolIdRequest, QueryDenomPoolIdResponse, QueryDenomSpotPriceRequest, QueryDenomSpotPriceResponse, QueryEipBaseFeeRequest, QueryEipBaseFeeResponse, QueryFeeTokensRequest, QueryFeeTokensResponse } from "./query_pb.js"; - -const TYPE_NAME = "osmosis.txfees.v1beta1.Query"; - -/** - * FeeTokens returns a list of all the whitelisted fee tokens and their - * corresponding pools. It does not include the BaseDenom, which has its own - * query endpoint - * - * @generated from rpc osmosis.txfees.v1beta1.Query.FeeTokens - */ -export const QueryFeeTokensService = { - typeName: TYPE_NAME, - method: "FeeTokens", - Request: QueryFeeTokensRequest, - Response: QueryFeeTokensResponse, -} as const; - -/** - * DenomSpotPrice returns all spot prices by each registered token denom. - * - * @generated from rpc osmosis.txfees.v1beta1.Query.DenomSpotPrice - */ -export const QueryDenomSpotPriceService = { - typeName: TYPE_NAME, - method: "DenomSpotPrice", - Request: QueryDenomSpotPriceRequest, - Response: QueryDenomSpotPriceResponse, -} as const; - -/** - * Returns the poolID for a specified denom input. - * - * @generated from rpc osmosis.txfees.v1beta1.Query.DenomPoolId - */ -export const QueryDenomPoolIdService = { - typeName: TYPE_NAME, - method: "DenomPoolId", - Request: QueryDenomPoolIdRequest, - Response: QueryDenomPoolIdResponse, -} as const; - -/** - * Returns a list of all base denom tokens and their corresponding pools. - * - * @generated from rpc osmosis.txfees.v1beta1.Query.BaseDenom - */ -export const QueryBaseDenomService = { - typeName: TYPE_NAME, - method: "BaseDenom", - Request: QueryBaseDenomRequest, - Response: QueryBaseDenomResponse, -} as const; - -/** - * Returns a list of all base denom tokens and their corresponding pools. - * - * @generated from rpc osmosis.txfees.v1beta1.Query.GetEipBaseFee - */ -export const QueryGetEipBaseFeeService = { - typeName: TYPE_NAME, - method: "GetEipBaseFee", - Request: QueryEipBaseFeeRequest, - Response: QueryEipBaseFeeResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts deleted file mode 100644 index 0bd46e6..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/query_pb.ts +++ /dev/null @@ -1,373 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/query.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { FeeToken } from "./feetoken_pb.js"; - -/** - * @generated from message osmosis.txfees.v1beta1.QueryFeeTokensRequest - */ -export class QueryFeeTokensRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryFeeTokensRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeTokensRequest { - return new QueryFeeTokensRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeTokensRequest { - return new QueryFeeTokensRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeTokensRequest { - return new QueryFeeTokensRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeTokensRequest | PlainMessage | undefined, b: QueryFeeTokensRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeTokensRequest, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryFeeTokensResponse - */ -export class QueryFeeTokensResponse extends Message { - /** - * @generated from field: repeated osmosis.txfees.v1beta1.FeeToken fee_tokens = 1; - */ - feeTokens: FeeToken[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryFeeTokensResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_tokens", kind: "message", T: FeeToken, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryFeeTokensResponse { - return new QueryFeeTokensResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryFeeTokensResponse { - return new QueryFeeTokensResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryFeeTokensResponse { - return new QueryFeeTokensResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryFeeTokensResponse | PlainMessage | undefined, b: QueryFeeTokensResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryFeeTokensResponse, a, b); - } -} - -/** - * QueryDenomSpotPriceRequest defines grpc request structure for querying spot - * price for the specified tx fee denom - * - * @generated from message osmosis.txfees.v1beta1.QueryDenomSpotPriceRequest - */ -export class QueryDenomSpotPriceRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomSpotPriceRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomSpotPriceRequest { - return new QueryDenomSpotPriceRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomSpotPriceRequest | PlainMessage | undefined, b: QueryDenomSpotPriceRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomSpotPriceRequest, a, b); - } -} - -/** - * QueryDenomSpotPriceRequest defines grpc response structure for querying spot - * price for the specified tx fee denom - * - * @generated from message osmosis.txfees.v1beta1.QueryDenomSpotPriceResponse - */ -export class QueryDenomSpotPriceResponse extends Message { - /** - * @generated from field: uint64 poolID = 1; - */ - poolID = protoInt64.zero; - - /** - * @generated from field: string spot_price = 2; - */ - spotPrice = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomSpotPriceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "poolID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomSpotPriceResponse { - return new QueryDenomSpotPriceResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomSpotPriceResponse | PlainMessage | undefined, b: QueryDenomSpotPriceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomSpotPriceResponse, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryDenomPoolIdRequest - */ -export class QueryDenomPoolIdRequest extends Message { - /** - * @generated from field: string denom = 1; - */ - denom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomPoolIdRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomPoolIdRequest { - return new QueryDenomPoolIdRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomPoolIdRequest { - return new QueryDenomPoolIdRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomPoolIdRequest { - return new QueryDenomPoolIdRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomPoolIdRequest | PlainMessage | undefined, b: QueryDenomPoolIdRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomPoolIdRequest, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryDenomPoolIdResponse - */ -export class QueryDenomPoolIdResponse extends Message { - /** - * @generated from field: uint64 poolID = 1; - */ - poolID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryDenomPoolIdResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "poolID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryDenomPoolIdResponse { - return new QueryDenomPoolIdResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryDenomPoolIdResponse { - return new QueryDenomPoolIdResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryDenomPoolIdResponse { - return new QueryDenomPoolIdResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryDenomPoolIdResponse | PlainMessage | undefined, b: QueryDenomPoolIdResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryDenomPoolIdResponse, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryBaseDenomRequest - */ -export class QueryBaseDenomRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryBaseDenomRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseDenomRequest { - return new QueryBaseDenomRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseDenomRequest { - return new QueryBaseDenomRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseDenomRequest { - return new QueryBaseDenomRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseDenomRequest | PlainMessage | undefined, b: QueryBaseDenomRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseDenomRequest, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryBaseDenomResponse - */ -export class QueryBaseDenomResponse extends Message { - /** - * @generated from field: string base_denom = 1; - */ - baseDenom = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryBaseDenomResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryBaseDenomResponse { - return new QueryBaseDenomResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryBaseDenomResponse { - return new QueryBaseDenomResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryBaseDenomResponse { - return new QueryBaseDenomResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryBaseDenomResponse | PlainMessage | undefined, b: QueryBaseDenomResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryBaseDenomResponse, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryEipBaseFeeRequest - */ -export class QueryEipBaseFeeRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryEipBaseFeeRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEipBaseFeeRequest { - return new QueryEipBaseFeeRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEipBaseFeeRequest { - return new QueryEipBaseFeeRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEipBaseFeeRequest { - return new QueryEipBaseFeeRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryEipBaseFeeRequest | PlainMessage | undefined, b: QueryEipBaseFeeRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEipBaseFeeRequest, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.QueryEipBaseFeeResponse - */ -export class QueryEipBaseFeeResponse extends Message { - /** - * @generated from field: string base_fee = 1; - */ - baseFee = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.QueryEipBaseFeeResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "base_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryEipBaseFeeResponse { - return new QueryEipBaseFeeResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryEipBaseFeeResponse { - return new QueryEipBaseFeeResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryEipBaseFeeResponse { - return new QueryEipBaseFeeResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryEipBaseFeeResponse | PlainMessage | undefined, b: QueryEipBaseFeeResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryEipBaseFeeResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts deleted file mode 100644 index c93ef17..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,18 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/tx.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgSetFeeTokens, MsgSetFeeTokensResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.txfees.v1beta1.Msg"; - -/** - * @generated from rpc osmosis.txfees.v1beta1.Msg.SetFeeTokens - */ -export const MsgSetFeeTokensService = { - typeName: TYPE_NAME, - method: "SetFeeTokens", - Request: MsgSetFeeTokens, - Response: MsgSetFeeTokensResponse, -} as const; diff --git a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts deleted file mode 100644 index a90e448..0000000 --- a/libs/es-client/src/protobufs/osmosis/txfees/v1beta1/tx_pb.ts +++ /dev/null @@ -1,85 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/txfees/v1beta1/tx.proto (package osmosis.txfees.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { FeeToken } from "./feetoken_pb.js"; - -/** - * ===================== MsgSetFeeTokens - * - * @generated from message osmosis.txfees.v1beta1.MsgSetFeeTokens - */ -export class MsgSetFeeTokens extends Message { - /** - * @generated from field: repeated osmosis.txfees.v1beta1.FeeToken fee_tokens = 1; - */ - feeTokens: FeeToken[] = []; - - /** - * @generated from field: string sender = 2; - */ - sender = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.MsgSetFeeTokens"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "fee_tokens", kind: "message", T: FeeToken, repeated: true }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetFeeTokens { - return new MsgSetFeeTokens().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetFeeTokens { - return new MsgSetFeeTokens().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetFeeTokens { - return new MsgSetFeeTokens().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetFeeTokens | PlainMessage | undefined, b: MsgSetFeeTokens | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetFeeTokens, a, b); - } -} - -/** - * @generated from message osmosis.txfees.v1beta1.MsgSetFeeTokensResponse - */ -export class MsgSetFeeTokensResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.txfees.v1beta1.MsgSetFeeTokensResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetFeeTokensResponse { - return new MsgSetFeeTokensResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetFeeTokensResponse { - return new MsgSetFeeTokensResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetFeeTokensResponse { - return new MsgSetFeeTokensResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetFeeTokensResponse | PlainMessage | undefined, b: MsgSetFeeTokensResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetFeeTokensResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_cosmes.ts b/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_cosmes.ts deleted file mode 100644 index c545164..0000000 --- a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_cosmes.ts +++ /dev/null @@ -1,23 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/valsetpref/v1beta1/query.proto (package osmosis.valsetpref.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { - UserValidatorPreferencesRequest, - UserValidatorPreferencesResponse, -} from "./query_pb.js"; - -const TYPE_NAME = "osmosis.valsetpref.v1beta1.Query"; - -/** - * Returns the list of ValidatorPreferences for the user. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Query.UserValidatorPreferences - */ -export const QueryUserValidatorPreferencesService = { - typeName: TYPE_NAME, - method: "UserValidatorPreferences", - Request: UserValidatorPreferencesRequest, - Response: UserValidatorPreferencesResponse, -} as const; diff --git a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_pb.ts b/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_pb.ts deleted file mode 100644 index 8b7427c..0000000 --- a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/query_pb.ts +++ /dev/null @@ -1,89 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/valsetpref/v1beta1/query.proto (package osmosis.valsetpref.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { ValidatorPreference } from "./state_pb.js"; - -/** - * Request type for UserValidatorPreferences. - * - * @generated from message osmosis.valsetpref.v1beta1.UserValidatorPreferencesRequest - */ -export class UserValidatorPreferencesRequest extends Message { - /** - * user account address - * - * @generated from field: string address = 1; - */ - address = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.UserValidatorPreferencesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserValidatorPreferencesRequest { - return new UserValidatorPreferencesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserValidatorPreferencesRequest { - return new UserValidatorPreferencesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserValidatorPreferencesRequest { - return new UserValidatorPreferencesRequest().fromJsonString(jsonString, options); - } - - static equals(a: UserValidatorPreferencesRequest | PlainMessage | undefined, b: UserValidatorPreferencesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UserValidatorPreferencesRequest, a, b); - } -} - -/** - * Response type the QueryUserValidatorPreferences query request - * - * @generated from message osmosis.valsetpref.v1beta1.UserValidatorPreferencesResponse - */ -export class UserValidatorPreferencesResponse extends Message { - /** - * @generated from field: repeated osmosis.valsetpref.v1beta1.ValidatorPreference preferences = 1; - */ - preferences: ValidatorPreference[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.UserValidatorPreferencesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "preferences", kind: "message", T: ValidatorPreference, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserValidatorPreferencesResponse { - return new UserValidatorPreferencesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserValidatorPreferencesResponse { - return new UserValidatorPreferencesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserValidatorPreferencesResponse { - return new UserValidatorPreferencesResponse().fromJsonString(jsonString, options); - } - - static equals(a: UserValidatorPreferencesResponse | PlainMessage | undefined, b: UserValidatorPreferencesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UserValidatorPreferencesResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/state_pb.ts b/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/state_pb.ts deleted file mode 100644 index eded5cc..0000000 --- a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/state_pb.ts +++ /dev/null @@ -1,106 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/valsetpref/v1beta1/state.proto (package osmosis.valsetpref.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * ValidatorPreference defines the message structure for - * CreateValidatorSetPreference. It allows a user to set {val_addr, weight} in - * state. If a user does not have a validator set preference list set, and has - * staked, make their preference list default to their current staking - * distribution. - * - * @generated from message osmosis.valsetpref.v1beta1.ValidatorPreference - */ -export class ValidatorPreference extends Message { - /** - * val_oper_address holds the validator address the user wants to delegate - * funds to. - * - * @generated from field: string val_oper_address = 1; - */ - valOperAddress = ""; - - /** - * weight is decimal between 0 and 1, and they all sum to 1. - * - * @generated from field: string weight = 2; - */ - weight = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.ValidatorPreference"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "val_oper_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "weight", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorPreference { - return new ValidatorPreference().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorPreference { - return new ValidatorPreference().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorPreference { - return new ValidatorPreference().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorPreference | PlainMessage | undefined, b: ValidatorPreference | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorPreference, a, b); - } -} - -/** - * ValidatorSetPreferences defines a delegator's validator set preference. - * It contains a list of (validator, percent_allocation) pairs. - * The percent allocation are arranged in decimal notation from 0 to 1 and must - * add up to 1. - * - * @generated from message osmosis.valsetpref.v1beta1.ValidatorSetPreferences - */ -export class ValidatorSetPreferences extends Message { - /** - * preference holds {valAddr, weight} for the user who created it. - * - * @generated from field: repeated osmosis.valsetpref.v1beta1.ValidatorPreference preferences = 2; - */ - preferences: ValidatorPreference[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.ValidatorSetPreferences"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "preferences", kind: "message", T: ValidatorPreference, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorSetPreferences { - return new ValidatorSetPreferences().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorSetPreferences { - return new ValidatorSetPreferences().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorSetPreferences { - return new ValidatorSetPreferences().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorSetPreferences | PlainMessage | undefined, b: ValidatorSetPreferences | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorSetPreferences, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_cosmes.ts b/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_cosmes.ts deleted file mode 100644 index b23387f..0000000 --- a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_cosmes.ts +++ /dev/null @@ -1,102 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file osmosis/valsetpref/v1beta1/tx.proto (package osmosis.valsetpref.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgDelegateBondedTokens, MsgDelegateBondedTokensResponse, MsgDelegateToValidatorSet, MsgDelegateToValidatorSetResponse, MsgRedelegateValidatorSet, MsgRedelegateValidatorSetResponse, MsgSetValidatorSetPreference, MsgSetValidatorSetPreferenceResponse, MsgUndelegateFromRebalancedValidatorSet, MsgUndelegateFromRebalancedValidatorSetResponse, MsgUndelegateFromValidatorSet, MsgUndelegateFromValidatorSetResponse, MsgWithdrawDelegationRewards, MsgWithdrawDelegationRewardsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "osmosis.valsetpref.v1beta1.Msg"; - -/** - * SetValidatorSetPreference creates a set of validator preference. - * This message will process both create + update request. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Msg.SetValidatorSetPreference - */ -export const MsgSetValidatorSetPreferenceService = { - typeName: TYPE_NAME, - method: "SetValidatorSetPreference", - Request: MsgSetValidatorSetPreference, - Response: MsgSetValidatorSetPreferenceResponse, -} as const; - -/** - * DelegateToValidatorSet gets the owner, coins and delegates to a - * validator-set. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Msg.DelegateToValidatorSet - */ -export const MsgDelegateToValidatorSetService = { - typeName: TYPE_NAME, - method: "DelegateToValidatorSet", - Request: MsgDelegateToValidatorSet, - Response: MsgDelegateToValidatorSetResponse, -} as const; - -/** - * UndelegateFromValidatorSet gets the owner and coins and undelegates from - * validator-set. The unbonding logic will follow the `Undelegate` logic from - * the sdk. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Msg.UndelegateFromValidatorSet - */ -export const MsgUndelegateFromValidatorSetService = { - typeName: TYPE_NAME, - method: "UndelegateFromValidatorSet", - Request: MsgUndelegateFromValidatorSet, - Response: MsgUndelegateFromValidatorSetResponse, -} as const; - -/** - * UndelegateFromRebalancedValidatorSet undelegates the proivded amount from - * the validator set, but takes into consideration the current delegations - * to the user's validator set to determine the weights assigned to each. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Msg.UndelegateFromRebalancedValidatorSet - */ -export const MsgUndelegateFromRebalancedValidatorSetService = { - typeName: TYPE_NAME, - method: "UndelegateFromRebalancedValidatorSet", - Request: MsgUndelegateFromRebalancedValidatorSet, - Response: MsgUndelegateFromRebalancedValidatorSetResponse, -} as const; - -/** - * RedelegateValidatorSet takes the existing validator set and redelegates to - * a new set. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Msg.RedelegateValidatorSet - */ -export const MsgRedelegateValidatorSetService = { - typeName: TYPE_NAME, - method: "RedelegateValidatorSet", - Request: MsgRedelegateValidatorSet, - Response: MsgRedelegateValidatorSetResponse, -} as const; - -/** - * WithdrawDelegationRewards allows users to claim rewards from the - * validator-set. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Msg.WithdrawDelegationRewards - */ -export const MsgWithdrawDelegationRewardsService = { - typeName: TYPE_NAME, - method: "WithdrawDelegationRewards", - Request: MsgWithdrawDelegationRewards, - Response: MsgWithdrawDelegationRewardsResponse, -} as const; - -/** - * DelegateBondedTokens allows users to break the lockup bond and delegate - * osmo tokens to a predefined validator-set. - * - * @generated from rpc osmosis.valsetpref.v1beta1.Msg.DelegateBondedTokens - */ -export const MsgDelegateBondedTokensService = { - typeName: TYPE_NAME, - method: "DelegateBondedTokens", - Request: MsgDelegateBondedTokens, - Response: MsgDelegateBondedTokensResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_pb.ts b/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_pb.ts deleted file mode 100644 index 4fc9cec..0000000 --- a/libs/es-client/src/protobufs/osmosis/valsetpref/v1beta1/tx_pb.ts +++ /dev/null @@ -1,573 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file osmosis/valsetpref/v1beta1/tx.proto (package osmosis.valsetpref.v1beta1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { ValidatorPreference } from "./state_pb.js"; -import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; - -/** - * MsgCreateValidatorSetPreference is a list that holds validator-set. - * - * @generated from message osmosis.valsetpref.v1beta1.MsgSetValidatorSetPreference - */ -export class MsgSetValidatorSetPreference extends Message { - /** - * delegator is the user who is trying to create a validator-set. - * - * @generated from field: string delegator = 1; - */ - delegator = ""; - - /** - * list of {valAddr, weight} to delegate to - * - * @generated from field: repeated osmosis.valsetpref.v1beta1.ValidatorPreference preferences = 2; - */ - preferences: ValidatorPreference[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgSetValidatorSetPreference"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "preferences", kind: "message", T: ValidatorPreference, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetValidatorSetPreference { - return new MsgSetValidatorSetPreference().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetValidatorSetPreference { - return new MsgSetValidatorSetPreference().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetValidatorSetPreference { - return new MsgSetValidatorSetPreference().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetValidatorSetPreference | PlainMessage | undefined, b: MsgSetValidatorSetPreference | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetValidatorSetPreference, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgSetValidatorSetPreferenceResponse - */ -export class MsgSetValidatorSetPreferenceResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgSetValidatorSetPreferenceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetValidatorSetPreferenceResponse { - return new MsgSetValidatorSetPreferenceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetValidatorSetPreferenceResponse { - return new MsgSetValidatorSetPreferenceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgSetValidatorSetPreferenceResponse { - return new MsgSetValidatorSetPreferenceResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgSetValidatorSetPreferenceResponse | PlainMessage | undefined, b: MsgSetValidatorSetPreferenceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgSetValidatorSetPreferenceResponse, a, b); - } -} - -/** - * MsgDelegateToValidatorSet allows users to delegate to an existing - * validator-set - * - * @generated from message osmosis.valsetpref.v1beta1.MsgDelegateToValidatorSet - */ -export class MsgDelegateToValidatorSet extends Message { - /** - * delegator is the user who is trying to delegate. - * - * @generated from field: string delegator = 1; - */ - delegator = ""; - - /** - * the amount of tokens the user is trying to delegate. - * For ex: delegate 10osmo with validator-set {ValA -> 0.5, ValB -> 0.3, ValC - * -> 0.2} our staking logic would attempt to delegate 5osmo to A , 3osmo to - * B, 2osmo to C. - * - * @generated from field: cosmos.base.v1beta1.Coin coin = 2; - */ - coin?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgDelegateToValidatorSet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coin", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateToValidatorSet { - return new MsgDelegateToValidatorSet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateToValidatorSet { - return new MsgDelegateToValidatorSet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDelegateToValidatorSet { - return new MsgDelegateToValidatorSet().fromJsonString(jsonString, options); - } - - static equals(a: MsgDelegateToValidatorSet | PlainMessage | undefined, b: MsgDelegateToValidatorSet | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDelegateToValidatorSet, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgDelegateToValidatorSetResponse - */ -export class MsgDelegateToValidatorSetResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgDelegateToValidatorSetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateToValidatorSetResponse { - return new MsgDelegateToValidatorSetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateToValidatorSetResponse { - return new MsgDelegateToValidatorSetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDelegateToValidatorSetResponse { - return new MsgDelegateToValidatorSetResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgDelegateToValidatorSetResponse | PlainMessage | undefined, b: MsgDelegateToValidatorSetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDelegateToValidatorSetResponse, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgUndelegateFromValidatorSet - */ -export class MsgUndelegateFromValidatorSet extends Message { - /** - * delegator is the user who is trying to undelegate. - * - * @generated from field: string delegator = 1; - */ - delegator = ""; - - /** - * the amount the user wants to undelegate - * For ex: Undelegate 10osmo with validator-set {ValA -> 0.5, ValB -> 0.3, - * ValC - * -> 0.2} our undelegate logic would attempt to undelegate 5osmo from A , - * 3osmo from B, 2osmo from C - * - * @generated from field: cosmos.base.v1beta1.Coin coin = 3; - */ - coin?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgUndelegateFromValidatorSet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "coin", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateFromValidatorSet { - return new MsgUndelegateFromValidatorSet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateFromValidatorSet { - return new MsgUndelegateFromValidatorSet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateFromValidatorSet { - return new MsgUndelegateFromValidatorSet().fromJsonString(jsonString, options); - } - - static equals(a: MsgUndelegateFromValidatorSet | PlainMessage | undefined, b: MsgUndelegateFromValidatorSet | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUndelegateFromValidatorSet, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgUndelegateFromValidatorSetResponse - */ -export class MsgUndelegateFromValidatorSetResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgUndelegateFromValidatorSetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateFromValidatorSetResponse { - return new MsgUndelegateFromValidatorSetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateFromValidatorSetResponse { - return new MsgUndelegateFromValidatorSetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateFromValidatorSetResponse { - return new MsgUndelegateFromValidatorSetResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUndelegateFromValidatorSetResponse | PlainMessage | undefined, b: MsgUndelegateFromValidatorSetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUndelegateFromValidatorSetResponse, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgUndelegateFromRebalancedValidatorSet - */ -export class MsgUndelegateFromRebalancedValidatorSet extends Message { - /** - * delegator is the user who is trying to undelegate. - * - * @generated from field: string delegator = 1; - */ - delegator = ""; - - /** - * the amount the user wants to undelegate - * For ex: Undelegate 50 osmo with validator-set {ValA -> 0.5, ValB -> 0.5} - * Our undelegate logic would first check the current delegation balance. - * If the user has 90 osmo delegated to ValA and 10 osmo delegated to ValB, - * the rebalanced validator set would be {ValA -> 0.9, ValB -> 0.1} - * So now the 45 osmo would be undelegated from ValA and 5 osmo would be - * undelegated from ValB. - * - * @generated from field: cosmos.base.v1beta1.Coin coin = 2; - */ - coin?: Coin; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgUndelegateFromRebalancedValidatorSet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coin", kind: "message", T: Coin }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateFromRebalancedValidatorSet { - return new MsgUndelegateFromRebalancedValidatorSet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateFromRebalancedValidatorSet { - return new MsgUndelegateFromRebalancedValidatorSet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateFromRebalancedValidatorSet { - return new MsgUndelegateFromRebalancedValidatorSet().fromJsonString(jsonString, options); - } - - static equals(a: MsgUndelegateFromRebalancedValidatorSet | PlainMessage | undefined, b: MsgUndelegateFromRebalancedValidatorSet | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUndelegateFromRebalancedValidatorSet, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgUndelegateFromRebalancedValidatorSetResponse - */ -export class MsgUndelegateFromRebalancedValidatorSetResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgUndelegateFromRebalancedValidatorSetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUndelegateFromRebalancedValidatorSetResponse { - return new MsgUndelegateFromRebalancedValidatorSetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUndelegateFromRebalancedValidatorSetResponse { - return new MsgUndelegateFromRebalancedValidatorSetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUndelegateFromRebalancedValidatorSetResponse { - return new MsgUndelegateFromRebalancedValidatorSetResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUndelegateFromRebalancedValidatorSetResponse | PlainMessage | undefined, b: MsgUndelegateFromRebalancedValidatorSetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUndelegateFromRebalancedValidatorSetResponse, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgRedelegateValidatorSet - */ -export class MsgRedelegateValidatorSet extends Message { - /** - * delegator is the user who is trying to create a validator-set. - * - * @generated from field: string delegator = 1; - */ - delegator = ""; - - /** - * list of {valAddr, weight} to delegate to - * - * @generated from field: repeated osmosis.valsetpref.v1beta1.ValidatorPreference preferences = 2; - */ - preferences: ValidatorPreference[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgRedelegateValidatorSet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "preferences", kind: "message", T: ValidatorPreference, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedelegateValidatorSet { - return new MsgRedelegateValidatorSet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedelegateValidatorSet { - return new MsgRedelegateValidatorSet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRedelegateValidatorSet { - return new MsgRedelegateValidatorSet().fromJsonString(jsonString, options); - } - - static equals(a: MsgRedelegateValidatorSet | PlainMessage | undefined, b: MsgRedelegateValidatorSet | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRedelegateValidatorSet, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgRedelegateValidatorSetResponse - */ -export class MsgRedelegateValidatorSetResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgRedelegateValidatorSetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRedelegateValidatorSetResponse { - return new MsgRedelegateValidatorSetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRedelegateValidatorSetResponse { - return new MsgRedelegateValidatorSetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRedelegateValidatorSetResponse { - return new MsgRedelegateValidatorSetResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRedelegateValidatorSetResponse | PlainMessage | undefined, b: MsgRedelegateValidatorSetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRedelegateValidatorSetResponse, a, b); - } -} - -/** - * MsgWithdrawDelegationRewards allows user to claim staking rewards from the - * validator set. - * - * @generated from message osmosis.valsetpref.v1beta1.MsgWithdrawDelegationRewards - */ -export class MsgWithdrawDelegationRewards extends Message { - /** - * delegator is the user who is trying to claim staking rewards. - * - * @generated from field: string delegator = 1; - */ - delegator = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgWithdrawDelegationRewards"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawDelegationRewards { - return new MsgWithdrawDelegationRewards().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawDelegationRewards { - return new MsgWithdrawDelegationRewards().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawDelegationRewards { - return new MsgWithdrawDelegationRewards().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawDelegationRewards | PlainMessage | undefined, b: MsgWithdrawDelegationRewards | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawDelegationRewards, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgWithdrawDelegationRewardsResponse - */ -export class MsgWithdrawDelegationRewardsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgWithdrawDelegationRewardsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgWithdrawDelegationRewardsResponse { - return new MsgWithdrawDelegationRewardsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgWithdrawDelegationRewardsResponse { - return new MsgWithdrawDelegationRewardsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgWithdrawDelegationRewardsResponse { - return new MsgWithdrawDelegationRewardsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgWithdrawDelegationRewardsResponse | PlainMessage | undefined, b: MsgWithdrawDelegationRewardsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgWithdrawDelegationRewardsResponse, a, b); - } -} - -/** - * MsgDelegateBondedTokens breaks bonded lockup (by ID) of osmo, of - * length <= 2 weeks and takes all that osmo and delegates according to - * delegator's current validator set preference. - * - * @generated from message osmosis.valsetpref.v1beta1.MsgDelegateBondedTokens - */ -export class MsgDelegateBondedTokens extends Message { - /** - * delegator is the user who is trying to force unbond osmo and delegate. - * - * @generated from field: string delegator = 1; - */ - delegator = ""; - - /** - * lockup id of osmo in the pool - * - * @generated from field: uint64 lockID = 2; - */ - lockID = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgDelegateBondedTokens"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "delegator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "lockID", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateBondedTokens { - return new MsgDelegateBondedTokens().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateBondedTokens { - return new MsgDelegateBondedTokens().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDelegateBondedTokens { - return new MsgDelegateBondedTokens().fromJsonString(jsonString, options); - } - - static equals(a: MsgDelegateBondedTokens | PlainMessage | undefined, b: MsgDelegateBondedTokens | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDelegateBondedTokens, a, b); - } -} - -/** - * @generated from message osmosis.valsetpref.v1beta1.MsgDelegateBondedTokensResponse - */ -export class MsgDelegateBondedTokensResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "osmosis.valsetpref.v1beta1.MsgDelegateBondedTokensResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgDelegateBondedTokensResponse { - return new MsgDelegateBondedTokensResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgDelegateBondedTokensResponse { - return new MsgDelegateBondedTokensResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgDelegateBondedTokensResponse { - return new MsgDelegateBondedTokensResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgDelegateBondedTokensResponse | PlainMessage | undefined, b: MsgDelegateBondedTokensResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgDelegateBondedTokensResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/svc/module/v1/module_pb.ts b/libs/es-client/src/protobufs/svc/module/v1/module_pb.ts deleted file mode 100644 index df8abc4..0000000 --- a/libs/es-client/src/protobufs/svc/module/v1/module_pb.ts +++ /dev/null @@ -1,42 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file svc/module/v1/module.proto (package svc.module.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Module is the app config object of the module. - * Learn more: https://docs.cosmos.network/main/building-modules/depinject - * - * @generated from message svc.module.v1.Module - */ -export class Module extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.module.v1.Module"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Module { - return new Module().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Module { - return new Module().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Module { - return new Module().fromJsonString(jsonString, options); - } - - static equals(a: Module | PlainMessage | undefined, b: Module | PlainMessage | undefined): boolean { - return proto3.util.equals(Module, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/svc/v1/genesis_pb.ts b/libs/es-client/src/protobufs/svc/v1/genesis_pb.ts deleted file mode 100644 index 0a77193..0000000 --- a/libs/es-client/src/protobufs/svc/v1/genesis_pb.ts +++ /dev/null @@ -1,249 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file svc/v1/genesis.proto (package svc.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * GenesisState defines the module genesis state - * - * @generated from message svc.v1.GenesisState - */ -export class GenesisState extends Message { - /** - * Params defines all the parameters of the module. - * - * @generated from field: svc.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.GenesisState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { - return new GenesisState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { - return new GenesisState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GenesisState { - return new GenesisState().fromJsonString(jsonString, options); - } - - static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { - return proto3.util.equals(GenesisState, a, b); - } -} - -/** - * Params defines the set of module parameters. - * - * @generated from message svc.v1.Params - */ -export class Params extends Message { - /** - * @generated from field: svc.v1.ServiceCategories categories = 1; - */ - categories?: ServiceCategories; - - /** - * @generated from field: svc.v1.ServiceTypes types = 2; - */ - types?: ServiceTypes; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.Params"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "categories", kind: "message", T: ServiceCategories }, - { no: 2, name: "types", kind: "message", T: ServiceTypes }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Params { - return new Params().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Params { - return new Params().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Params { - return new Params().fromJsonString(jsonString, options); - } - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { - return proto3.util.equals(Params, a, b); - } -} - -/** - * @generated from message svc.v1.ServiceCategories - */ -export class ServiceCategories extends Message { - /** - * @generated from field: repeated string categories = 1; - */ - categories: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.ServiceCategories"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "categories", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServiceCategories { - return new ServiceCategories().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServiceCategories { - return new ServiceCategories().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServiceCategories { - return new ServiceCategories().fromJsonString(jsonString, options); - } - - static equals(a: ServiceCategories | PlainMessage | undefined, b: ServiceCategories | PlainMessage | undefined): boolean { - return proto3.util.equals(ServiceCategories, a, b); - } -} - -/** - * @generated from message svc.v1.ServiceTypes - */ -export class ServiceTypes extends Message { - /** - * @generated from field: repeated string types = 1; - */ - types: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.ServiceTypes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ServiceTypes { - return new ServiceTypes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ServiceTypes { - return new ServiceTypes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ServiceTypes { - return new ServiceTypes().fromJsonString(jsonString, options); - } - - static equals(a: ServiceTypes | PlainMessage | undefined, b: ServiceTypes | PlainMessage | undefined): boolean { - return proto3.util.equals(ServiceTypes, a, b); - } -} - -/** - * Service defines a Decentralized Service on the Sonr Blockchain - * - * @generated from message svc.v1.Service - */ -export class Service extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string authority = 2; - */ - authority = ""; - - /** - * @generated from field: string origin = 3; - */ - origin = ""; - - /** - * @generated from field: string name = 4; - */ - name = ""; - - /** - * @generated from field: string description = 5; - */ - description = ""; - - /** - * @generated from field: string category = 6; - */ - category = ""; - - /** - * @generated from field: repeated string tags = 7; - */ - tags: string[] = []; - - /** - * @generated from field: int64 expiry_height = 8; - */ - expiryHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.Service"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "category", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 8, name: "expiry_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Service { - return new Service().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Service { - return new Service().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Service { - return new Service().fromJsonString(jsonString, options); - } - - static equals(a: Service | PlainMessage | undefined, b: Service | PlainMessage | undefined): boolean { - return proto3.util.equals(Service, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/svc/v1/query_cosmes.ts b/libs/es-client/src/protobufs/svc/v1/query_cosmes.ts deleted file mode 100644 index 21fea55..0000000 --- a/libs/es-client/src/protobufs/svc/v1/query_cosmes.ts +++ /dev/null @@ -1,20 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file svc/v1/query.proto (package svc.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { QueryParamsRequest, QueryParamsResponse } from "./query_pb.js"; - -const TYPE_NAME = "svc.v1.Query"; - -/** - * Params queries all parameters of the module. - * - * @generated from rpc svc.v1.Query.Params - */ -export const QueryParamsService = { - typeName: TYPE_NAME, - method: "Params", - Request: QueryParamsRequest, - Response: QueryParamsResponse, -} as const; diff --git a/libs/es-client/src/protobufs/svc/v1/query_pb.ts b/libs/es-client/src/protobufs/svc/v1/query_pb.ts deleted file mode 100644 index 87d8fbe..0000000 --- a/libs/es-client/src/protobufs/svc/v1/query_pb.ts +++ /dev/null @@ -1,83 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file svc/v1/query.proto (package svc.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params } from "./genesis_pb.js"; - -/** - * QueryParamsRequest is the request type for the Query/Params RPC method. - * - * @generated from message svc.v1.QueryParamsRequest - */ -export class QueryParamsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.QueryParamsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { - return new QueryParamsRequest().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsRequest, a, b); - } -} - -/** - * QueryParamsResponse is the response type for the Query/Params RPC method. - * - * @generated from message svc.v1.QueryParamsResponse - */ -export class QueryParamsResponse extends Message { - /** - * params defines the parameters of the module. - * - * @generated from field: svc.v1.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.QueryParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { - return new QueryParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(QueryParamsResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/svc/v1/state_pb.ts b/libs/es-client/src/protobufs/svc/v1/state_pb.ts deleted file mode 100644 index 4e15128..0000000 --- a/libs/es-client/src/protobufs/svc/v1/state_pb.ts +++ /dev/null @@ -1,146 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file svc/v1/state.proto (package svc.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message svc.v1.Domain - */ -export class Domain extends Message { - /** - * @generated from field: uint64 id = 1; - */ - id = protoInt64.zero; - - /** - * @generated from field: string origin = 2; - */ - origin = ""; - - /** - * @generated from field: string name = 3; - */ - name = ""; - - /** - * @generated from field: string description = 4; - */ - description = ""; - - /** - * @generated from field: string category = 5; - */ - category = ""; - - /** - * @generated from field: string icon = 6; - */ - icon = ""; - - /** - * @generated from field: repeated string tags = 7; - */ - tags: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.Domain"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "category", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Domain { - return new Domain().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Domain { - return new Domain().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Domain { - return new Domain().fromJsonString(jsonString, options); - } - - static equals(a: Domain | PlainMessage | undefined, b: Domain | PlainMessage | undefined): boolean { - return proto3.util.equals(Domain, a, b); - } -} - -/** - * Metadata represents a DID alias - * - * @generated from message svc.v1.Metadata - */ -export class Metadata extends Message { - /** - * The unique identifier of the alias - * - * @generated from field: string id = 1; - */ - id = ""; - - /** - * The alias of the DID - * - * @generated from field: string subject = 2; - */ - subject = ""; - - /** - * Origin of the alias - * - * @generated from field: string origin = 3; - */ - origin = ""; - - /** - * Controller of the alias - * - * @generated from field: string controller = 4; - */ - controller = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.Metadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { - return new Metadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { - return new Metadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Metadata { - return new Metadata().fromJsonString(jsonString, options); - } - - static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { - return proto3.util.equals(Metadata, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/svc/v1/tx_cosmes.ts b/libs/es-client/src/protobufs/svc/v1/tx_cosmes.ts deleted file mode 100644 index afc1f01..0000000 --- a/libs/es-client/src/protobufs/svc/v1/tx_cosmes.ts +++ /dev/null @@ -1,36 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file svc/v1/tx.proto (package svc.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { MsgRegisterService, MsgRegisterServiceResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx_pb.js"; - -const TYPE_NAME = "svc.v1.Msg"; - -/** - * UpdateParams defines a governance operation for updating the parameters. - * - * Since: cosmos-sdk 0.47 - * - * @generated from rpc svc.v1.Msg.UpdateParams - */ -export const MsgUpdateParamsService = { - typeName: TYPE_NAME, - method: "UpdateParams", - Request: MsgUpdateParams, - Response: MsgUpdateParamsResponse, -} as const; - -/** - * RegisterService initializes a Service with a given permission scope and - * URI. The domain must have a valid TXT record containing the public key. - * - * @generated from rpc svc.v1.Msg.RegisterService - */ -export const MsgRegisterServiceService = { - typeName: TYPE_NAME, - method: "RegisterService", - Request: MsgRegisterService, - Response: MsgRegisterServiceResponse, -} as const; - diff --git a/libs/es-client/src/protobufs/svc/v1/tx_pb.ts b/libs/es-client/src/protobufs/svc/v1/tx_pb.ts deleted file mode 100644 index 2bf6118..0000000 --- a/libs/es-client/src/protobufs/svc/v1/tx_pb.ts +++ /dev/null @@ -1,193 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file svc/v1/tx.proto (package svc.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Params, Service } from "./genesis_pb.js"; - -/** - * MsgUpdateParams is the Msg/UpdateParams request type. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message svc.v1.MsgUpdateParams - */ -export class MsgUpdateParams extends Message { - /** - * authority is the address of the governance account. - * - * @generated from field: string authority = 1; - */ - authority = ""; - - /** - * params defines the parameters to update. - * - * NOTE: All parameters must be supplied. - * - * @generated from field: svc.v1.Params params = 2; - */ - params?: Params; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.MsgUpdateParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "params", kind: "message", T: Params }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { - return new MsgUpdateParams().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParams, a, b); - } -} - -/** - * MsgUpdateParamsResponse defines the response structure for executing a - * MsgUpdateParams message. - * - * Since: cosmos-sdk 0.47 - * - * @generated from message svc.v1.MsgUpdateParamsResponse - */ -export class MsgUpdateParamsResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.MsgUpdateParamsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { - return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgUpdateParamsResponse, a, b); - } -} - -/** - * MsgRegisterService is the message type for the RegisterService RPC. - * - * @generated from message svc.v1.MsgRegisterService - */ -export class MsgRegisterService extends Message { - /** - * authority is the address of the governance account. - * - * @generated from field: string controller = 1; - */ - controller = ""; - - /** - * origin is the origin of the request in wildcard form. Requires valid TXT - * record in DNS. - * - * @generated from field: svc.v1.Service service = 2; - */ - service?: Service; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.MsgRegisterService"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "controller", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "service", kind: "message", T: Service }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterService { - return new MsgRegisterService().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterService { - return new MsgRegisterService().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterService { - return new MsgRegisterService().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterService | PlainMessage | undefined, b: MsgRegisterService | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterService, a, b); - } -} - -/** - * MsgRegisterServiceResponse is the response type for the RegisterService RPC. - * - * @generated from message svc.v1.MsgRegisterServiceResponse - */ -export class MsgRegisterServiceResponse extends Message { - /** - * @generated from field: bool success = 1; - */ - success = false; - - /** - * @generated from field: string did = 2; - */ - did = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "svc.v1.MsgRegisterServiceResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRegisterServiceResponse { - return new MsgRegisterServiceResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRegisterServiceResponse { - return new MsgRegisterServiceResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MsgRegisterServiceResponse { - return new MsgRegisterServiceResponse().fromJsonString(jsonString, options); - } - - static equals(a: MsgRegisterServiceResponse | PlainMessage | undefined, b: MsgRegisterServiceResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(MsgRegisterServiceResponse, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/abci/types_cosmes.ts b/libs/es-client/src/protobufs/tendermint/abci/types_cosmes.ts deleted file mode 100644 index 1fe91f8..0000000 --- a/libs/es-client/src/protobufs/tendermint/abci/types_cosmes.ts +++ /dev/null @@ -1,169 +0,0 @@ -// @generated by protoc-gen-@onsonr/es v0.0.1 with parameter "target=ts" -// @generated from file tendermint/abci/types.proto (package tendermint.abci, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { RequestApplySnapshotChunk, RequestCheckTx, RequestCommit, RequestEcho, RequestExtendVote, RequestFinalizeBlock, RequestFlush, RequestInfo, RequestInitChain, RequestListSnapshots, RequestLoadSnapshotChunk, RequestOfferSnapshot, RequestPrepareProposal, RequestProcessProposal, RequestQuery, RequestVerifyVoteExtension, ResponseApplySnapshotChunk, ResponseCheckTx, ResponseCommit, ResponseEcho, ResponseExtendVote, ResponseFinalizeBlock, ResponseFlush, ResponseInfo, ResponseInitChain, ResponseListSnapshots, ResponseLoadSnapshotChunk, ResponseOfferSnapshot, ResponsePrepareProposal, ResponseProcessProposal, ResponseQuery, ResponseVerifyVoteExtension } from "./types_pb.js"; - -const TYPE_NAME = "tendermint.abci.ABCI"; - -/** - * @generated from rpc tendermint.abci.ABCI.Echo - */ -export const ABCIEchoService = { - typeName: TYPE_NAME, - method: "Echo", - Request: RequestEcho, - Response: ResponseEcho, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.Flush - */ -export const ABCIFlushService = { - typeName: TYPE_NAME, - method: "Flush", - Request: RequestFlush, - Response: ResponseFlush, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.Info - */ -export const ABCIInfoService = { - typeName: TYPE_NAME, - method: "Info", - Request: RequestInfo, - Response: ResponseInfo, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.CheckTx - */ -export const ABCICheckTxService = { - typeName: TYPE_NAME, - method: "CheckTx", - Request: RequestCheckTx, - Response: ResponseCheckTx, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.Query - */ -export const ABCIQueryService = { - typeName: TYPE_NAME, - method: "Query", - Request: RequestQuery, - Response: ResponseQuery, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.Commit - */ -export const ABCICommitService = { - typeName: TYPE_NAME, - method: "Commit", - Request: RequestCommit, - Response: ResponseCommit, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.InitChain - */ -export const ABCIInitChainService = { - typeName: TYPE_NAME, - method: "InitChain", - Request: RequestInitChain, - Response: ResponseInitChain, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.ListSnapshots - */ -export const ABCIListSnapshotsService = { - typeName: TYPE_NAME, - method: "ListSnapshots", - Request: RequestListSnapshots, - Response: ResponseListSnapshots, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.OfferSnapshot - */ -export const ABCIOfferSnapshotService = { - typeName: TYPE_NAME, - method: "OfferSnapshot", - Request: RequestOfferSnapshot, - Response: ResponseOfferSnapshot, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.LoadSnapshotChunk - */ -export const ABCILoadSnapshotChunkService = { - typeName: TYPE_NAME, - method: "LoadSnapshotChunk", - Request: RequestLoadSnapshotChunk, - Response: ResponseLoadSnapshotChunk, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.ApplySnapshotChunk - */ -export const ABCIApplySnapshotChunkService = { - typeName: TYPE_NAME, - method: "ApplySnapshotChunk", - Request: RequestApplySnapshotChunk, - Response: ResponseApplySnapshotChunk, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.PrepareProposal - */ -export const ABCIPrepareProposalService = { - typeName: TYPE_NAME, - method: "PrepareProposal", - Request: RequestPrepareProposal, - Response: ResponsePrepareProposal, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.ProcessProposal - */ -export const ABCIProcessProposalService = { - typeName: TYPE_NAME, - method: "ProcessProposal", - Request: RequestProcessProposal, - Response: ResponseProcessProposal, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.ExtendVote - */ -export const ABCIExtendVoteService = { - typeName: TYPE_NAME, - method: "ExtendVote", - Request: RequestExtendVote, - Response: ResponseExtendVote, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.VerifyVoteExtension - */ -export const ABCIVerifyVoteExtensionService = { - typeName: TYPE_NAME, - method: "VerifyVoteExtension", - Request: RequestVerifyVoteExtension, - Response: ResponseVerifyVoteExtension, -} as const; - -/** - * @generated from rpc tendermint.abci.ABCI.FinalizeBlock - */ -export const ABCIFinalizeBlockService = { - typeName: TYPE_NAME, - method: "FinalizeBlock", - Request: RequestFinalizeBlock, - Response: ResponseFinalizeBlock, -} as const; - diff --git a/libs/es-client/src/protobufs/tendermint/abci/types_pb.ts b/libs/es-client/src/protobufs/tendermint/abci/types_pb.ts deleted file mode 100644 index 06e40de..0000000 --- a/libs/es-client/src/protobufs/tendermint/abci/types_pb.ts +++ /dev/null @@ -1,2932 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/abci/types.proto (package tendermint.abci, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { ConsensusParams } from "../types/params_pb.js"; -import { ProofOps } from "../crypto/proof_pb.js"; -import { PublicKey } from "../crypto/keys_pb.js"; -import { BlockIDFlag } from "../types/validator_pb.js"; - -/** - * @generated from enum tendermint.abci.CheckTxType - */ -export enum CheckTxType { - /** - * @generated from enum value: NEW = 0; - */ - NEW = 0, - - /** - * @generated from enum value: RECHECK = 1; - */ - RECHECK = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(CheckTxType) -proto3.util.setEnumType(CheckTxType, "tendermint.abci.CheckTxType", [ - { no: 0, name: "NEW" }, - { no: 1, name: "RECHECK" }, -]); - -/** - * @generated from enum tendermint.abci.MisbehaviorType - */ -export enum MisbehaviorType { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: DUPLICATE_VOTE = 1; - */ - DUPLICATE_VOTE = 1, - - /** - * @generated from enum value: LIGHT_CLIENT_ATTACK = 2; - */ - LIGHT_CLIENT_ATTACK = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(MisbehaviorType) -proto3.util.setEnumType(MisbehaviorType, "tendermint.abci.MisbehaviorType", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "DUPLICATE_VOTE" }, - { no: 2, name: "LIGHT_CLIENT_ATTACK" }, -]); - -/** - * @generated from message tendermint.abci.Request - */ -export class Request extends Message { - /** - * @generated from oneof tendermint.abci.Request.value - */ - value: { - /** - * @generated from field: tendermint.abci.RequestEcho echo = 1; - */ - value: RequestEcho; - case: "echo"; - } | { - /** - * @generated from field: tendermint.abci.RequestFlush flush = 2; - */ - value: RequestFlush; - case: "flush"; - } | { - /** - * @generated from field: tendermint.abci.RequestInfo info = 3; - */ - value: RequestInfo; - case: "info"; - } | { - /** - * @generated from field: tendermint.abci.RequestInitChain init_chain = 5; - */ - value: RequestInitChain; - case: "initChain"; - } | { - /** - * @generated from field: tendermint.abci.RequestQuery query = 6; - */ - value: RequestQuery; - case: "query"; - } | { - /** - * @generated from field: tendermint.abci.RequestCheckTx check_tx = 8; - */ - value: RequestCheckTx; - case: "checkTx"; - } | { - /** - * @generated from field: tendermint.abci.RequestCommit commit = 11; - */ - value: RequestCommit; - case: "commit"; - } | { - /** - * @generated from field: tendermint.abci.RequestListSnapshots list_snapshots = 12; - */ - value: RequestListSnapshots; - case: "listSnapshots"; - } | { - /** - * @generated from field: tendermint.abci.RequestOfferSnapshot offer_snapshot = 13; - */ - value: RequestOfferSnapshot; - case: "offerSnapshot"; - } | { - /** - * @generated from field: tendermint.abci.RequestLoadSnapshotChunk load_snapshot_chunk = 14; - */ - value: RequestLoadSnapshotChunk; - case: "loadSnapshotChunk"; - } | { - /** - * @generated from field: tendermint.abci.RequestApplySnapshotChunk apply_snapshot_chunk = 15; - */ - value: RequestApplySnapshotChunk; - case: "applySnapshotChunk"; - } | { - /** - * @generated from field: tendermint.abci.RequestPrepareProposal prepare_proposal = 16; - */ - value: RequestPrepareProposal; - case: "prepareProposal"; - } | { - /** - * @generated from field: tendermint.abci.RequestProcessProposal process_proposal = 17; - */ - value: RequestProcessProposal; - case: "processProposal"; - } | { - /** - * @generated from field: tendermint.abci.RequestExtendVote extend_vote = 18; - */ - value: RequestExtendVote; - case: "extendVote"; - } | { - /** - * @generated from field: tendermint.abci.RequestVerifyVoteExtension verify_vote_extension = 19; - */ - value: RequestVerifyVoteExtension; - case: "verifyVoteExtension"; - } | { - /** - * @generated from field: tendermint.abci.RequestFinalizeBlock finalize_block = 20; - */ - value: RequestFinalizeBlock; - case: "finalizeBlock"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.Request"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "echo", kind: "message", T: RequestEcho, oneof: "value" }, - { no: 2, name: "flush", kind: "message", T: RequestFlush, oneof: "value" }, - { no: 3, name: "info", kind: "message", T: RequestInfo, oneof: "value" }, - { no: 5, name: "init_chain", kind: "message", T: RequestInitChain, oneof: "value" }, - { no: 6, name: "query", kind: "message", T: RequestQuery, oneof: "value" }, - { no: 8, name: "check_tx", kind: "message", T: RequestCheckTx, oneof: "value" }, - { no: 11, name: "commit", kind: "message", T: RequestCommit, oneof: "value" }, - { no: 12, name: "list_snapshots", kind: "message", T: RequestListSnapshots, oneof: "value" }, - { no: 13, name: "offer_snapshot", kind: "message", T: RequestOfferSnapshot, oneof: "value" }, - { no: 14, name: "load_snapshot_chunk", kind: "message", T: RequestLoadSnapshotChunk, oneof: "value" }, - { no: 15, name: "apply_snapshot_chunk", kind: "message", T: RequestApplySnapshotChunk, oneof: "value" }, - { no: 16, name: "prepare_proposal", kind: "message", T: RequestPrepareProposal, oneof: "value" }, - { no: 17, name: "process_proposal", kind: "message", T: RequestProcessProposal, oneof: "value" }, - { no: 18, name: "extend_vote", kind: "message", T: RequestExtendVote, oneof: "value" }, - { no: 19, name: "verify_vote_extension", kind: "message", T: RequestVerifyVoteExtension, oneof: "value" }, - { no: 20, name: "finalize_block", kind: "message", T: RequestFinalizeBlock, oneof: "value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Request { - return new Request().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Request { - return new Request().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Request { - return new Request().fromJsonString(jsonString, options); - } - - static equals(a: Request | PlainMessage | undefined, b: Request | PlainMessage | undefined): boolean { - return proto3.util.equals(Request, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestEcho - */ -export class RequestEcho extends Message { - /** - * @generated from field: string message = 1; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestEcho"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestEcho { - return new RequestEcho().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestEcho { - return new RequestEcho().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestEcho { - return new RequestEcho().fromJsonString(jsonString, options); - } - - static equals(a: RequestEcho | PlainMessage | undefined, b: RequestEcho | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestEcho, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestFlush - */ -export class RequestFlush extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestFlush"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestFlush { - return new RequestFlush().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestFlush { - return new RequestFlush().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestFlush { - return new RequestFlush().fromJsonString(jsonString, options); - } - - static equals(a: RequestFlush | PlainMessage | undefined, b: RequestFlush | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestFlush, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestInfo - */ -export class RequestInfo extends Message { - /** - * @generated from field: string version = 1; - */ - version = ""; - - /** - * @generated from field: uint64 block_version = 2; - */ - blockVersion = protoInt64.zero; - - /** - * @generated from field: uint64 p2p_version = 3; - */ - p2pVersion = protoInt64.zero; - - /** - * @generated from field: string abci_version = 4; - */ - abciVersion = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "block_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "p2p_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "abci_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestInfo { - return new RequestInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestInfo { - return new RequestInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestInfo { - return new RequestInfo().fromJsonString(jsonString, options); - } - - static equals(a: RequestInfo | PlainMessage | undefined, b: RequestInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestInfo, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestInitChain - */ -export class RequestInitChain extends Message { - /** - * @generated from field: google.protobuf.Timestamp time = 1; - */ - time?: Timestamp; - - /** - * @generated from field: string chain_id = 2; - */ - chainId = ""; - - /** - * @generated from field: tendermint.types.ConsensusParams consensus_params = 3; - */ - consensusParams?: ConsensusParams; - - /** - * @generated from field: repeated tendermint.abci.ValidatorUpdate validators = 4; - */ - validators: ValidatorUpdate[] = []; - - /** - * @generated from field: bytes app_state_bytes = 5; - */ - appStateBytes = new Uint8Array(0); - - /** - * @generated from field: int64 initial_height = 6; - */ - initialHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestInitChain"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "time", kind: "message", T: Timestamp }, - { no: 2, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "consensus_params", kind: "message", T: ConsensusParams }, - { no: 4, name: "validators", kind: "message", T: ValidatorUpdate, repeated: true }, - { no: 5, name: "app_state_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "initial_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestInitChain { - return new RequestInitChain().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestInitChain { - return new RequestInitChain().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestInitChain { - return new RequestInitChain().fromJsonString(jsonString, options); - } - - static equals(a: RequestInitChain | PlainMessage | undefined, b: RequestInitChain | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestInitChain, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestQuery - */ -export class RequestQuery extends Message { - /** - * @generated from field: bytes data = 1; - */ - data = new Uint8Array(0); - - /** - * @generated from field: string path = 2; - */ - path = ""; - - /** - * @generated from field: int64 height = 3; - */ - height = protoInt64.zero; - - /** - * @generated from field: bool prove = 4; - */ - prove = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "prove", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestQuery { - return new RequestQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestQuery { - return new RequestQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestQuery { - return new RequestQuery().fromJsonString(jsonString, options); - } - - static equals(a: RequestQuery | PlainMessage | undefined, b: RequestQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestQuery, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestCheckTx - */ -export class RequestCheckTx extends Message { - /** - * @generated from field: bytes tx = 1; - */ - tx = new Uint8Array(0); - - /** - * @generated from field: tendermint.abci.CheckTxType type = 2; - */ - type = CheckTxType.NEW; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestCheckTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(CheckTxType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestCheckTx { - return new RequestCheckTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestCheckTx { - return new RequestCheckTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestCheckTx { - return new RequestCheckTx().fromJsonString(jsonString, options); - } - - static equals(a: RequestCheckTx | PlainMessage | undefined, b: RequestCheckTx | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestCheckTx, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestCommit - */ -export class RequestCommit extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestCommit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestCommit { - return new RequestCommit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestCommit { - return new RequestCommit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestCommit { - return new RequestCommit().fromJsonString(jsonString, options); - } - - static equals(a: RequestCommit | PlainMessage | undefined, b: RequestCommit | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestCommit, a, b); - } -} - -/** - * lists available snapshots - * - * @generated from message tendermint.abci.RequestListSnapshots - */ -export class RequestListSnapshots extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestListSnapshots"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestListSnapshots { - return new RequestListSnapshots().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestListSnapshots { - return new RequestListSnapshots().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestListSnapshots { - return new RequestListSnapshots().fromJsonString(jsonString, options); - } - - static equals(a: RequestListSnapshots | PlainMessage | undefined, b: RequestListSnapshots | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestListSnapshots, a, b); - } -} - -/** - * offers a snapshot to the application - * - * @generated from message tendermint.abci.RequestOfferSnapshot - */ -export class RequestOfferSnapshot extends Message { - /** - * snapshot offered by peers - * - * @generated from field: tendermint.abci.Snapshot snapshot = 1; - */ - snapshot?: Snapshot; - - /** - * light client-verified app hash for snapshot height - * - * @generated from field: bytes app_hash = 2; - */ - appHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestOfferSnapshot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "snapshot", kind: "message", T: Snapshot }, - { no: 2, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestOfferSnapshot { - return new RequestOfferSnapshot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestOfferSnapshot { - return new RequestOfferSnapshot().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestOfferSnapshot { - return new RequestOfferSnapshot().fromJsonString(jsonString, options); - } - - static equals(a: RequestOfferSnapshot | PlainMessage | undefined, b: RequestOfferSnapshot | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestOfferSnapshot, a, b); - } -} - -/** - * loads a snapshot chunk - * - * @generated from message tendermint.abci.RequestLoadSnapshotChunk - */ -export class RequestLoadSnapshotChunk extends Message { - /** - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - /** - * @generated from field: uint32 format = 2; - */ - format = 0; - - /** - * @generated from field: uint32 chunk = 3; - */ - chunk = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestLoadSnapshotChunk"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "chunk", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestLoadSnapshotChunk { - return new RequestLoadSnapshotChunk().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestLoadSnapshotChunk { - return new RequestLoadSnapshotChunk().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestLoadSnapshotChunk { - return new RequestLoadSnapshotChunk().fromJsonString(jsonString, options); - } - - static equals(a: RequestLoadSnapshotChunk | PlainMessage | undefined, b: RequestLoadSnapshotChunk | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestLoadSnapshotChunk, a, b); - } -} - -/** - * Applies a snapshot chunk - * - * @generated from message tendermint.abci.RequestApplySnapshotChunk - */ -export class RequestApplySnapshotChunk extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: bytes chunk = 2; - */ - chunk = new Uint8Array(0); - - /** - * @generated from field: string sender = 3; - */ - sender = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestApplySnapshotChunk"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "chunk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestApplySnapshotChunk { - return new RequestApplySnapshotChunk().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestApplySnapshotChunk { - return new RequestApplySnapshotChunk().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestApplySnapshotChunk { - return new RequestApplySnapshotChunk().fromJsonString(jsonString, options); - } - - static equals(a: RequestApplySnapshotChunk | PlainMessage | undefined, b: RequestApplySnapshotChunk | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestApplySnapshotChunk, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestPrepareProposal - */ -export class RequestPrepareProposal extends Message { - /** - * the modified transactions cannot exceed this size. - * - * @generated from field: int64 max_tx_bytes = 1; - */ - maxTxBytes = protoInt64.zero; - - /** - * txs is an array of transactions that will be included in a block, - * sent to the app for possible modifications. - * - * @generated from field: repeated bytes txs = 2; - */ - txs: Uint8Array[] = []; - - /** - * @generated from field: tendermint.abci.ExtendedCommitInfo local_last_commit = 3; - */ - localLastCommit?: ExtendedCommitInfo; - - /** - * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 4; - */ - misbehavior: Misbehavior[] = []; - - /** - * @generated from field: int64 height = 5; - */ - height = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp time = 6; - */ - time?: Timestamp; - - /** - * @generated from field: bytes next_validators_hash = 7; - */ - nextValidatorsHash = new Uint8Array(0); - - /** - * address of the public key of the validator proposing the block. - * - * @generated from field: bytes proposer_address = 8; - */ - proposerAddress = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestPrepareProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_tx_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 3, name: "local_last_commit", kind: "message", T: ExtendedCommitInfo }, - { no: 4, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, - { no: 5, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "time", kind: "message", T: Timestamp }, - { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestPrepareProposal { - return new RequestPrepareProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestPrepareProposal { - return new RequestPrepareProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestPrepareProposal { - return new RequestPrepareProposal().fromJsonString(jsonString, options); - } - - static equals(a: RequestPrepareProposal | PlainMessage | undefined, b: RequestPrepareProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestPrepareProposal, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestProcessProposal - */ -export class RequestProcessProposal extends Message { - /** - * @generated from field: repeated bytes txs = 1; - */ - txs: Uint8Array[] = []; - - /** - * @generated from field: tendermint.abci.CommitInfo proposed_last_commit = 2; - */ - proposedLastCommit?: CommitInfo; - - /** - * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 3; - */ - misbehavior: Misbehavior[] = []; - - /** - * hash is the merkle root hash of the fields of the proposed block. - * - * @generated from field: bytes hash = 4; - */ - hash = new Uint8Array(0); - - /** - * @generated from field: int64 height = 5; - */ - height = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp time = 6; - */ - time?: Timestamp; - - /** - * @generated from field: bytes next_validators_hash = 7; - */ - nextValidatorsHash = new Uint8Array(0); - - /** - * address of the public key of the original proposer of the block. - * - * @generated from field: bytes proposer_address = 8; - */ - proposerAddress = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestProcessProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 2, name: "proposed_last_commit", kind: "message", T: CommitInfo }, - { no: 3, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, - { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "time", kind: "message", T: Timestamp }, - { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestProcessProposal { - return new RequestProcessProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestProcessProposal { - return new RequestProcessProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestProcessProposal { - return new RequestProcessProposal().fromJsonString(jsonString, options); - } - - static equals(a: RequestProcessProposal | PlainMessage | undefined, b: RequestProcessProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestProcessProposal, a, b); - } -} - -/** - * Extends a vote with application-injected data - * - * @generated from message tendermint.abci.RequestExtendVote - */ -export class RequestExtendVote extends Message { - /** - * the hash of the block that this vote may be referring to - * - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - /** - * the height of the extended vote - * - * @generated from field: int64 height = 2; - */ - height = protoInt64.zero; - - /** - * info of the block that this vote may be referring to - * - * @generated from field: google.protobuf.Timestamp time = 3; - */ - time?: Timestamp; - - /** - * @generated from field: repeated bytes txs = 4; - */ - txs: Uint8Array[] = []; - - /** - * @generated from field: tendermint.abci.CommitInfo proposed_last_commit = 5; - */ - proposedLastCommit?: CommitInfo; - - /** - * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 6; - */ - misbehavior: Misbehavior[] = []; - - /** - * @generated from field: bytes next_validators_hash = 7; - */ - nextValidatorsHash = new Uint8Array(0); - - /** - * address of the public key of the original proposer of the block. - * - * @generated from field: bytes proposer_address = 8; - */ - proposerAddress = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestExtendVote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "time", kind: "message", T: Timestamp }, - { no: 4, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 5, name: "proposed_last_commit", kind: "message", T: CommitInfo }, - { no: 6, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, - { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestExtendVote { - return new RequestExtendVote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestExtendVote { - return new RequestExtendVote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestExtendVote { - return new RequestExtendVote().fromJsonString(jsonString, options); - } - - static equals(a: RequestExtendVote | PlainMessage | undefined, b: RequestExtendVote | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestExtendVote, a, b); - } -} - -/** - * Verify the vote extension - * - * @generated from message tendermint.abci.RequestVerifyVoteExtension - */ -export class RequestVerifyVoteExtension extends Message { - /** - * the hash of the block that this received vote corresponds to - * - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - /** - * the validator that signed the vote extension - * - * @generated from field: bytes validator_address = 2; - */ - validatorAddress = new Uint8Array(0); - - /** - * @generated from field: int64 height = 3; - */ - height = protoInt64.zero; - - /** - * @generated from field: bytes vote_extension = 4; - */ - voteExtension = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestVerifyVoteExtension"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestVerifyVoteExtension { - return new RequestVerifyVoteExtension().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestVerifyVoteExtension { - return new RequestVerifyVoteExtension().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestVerifyVoteExtension { - return new RequestVerifyVoteExtension().fromJsonString(jsonString, options); - } - - static equals(a: RequestVerifyVoteExtension | PlainMessage | undefined, b: RequestVerifyVoteExtension | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestVerifyVoteExtension, a, b); - } -} - -/** - * @generated from message tendermint.abci.RequestFinalizeBlock - */ -export class RequestFinalizeBlock extends Message { - /** - * @generated from field: repeated bytes txs = 1; - */ - txs: Uint8Array[] = []; - - /** - * @generated from field: tendermint.abci.CommitInfo decided_last_commit = 2; - */ - decidedLastCommit?: CommitInfo; - - /** - * @generated from field: repeated tendermint.abci.Misbehavior misbehavior = 3; - */ - misbehavior: Misbehavior[] = []; - - /** - * hash is the merkle root hash of the fields of the decided block. - * - * @generated from field: bytes hash = 4; - */ - hash = new Uint8Array(0); - - /** - * @generated from field: int64 height = 5; - */ - height = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp time = 6; - */ - time?: Timestamp; - - /** - * @generated from field: bytes next_validators_hash = 7; - */ - nextValidatorsHash = new Uint8Array(0); - - /** - * proposer_address is the address of the public key of the original proposer of the block. - * - * @generated from field: bytes proposer_address = 8; - */ - proposerAddress = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.RequestFinalizeBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - { no: 2, name: "decided_last_commit", kind: "message", T: CommitInfo }, - { no: 3, name: "misbehavior", kind: "message", T: Misbehavior, repeated: true }, - { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "time", kind: "message", T: Timestamp }, - { no: 7, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RequestFinalizeBlock { - return new RequestFinalizeBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RequestFinalizeBlock { - return new RequestFinalizeBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RequestFinalizeBlock { - return new RequestFinalizeBlock().fromJsonString(jsonString, options); - } - - static equals(a: RequestFinalizeBlock | PlainMessage | undefined, b: RequestFinalizeBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(RequestFinalizeBlock, a, b); - } -} - -/** - * @generated from message tendermint.abci.Response - */ -export class Response extends Message { - /** - * @generated from oneof tendermint.abci.Response.value - */ - value: { - /** - * @generated from field: tendermint.abci.ResponseException exception = 1; - */ - value: ResponseException; - case: "exception"; - } | { - /** - * @generated from field: tendermint.abci.ResponseEcho echo = 2; - */ - value: ResponseEcho; - case: "echo"; - } | { - /** - * @generated from field: tendermint.abci.ResponseFlush flush = 3; - */ - value: ResponseFlush; - case: "flush"; - } | { - /** - * @generated from field: tendermint.abci.ResponseInfo info = 4; - */ - value: ResponseInfo; - case: "info"; - } | { - /** - * @generated from field: tendermint.abci.ResponseInitChain init_chain = 6; - */ - value: ResponseInitChain; - case: "initChain"; - } | { - /** - * @generated from field: tendermint.abci.ResponseQuery query = 7; - */ - value: ResponseQuery; - case: "query"; - } | { - /** - * @generated from field: tendermint.abci.ResponseCheckTx check_tx = 9; - */ - value: ResponseCheckTx; - case: "checkTx"; - } | { - /** - * @generated from field: tendermint.abci.ResponseCommit commit = 12; - */ - value: ResponseCommit; - case: "commit"; - } | { - /** - * @generated from field: tendermint.abci.ResponseListSnapshots list_snapshots = 13; - */ - value: ResponseListSnapshots; - case: "listSnapshots"; - } | { - /** - * @generated from field: tendermint.abci.ResponseOfferSnapshot offer_snapshot = 14; - */ - value: ResponseOfferSnapshot; - case: "offerSnapshot"; - } | { - /** - * @generated from field: tendermint.abci.ResponseLoadSnapshotChunk load_snapshot_chunk = 15; - */ - value: ResponseLoadSnapshotChunk; - case: "loadSnapshotChunk"; - } | { - /** - * @generated from field: tendermint.abci.ResponseApplySnapshotChunk apply_snapshot_chunk = 16; - */ - value: ResponseApplySnapshotChunk; - case: "applySnapshotChunk"; - } | { - /** - * @generated from field: tendermint.abci.ResponsePrepareProposal prepare_proposal = 17; - */ - value: ResponsePrepareProposal; - case: "prepareProposal"; - } | { - /** - * @generated from field: tendermint.abci.ResponseProcessProposal process_proposal = 18; - */ - value: ResponseProcessProposal; - case: "processProposal"; - } | { - /** - * @generated from field: tendermint.abci.ResponseExtendVote extend_vote = 19; - */ - value: ResponseExtendVote; - case: "extendVote"; - } | { - /** - * @generated from field: tendermint.abci.ResponseVerifyVoteExtension verify_vote_extension = 20; - */ - value: ResponseVerifyVoteExtension; - case: "verifyVoteExtension"; - } | { - /** - * @generated from field: tendermint.abci.ResponseFinalizeBlock finalize_block = 21; - */ - value: ResponseFinalizeBlock; - case: "finalizeBlock"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.Response"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "exception", kind: "message", T: ResponseException, oneof: "value" }, - { no: 2, name: "echo", kind: "message", T: ResponseEcho, oneof: "value" }, - { no: 3, name: "flush", kind: "message", T: ResponseFlush, oneof: "value" }, - { no: 4, name: "info", kind: "message", T: ResponseInfo, oneof: "value" }, - { no: 6, name: "init_chain", kind: "message", T: ResponseInitChain, oneof: "value" }, - { no: 7, name: "query", kind: "message", T: ResponseQuery, oneof: "value" }, - { no: 9, name: "check_tx", kind: "message", T: ResponseCheckTx, oneof: "value" }, - { no: 12, name: "commit", kind: "message", T: ResponseCommit, oneof: "value" }, - { no: 13, name: "list_snapshots", kind: "message", T: ResponseListSnapshots, oneof: "value" }, - { no: 14, name: "offer_snapshot", kind: "message", T: ResponseOfferSnapshot, oneof: "value" }, - { no: 15, name: "load_snapshot_chunk", kind: "message", T: ResponseLoadSnapshotChunk, oneof: "value" }, - { no: 16, name: "apply_snapshot_chunk", kind: "message", T: ResponseApplySnapshotChunk, oneof: "value" }, - { no: 17, name: "prepare_proposal", kind: "message", T: ResponsePrepareProposal, oneof: "value" }, - { no: 18, name: "process_proposal", kind: "message", T: ResponseProcessProposal, oneof: "value" }, - { no: 19, name: "extend_vote", kind: "message", T: ResponseExtendVote, oneof: "value" }, - { no: 20, name: "verify_vote_extension", kind: "message", T: ResponseVerifyVoteExtension, oneof: "value" }, - { no: 21, name: "finalize_block", kind: "message", T: ResponseFinalizeBlock, oneof: "value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Response { - return new Response().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Response { - return new Response().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Response { - return new Response().fromJsonString(jsonString, options); - } - - static equals(a: Response | PlainMessage | undefined, b: Response | PlainMessage | undefined): boolean { - return proto3.util.equals(Response, a, b); - } -} - -/** - * nondeterministic - * - * @generated from message tendermint.abci.ResponseException - */ -export class ResponseException extends Message { - /** - * @generated from field: string error = 1; - */ - error = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseException"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseException { - return new ResponseException().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseException { - return new ResponseException().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseException { - return new ResponseException().fromJsonString(jsonString, options); - } - - static equals(a: ResponseException | PlainMessage | undefined, b: ResponseException | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseException, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseEcho - */ -export class ResponseEcho extends Message { - /** - * @generated from field: string message = 1; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseEcho"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseEcho { - return new ResponseEcho().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseEcho { - return new ResponseEcho().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseEcho { - return new ResponseEcho().fromJsonString(jsonString, options); - } - - static equals(a: ResponseEcho | PlainMessage | undefined, b: ResponseEcho | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseEcho, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseFlush - */ -export class ResponseFlush extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseFlush"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseFlush { - return new ResponseFlush().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseFlush { - return new ResponseFlush().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseFlush { - return new ResponseFlush().fromJsonString(jsonString, options); - } - - static equals(a: ResponseFlush | PlainMessage | undefined, b: ResponseFlush | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseFlush, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseInfo - */ -export class ResponseInfo extends Message { - /** - * @generated from field: string data = 1; - */ - data = ""; - - /** - * @generated from field: string version = 2; - */ - version = ""; - - /** - * @generated from field: uint64 app_version = 3; - */ - appVersion = protoInt64.zero; - - /** - * @generated from field: int64 last_block_height = 4; - */ - lastBlockHeight = protoInt64.zero; - - /** - * @generated from field: bytes last_block_app_hash = 5; - */ - lastBlockAppHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "app_version", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "last_block_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "last_block_app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseInfo { - return new ResponseInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseInfo { - return new ResponseInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseInfo { - return new ResponseInfo().fromJsonString(jsonString, options); - } - - static equals(a: ResponseInfo | PlainMessage | undefined, b: ResponseInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseInfo, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseInitChain - */ -export class ResponseInitChain extends Message { - /** - * @generated from field: tendermint.types.ConsensusParams consensus_params = 1; - */ - consensusParams?: ConsensusParams; - - /** - * @generated from field: repeated tendermint.abci.ValidatorUpdate validators = 2; - */ - validators: ValidatorUpdate[] = []; - - /** - * @generated from field: bytes app_hash = 3; - */ - appHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseInitChain"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "consensus_params", kind: "message", T: ConsensusParams }, - { no: 2, name: "validators", kind: "message", T: ValidatorUpdate, repeated: true }, - { no: 3, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseInitChain { - return new ResponseInitChain().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseInitChain { - return new ResponseInitChain().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseInitChain { - return new ResponseInitChain().fromJsonString(jsonString, options); - } - - static equals(a: ResponseInitChain | PlainMessage | undefined, b: ResponseInitChain | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseInitChain, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseQuery - */ -export class ResponseQuery extends Message { - /** - * @generated from field: uint32 code = 1; - */ - code = 0; - - /** - * bytes data = 2; // use "value" instead. - * - * nondeterministic - * - * @generated from field: string log = 3; - */ - log = ""; - - /** - * nondeterministic - * - * @generated from field: string info = 4; - */ - info = ""; - - /** - * @generated from field: int64 index = 5; - */ - index = protoInt64.zero; - - /** - * @generated from field: bytes key = 6; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes value = 7; - */ - value = new Uint8Array(0); - - /** - * @generated from field: tendermint.crypto.ProofOps proof_ops = 8; - */ - proofOps?: ProofOps; - - /** - * @generated from field: int64 height = 9; - */ - height = protoInt64.zero; - - /** - * @generated from field: string codespace = 10; - */ - codespace = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "proof_ops", kind: "message", T: ProofOps }, - { no: 9, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 10, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseQuery { - return new ResponseQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseQuery { - return new ResponseQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseQuery { - return new ResponseQuery().fromJsonString(jsonString, options); - } - - static equals(a: ResponseQuery | PlainMessage | undefined, b: ResponseQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseQuery, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseCheckTx - */ -export class ResponseCheckTx extends Message { - /** - * @generated from field: uint32 code = 1; - */ - code = 0; - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - /** - * nondeterministic - * - * @generated from field: string log = 3; - */ - log = ""; - - /** - * nondeterministic - * - * @generated from field: string info = 4; - */ - info = ""; - - /** - * @generated from field: int64 gas_wanted = 5 [json_name = "gas_wanted"]; - */ - gasWanted = protoInt64.zero; - - /** - * @generated from field: int64 gas_used = 6 [json_name = "gas_used"]; - */ - gasUsed = protoInt64.zero; - - /** - * @generated from field: repeated tendermint.abci.Event events = 7; - */ - events: Event[] = []; - - /** - * @generated from field: string codespace = 8; - */ - codespace = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseCheckTx"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "gas_wanted", jsonName: "gas_wanted", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "gas_used", jsonName: "gas_used", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 7, name: "events", kind: "message", T: Event, repeated: true }, - { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseCheckTx { - return new ResponseCheckTx().fromJsonString(jsonString, options); - } - - static equals(a: ResponseCheckTx | PlainMessage | undefined, b: ResponseCheckTx | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseCheckTx, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseCommit - */ -export class ResponseCommit extends Message { - /** - * @generated from field: int64 retain_height = 3; - */ - retainHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseCommit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "retain_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseCommit { - return new ResponseCommit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseCommit { - return new ResponseCommit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseCommit { - return new ResponseCommit().fromJsonString(jsonString, options); - } - - static equals(a: ResponseCommit | PlainMessage | undefined, b: ResponseCommit | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseCommit, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseListSnapshots - */ -export class ResponseListSnapshots extends Message { - /** - * @generated from field: repeated tendermint.abci.Snapshot snapshots = 1; - */ - snapshots: Snapshot[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseListSnapshots"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "snapshots", kind: "message", T: Snapshot, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseListSnapshots { - return new ResponseListSnapshots().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseListSnapshots { - return new ResponseListSnapshots().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseListSnapshots { - return new ResponseListSnapshots().fromJsonString(jsonString, options); - } - - static equals(a: ResponseListSnapshots | PlainMessage | undefined, b: ResponseListSnapshots | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseListSnapshots, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseOfferSnapshot - */ -export class ResponseOfferSnapshot extends Message { - /** - * @generated from field: tendermint.abci.ResponseOfferSnapshot.Result result = 1; - */ - result = ResponseOfferSnapshot_Result.UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseOfferSnapshot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseOfferSnapshot_Result) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseOfferSnapshot { - return new ResponseOfferSnapshot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseOfferSnapshot { - return new ResponseOfferSnapshot().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseOfferSnapshot { - return new ResponseOfferSnapshot().fromJsonString(jsonString, options); - } - - static equals(a: ResponseOfferSnapshot | PlainMessage | undefined, b: ResponseOfferSnapshot | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseOfferSnapshot, a, b); - } -} - -/** - * @generated from enum tendermint.abci.ResponseOfferSnapshot.Result - */ -export enum ResponseOfferSnapshot_Result { - /** - * Unknown result, abort all snapshot restoration - * - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * Snapshot accepted, apply chunks - * - * @generated from enum value: ACCEPT = 1; - */ - ACCEPT = 1, - - /** - * Abort all snapshot restoration - * - * @generated from enum value: ABORT = 2; - */ - ABORT = 2, - - /** - * Reject this specific snapshot, try others - * - * @generated from enum value: REJECT = 3; - */ - REJECT = 3, - - /** - * Reject all snapshots of this format, try others - * - * @generated from enum value: REJECT_FORMAT = 4; - */ - REJECT_FORMAT = 4, - - /** - * Reject all snapshots from the sender(s), try others - * - * @generated from enum value: REJECT_SENDER = 5; - */ - REJECT_SENDER = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ResponseOfferSnapshot_Result) -proto3.util.setEnumType(ResponseOfferSnapshot_Result, "tendermint.abci.ResponseOfferSnapshot.Result", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "ACCEPT" }, - { no: 2, name: "ABORT" }, - { no: 3, name: "REJECT" }, - { no: 4, name: "REJECT_FORMAT" }, - { no: 5, name: "REJECT_SENDER" }, -]); - -/** - * @generated from message tendermint.abci.ResponseLoadSnapshotChunk - */ -export class ResponseLoadSnapshotChunk extends Message { - /** - * @generated from field: bytes chunk = 1; - */ - chunk = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseLoadSnapshotChunk"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "chunk", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseLoadSnapshotChunk { - return new ResponseLoadSnapshotChunk().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseLoadSnapshotChunk { - return new ResponseLoadSnapshotChunk().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseLoadSnapshotChunk { - return new ResponseLoadSnapshotChunk().fromJsonString(jsonString, options); - } - - static equals(a: ResponseLoadSnapshotChunk | PlainMessage | undefined, b: ResponseLoadSnapshotChunk | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseLoadSnapshotChunk, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseApplySnapshotChunk - */ -export class ResponseApplySnapshotChunk extends Message { - /** - * @generated from field: tendermint.abci.ResponseApplySnapshotChunk.Result result = 1; - */ - result = ResponseApplySnapshotChunk_Result.UNKNOWN; - - /** - * Chunks to refetch and reapply - * - * @generated from field: repeated uint32 refetch_chunks = 2; - */ - refetchChunks: number[] = []; - - /** - * Chunk senders to reject and ban - * - * @generated from field: repeated string reject_senders = 3; - */ - rejectSenders: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseApplySnapshotChunk"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ResponseApplySnapshotChunk_Result) }, - { no: 2, name: "refetch_chunks", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, - { no: 3, name: "reject_senders", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseApplySnapshotChunk { - return new ResponseApplySnapshotChunk().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseApplySnapshotChunk { - return new ResponseApplySnapshotChunk().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseApplySnapshotChunk { - return new ResponseApplySnapshotChunk().fromJsonString(jsonString, options); - } - - static equals(a: ResponseApplySnapshotChunk | PlainMessage | undefined, b: ResponseApplySnapshotChunk | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseApplySnapshotChunk, a, b); - } -} - -/** - * @generated from enum tendermint.abci.ResponseApplySnapshotChunk.Result - */ -export enum ResponseApplySnapshotChunk_Result { - /** - * Unknown result, abort all snapshot restoration - * - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * Chunk successfully accepted - * - * @generated from enum value: ACCEPT = 1; - */ - ACCEPT = 1, - - /** - * Abort all snapshot restoration - * - * @generated from enum value: ABORT = 2; - */ - ABORT = 2, - - /** - * Retry chunk (combine with refetch and reject) - * - * @generated from enum value: RETRY = 3; - */ - RETRY = 3, - - /** - * Retry snapshot (combine with refetch and reject) - * - * @generated from enum value: RETRY_SNAPSHOT = 4; - */ - RETRY_SNAPSHOT = 4, - - /** - * Reject this snapshot, try others - * - * @generated from enum value: REJECT_SNAPSHOT = 5; - */ - REJECT_SNAPSHOT = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ResponseApplySnapshotChunk_Result) -proto3.util.setEnumType(ResponseApplySnapshotChunk_Result, "tendermint.abci.ResponseApplySnapshotChunk.Result", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "ACCEPT" }, - { no: 2, name: "ABORT" }, - { no: 3, name: "RETRY" }, - { no: 4, name: "RETRY_SNAPSHOT" }, - { no: 5, name: "REJECT_SNAPSHOT" }, -]); - -/** - * @generated from message tendermint.abci.ResponsePrepareProposal - */ -export class ResponsePrepareProposal extends Message { - /** - * @generated from field: repeated bytes txs = 1; - */ - txs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponsePrepareProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponsePrepareProposal { - return new ResponsePrepareProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponsePrepareProposal { - return new ResponsePrepareProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponsePrepareProposal { - return new ResponsePrepareProposal().fromJsonString(jsonString, options); - } - - static equals(a: ResponsePrepareProposal | PlainMessage | undefined, b: ResponsePrepareProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponsePrepareProposal, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseProcessProposal - */ -export class ResponseProcessProposal extends Message { - /** - * @generated from field: tendermint.abci.ResponseProcessProposal.ProposalStatus status = 1; - */ - status = ResponseProcessProposal_ProposalStatus.UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseProcessProposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(ResponseProcessProposal_ProposalStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseProcessProposal { - return new ResponseProcessProposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseProcessProposal { - return new ResponseProcessProposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseProcessProposal { - return new ResponseProcessProposal().fromJsonString(jsonString, options); - } - - static equals(a: ResponseProcessProposal | PlainMessage | undefined, b: ResponseProcessProposal | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseProcessProposal, a, b); - } -} - -/** - * @generated from enum tendermint.abci.ResponseProcessProposal.ProposalStatus - */ -export enum ResponseProcessProposal_ProposalStatus { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: ACCEPT = 1; - */ - ACCEPT = 1, - - /** - * @generated from enum value: REJECT = 2; - */ - REJECT = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(ResponseProcessProposal_ProposalStatus) -proto3.util.setEnumType(ResponseProcessProposal_ProposalStatus, "tendermint.abci.ResponseProcessProposal.ProposalStatus", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "ACCEPT" }, - { no: 2, name: "REJECT" }, -]); - -/** - * @generated from message tendermint.abci.ResponseExtendVote - */ -export class ResponseExtendVote extends Message { - /** - * @generated from field: bytes vote_extension = 1; - */ - voteExtension = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseExtendVote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseExtendVote { - return new ResponseExtendVote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseExtendVote { - return new ResponseExtendVote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseExtendVote { - return new ResponseExtendVote().fromJsonString(jsonString, options); - } - - static equals(a: ResponseExtendVote | PlainMessage | undefined, b: ResponseExtendVote | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseExtendVote, a, b); - } -} - -/** - * @generated from message tendermint.abci.ResponseVerifyVoteExtension - */ -export class ResponseVerifyVoteExtension extends Message { - /** - * @generated from field: tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus status = 1; - */ - status = ResponseVerifyVoteExtension_VerifyStatus.UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseVerifyVoteExtension"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(ResponseVerifyVoteExtension_VerifyStatus) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseVerifyVoteExtension { - return new ResponseVerifyVoteExtension().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseVerifyVoteExtension { - return new ResponseVerifyVoteExtension().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseVerifyVoteExtension { - return new ResponseVerifyVoteExtension().fromJsonString(jsonString, options); - } - - static equals(a: ResponseVerifyVoteExtension | PlainMessage | undefined, b: ResponseVerifyVoteExtension | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseVerifyVoteExtension, a, b); - } -} - -/** - * @generated from enum tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus - */ -export enum ResponseVerifyVoteExtension_VerifyStatus { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: ACCEPT = 1; - */ - ACCEPT = 1, - - /** - * Rejecting the vote extension will reject the entire precommit by the sender. - * Incorrectly implementing this thus has liveness implications as it may affect - * CometBFT's ability to receive 2/3+ valid votes to finalize the block. - * Honest nodes should never be rejected. - * - * @generated from enum value: REJECT = 2; - */ - REJECT = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(ResponseVerifyVoteExtension_VerifyStatus) -proto3.util.setEnumType(ResponseVerifyVoteExtension_VerifyStatus, "tendermint.abci.ResponseVerifyVoteExtension.VerifyStatus", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "ACCEPT" }, - { no: 2, name: "REJECT" }, -]); - -/** - * @generated from message tendermint.abci.ResponseFinalizeBlock - */ -export class ResponseFinalizeBlock extends Message { - /** - * set of block events emmitted as part of executing the block - * - * @generated from field: repeated tendermint.abci.Event events = 1; - */ - events: Event[] = []; - - /** - * the result of executing each transaction including the events - * the particular transction emitted. This should match the order - * of the transactions delivered in the block itself - * - * @generated from field: repeated tendermint.abci.ExecTxResult tx_results = 2; - */ - txResults: ExecTxResult[] = []; - - /** - * a list of updates to the validator set. These will reflect the validator set at current height + 2. - * - * @generated from field: repeated tendermint.abci.ValidatorUpdate validator_updates = 3; - */ - validatorUpdates: ValidatorUpdate[] = []; - - /** - * updates to the consensus params, if any. - * - * @generated from field: tendermint.types.ConsensusParams consensus_param_updates = 4; - */ - consensusParamUpdates?: ConsensusParams; - - /** - * app_hash is the hash of the applications' state which is used to confirm that execution of the transactions was - * deterministic. It is up to the application to decide which algorithm to use. - * - * @generated from field: bytes app_hash = 5; - */ - appHash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ResponseFinalizeBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "events", kind: "message", T: Event, repeated: true }, - { no: 2, name: "tx_results", kind: "message", T: ExecTxResult, repeated: true }, - { no: 3, name: "validator_updates", kind: "message", T: ValidatorUpdate, repeated: true }, - { no: 4, name: "consensus_param_updates", kind: "message", T: ConsensusParams }, - { no: 5, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResponseFinalizeBlock { - return new ResponseFinalizeBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResponseFinalizeBlock { - return new ResponseFinalizeBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResponseFinalizeBlock { - return new ResponseFinalizeBlock().fromJsonString(jsonString, options); - } - - static equals(a: ResponseFinalizeBlock | PlainMessage | undefined, b: ResponseFinalizeBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(ResponseFinalizeBlock, a, b); - } -} - -/** - * @generated from message tendermint.abci.CommitInfo - */ -export class CommitInfo extends Message { - /** - * @generated from field: int32 round = 1; - */ - round = 0; - - /** - * @generated from field: repeated tendermint.abci.VoteInfo votes = 2; - */ - votes: VoteInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.CommitInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "votes", kind: "message", T: VoteInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommitInfo { - return new CommitInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommitInfo { - return new CommitInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommitInfo { - return new CommitInfo().fromJsonString(jsonString, options); - } - - static equals(a: CommitInfo | PlainMessage | undefined, b: CommitInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(CommitInfo, a, b); - } -} - -/** - * ExtendedCommitInfo is similar to CommitInfo except that it is only used in - * the PrepareProposal request such that CometBFT can provide vote extensions - * to the application. - * - * @generated from message tendermint.abci.ExtendedCommitInfo - */ -export class ExtendedCommitInfo extends Message { - /** - * The round at which the block proposer decided in the previous height. - * - * @generated from field: int32 round = 1; - */ - round = 0; - - /** - * List of validators' addresses in the last validator set with their voting - * information, including vote extensions. - * - * @generated from field: repeated tendermint.abci.ExtendedVoteInfo votes = 2; - */ - votes: ExtendedVoteInfo[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ExtendedCommitInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "votes", kind: "message", T: ExtendedVoteInfo, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedCommitInfo { - return new ExtendedCommitInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedCommitInfo { - return new ExtendedCommitInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtendedCommitInfo { - return new ExtendedCommitInfo().fromJsonString(jsonString, options); - } - - static equals(a: ExtendedCommitInfo | PlainMessage | undefined, b: ExtendedCommitInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtendedCommitInfo, a, b); - } -} - -/** - * Event allows application developers to attach additional information to - * ResponseFinalizeBlock and ResponseCheckTx. - * Later, transactions may be queried using these events. - * - * @generated from message tendermint.abci.Event - */ -export class Event extends Message { - /** - * @generated from field: string type = 1; - */ - type = ""; - - /** - * @generated from field: repeated tendermint.abci.EventAttribute attributes = 2; - */ - attributes: EventAttribute[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.Event"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "attributes", kind: "message", T: EventAttribute, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Event { - return new Event().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Event { - return new Event().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Event { - return new Event().fromJsonString(jsonString, options); - } - - static equals(a: Event | PlainMessage | undefined, b: Event | PlainMessage | undefined): boolean { - return proto3.util.equals(Event, a, b); - } -} - -/** - * EventAttribute is a single key-value pair, associated with an event. - * - * @generated from message tendermint.abci.EventAttribute - */ -export class EventAttribute extends Message { - /** - * @generated from field: string key = 1; - */ - key = ""; - - /** - * @generated from field: string value = 2; - */ - value = ""; - - /** - * nondeterministic - * - * @generated from field: bool index = 3; - */ - index = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.EventAttribute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "index", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventAttribute { - return new EventAttribute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventAttribute { - return new EventAttribute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventAttribute { - return new EventAttribute().fromJsonString(jsonString, options); - } - - static equals(a: EventAttribute | PlainMessage | undefined, b: EventAttribute | PlainMessage | undefined): boolean { - return proto3.util.equals(EventAttribute, a, b); - } -} - -/** - * ExecTxResult contains results of executing one individual transaction. - * - * * Its structure is equivalent to #ResponseDeliverTx which will be deprecated/deleted - * - * @generated from message tendermint.abci.ExecTxResult - */ -export class ExecTxResult extends Message { - /** - * @generated from field: uint32 code = 1; - */ - code = 0; - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - /** - * nondeterministic - * - * @generated from field: string log = 3; - */ - log = ""; - - /** - * nondeterministic - * - * @generated from field: string info = 4; - */ - info = ""; - - /** - * @generated from field: int64 gas_wanted = 5 [json_name = "gas_wanted"]; - */ - gasWanted = protoInt64.zero; - - /** - * @generated from field: int64 gas_used = 6 [json_name = "gas_used"]; - */ - gasUsed = protoInt64.zero; - - /** - * nondeterministic - * - * @generated from field: repeated tendermint.abci.Event events = 7; - */ - events: Event[] = []; - - /** - * @generated from field: string codespace = 8; - */ - codespace = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ExecTxResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "log", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "info", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "gas_wanted", jsonName: "gas_wanted", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "gas_used", jsonName: "gas_used", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 7, name: "events", kind: "message", T: Event, repeated: true }, - { no: 8, name: "codespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecTxResult { - return new ExecTxResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecTxResult { - return new ExecTxResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecTxResult { - return new ExecTxResult().fromJsonString(jsonString, options); - } - - static equals(a: ExecTxResult | PlainMessage | undefined, b: ExecTxResult | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecTxResult, a, b); - } -} - -/** - * TxResult contains results of executing the transaction. - * - * One usage is indexing transaction results. - * - * @generated from message tendermint.abci.TxResult - */ -export class TxResult extends Message { - /** - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * @generated from field: uint32 index = 2; - */ - index = 0; - - /** - * @generated from field: bytes tx = 3; - */ - tx = new Uint8Array(0); - - /** - * @generated from field: tendermint.abci.ExecTxResult result = 4; - */ - result?: ExecTxResult; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.TxResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "tx", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "result", kind: "message", T: ExecTxResult }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxResult { - return new TxResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxResult { - return new TxResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxResult { - return new TxResult().fromJsonString(jsonString, options); - } - - static equals(a: TxResult | PlainMessage | undefined, b: TxResult | PlainMessage | undefined): boolean { - return proto3.util.equals(TxResult, a, b); - } -} - -/** - * @generated from message tendermint.abci.Validator - */ -export class Validator extends Message { - /** - * The first 20 bytes of SHA256(public key) - * - * @generated from field: bytes address = 1; - */ - address = new Uint8Array(0); - - /** - * PubKey pub_key = 2 [(gogoproto.nullable)=false]; - * - * The voting power - * - * @generated from field: int64 power = 3; - */ - power = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.Validator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Validator { - return new Validator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Validator { - return new Validator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Validator { - return new Validator().fromJsonString(jsonString, options); - } - - static equals(a: Validator | PlainMessage | undefined, b: Validator | PlainMessage | undefined): boolean { - return proto3.util.equals(Validator, a, b); - } -} - -/** - * @generated from message tendermint.abci.ValidatorUpdate - */ -export class ValidatorUpdate extends Message { - /** - * @generated from field: tendermint.crypto.PublicKey pub_key = 1; - */ - pubKey?: PublicKey; - - /** - * @generated from field: int64 power = 2; - */ - power = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ValidatorUpdate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pub_key", kind: "message", T: PublicKey }, - { no: 2, name: "power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorUpdate { - return new ValidatorUpdate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorUpdate { - return new ValidatorUpdate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorUpdate { - return new ValidatorUpdate().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorUpdate | PlainMessage | undefined, b: ValidatorUpdate | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorUpdate, a, b); - } -} - -/** - * @generated from message tendermint.abci.VoteInfo - */ -export class VoteInfo extends Message { - /** - * @generated from field: tendermint.abci.Validator validator = 1; - */ - validator?: Validator; - - /** - * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 3; - */ - blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.VoteInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator", kind: "message", T: Validator }, - { no: 3, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VoteInfo { - return new VoteInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VoteInfo { - return new VoteInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VoteInfo { - return new VoteInfo().fromJsonString(jsonString, options); - } - - static equals(a: VoteInfo | PlainMessage | undefined, b: VoteInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(VoteInfo, a, b); - } -} - -/** - * @generated from message tendermint.abci.ExtendedVoteInfo - */ -export class ExtendedVoteInfo extends Message { - /** - * The validator that sent the vote. - * - * @generated from field: tendermint.abci.Validator validator = 1; - */ - validator?: Validator; - - /** - * Non-deterministic extension provided by the sending validator's application. - * - * @generated from field: bytes vote_extension = 3; - */ - voteExtension = new Uint8Array(0); - - /** - * Vote extension signature created by CometBFT - * - * @generated from field: bytes extension_signature = 4; - */ - extensionSignature = new Uint8Array(0); - - /** - * block_id_flag indicates whether the validator voted for a block, nil, or did not vote at all - * - * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 5; - */ - blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.ExtendedVoteInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validator", kind: "message", T: Validator }, - { no: 3, name: "vote_extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedVoteInfo { - return new ExtendedVoteInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedVoteInfo { - return new ExtendedVoteInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtendedVoteInfo { - return new ExtendedVoteInfo().fromJsonString(jsonString, options); - } - - static equals(a: ExtendedVoteInfo | PlainMessage | undefined, b: ExtendedVoteInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtendedVoteInfo, a, b); - } -} - -/** - * @generated from message tendermint.abci.Misbehavior - */ -export class Misbehavior extends Message { - /** - * @generated from field: tendermint.abci.MisbehaviorType type = 1; - */ - type = MisbehaviorType.UNKNOWN; - - /** - * The offending validator - * - * @generated from field: tendermint.abci.Validator validator = 2; - */ - validator?: Validator; - - /** - * The height when the offense occurred - * - * @generated from field: int64 height = 3; - */ - height = protoInt64.zero; - - /** - * The corresponding time where the offense occurred - * - * @generated from field: google.protobuf.Timestamp time = 4; - */ - time?: Timestamp; - - /** - * Total voting power of the validator set in case the ABCI application does - * not store historical validators. - * https://github.com/tendermint/tendermint/issues/4581 - * - * @generated from field: int64 total_voting_power = 5; - */ - totalVotingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.Misbehavior"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(MisbehaviorType) }, - { no: 2, name: "validator", kind: "message", T: Validator }, - { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "time", kind: "message", T: Timestamp }, - { no: 5, name: "total_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Misbehavior { - return new Misbehavior().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Misbehavior { - return new Misbehavior().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Misbehavior { - return new Misbehavior().fromJsonString(jsonString, options); - } - - static equals(a: Misbehavior | PlainMessage | undefined, b: Misbehavior | PlainMessage | undefined): boolean { - return proto3.util.equals(Misbehavior, a, b); - } -} - -/** - * @generated from message tendermint.abci.Snapshot - */ -export class Snapshot extends Message { - /** - * The height at which the snapshot was taken - * - * @generated from field: uint64 height = 1; - */ - height = protoInt64.zero; - - /** - * The application-specific snapshot format - * - * @generated from field: uint32 format = 2; - */ - format = 0; - - /** - * Number of chunks in the snapshot - * - * @generated from field: uint32 chunks = 3; - */ - chunks = 0; - - /** - * Arbitrary snapshot hash, equal only if identical - * - * @generated from field: bytes hash = 4; - */ - hash = new Uint8Array(0); - - /** - * Arbitrary application metadata - * - * @generated from field: bytes metadata = 5; - */ - metadata = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.abci.Snapshot"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "format", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "chunks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "metadata", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Snapshot { - return new Snapshot().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Snapshot { - return new Snapshot().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Snapshot { - return new Snapshot().fromJsonString(jsonString, options); - } - - static equals(a: Snapshot | PlainMessage | undefined, b: Snapshot | PlainMessage | undefined): boolean { - return proto3.util.equals(Snapshot, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/crypto/keys_pb.ts b/libs/es-client/src/protobufs/tendermint/crypto/keys_pb.ts deleted file mode 100644 index 40a67f5..0000000 --- a/libs/es-client/src/protobufs/tendermint/crypto/keys_pb.ts +++ /dev/null @@ -1,60 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/crypto/keys.proto (package tendermint.crypto, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * PublicKey defines the keys available for use with Validators - * - * @generated from message tendermint.crypto.PublicKey - */ -export class PublicKey extends Message { - /** - * @generated from oneof tendermint.crypto.PublicKey.sum - */ - sum: { - /** - * @generated from field: bytes ed25519 = 1; - */ - value: Uint8Array; - case: "ed25519"; - } | { - /** - * @generated from field: bytes secp256k1 = 2; - */ - value: Uint8Array; - case: "secp256k1"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.crypto.PublicKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ed25519", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "sum" }, - { no: 2, name: "secp256k1", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "sum" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PublicKey { - return new PublicKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PublicKey { - return new PublicKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PublicKey { - return new PublicKey().fromJsonString(jsonString, options); - } - - static equals(a: PublicKey | PlainMessage | undefined, b: PublicKey | PlainMessage | undefined): boolean { - return proto3.util.equals(PublicKey, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/crypto/proof_pb.ts b/libs/es-client/src/protobufs/tendermint/crypto/proof_pb.ts deleted file mode 100644 index 992bae5..0000000 --- a/libs/es-client/src/protobufs/tendermint/crypto/proof_pb.ts +++ /dev/null @@ -1,251 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/crypto/proof.proto (package tendermint.crypto, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message tendermint.crypto.Proof - */ -export class Proof extends Message { - /** - * @generated from field: int64 total = 1; - */ - total = protoInt64.zero; - - /** - * @generated from field: int64 index = 2; - */ - index = protoInt64.zero; - - /** - * @generated from field: bytes leaf_hash = 3; - */ - leafHash = new Uint8Array(0); - - /** - * @generated from field: repeated bytes aunts = 4; - */ - aunts: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.crypto.Proof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "index", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "leaf_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "aunts", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Proof { - return new Proof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Proof { - return new Proof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Proof { - return new Proof().fromJsonString(jsonString, options); - } - - static equals(a: Proof | PlainMessage | undefined, b: Proof | PlainMessage | undefined): boolean { - return proto3.util.equals(Proof, a, b); - } -} - -/** - * @generated from message tendermint.crypto.ValueOp - */ -export class ValueOp extends Message { - /** - * Encoded in ProofOp.Key. - * - * @generated from field: bytes key = 1; - */ - key = new Uint8Array(0); - - /** - * To encode in ProofOp.Data - * - * @generated from field: tendermint.crypto.Proof proof = 2; - */ - proof?: Proof; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.crypto.ValueOp"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "proof", kind: "message", T: Proof }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValueOp { - return new ValueOp().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValueOp { - return new ValueOp().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValueOp { - return new ValueOp().fromJsonString(jsonString, options); - } - - static equals(a: ValueOp | PlainMessage | undefined, b: ValueOp | PlainMessage | undefined): boolean { - return proto3.util.equals(ValueOp, a, b); - } -} - -/** - * @generated from message tendermint.crypto.DominoOp - */ -export class DominoOp extends Message { - /** - * @generated from field: string key = 1; - */ - key = ""; - - /** - * @generated from field: string input = 2; - */ - input = ""; - - /** - * @generated from field: string output = 3; - */ - output = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.crypto.DominoOp"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "input", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "output", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DominoOp { - return new DominoOp().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DominoOp { - return new DominoOp().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DominoOp { - return new DominoOp().fromJsonString(jsonString, options); - } - - static equals(a: DominoOp | PlainMessage | undefined, b: DominoOp | PlainMessage | undefined): boolean { - return proto3.util.equals(DominoOp, a, b); - } -} - -/** - * ProofOp defines an operation used for calculating Merkle root - * The data could be arbitrary format, providing nessecary data - * for example neighbouring node hash - * - * @generated from message tendermint.crypto.ProofOp - */ -export class ProofOp extends Message { - /** - * @generated from field: string type = 1; - */ - type = ""; - - /** - * @generated from field: bytes key = 2; - */ - key = new Uint8Array(0); - - /** - * @generated from field: bytes data = 3; - */ - data = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.crypto.ProofOp"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofOp { - return new ProofOp().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofOp { - return new ProofOp().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofOp { - return new ProofOp().fromJsonString(jsonString, options); - } - - static equals(a: ProofOp | PlainMessage | undefined, b: ProofOp | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofOp, a, b); - } -} - -/** - * ProofOps is Merkle proof defined by the list of ProofOps - * - * @generated from message tendermint.crypto.ProofOps - */ -export class ProofOps extends Message { - /** - * @generated from field: repeated tendermint.crypto.ProofOp ops = 1; - */ - ops: ProofOp[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.crypto.ProofOps"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ops", kind: "message", T: ProofOp, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProofOps { - return new ProofOps().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProofOps { - return new ProofOps().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProofOps { - return new ProofOps().fromJsonString(jsonString, options); - } - - static equals(a: ProofOps | PlainMessage | undefined, b: ProofOps | PlainMessage | undefined): boolean { - return proto3.util.equals(ProofOps, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/libs/bits/types_pb.ts b/libs/es-client/src/protobufs/tendermint/libs/bits/types_pb.ts deleted file mode 100644 index aa6bfd0..0000000 --- a/libs/es-client/src/protobufs/tendermint/libs/bits/types_pb.ts +++ /dev/null @@ -1,51 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/libs/bits/types.proto (package tendermint.libs.bits, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message tendermint.libs.bits.BitArray - */ -export class BitArray extends Message { - /** - * @generated from field: int64 bits = 1; - */ - bits = protoInt64.zero; - - /** - * @generated from field: repeated uint64 elems = 2; - */ - elems: bigint[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.libs.bits.BitArray"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bits", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "elems", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BitArray { - return new BitArray().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BitArray { - return new BitArray().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BitArray { - return new BitArray().fromJsonString(jsonString, options); - } - - static equals(a: BitArray | PlainMessage | undefined, b: BitArray | PlainMessage | undefined): boolean { - return proto3.util.equals(BitArray, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/p2p/types_pb.ts b/libs/es-client/src/protobufs/tendermint/p2p/types_pb.ts deleted file mode 100644 index 2720d1c..0000000 --- a/libs/es-client/src/protobufs/tendermint/p2p/types_pb.ts +++ /dev/null @@ -1,228 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/p2p/types.proto (package tendermint.p2p, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from message tendermint.p2p.NetAddress - */ -export class NetAddress extends Message { - /** - * @generated from field: string id = 1; - */ - id = ""; - - /** - * @generated from field: string ip = 2; - */ - ip = ""; - - /** - * @generated from field: uint32 port = 3; - */ - port = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.p2p.NetAddress"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ip", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NetAddress { - return new NetAddress().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NetAddress { - return new NetAddress().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NetAddress { - return new NetAddress().fromJsonString(jsonString, options); - } - - static equals(a: NetAddress | PlainMessage | undefined, b: NetAddress | PlainMessage | undefined): boolean { - return proto3.util.equals(NetAddress, a, b); - } -} - -/** - * @generated from message tendermint.p2p.ProtocolVersion - */ -export class ProtocolVersion extends Message { - /** - * @generated from field: uint64 p2p = 1; - */ - p2p = protoInt64.zero; - - /** - * @generated from field: uint64 block = 2; - */ - block = protoInt64.zero; - - /** - * @generated from field: uint64 app = 3; - */ - app = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.p2p.ProtocolVersion"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "p2p", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "app", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProtocolVersion { - return new ProtocolVersion().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProtocolVersion { - return new ProtocolVersion().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProtocolVersion { - return new ProtocolVersion().fromJsonString(jsonString, options); - } - - static equals(a: ProtocolVersion | PlainMessage | undefined, b: ProtocolVersion | PlainMessage | undefined): boolean { - return proto3.util.equals(ProtocolVersion, a, b); - } -} - -/** - * @generated from message tendermint.p2p.DefaultNodeInfo - */ -export class DefaultNodeInfo extends Message { - /** - * @generated from field: tendermint.p2p.ProtocolVersion protocol_version = 1; - */ - protocolVersion?: ProtocolVersion; - - /** - * @generated from field: string default_node_id = 2; - */ - defaultNodeId = ""; - - /** - * @generated from field: string listen_addr = 3; - */ - listenAddr = ""; - - /** - * @generated from field: string network = 4; - */ - network = ""; - - /** - * @generated from field: string version = 5; - */ - version = ""; - - /** - * @generated from field: bytes channels = 6; - */ - channels = new Uint8Array(0); - - /** - * @generated from field: string moniker = 7; - */ - moniker = ""; - - /** - * @generated from field: tendermint.p2p.DefaultNodeInfoOther other = 8; - */ - other?: DefaultNodeInfoOther; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.p2p.DefaultNodeInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "protocol_version", kind: "message", T: ProtocolVersion }, - { no: 2, name: "default_node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "listen_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "channels", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "moniker", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "other", kind: "message", T: DefaultNodeInfoOther }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DefaultNodeInfo { - return new DefaultNodeInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DefaultNodeInfo { - return new DefaultNodeInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DefaultNodeInfo { - return new DefaultNodeInfo().fromJsonString(jsonString, options); - } - - static equals(a: DefaultNodeInfo | PlainMessage | undefined, b: DefaultNodeInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(DefaultNodeInfo, a, b); - } -} - -/** - * @generated from message tendermint.p2p.DefaultNodeInfoOther - */ -export class DefaultNodeInfoOther extends Message { - /** - * @generated from field: string tx_index = 1; - */ - txIndex = ""; - - /** - * @generated from field: string rpc_address = 2; - */ - rpcAddress = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.p2p.DefaultNodeInfoOther"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "rpc_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DefaultNodeInfoOther { - return new DefaultNodeInfoOther().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DefaultNodeInfoOther { - return new DefaultNodeInfoOther().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DefaultNodeInfoOther { - return new DefaultNodeInfoOther().fromJsonString(jsonString, options); - } - - static equals(a: DefaultNodeInfoOther | PlainMessage | undefined, b: DefaultNodeInfoOther | PlainMessage | undefined): boolean { - return proto3.util.equals(DefaultNodeInfoOther, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/types/block_pb.ts b/libs/es-client/src/protobufs/tendermint/types/block_pb.ts deleted file mode 100644 index 8ad22bb..0000000 --- a/libs/es-client/src/protobufs/tendermint/types/block_pb.ts +++ /dev/null @@ -1,65 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/types/block.proto (package tendermint.types, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Commit, Data, Header } from "./types_pb.js"; -import { EvidenceList } from "./evidence_pb.js"; - -/** - * @generated from message tendermint.types.Block - */ -export class Block extends Message { - /** - * @generated from field: tendermint.types.Header header = 1; - */ - header?: Header; - - /** - * @generated from field: tendermint.types.Data data = 2; - */ - data?: Data; - - /** - * @generated from field: tendermint.types.EvidenceList evidence = 3; - */ - evidence?: EvidenceList; - - /** - * @generated from field: tendermint.types.Commit last_commit = 4; - */ - lastCommit?: Commit; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Block"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: Header }, - { no: 2, name: "data", kind: "message", T: Data }, - { no: 3, name: "evidence", kind: "message", T: EvidenceList }, - { no: 4, name: "last_commit", kind: "message", T: Commit }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Block { - return new Block().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Block { - return new Block().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Block { - return new Block().fromJsonString(jsonString, options); - } - - static equals(a: Block | PlainMessage | undefined, b: Block | PlainMessage | undefined): boolean { - return proto3.util.equals(Block, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/types/evidence_pb.ts b/libs/es-client/src/protobufs/tendermint/types/evidence_pb.ts deleted file mode 100644 index 7808de2..0000000 --- a/libs/es-client/src/protobufs/tendermint/types/evidence_pb.ts +++ /dev/null @@ -1,223 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/types/evidence.proto (package tendermint.types, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { LightBlock, Vote } from "./types_pb.js"; -import { Validator } from "./validator_pb.js"; - -/** - * @generated from message tendermint.types.Evidence - */ -export class Evidence extends Message { - /** - * @generated from oneof tendermint.types.Evidence.sum - */ - sum: { - /** - * @generated from field: tendermint.types.DuplicateVoteEvidence duplicate_vote_evidence = 1; - */ - value: DuplicateVoteEvidence; - case: "duplicateVoteEvidence"; - } | { - /** - * @generated from field: tendermint.types.LightClientAttackEvidence light_client_attack_evidence = 2; - */ - value: LightClientAttackEvidence; - case: "lightClientAttackEvidence"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Evidence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "duplicate_vote_evidence", kind: "message", T: DuplicateVoteEvidence, oneof: "sum" }, - { no: 2, name: "light_client_attack_evidence", kind: "message", T: LightClientAttackEvidence, oneof: "sum" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Evidence { - return new Evidence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Evidence { - return new Evidence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Evidence { - return new Evidence().fromJsonString(jsonString, options); - } - - static equals(a: Evidence | PlainMessage | undefined, b: Evidence | PlainMessage | undefined): boolean { - return proto3.util.equals(Evidence, a, b); - } -} - -/** - * DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. - * - * @generated from message tendermint.types.DuplicateVoteEvidence - */ -export class DuplicateVoteEvidence extends Message { - /** - * @generated from field: tendermint.types.Vote vote_a = 1; - */ - voteA?: Vote; - - /** - * @generated from field: tendermint.types.Vote vote_b = 2; - */ - voteB?: Vote; - - /** - * @generated from field: int64 total_voting_power = 3; - */ - totalVotingPower = protoInt64.zero; - - /** - * @generated from field: int64 validator_power = 4; - */ - validatorPower = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 5; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.DuplicateVoteEvidence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vote_a", kind: "message", T: Vote }, - { no: 2, name: "vote_b", kind: "message", T: Vote }, - { no: 3, name: "total_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "validator_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DuplicateVoteEvidence { - return new DuplicateVoteEvidence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DuplicateVoteEvidence { - return new DuplicateVoteEvidence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DuplicateVoteEvidence { - return new DuplicateVoteEvidence().fromJsonString(jsonString, options); - } - - static equals(a: DuplicateVoteEvidence | PlainMessage | undefined, b: DuplicateVoteEvidence | PlainMessage | undefined): boolean { - return proto3.util.equals(DuplicateVoteEvidence, a, b); - } -} - -/** - * LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. - * - * @generated from message tendermint.types.LightClientAttackEvidence - */ -export class LightClientAttackEvidence extends Message { - /** - * @generated from field: tendermint.types.LightBlock conflicting_block = 1; - */ - conflictingBlock?: LightBlock; - - /** - * @generated from field: int64 common_height = 2; - */ - commonHeight = protoInt64.zero; - - /** - * @generated from field: repeated tendermint.types.Validator byzantine_validators = 3; - */ - byzantineValidators: Validator[] = []; - - /** - * @generated from field: int64 total_voting_power = 4; - */ - totalVotingPower = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 5; - */ - timestamp?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.LightClientAttackEvidence"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "conflicting_block", kind: "message", T: LightBlock }, - { no: 2, name: "common_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "byzantine_validators", kind: "message", T: Validator, repeated: true }, - { no: 4, name: "total_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LightClientAttackEvidence { - return new LightClientAttackEvidence().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LightClientAttackEvidence { - return new LightClientAttackEvidence().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LightClientAttackEvidence { - return new LightClientAttackEvidence().fromJsonString(jsonString, options); - } - - static equals(a: LightClientAttackEvidence | PlainMessage | undefined, b: LightClientAttackEvidence | PlainMessage | undefined): boolean { - return proto3.util.equals(LightClientAttackEvidence, a, b); - } -} - -/** - * @generated from message tendermint.types.EvidenceList - */ -export class EvidenceList extends Message { - /** - * @generated from field: repeated tendermint.types.Evidence evidence = 1; - */ - evidence: Evidence[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.EvidenceList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "evidence", kind: "message", T: Evidence, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EvidenceList { - return new EvidenceList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EvidenceList { - return new EvidenceList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EvidenceList { - return new EvidenceList().fromJsonString(jsonString, options); - } - - static equals(a: EvidenceList | PlainMessage | undefined, b: EvidenceList | PlainMessage | undefined): boolean { - return proto3.util.equals(EvidenceList, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/types/params_pb.ts b/libs/es-client/src/protobufs/tendermint/types/params_pb.ts deleted file mode 100644 index 368d8f9..0000000 --- a/libs/es-client/src/protobufs/tendermint/types/params_pb.ts +++ /dev/null @@ -1,364 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/types/params.proto (package tendermint.types, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * ConsensusParams contains consensus critical parameters that determine the - * validity of blocks. - * - * @generated from message tendermint.types.ConsensusParams - */ -export class ConsensusParams extends Message { - /** - * @generated from field: tendermint.types.BlockParams block = 1; - */ - block?: BlockParams; - - /** - * @generated from field: tendermint.types.EvidenceParams evidence = 2; - */ - evidence?: EvidenceParams; - - /** - * @generated from field: tendermint.types.ValidatorParams validator = 3; - */ - validator?: ValidatorParams; - - /** - * @generated from field: tendermint.types.VersionParams version = 4; - */ - version?: VersionParams; - - /** - * @generated from field: tendermint.types.ABCIParams abci = 5; - */ - abci?: ABCIParams; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.ConsensusParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block", kind: "message", T: BlockParams }, - { no: 2, name: "evidence", kind: "message", T: EvidenceParams }, - { no: 3, name: "validator", kind: "message", T: ValidatorParams }, - { no: 4, name: "version", kind: "message", T: VersionParams }, - { no: 5, name: "abci", kind: "message", T: ABCIParams }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusParams { - return new ConsensusParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusParams { - return new ConsensusParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConsensusParams { - return new ConsensusParams().fromJsonString(jsonString, options); - } - - static equals(a: ConsensusParams | PlainMessage | undefined, b: ConsensusParams | PlainMessage | undefined): boolean { - return proto3.util.equals(ConsensusParams, a, b); - } -} - -/** - * BlockParams contains limits on the block size. - * - * @generated from message tendermint.types.BlockParams - */ -export class BlockParams extends Message { - /** - * Max block size, in bytes. - * Note: must be greater than 0 - * - * @generated from field: int64 max_bytes = 1; - */ - maxBytes = protoInt64.zero; - - /** - * Max gas per block. - * Note: must be greater or equal to -1 - * - * @generated from field: int64 max_gas = 2; - */ - maxGas = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.BlockParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "max_gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlockParams { - return new BlockParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlockParams { - return new BlockParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlockParams { - return new BlockParams().fromJsonString(jsonString, options); - } - - static equals(a: BlockParams | PlainMessage | undefined, b: BlockParams | PlainMessage | undefined): boolean { - return proto3.util.equals(BlockParams, a, b); - } -} - -/** - * EvidenceParams determine how we handle evidence of malfeasance. - * - * @generated from message tendermint.types.EvidenceParams - */ -export class EvidenceParams extends Message { - /** - * Max age of evidence, in blocks. - * - * The basic formula for calculating this is: MaxAgeDuration / {average block - * time}. - * - * @generated from field: int64 max_age_num_blocks = 1; - */ - maxAgeNumBlocks = protoInt64.zero; - - /** - * Max age of evidence, in time. - * - * It should correspond with an app's "unbonding period" or other similar - * mechanism for handling [Nothing-At-Stake - * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - * - * @generated from field: google.protobuf.Duration max_age_duration = 2; - */ - maxAgeDuration?: Duration; - - /** - * This sets the maximum size of total evidence in bytes that can be committed in a single block. - * and should fall comfortably under the max block bytes. - * Default is 1048576 or 1MB - * - * @generated from field: int64 max_bytes = 3; - */ - maxBytes = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.EvidenceParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_age_num_blocks", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "max_age_duration", kind: "message", T: Duration }, - { no: 3, name: "max_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EvidenceParams { - return new EvidenceParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EvidenceParams { - return new EvidenceParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EvidenceParams { - return new EvidenceParams().fromJsonString(jsonString, options); - } - - static equals(a: EvidenceParams | PlainMessage | undefined, b: EvidenceParams | PlainMessage | undefined): boolean { - return proto3.util.equals(EvidenceParams, a, b); - } -} - -/** - * ValidatorParams restrict the public key types validators can use. - * NOTE: uses ABCI pubkey naming, not Amino names. - * - * @generated from message tendermint.types.ValidatorParams - */ -export class ValidatorParams extends Message { - /** - * @generated from field: repeated string pub_key_types = 1; - */ - pubKeyTypes: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.ValidatorParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pub_key_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorParams { - return new ValidatorParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorParams { - return new ValidatorParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorParams { - return new ValidatorParams().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorParams | PlainMessage | undefined, b: ValidatorParams | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorParams, a, b); - } -} - -/** - * VersionParams contains the ABCI application version. - * - * @generated from message tendermint.types.VersionParams - */ -export class VersionParams extends Message { - /** - * @generated from field: uint64 app = 1; - */ - app = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.VersionParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "app", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VersionParams { - return new VersionParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VersionParams { - return new VersionParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VersionParams { - return new VersionParams().fromJsonString(jsonString, options); - } - - static equals(a: VersionParams | PlainMessage | undefined, b: VersionParams | PlainMessage | undefined): boolean { - return proto3.util.equals(VersionParams, a, b); - } -} - -/** - * HashedParams is a subset of ConsensusParams. - * - * It is hashed into the Header.ConsensusHash. - * - * @generated from message tendermint.types.HashedParams - */ -export class HashedParams extends Message { - /** - * @generated from field: int64 block_max_bytes = 1; - */ - blockMaxBytes = protoInt64.zero; - - /** - * @generated from field: int64 block_max_gas = 2; - */ - blockMaxGas = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.HashedParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_max_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "block_max_gas", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HashedParams { - return new HashedParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HashedParams { - return new HashedParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HashedParams { - return new HashedParams().fromJsonString(jsonString, options); - } - - static equals(a: HashedParams | PlainMessage | undefined, b: HashedParams | PlainMessage | undefined): boolean { - return proto3.util.equals(HashedParams, a, b); - } -} - -/** - * ABCIParams configure functionality specific to the Application Blockchain Interface. - * - * @generated from message tendermint.types.ABCIParams - */ -export class ABCIParams extends Message { - /** - * vote_extensions_enable_height configures the first height during which - * vote extensions will be enabled. During this specified height, and for all - * subsequent heights, precommit messages that do not contain valid extension data - * will be considered invalid. Prior to this height, vote extensions will not - * be used or accepted by validators on the network. - * - * Once enabled, vote extensions will be created by the application in ExtendVote, - * passed to the application for validation in VerifyVoteExtension and given - * to the application to use when proposing a block during PrepareProposal. - * - * @generated from field: int64 vote_extensions_enable_height = 1; - */ - voteExtensionsEnableHeight = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.ABCIParams"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "vote_extensions_enable_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ABCIParams { - return new ABCIParams().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ABCIParams { - return new ABCIParams().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ABCIParams { - return new ABCIParams().fromJsonString(jsonString, options); - } - - static equals(a: ABCIParams | PlainMessage | undefined, b: ABCIParams | PlainMessage | undefined): boolean { - return proto3.util.equals(ABCIParams, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/types/types_pb.ts b/libs/es-client/src/protobufs/tendermint/types/types_pb.ts deleted file mode 100644 index 9451135..0000000 --- a/libs/es-client/src/protobufs/tendermint/types/types_pb.ts +++ /dev/null @@ -1,991 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/types/types.proto (package tendermint.types, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { Proof } from "../crypto/proof_pb.js"; -import { Consensus } from "../version/types_pb.js"; -import { BlockIDFlag, ValidatorSet } from "./validator_pb.js"; - -/** - * SignedMsgType is a type of signed message in the consensus. - * - * @generated from enum tendermint.types.SignedMsgType - */ -export enum SignedMsgType { - /** - * @generated from enum value: SIGNED_MSG_TYPE_UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * Votes - * - * @generated from enum value: SIGNED_MSG_TYPE_PREVOTE = 1; - */ - PREVOTE = 1, - - /** - * @generated from enum value: SIGNED_MSG_TYPE_PRECOMMIT = 2; - */ - PRECOMMIT = 2, - - /** - * Proposals - * - * @generated from enum value: SIGNED_MSG_TYPE_PROPOSAL = 32; - */ - PROPOSAL = 32, -} -// Retrieve enum metadata with: proto3.getEnumType(SignedMsgType) -proto3.util.setEnumType(SignedMsgType, "tendermint.types.SignedMsgType", [ - { no: 0, name: "SIGNED_MSG_TYPE_UNKNOWN" }, - { no: 1, name: "SIGNED_MSG_TYPE_PREVOTE" }, - { no: 2, name: "SIGNED_MSG_TYPE_PRECOMMIT" }, - { no: 32, name: "SIGNED_MSG_TYPE_PROPOSAL" }, -]); - -/** - * PartsetHeader - * - * @generated from message tendermint.types.PartSetHeader - */ -export class PartSetHeader extends Message { - /** - * @generated from field: uint32 total = 1; - */ - total = 0; - - /** - * @generated from field: bytes hash = 2; - */ - hash = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.PartSetHeader"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "total", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PartSetHeader { - return new PartSetHeader().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PartSetHeader { - return new PartSetHeader().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PartSetHeader { - return new PartSetHeader().fromJsonString(jsonString, options); - } - - static equals(a: PartSetHeader | PlainMessage | undefined, b: PartSetHeader | PlainMessage | undefined): boolean { - return proto3.util.equals(PartSetHeader, a, b); - } -} - -/** - * @generated from message tendermint.types.Part - */ -export class Part extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * @generated from field: bytes bytes = 2; - */ - bytes = new Uint8Array(0); - - /** - * @generated from field: tendermint.crypto.Proof proof = 3; - */ - proof?: Proof; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Part"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof", kind: "message", T: Proof }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Part { - return new Part().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Part { - return new Part().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Part { - return new Part().fromJsonString(jsonString, options); - } - - static equals(a: Part | PlainMessage | undefined, b: Part | PlainMessage | undefined): boolean { - return proto3.util.equals(Part, a, b); - } -} - -/** - * BlockID - * - * @generated from message tendermint.types.BlockID - */ -export class BlockID extends Message { - /** - * @generated from field: bytes hash = 1; - */ - hash = new Uint8Array(0); - - /** - * @generated from field: tendermint.types.PartSetHeader part_set_header = 2; - */ - partSetHeader?: PartSetHeader; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.BlockID"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "part_set_header", kind: "message", T: PartSetHeader }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlockID { - return new BlockID().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlockID { - return new BlockID().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlockID { - return new BlockID().fromJsonString(jsonString, options); - } - - static equals(a: BlockID | PlainMessage | undefined, b: BlockID | PlainMessage | undefined): boolean { - return proto3.util.equals(BlockID, a, b); - } -} - -/** - * Header defines the structure of a block header. - * - * @generated from message tendermint.types.Header - */ -export class Header extends Message
{ - /** - * basic block info - * - * @generated from field: tendermint.version.Consensus version = 1; - */ - version?: Consensus; - - /** - * @generated from field: string chain_id = 2; - */ - chainId = ""; - - /** - * @generated from field: int64 height = 3; - */ - height = protoInt64.zero; - - /** - * @generated from field: google.protobuf.Timestamp time = 4; - */ - time?: Timestamp; - - /** - * prev block info - * - * @generated from field: tendermint.types.BlockID last_block_id = 5; - */ - lastBlockId?: BlockID; - - /** - * hashes of block data - * - * commit from validators from the last block - * - * @generated from field: bytes last_commit_hash = 6; - */ - lastCommitHash = new Uint8Array(0); - - /** - * transactions - * - * @generated from field: bytes data_hash = 7; - */ - dataHash = new Uint8Array(0); - - /** - * hashes from the app output from the prev block - * - * validators for the current block - * - * @generated from field: bytes validators_hash = 8; - */ - validatorsHash = new Uint8Array(0); - - /** - * validators for the next block - * - * @generated from field: bytes next_validators_hash = 9; - */ - nextValidatorsHash = new Uint8Array(0); - - /** - * consensus params for current block - * - * @generated from field: bytes consensus_hash = 10; - */ - consensusHash = new Uint8Array(0); - - /** - * state after txs from the previous block - * - * @generated from field: bytes app_hash = 11; - */ - appHash = new Uint8Array(0); - - /** - * root hash of all results from the txs from the previous block - * - * @generated from field: bytes last_results_hash = 12; - */ - lastResultsHash = new Uint8Array(0); - - /** - * consensus info - * - * evidence included in the block - * - * @generated from field: bytes evidence_hash = 13; - */ - evidenceHash = new Uint8Array(0); - - /** - * original proposer of the block - * - * @generated from field: bytes proposer_address = 14; - */ - proposerAddress = new Uint8Array(0); - - constructor(data?: PartialMessage
) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Header"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "version", kind: "message", T: Consensus }, - { no: 2, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "time", kind: "message", T: Timestamp }, - { no: 5, name: "last_block_id", kind: "message", T: BlockID }, - { no: 6, name: "last_commit_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "data_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 8, name: "validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "next_validators_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "consensus_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 11, name: "app_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 12, name: "last_results_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 13, name: "evidence_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 14, name: "proposer_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Header { - return new Header().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Header { - return new Header().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Header { - return new Header().fromJsonString(jsonString, options); - } - - static equals(a: Header | PlainMessage
| undefined, b: Header | PlainMessage
| undefined): boolean { - return proto3.util.equals(Header, a, b); - } -} - -/** - * Data contains the set of transactions included in the block - * - * @generated from message tendermint.types.Data - */ -export class Data extends Message { - /** - * Txs that will be applied by state @ block.Height+1. - * NOTE: not all txs here are valid. We're just agreeing on the order first. - * This means that block.AppHash does not include these txs. - * - * @generated from field: repeated bytes txs = 1; - */ - txs: Uint8Array[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Data"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "txs", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Data { - return new Data().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Data { - return new Data().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Data { - return new Data().fromJsonString(jsonString, options); - } - - static equals(a: Data | PlainMessage | undefined, b: Data | PlainMessage | undefined): boolean { - return proto3.util.equals(Data, a, b); - } -} - -/** - * Vote represents a prevote or precommit vote from validators for - * consensus. - * - * @generated from message tendermint.types.Vote - */ -export class Vote extends Message { - /** - * @generated from field: tendermint.types.SignedMsgType type = 1; - */ - type = SignedMsgType.UNKNOWN; - - /** - * @generated from field: int64 height = 2; - */ - height = protoInt64.zero; - - /** - * @generated from field: int32 round = 3; - */ - round = 0; - - /** - * zero if vote is nil. - * - * @generated from field: tendermint.types.BlockID block_id = 4; - */ - blockId?: BlockID; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 5; - */ - timestamp?: Timestamp; - - /** - * @generated from field: bytes validator_address = 6; - */ - validatorAddress = new Uint8Array(0); - - /** - * @generated from field: int32 validator_index = 7; - */ - validatorIndex = 0; - - /** - * Vote signature by the validator if they participated in consensus for the - * associated block. - * - * @generated from field: bytes signature = 8; - */ - signature = new Uint8Array(0); - - /** - * Vote extension provided by the application. Only valid for precommit - * messages. - * - * @generated from field: bytes extension = 9; - */ - extension = new Uint8Array(0); - - /** - * Vote extension signature by the validator if they participated in - * consensus for the associated block. - * Only valid for precommit messages. - * - * @generated from field: bytes extension_signature = 10; - */ - extensionSignature = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Vote"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(SignedMsgType) }, - { no: 2, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "block_id", kind: "message", T: BlockID }, - { no: 5, name: "timestamp", kind: "message", T: Timestamp }, - { no: 6, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 7, name: "validator_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 8, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 9, name: "extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 10, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Vote { - return new Vote().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Vote { - return new Vote().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Vote { - return new Vote().fromJsonString(jsonString, options); - } - - static equals(a: Vote | PlainMessage | undefined, b: Vote | PlainMessage | undefined): boolean { - return proto3.util.equals(Vote, a, b); - } -} - -/** - * Commit contains the evidence that a block was committed by a set of validators. - * - * @generated from message tendermint.types.Commit - */ -export class Commit extends Message { - /** - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * @generated from field: int32 round = 2; - */ - round = 0; - - /** - * @generated from field: tendermint.types.BlockID block_id = 3; - */ - blockId?: BlockID; - - /** - * @generated from field: repeated tendermint.types.CommitSig signatures = 4; - */ - signatures: CommitSig[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Commit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "block_id", kind: "message", T: BlockID }, - { no: 4, name: "signatures", kind: "message", T: CommitSig, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Commit { - return new Commit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Commit { - return new Commit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Commit { - return new Commit().fromJsonString(jsonString, options); - } - - static equals(a: Commit | PlainMessage | undefined, b: Commit | PlainMessage | undefined): boolean { - return proto3.util.equals(Commit, a, b); - } -} - -/** - * CommitSig is a part of the Vote included in a Commit. - * - * @generated from message tendermint.types.CommitSig - */ -export class CommitSig extends Message { - /** - * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 1; - */ - blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - - /** - * @generated from field: bytes validator_address = 2; - */ - validatorAddress = new Uint8Array(0); - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 3; - */ - timestamp?: Timestamp; - - /** - * @generated from field: bytes signature = 4; - */ - signature = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.CommitSig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, - { no: 2, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "timestamp", kind: "message", T: Timestamp }, - { no: 4, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CommitSig { - return new CommitSig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CommitSig { - return new CommitSig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CommitSig { - return new CommitSig().fromJsonString(jsonString, options); - } - - static equals(a: CommitSig | PlainMessage | undefined, b: CommitSig | PlainMessage | undefined): boolean { - return proto3.util.equals(CommitSig, a, b); - } -} - -/** - * @generated from message tendermint.types.ExtendedCommit - */ -export class ExtendedCommit extends Message { - /** - * @generated from field: int64 height = 1; - */ - height = protoInt64.zero; - - /** - * @generated from field: int32 round = 2; - */ - round = 0; - - /** - * @generated from field: tendermint.types.BlockID block_id = 3; - */ - blockId?: BlockID; - - /** - * @generated from field: repeated tendermint.types.ExtendedCommitSig extended_signatures = 4; - */ - extendedSignatures: ExtendedCommitSig[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.ExtendedCommit"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "block_id", kind: "message", T: BlockID }, - { no: 4, name: "extended_signatures", kind: "message", T: ExtendedCommitSig, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedCommit { - return new ExtendedCommit().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedCommit { - return new ExtendedCommit().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtendedCommit { - return new ExtendedCommit().fromJsonString(jsonString, options); - } - - static equals(a: ExtendedCommit | PlainMessage | undefined, b: ExtendedCommit | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtendedCommit, a, b); - } -} - -/** - * ExtendedCommitSig retains all the same fields as CommitSig but adds vote - * extension-related fields. We use two signatures to ensure backwards compatibility. - * That is the digest of the original signature is still the same in prior versions - * - * @generated from message tendermint.types.ExtendedCommitSig - */ -export class ExtendedCommitSig extends Message { - /** - * @generated from field: tendermint.types.BlockIDFlag block_id_flag = 1; - */ - blockIdFlag = BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN; - - /** - * @generated from field: bytes validator_address = 2; - */ - validatorAddress = new Uint8Array(0); - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 3; - */ - timestamp?: Timestamp; - - /** - * @generated from field: bytes signature = 4; - */ - signature = new Uint8Array(0); - - /** - * Vote extension data - * - * @generated from field: bytes extension = 5; - */ - extension = new Uint8Array(0); - - /** - * Vote extension signature - * - * @generated from field: bytes extension_signature = 6; - */ - extensionSignature = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.ExtendedCommitSig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_id_flag", kind: "enum", T: proto3.getEnumType(BlockIDFlag) }, - { no: 2, name: "validator_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "timestamp", kind: "message", T: Timestamp }, - { no: 4, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "extension", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "extension_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedCommitSig { - return new ExtendedCommitSig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedCommitSig { - return new ExtendedCommitSig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtendedCommitSig { - return new ExtendedCommitSig().fromJsonString(jsonString, options); - } - - static equals(a: ExtendedCommitSig | PlainMessage | undefined, b: ExtendedCommitSig | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtendedCommitSig, a, b); - } -} - -/** - * @generated from message tendermint.types.Proposal - */ -export class Proposal extends Message { - /** - * @generated from field: tendermint.types.SignedMsgType type = 1; - */ - type = SignedMsgType.UNKNOWN; - - /** - * @generated from field: int64 height = 2; - */ - height = protoInt64.zero; - - /** - * @generated from field: int32 round = 3; - */ - round = 0; - - /** - * @generated from field: int32 pol_round = 4; - */ - polRound = 0; - - /** - * @generated from field: tendermint.types.BlockID block_id = 5; - */ - blockId?: BlockID; - - /** - * @generated from field: google.protobuf.Timestamp timestamp = 6; - */ - timestamp?: Timestamp; - - /** - * @generated from field: bytes signature = 7; - */ - signature = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Proposal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(SignedMsgType) }, - { no: 2, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "pol_round", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "block_id", kind: "message", T: BlockID }, - { no: 6, name: "timestamp", kind: "message", T: Timestamp }, - { no: 7, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Proposal { - return new Proposal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Proposal { - return new Proposal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Proposal { - return new Proposal().fromJsonString(jsonString, options); - } - - static equals(a: Proposal | PlainMessage | undefined, b: Proposal | PlainMessage | undefined): boolean { - return proto3.util.equals(Proposal, a, b); - } -} - -/** - * @generated from message tendermint.types.SignedHeader - */ -export class SignedHeader extends Message { - /** - * @generated from field: tendermint.types.Header header = 1; - */ - header?: Header; - - /** - * @generated from field: tendermint.types.Commit commit = 2; - */ - commit?: Commit; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.SignedHeader"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: Header }, - { no: 2, name: "commit", kind: "message", T: Commit }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignedHeader { - return new SignedHeader().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignedHeader { - return new SignedHeader().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignedHeader { - return new SignedHeader().fromJsonString(jsonString, options); - } - - static equals(a: SignedHeader | PlainMessage | undefined, b: SignedHeader | PlainMessage | undefined): boolean { - return proto3.util.equals(SignedHeader, a, b); - } -} - -/** - * @generated from message tendermint.types.LightBlock - */ -export class LightBlock extends Message { - /** - * @generated from field: tendermint.types.SignedHeader signed_header = 1; - */ - signedHeader?: SignedHeader; - - /** - * @generated from field: tendermint.types.ValidatorSet validator_set = 2; - */ - validatorSet?: ValidatorSet; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.LightBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signed_header", kind: "message", T: SignedHeader }, - { no: 2, name: "validator_set", kind: "message", T: ValidatorSet }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LightBlock { - return new LightBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LightBlock { - return new LightBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LightBlock { - return new LightBlock().fromJsonString(jsonString, options); - } - - static equals(a: LightBlock | PlainMessage | undefined, b: LightBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(LightBlock, a, b); - } -} - -/** - * @generated from message tendermint.types.BlockMeta - */ -export class BlockMeta extends Message { - /** - * @generated from field: tendermint.types.BlockID block_id = 1; - */ - blockId?: BlockID; - - /** - * @generated from field: int64 block_size = 2; - */ - blockSize = protoInt64.zero; - - /** - * @generated from field: tendermint.types.Header header = 3; - */ - header?: Header; - - /** - * @generated from field: int64 num_txs = 4; - */ - numTxs = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.BlockMeta"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_id", kind: "message", T: BlockID }, - { no: 2, name: "block_size", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "header", kind: "message", T: Header }, - { no: 4, name: "num_txs", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlockMeta { - return new BlockMeta().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlockMeta { - return new BlockMeta().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlockMeta { - return new BlockMeta().fromJsonString(jsonString, options); - } - - static equals(a: BlockMeta | PlainMessage | undefined, b: BlockMeta | PlainMessage | undefined): boolean { - return proto3.util.equals(BlockMeta, a, b); - } -} - -/** - * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. - * - * @generated from message tendermint.types.TxProof - */ -export class TxProof extends Message { - /** - * @generated from field: bytes root_hash = 1; - */ - rootHash = new Uint8Array(0); - - /** - * @generated from field: bytes data = 2; - */ - data = new Uint8Array(0); - - /** - * @generated from field: tendermint.crypto.Proof proof = 3; - */ - proof?: Proof; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.TxProof"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "root_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "proof", kind: "message", T: Proof }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TxProof { - return new TxProof().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TxProof { - return new TxProof().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TxProof { - return new TxProof().fromJsonString(jsonString, options); - } - - static equals(a: TxProof | PlainMessage | undefined, b: TxProof | PlainMessage | undefined): boolean { - return proto3.util.equals(TxProof, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/types/validator_pb.ts b/libs/es-client/src/protobufs/tendermint/types/validator_pb.ts deleted file mode 100644 index 6dbdf6a..0000000 --- a/libs/es-client/src/protobufs/tendermint/types/validator_pb.ts +++ /dev/null @@ -1,198 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/types/validator.proto (package tendermint.types, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { PublicKey } from "../crypto/keys_pb.js"; - -/** - * BlockIdFlag indicates which BlockID the signature is for - * - * @generated from enum tendermint.types.BlockIDFlag - */ -export enum BlockIDFlag { - /** - * indicates an error condition - * - * @generated from enum value: BLOCK_ID_FLAG_UNKNOWN = 0; - */ - BLOCK_ID_FLAG_UNKNOWN = 0, - - /** - * the vote was not received - * - * @generated from enum value: BLOCK_ID_FLAG_ABSENT = 1; - */ - BLOCK_ID_FLAG_ABSENT = 1, - - /** - * voted for the block that received the majority - * - * @generated from enum value: BLOCK_ID_FLAG_COMMIT = 2; - */ - BLOCK_ID_FLAG_COMMIT = 2, - - /** - * voted for nil - * - * @generated from enum value: BLOCK_ID_FLAG_NIL = 3; - */ - BLOCK_ID_FLAG_NIL = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(BlockIDFlag) -proto3.util.setEnumType(BlockIDFlag, "tendermint.types.BlockIDFlag", [ - { no: 0, name: "BLOCK_ID_FLAG_UNKNOWN" }, - { no: 1, name: "BLOCK_ID_FLAG_ABSENT" }, - { no: 2, name: "BLOCK_ID_FLAG_COMMIT" }, - { no: 3, name: "BLOCK_ID_FLAG_NIL" }, -]); - -/** - * @generated from message tendermint.types.ValidatorSet - */ -export class ValidatorSet extends Message { - /** - * @generated from field: repeated tendermint.types.Validator validators = 1; - */ - validators: Validator[] = []; - - /** - * @generated from field: tendermint.types.Validator proposer = 2; - */ - proposer?: Validator; - - /** - * @generated from field: int64 total_voting_power = 3; - */ - totalVotingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.ValidatorSet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "validators", kind: "message", T: Validator, repeated: true }, - { no: 2, name: "proposer", kind: "message", T: Validator }, - { no: 3, name: "total_voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorSet { - return new ValidatorSet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorSet { - return new ValidatorSet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ValidatorSet { - return new ValidatorSet().fromJsonString(jsonString, options); - } - - static equals(a: ValidatorSet | PlainMessage | undefined, b: ValidatorSet | PlainMessage | undefined): boolean { - return proto3.util.equals(ValidatorSet, a, b); - } -} - -/** - * @generated from message tendermint.types.Validator - */ -export class Validator extends Message { - /** - * @generated from field: bytes address = 1; - */ - address = new Uint8Array(0); - - /** - * @generated from field: tendermint.crypto.PublicKey pub_key = 2; - */ - pubKey?: PublicKey; - - /** - * @generated from field: int64 voting_power = 3; - */ - votingPower = protoInt64.zero; - - /** - * @generated from field: int64 proposer_priority = 4; - */ - proposerPriority = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.Validator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "pub_key", kind: "message", T: PublicKey }, - { no: 3, name: "voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "proposer_priority", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Validator { - return new Validator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Validator { - return new Validator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Validator { - return new Validator().fromJsonString(jsonString, options); - } - - static equals(a: Validator | PlainMessage | undefined, b: Validator | PlainMessage | undefined): boolean { - return proto3.util.equals(Validator, a, b); - } -} - -/** - * @generated from message tendermint.types.SimpleValidator - */ -export class SimpleValidator extends Message { - /** - * @generated from field: tendermint.crypto.PublicKey pub_key = 1; - */ - pubKey?: PublicKey; - - /** - * @generated from field: int64 voting_power = 2; - */ - votingPower = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.types.SimpleValidator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "pub_key", kind: "message", T: PublicKey }, - { no: 2, name: "voting_power", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SimpleValidator { - return new SimpleValidator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SimpleValidator { - return new SimpleValidator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SimpleValidator { - return new SimpleValidator().fromJsonString(jsonString, options); - } - - static equals(a: SimpleValidator | PlainMessage | undefined, b: SimpleValidator | PlainMessage | undefined): boolean { - return proto3.util.equals(SimpleValidator, a, b); - } -} - diff --git a/libs/es-client/src/protobufs/tendermint/version/types_pb.ts b/libs/es-client/src/protobufs/tendermint/version/types_pb.ts deleted file mode 100644 index 8f35eb0..0000000 --- a/libs/es-client/src/protobufs/tendermint/version/types_pb.ts +++ /dev/null @@ -1,102 +0,0 @@ -// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" -// @generated from file tendermint/version/types.proto (package tendermint.version, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * App includes the protocol and software version for the application. - * This information is included in ResponseInfo. The App.Protocol can be - * updated in ResponseEndBlock. - * - * @generated from message tendermint.version.App - */ -export class App extends Message { - /** - * @generated from field: uint64 protocol = 1; - */ - protocol = protoInt64.zero; - - /** - * @generated from field: string software = 2; - */ - software = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.version.App"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "protocol", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "software", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): App { - return new App().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): App { - return new App().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): App { - return new App().fromJsonString(jsonString, options); - } - - static equals(a: App | PlainMessage | undefined, b: App | PlainMessage | undefined): boolean { - return proto3.util.equals(App, a, b); - } -} - -/** - * Consensus captures the consensus rules for processing a block in the blockchain, - * including all blockchain data structures and the rules of the application's - * state transition machine. - * - * @generated from message tendermint.version.Consensus - */ -export class Consensus extends Message { - /** - * @generated from field: uint64 block = 1; - */ - block = protoInt64.zero; - - /** - * @generated from field: uint64 app = 2; - */ - app = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "tendermint.version.Consensus"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "app", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Consensus { - return new Consensus().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Consensus { - return new Consensus().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Consensus { - return new Consensus().fromJsonString(jsonString, options); - } - - static equals(a: Consensus | PlainMessage | undefined, b: Consensus | PlainMessage | undefined): boolean { - return proto3.util.equals(Consensus, a, b); - } -} - diff --git a/libs/es-client/src/registry/apis/getChainRegistryAssetList.ts b/libs/es-client/src/registry/apis/getChainRegistryAssetList.ts deleted file mode 100644 index 99f5af1..0000000 --- a/libs/es-client/src/registry/apis/getChainRegistryAssetList.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ChainRegistryAssetList } from "../types/ChainRegistryAssetList"; - -export async function getChainRegistryAssetList( - chain: string -): Promise { - const res = await fetch( - `https://raw.githubusercontent.com/cosmos/chain-registry/master/${chain}/assetlist.json` - ); - return res.json(); -} diff --git a/libs/es-client/src/registry/apis/getChainRegistryChainInfo.ts b/libs/es-client/src/registry/apis/getChainRegistryChainInfo.ts deleted file mode 100644 index 735ded7..0000000 --- a/libs/es-client/src/registry/apis/getChainRegistryChainInfo.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ChainRegistryChainInfo } from "../types/ChainRegistryChainInfo"; - -export async function getChainRegistryChainInfo( - chain: string -): Promise { - const res = await fetch( - `https://raw.githubusercontent.com/cosmos/chain-registry/master/${chain}/chain.json` - ); - return res.json(); -} diff --git a/libs/es-client/src/registry/index.ts b/libs/es-client/src/registry/index.ts deleted file mode 100644 index 2be630e..0000000 --- a/libs/es-client/src/registry/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type * from "@keplr-wallet/types"; -export type { ChainRegistryAssetList } from "./types/ChainRegistryAssetList"; -export type { ChainRegistryChainInfo } from "./types/ChainRegistryChainInfo"; - -export { getChainRegistryAssetList } from "./apis/getChainRegistryAssetList"; -export { getChainRegistryChainInfo } from "./apis/getChainRegistryChainInfo"; diff --git a/libs/es-client/src/registry/types/ChainRegistryAssetList.ts b/libs/es-client/src/registry/types/ChainRegistryAssetList.ts deleted file mode 100644 index 9fe3202..0000000 --- a/libs/es-client/src/registry/types/ChainRegistryAssetList.ts +++ /dev/null @@ -1,263 +0,0 @@ -/* eslint-disable */ -/** - * This file was automatically generated by json-schema-to-typescript. - * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, - * and run json-schema-to-typescript to regenerate this file. - */ - -/** - * Asset lists are a similar mechanism to allow frontends and other UIs to fetch metadata associated with Cosmos SDK denoms, especially for assets sent over IBC. - */ -export interface ChainRegistryAssetList { - $schema?: string; - chain_name: string; - assets: Asset[]; -} -export interface Asset { - /** - * [OPTIONAL] Whether the asset has been deprecated for use. For readability, it is best to omit this property unless TRUE. - */ - deprecated?: boolean; - /** - * [OPTIONAL] A short description of the asset - */ - description?: string; - /** - * [OPTIONAL] A long description of the asset - */ - extended_description?: string; - denom_units: DenomUnit[]; - /** - * [OPTIONAL] The potential options for type of asset. By default, assumes sdk.coin - */ - type_asset?: - | "sdk.coin" - | "cw20" - | "erc20" - | "ics20" - | "snip20" - | "snip25" - | "bitcoin-like" - | "evm-base" - | "svm-base" - | "substrate" - | "unknown"; - /** - * [OPTIONAL] The address of the asset. Only required for type_asset : cw20, snip20 - */ - address?: string; - /** - * The base unit of the asset. Must be in denom_units. - */ - base: string; - /** - * The project name of the asset. For example Bitcoin. - */ - name: string; - /** - * The human friendly unit of the asset. Must be in denom_units. - */ - display: string; - /** - * The symbol of an asset. For example BTC. - */ - symbol: string; - /** - * The origin of the asset, starting with the index, and capturing all transitions in form and location. - */ - traces?: (IbcTransition | IbcCw20Transition | IbcBridgeTransition | NonIbcTransition)[]; - /** - * [OPTIONAL] IBC Channel between src and dst between chain - */ - ibc?: { - source_channel: string; - dst_channel: string; - source_denom: string; - }; - logo_URIs?: { - png?: string; - svg?: string; - }; - /** - * @minItems 1 - */ - images?: [ - { - image_sync?: Pointer; - png?: string; - svg?: string; - theme?: { - primary_color_hex?: string; - background_color_hex?: string; - circle?: boolean; - dark_mode?: boolean; - monochrome?: boolean; - }; - }, - ...{ - image_sync?: Pointer; - png?: string; - svg?: string; - theme?: { - primary_color_hex?: string; - background_color_hex?: string; - circle?: boolean; - dark_mode?: boolean; - monochrome?: boolean; - }; - }[] - ]; - /** - * [OPTIONAL] The coingecko id to fetch asset data from coingecko v3 api. See https://api.coingecko.com/api/v3/coins/list - */ - coingecko_id?: string; - keywords?: string[]; - socials?: { - website?: string; - twitter?: string; - [k: string]: unknown | undefined; - }; -} -export interface DenomUnit { - denom: string; - exponent: number; - aliases?: string[]; -} -export interface IbcTransition { - type: "ibc"; - counterparty: { - /** - * The name of the counterparty chain. (must match exactly the chain name used in the Chain Registry) - */ - chain_name: string; - /** - * The base unit of the asset on its source platform. E.g., when describing ATOM from Cosmos Hub, specify 'uatom', NOT 'atom' nor 'ATOM'; base units are unique per platform. - */ - base_denom: string; - /** - * The counterparty IBC transfer channel(, e.g., 'channel-1'). - */ - channel_id: string; - }; - chain: { - /** - * The chain's IBC transfer channel(, e.g., 'channel-1'). - */ - channel_id: string; - /** - * The port/channel/denom input string that generates the 'ibc/...' denom. - */ - path: string; - }; -} -export interface IbcCw20Transition { - type: "ibc-cw20"; - counterparty: { - /** - * The name of the counterparty chain. (must match exactly the chain name used in the Chain Registry) - */ - chain_name: string; - /** - * The base unit of the asset on its source platform. E.g., when describing ATOM from Cosmos Hub, specify 'uatom', NOT 'atom' nor 'ATOM'; base units are unique per platform. - */ - base_denom: string; - /** - * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for outgoing cw20 transfers. - */ - port: string; - /** - * The counterparty IBC transfer channel(, e.g., 'channel-1'). - */ - channel_id: string; - }; - chain: { - /** - * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for outgoing cw20 transfers. - */ - port: string; - /** - * The chain's IBC transfer channel(, e.g., 'channel-1'). - */ - channel_id: string; - /** - * The port/channel/denom input string that generates the 'ibc/...' denom. - */ - path: string; - }; -} -export interface IbcBridgeTransition { - type: "ibc-bridge"; - counterparty: { - /** - * The name of the counterparty chain. (must match exactly the chain name used in the Chain Registry) - */ - chain_name: string; - /** - * The base unit of the asset on its source platform. E.g., when describing ATOM from Cosmos Hub, specify 'uatom', NOT 'atom' nor 'ATOM'; base units are unique per platform. - */ - base_denom: string; - /** - * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for outgoing cw20 transfers. - */ - port?: string; - /** - * The counterparty IBC transfer channel(, e.g., 'channel-1'). - */ - channel_id: string; - }; - chain: { - /** - * The port used to transfer IBC assets; often 'transfer', but sometimes varies, e.g., for outgoing cw20 transfers. - */ - port?: string; - /** - * The chain's IBC transfer channel(, e.g., 'channel-1'). - */ - channel_id: string; - /** - * The port/channel/denom input string that generates the 'ibc/...' denom. - */ - path: string; - }; - /** - * The entity offering the service. E.g., 'Gravity Bridge' [Network] or 'Tether' [Company]. - */ - provider: string; -} -export interface NonIbcTransition { - type: "bridge" | "liquid-stake" | "synthetic" | "wrapped" | "additional-mintage" | "test-mintage" | "legacy-mintage"; - counterparty: { - /** - * The chain or platform from which the asset originates. E.g., 'cosmoshub', 'ethereum', 'forex', or 'nasdaq' - */ - chain_name: string; - base_denom: string; - /** - * The contract address where the transition takes place, where applicable. E.g., The Ethereum contract that locks up the asset while it's minted on another chain. - */ - contract?: string; - }; - chain?: { - /** - * The contract address where the transition takes place, where applicable. E.g., The Ethereum contract that locks up the asset while it's minted on another chain. - */ - contract: string; - }; - /** - * The entity offering the service. E.g., 'Gravity Bridge' [Network] or 'Tether' [Company]. - */ - provider: string; -} -/** - * The (primary) key used to identify an object within the Chain Registry. - */ -export interface Pointer { - /** - * The chain name or platform from which the object resides. E.g., 'cosmoshub', 'ethereum', 'forex', or 'nasdaq' - */ - chain_name: string; - /** - * The base denom of the asset from which the object originates. E.g., when describing ATOM from Cosmos Hub, specify 'uatom', NOT 'atom' nor 'ATOM'; base units are unique per platform. - */ - base_denom?: string; -} diff --git a/libs/es-client/src/registry/types/ChainRegistryChainInfo.ts b/libs/es-client/src/registry/types/ChainRegistryChainInfo.ts deleted file mode 100644 index 5956012..0000000 --- a/libs/es-client/src/registry/types/ChainRegistryChainInfo.ts +++ /dev/null @@ -1,297 +0,0 @@ -/* eslint-disable */ -/** - * This file was automatically generated by json-schema-to-typescript. - * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, - * and run json-schema-to-typescript to regenerate this file. - */ - -/** - * Chain.json is a metadata file that contains information about a blockchain. - */ -export type ChainRegistryChainInfo = ChainRegistryChainInfo1 & ChainRegistryChainInfo2; -export type ChainRegistryChainInfo1 = { - [k: string]: unknown | undefined; -}; -/** - * Simple version string (e.g., 'v1.0.0'). - */ -export type Version = string; -/** - * URL of the code repository. - */ -export type Repo = string; -/** - * Detailed version identifier (e.g., 'v1.0.0-a1s2f43g'). - */ -export type Tag = string; - -export interface ChainRegistryChainInfo2 { - $schema?: string; - chain_name: string; - /** - * The 'type' of chain as the corresponding CAIP-2 Namespace value. E.G., 'cosmos' or 'eip155'. Namespaces cna be found here: https://github.com/ChainAgnostic/namespaces/tree/main. - */ - chain_type: - | "cosmos" - | "eip155" - | "bip122" - | "polkadot" - | "solana" - | "algorand" - | "arweave" - | "ergo" - | "fil" - | "hedera" - | "monero" - | "reef" - | "stacks" - | "starknet" - | "stellar" - | "tezos" - | "vechain" - | "waves" - | "xrpl" - | "unknown"; - chain_id?: string; - pre_fork_chain_name?: string; - pretty_name?: string; - website?: string; - update_link?: string; - status?: "live" | "upcoming" | "killed"; - network_type?: "mainnet" | "testnet" | "devnet"; - /** - * The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos' - */ - bech32_prefix?: string; - /** - * Used to override the bech32_prefix for specific uses. - */ - bech32_config?: { - /** - * e.g., 'cosmos' - */ - bech32PrefixAccAddr?: string; - /** - * e.g., 'cosmospub' - */ - bech32PrefixAccPub?: string; - /** - * e.g., 'cosmosvaloper' - */ - bech32PrefixValAddr?: string; - /** - * e.g., 'cosmosvaloperpub' - */ - bech32PrefixValPub?: string; - /** - * e.g., 'cosmosvalcons' - */ - bech32PrefixConsAddr?: string; - /** - * e.g., 'cosmosvalconspub' - */ - bech32PrefixConsPub?: string; - }; - daemon_name?: string; - node_home?: string; - key_algos?: ("secp256k1" | "ethsecp256k1" | "ed25519" | "sr25519" | "bn254")[]; - slip44?: number; - alternative_slip44s?: number[]; - fees?: { - fee_tokens: FeeToken[]; - }; - staking?: { - staking_tokens: StakingToken[]; - lock_duration?: { - /** - * The number of blocks for which the staked tokens are locked. - */ - blocks?: number; - /** - * The approximate time for which the staked tokens are locked. - */ - time?: string; - }; - }; - codebase?: { - git_repo?: string; - recommended_version?: string; - compatible_versions?: string[]; - language?: Language; - binaries?: Binaries; - cosmos_sdk_version?: string; - sdk?: Sdk; - consensus?: Consensus; - cosmwasm_version?: string; - cosmwasm_enabled?: boolean; - /** - * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm - */ - cosmwasm_path?: string; - cosmwasm?: Cosmwasm; - ibc_go_version?: string; - /** - * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network. - */ - ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; - ibc?: Ibc; - genesis?: { - name?: string; - genesis_url: string; - ics_ccv_url?: string; - }; - versions?: { - /** - * Official Upgrade Name - */ - name: string; - /** - * Git Upgrade Tag - */ - tag?: string; - /** - * Block Height - */ - height?: number; - /** - * Proposal that will officially signal community acceptance of the upgrade. - */ - proposal?: number; - /** - * [Optional] Name of the previous version - */ - previous_version_name?: string; - /** - * [Optional] Name of the following version - */ - next_version_name?: string; - recommended_version?: string; - compatible_versions?: string[]; - language?: Language; - cosmos_sdk_version?: string; - sdk?: Sdk; - consensus?: Consensus; - cosmwasm_version?: string; - cosmwasm_enabled?: boolean; - /** - * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm - */ - cosmwasm_path?: string; - cosmwasm?: Cosmwasm; - ibc_go_version?: string; - /** - * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network. - */ - ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; - ibc?: Ibc; - binaries?: Binaries; - }[]; - }; - images?: ( - | { - [k: string]: unknown | undefined; - } - | { - [k: string]: unknown | undefined; - } - )[]; - logo_URIs?: { - png?: string; - svg?: string; - }; - description?: string; - peers?: { - seeds?: Peer[]; - persistent_peers?: Peer[]; - }; - apis?: { - rpc?: Endpoint[]; - rest?: Endpoint[]; - grpc?: Endpoint[]; - wss?: Endpoint[]; - "grpc-web"?: Endpoint[]; - "evm-http-jsonrpc"?: Endpoint[]; - }; - explorers?: Explorer[]; - keywords?: string[]; - extra_codecs?: ("ethermint" | "injective")[]; -} -export interface FeeToken { - denom: string; - fixed_min_gas_price?: number; - low_gas_price?: number; - average_gas_price?: number; - high_gas_price?: number; - gas_costs?: { - cosmos_send?: number; - ibc_transfer?: number; - }; -} -export interface StakingToken { - denom: string; -} -export interface Language { - type: "go" | "rust" | "solidity" | "other"; - version?: Version; - repo?: Repo; - tag?: Tag; -} -export interface Binaries { - "linux/amd64"?: string; - "linux/arm64"?: string; - "darwin/amd64"?: string; - "darwin/arm64"?: string; - "windows/amd64"?: string; - "windows/arm64"?: string; -} -export interface Sdk { - type: "cosmos" | "penumbra" | "other"; - version?: Version; - repo?: Repo; - tag?: Tag; -} -export interface Consensus { - type: "tendermint" | "cometbft" | "sei-tendermint"; - version?: Version; - repo?: Repo; - tag?: Tag; -} -export interface Cosmwasm { - version?: Version; - repo?: Repo; - tag?: Tag; - enabled?: boolean; - /** - * Relative path to the cosmwasm directory. ex. $HOME/.juno/data/wasm - */ - path?: string; -} -export interface Ibc { - type: "go" | "rust" | "other"; - version?: Version; - repo?: Repo; - tag?: Tag; - /** - * List of IBC apps (usually corresponding to a ICS standard) which have been enabled on the network. - */ - ics_enabled?: ("ics20-1" | "ics27-1" | "mauth")[]; -} -export interface Peer { - id: string; - address: string; - provider?: string; -} -export interface Endpoint { - address: string; - provider?: string; - archive?: boolean; -} -export interface Explorer { - kind?: string; - url?: string; - tx_page?: string; - account_page?: string; - validator_page?: string; - proposal_page?: string; - block_page?: string; -} diff --git a/libs/es-client/src/typeutils/prettify.ts b/libs/es-client/src/typeutils/prettify.ts deleted file mode 100644 index 300e722..0000000 --- a/libs/es-client/src/typeutils/prettify.ts +++ /dev/null @@ -1,18 +0,0 @@ -type Decr = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; - -/** - * Helper type to prettify type intersections. - * @see https://twitter.com/mattpocockuk/status/1622730181453533185 - */ -export type Prettify = { - [P in keyof T]: T[P]; -} & unknown; - -/** - * Helper type to prettify deeply nested types. - */ -export type DeepPrettify = N extends 0 - ? T - : T extends Record | unknown[] - ? { [P in keyof T]: DeepPrettify } - : T; diff --git a/libs/es-client/src/wallet/constants/WalletName.ts b/libs/es-client/src/wallet/constants/WalletName.ts deleted file mode 100644 index c7ca864..0000000 --- a/libs/es-client/src/wallet/constants/WalletName.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * The unique identifier of the wallet. - */ -export const WalletName = { - STATION: "station", - KEPLR: "keplr", - LEAP: "leap", - COMPASS: "compass", - COSMOSTATION: "cosmostation", - METAMASK_INJECTIVE: "metamask-injective", - NINJI: "ninji", - OWALLET: "owallet", -} as const; -export type WalletName = (typeof WalletName)[keyof typeof WalletName]; diff --git a/libs/es-client/src/wallet/constants/WalletType.ts b/libs/es-client/src/wallet/constants/WalletType.ts deleted file mode 100644 index 5363001..0000000 --- a/libs/es-client/src/wallet/constants/WalletType.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * The type of connection to the wallet. - */ -export const WalletType = { - EXTENSION: "extension", - WALLETCONNECT: "walletconnect", -} as const; -export type WalletType = (typeof WalletType)[keyof typeof WalletType]; diff --git a/libs/es-client/src/wallet/index.ts b/libs/es-client/src/wallet/index.ts deleted file mode 100644 index 808c794..0000000 --- a/libs/es-client/src/wallet/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -export { WalletName } from "./constants/WalletName"; -export { WalletType } from "./constants/WalletType"; -export { isAndroid, isIOS, isMobile } from "./utils/os"; -export { verifyArbitrary } from "./utils/verify"; -export { - ConnectedWallet, - type PollTxOptions, - type SignArbitraryResponse, - type UnsignedTx, -} from "./wallets/ConnectedWallet"; -export { - WalletController, - type ChainInfo, - type EventCallback, -} from "./wallets/WalletController"; -export { WalletError } from "./wallets/WalletError"; -export { MnemonicWallet } from "./wallets/mnemonic/MnemonicWallet"; diff --git a/libs/es-client/src/wallet/sonr-autoloader.ts b/libs/es-client/src/wallet/sonr-autoloader.ts deleted file mode 100644 index e69de29..0000000 diff --git a/libs/es-client/src/wallet/utils/os.ts b/libs/es-client/src/wallet/utils/os.ts deleted file mode 100644 index 863e805..0000000 --- a/libs/es-client/src/wallet/utils/os.ts +++ /dev/null @@ -1,18 +0,0 @@ -export function isAndroid() { - return navigator && /Android/i.test(navigator.userAgent); -} - -/** - * @see https://stackoverflow.com/a/58065241 - */ -export function isIOS() { - return ( - navigator && - (/iPhone|iPad|iPod/i.test(navigator.userAgent) || - (navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1)) - ); -} - -export function isMobile() { - return isAndroid() || isIOS(); -} diff --git a/libs/es-client/src/wallet/utils/sequence.test.ts b/libs/es-client/src/wallet/utils/sequence.test.ts deleted file mode 100644 index c9daaf9..0000000 --- a/libs/es-client/src/wallet/utils/sequence.test.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { extractExpectedAccountSequence } from "./sequence"; - -describe("extractExpectedAccountSequence", () => { - it("should extract expected account sequence numbers from valid errors", () => { - // Older cosmos sdk chains - const err1 = new Error( - `account sequence mismatch, expected 10, got 11: incorrect account sequence: invalid request` - ); - expect(extractExpectedAccountSequence(err1)).toBe(10n); - - // Newer cosmos sdk chains (0.45+) - const err2 = new Error( - `rpc error: code = Unknown desc = account sequence mismatch, expected 10, got 11: ......` - ); - expect(extractExpectedAccountSequence(err2)).toBe(10n); - - // Injective - const err3 = new Error( - `[reason]:"incorrect account sequence" metadata:{key:"ABCICode" value:"32"} ...... rpc error: code = Unknown desc = account sequence mismatch, expected 10, got 11: ......` - ); - expect(extractExpectedAccountSequence(err3)).toBe(10n); - }); -}); diff --git a/libs/es-client/src/wallet/utils/sequence.ts b/libs/es-client/src/wallet/utils/sequence.ts deleted file mode 100644 index 0e5777a..0000000 --- a/libs/es-client/src/wallet/utils/sequence.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Extracts and returns the expected account sequence number from an error. If - * the error is not related to an account sequence mismatch, `null` is returned. - */ -export function extractExpectedAccountSequence(err: Error): bigint | null { - const matches = err.message.match( - // This regex is intentionally kept as strict as possible - /account sequence mismatch, expected (\d+), got (\d+):/ - ); - if (!matches || matches.length < 3) { - return null; - } - return BigInt(matches[1]); -} diff --git a/libs/es-client/src/wallet/utils/verify.ts b/libs/es-client/src/wallet/utils/verify.ts deleted file mode 100644 index c7ed3d6..0000000 --- a/libs/es-client/src/wallet/utils/verify.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { - base64, - utf8, - verifyADR36, - verifyECDSA, - verifyEIP191, -} from "@onsonr/es/codec"; - -import { WalletName } from "../constants/WalletName"; - -type VerifyArbitraryParams = { - /** The identifier of the wallet which created the signature */ - wallet: WalletName; - /** The base64 encoded public key which created the signature */ - pubKey: string; - /** The bech32 account address prefix of the signer */ - bech32Prefix: string; - /** The utf-8 encoded arbitrary string that was signed */ - data: string; - /** The base64 encoded string of the signature */ - signature: string; - /** The type of the signature */ - type?: "secp256k1" | "ethsecp256k1"; -}; - -/** - * Verifies the signature output of a valid call to `ConnectedWallet.signArbitrary`. - * Returns `true` if and only if the signature is valid. - * - * @param wallet The identifier of the wallet which created the signature - * @param pubKey The base64 encoded public key which created the signature - * @param bech32Prefix The bech32 account address prefix of the signer - * @param data The utf-8 encoded arbitrary string that was signed - * @param signature The base64 encoded string of the signature - * @param type The type of the signature (default: `secp256k1`) - */ -export function verifyArbitrary({ - wallet, - pubKey, - bech32Prefix, - data, - signature, - type = "secp256k1", -}: VerifyArbitraryParams): boolean { - const params = { - pubKey: base64.decode(pubKey), - bech32Prefix, - data: utf8.decode(data), - signature: base64.decode(signature), - type, - }; - try { - switch (wallet) { - case WalletName.METAMASK_INJECTIVE: - return verifyEIP191(params); - default: - // Station mobile uses `verifyECDSA`, all other wallets uses `verifyADR36`. - // We can remove `verifyECDSA` once Station mobile uses `verifyECDSA`. - return verifyADR36(params) || verifyECDSA(params); - } - } catch (err) { - return false; - } -} diff --git a/libs/es-client/src/wallet/utils/window.ts b/libs/es-client/src/wallet/utils/window.ts deleted file mode 100644 index 50cff08..0000000 --- a/libs/es-client/src/wallet/utils/window.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Similar to `window.addEventListener`, but safe for nodejs/SSR environments, - * and which returns an `unsubscribe` function that when called, removes the - * event listener via `window.removeEventListener`. - */ -export function onWindowEvent( - event: string, - cb: EventListenerOrEventListenerObject, - opts?: AddEventListenerOptions | undefined -): () => void { - if (typeof window === "undefined") { - // eslint-disable-next-line @typescript-eslint/no-empty-function - return () => {}; - } - window.addEventListener(event, cb, opts); - return () => window.removeEventListener(event, cb); -} diff --git a/libs/es-client/src/wallet/walletconnect/QRCodeModal.ts b/libs/es-client/src/wallet/walletconnect/QRCodeModal.ts deleted file mode 100644 index ae2e116..0000000 --- a/libs/es-client/src/wallet/walletconnect/QRCodeModal.ts +++ /dev/null @@ -1,127 +0,0 @@ -import type { IQRCodeModal } from "@walletconnect/legacy-types"; - -import { isAndroid, isMobile } from "../utils/os"; -import { qrcodegen } from "./qrcodegen"; - -export type MobileAppDetails = { - name: string; - android: string; - ios: string; - isStation?: boolean | undefined; -}; - -export class QRCodeModal implements IQRCodeModal { - private readonly id = "wc-modal-" + Date.now(); - private readonly details: MobileAppDetails; - - constructor(details: MobileAppDetails) { - this.details = details; - } - - public open(uri: string): void { - const overlay = document.createElement("div"); - overlay.style.cssText = [ - "background-color: rgba(0, 0, 0, 0.5)", - "backdrop-filter: blur(4px)", - "z-index: 10000", - "height: 100vh", - "width: 100vw", - "position: fixed", - "top: 0", - "left: 0", - "display: flex", - "align-items: center", - "justify-content: center", - "pointer-events: auto", - ].join(";"); - overlay.onclick = (e): void => { - e.stopPropagation(); - if (e.target === overlay) { - this.close(); - } - }; - - const modal = document.createElement("div"); - modal.style.cssText = [ - "background-color: #f4f4f5", - "padding: 1rem", - "border-radius: 0.5rem", - ].join(";"); - - const schemeUri = this.details.isStation - ? `https://terrastation.page.link/?link=https://terra.money?${encodeURIComponent( - `action=wallet_connect&payload=${encodeURIComponent(uri)}` - )}&apn=money.terra.station&ibi=money.terra.station&isi=1548434735` - : uri; - const qr = qrcodegen.QrCode.encodeText( - schemeUri, - qrcodegen.QrCode.Ecc.MEDIUM - ); - const canvas = document.createElement("canvas"); - const scale = this.details.isStation ? 3.7 : 5; - canvas.width = qr.size * scale; - canvas.height = canvas.width; - const ctx = canvas.getContext("2d"); - if (!ctx) { - console.error("Failed to get canvas context"); - return; - } - for (let y = 0; y < qr.size; y++) { - for (let x = 0; x < qr.size; x++) { - ctx.fillStyle = qr.getModule(x, y) ? "#18181b" : "#f4f4f5"; - ctx.fillRect(x * scale, y * scale, scale, scale); - } - } - - if (isMobile()) { - // On mobile, redirect to mobile app - window.location.href = this.details.isStation - ? schemeUri - : isAndroid() - ? this.generateAndroidIntent(uri) - : this.generateIosIntent(uri); - // TODO: render button to open mobile app - } else { - // On desktop, show help message to scan the QR code - const msg = document.createElement("div"); - msg.textContent = `Scan via ${this.details.name} mobile app`; - msg.style.cssText = [ - "margin-bottom: 0.5rem", - "font-size: 1rem", - "text-align: center", - "color: #18181b", - ].join(";"); - modal.appendChild(msg); - } - - const rootDiv = document.createElement("div"); - rootDiv.id = this.id; - const shadowRoot = rootDiv.attachShadow({ mode: "open" }); - - modal.appendChild(canvas); - overlay.appendChild(modal); - shadowRoot.appendChild(overlay); - document.body.appendChild(rootDiv); - } - - public close(): void { - const rootDiv = document.getElementById(this.id); - if (rootDiv) { - document.body.removeChild(rootDiv); - } - } - - private generateAndroidIntent(uri: string): string { - const hashIndex = this.details.android.indexOf("#"); - return ( - this.details.android.slice(0, hashIndex) + - "?" + - encodeURIComponent(uri) + - this.details.android.slice(hashIndex) - ); - } - - private generateIosIntent(uri: string): string { - return this.details.ios + "?" + encodeURIComponent(uri); - } -} diff --git a/libs/es-client/src/wallet/walletconnect/WalletConnectV1.ts b/libs/es-client/src/wallet/walletconnect/WalletConnectV1.ts deleted file mode 100644 index 4a86af2..0000000 --- a/libs/es-client/src/wallet/walletconnect/WalletConnectV1.ts +++ /dev/null @@ -1,88 +0,0 @@ -import WalletConnect from "@walletconnect/legacy-client"; -import type { IWalletConnectSession } from "@walletconnect/legacy-types"; - -import { MobileAppDetails, QRCodeModal } from "./QRCodeModal"; - -type ConnectOptions = Required< - Pick< - ConstructorParameters[0], - "bridge" | "signingMethods" - > ->; - -export class WalletConnectV1 { - private readonly sessionStorageKey: string; - private readonly mobileAppDetails: MobileAppDetails; - private readonly connectOpts: ConnectOptions; - private readonly onDisconnectCbs: Set<() => unknown>; - - constructor( - sessionStorageKey: string, - mobileAppDetails: MobileAppDetails, - connectOpts: ConnectOptions - ) { - this.sessionStorageKey = sessionStorageKey; - this.mobileAppDetails = mobileAppDetails; - this.connectOpts = connectOpts; - this.onDisconnectCbs = new Set(); - } - - /** - * Returns the current session if it exists, else, creates a new session. - */ - public async connect(): Promise { - // Get cached session in local storage - const cachedSession = localStorage.getItem(this.sessionStorageKey); - const session = cachedSession - ? (JSON.parse(cachedSession) as IWalletConnectSession) - : undefined; - - // Create a new WalletConnect instance - const wc = new WalletConnect({ - ...this.connectOpts, - qrcodeModal: new QRCodeModal(this.mobileAppDetails), - session, - }); - wc.on("disconnect", () => { - localStorage.removeItem(this.sessionStorageKey); - for (const cb of this.onDisconnectCbs) { - cb(); - } - }); - - // If a previous session exists, return the WalletConnect instance - if (session && wc.connected) { - return wc; - } - - // Else, if no previous session exists, create a new session - if (wc.connected) { - await wc.killSession(); - } - await wc.createSession(); - - // Return the WalletConnect instance once connected - return new Promise((resolve, reject) => { - wc.on("connect", (error, _payload) => { - // Do NOT cache the session here as the user may not have approved the connection - error ? reject(error) : resolve(wc); - }); - }); - } - - public onDisconnect(cb: () => unknown): () => void { - this.onDisconnectCbs.add(cb); - return () => this.onDisconnectCbs.delete(cb); - } - - /** - * Saves the session to local storage. Should only be called once the user actually - * approves the connection to the chain. - */ - public cacheSession(wc: WalletConnect) { - if (!wc.connected) { - return; - } - localStorage.setItem(this.sessionStorageKey, JSON.stringify(wc.session)); - } -} diff --git a/libs/es-client/src/wallet/walletconnect/WalletConnectV2.ts b/libs/es-client/src/wallet/walletconnect/WalletConnectV2.ts deleted file mode 100644 index 930129f..0000000 --- a/libs/es-client/src/wallet/walletconnect/WalletConnectV2.ts +++ /dev/null @@ -1,303 +0,0 @@ -import SignClient from "@walletconnect/sign-client"; -import { SignDoc, StdSignDoc } from "@onsonr/es/registry"; -import { debounce } from "lodash-es"; - -import { isAndroid, isMobile } from "../utils/os"; -import { MobileAppDetails, QRCodeModal } from "./QRCodeModal"; - -/** The JSON data stored in `localStorage` to recover previous sessions. */ -type StorageSession = { - /** The WalletConnect V2 topic. */ - topic: string; - /** Non-namespaced chain IDs (eg. `osmosis-1`). */ - chainIds: string[]; -}; - -type GetAccountResponse = { - name?: string | undefined; - address: string; - algo: string; - pubkey: string; -}; - -/** - * The data returned by the `cosmos_signAmino` method. `signed` is optional - * because some wallets (like Cosmostation) may not return it. - */ -type WcSignAminoResponse = { - signature: { - signature: string; - }; - signed?: StdSignDoc | undefined; -}; -type SignAminoResponse = Required; - -/** - * The data returned by the `cosmos_signDirect` method. `signed` is optional - * because some wallets (like Cosmostation) may not return it. - */ -type WcSignDirectResponse = { - signature: { - signature: string; - }; - signed?: SignDoc | undefined; -}; -type SignDirectResponse = Required; - -const Method = { - GET_ACCOUNTS: "cosmos_getAccounts", - SIGN_AMINO: "cosmos_signAmino", - SIGN_DIRECT: "cosmos_signDirect", -} as const; -type Method = (typeof Method)[keyof typeof Method]; - -const Event = { - CHAIN_CHANGED: "chainChanged", - ACCOUNTS_CHANGED: "accountsChanged", -} as const; -type Event = (typeof Event)[keyof typeof Event]; - -const DEFAULT_SIGN_OPTIONS = { - preferNoSetFee: true, - preferNoSetMemo: true, -}; - -export class WalletConnectV2 { - private readonly projectId: string; - private readonly mobileAppDetails: MobileAppDetails; - private readonly sessionStorageKey: string; - private readonly onDisconnectCbs: Set<() => unknown>; - private readonly onAccountChangeCbs: Set<() => unknown>; - private signClient: SignClient | null; - - constructor(projectId: string, mobileAppDetails: MobileAppDetails) { - this.projectId = projectId; - this.mobileAppDetails = mobileAppDetails; - this.sessionStorageKey = `@onsonr/es.wallet.${mobileAppDetails.name.toLowerCase()}.wcSession`; - this.onDisconnectCbs = new Set(); - this.onAccountChangeCbs = new Set(); - this.signClient = null; - } - - public async connect(chainIds: string[]): Promise { - // Initialise the sign client and event listeners if they don't already exist - if (!this.signClient) { - this.signClient = await SignClient.init({ - projectId: this.projectId, - }); - // Disconnect if the session is disconnected or expired - this.signClient.on("session_delete", ({ topic }) => - this.disconnect(topic) - ); - this.signClient.on("session_expire", ({ topic }) => - this.disconnect(topic) - ); - // Handle the `accountsChanged` event - const handleAccountChange = debounce( - // Handler is debounced as the `accountsChanged` event is fired once for - // each connected chain, but we only want to trigger the callback once. - () => this.onAccountChangeCbs.forEach((cb) => cb()), - 300, - { leading: true, trailing: false } - ); - this.signClient.on("session_event", ({ params }) => { - if (params.event.name === Event.ACCOUNTS_CHANGED) { - handleAccountChange(); - } - }); - } - - // Check if a valid session already exists - const oldSession = localStorage.getItem(this.sessionStorageKey); - const chainIdsSet = new Set(chainIds); - if (oldSession) { - const { topic, chainIds: storedIds } = JSON.parse( - oldSession - ) as StorageSession; - const storedIdsSet = new Set(storedIds); - if (chainIds.every((id) => storedIdsSet.has(id))) { - // If the requested chain IDs are a subset of the stored chain IDs, we can - // proceed to check if the session is still working and connected - if (await this.isConnected(this.signClient, topic, 4)) { - // If the current session is properly connected, we can return early - return; - } else { - // Otherwise, assume the session is stale and disconnect - this.disconnect(topic); - } - } else { - // Otherwise, we need to merge the stored IDs with the requested IDs - for (const id of storedIds) { - chainIdsSet.add(id); - } - } - } - - // Initialise a new session - const { uri, approval } = await this.signClient.connect({ - requiredNamespaces: { - cosmos: { - chains: [...chainIdsSet].map((id) => this.toCosmosNamespace(id)), - methods: Object.values(Method), - events: Object.values(Event), - }, - }, - }); - if (uri) { - // Open the QR code modal and wait for the user to approve the connection - const modal = new QRCodeModal(this.mobileAppDetails); - modal.open(uri); - const { topic } = await approval(); - modal.close(); - // Save this new session to local storage - const newSession: StorageSession = { - topic, - chainIds: [...chainIdsSet], - }; - localStorage.setItem(this.sessionStorageKey, JSON.stringify(newSession)); - // Disconnect the older session if it exists - if (oldSession) { - const { topic } = JSON.parse(oldSession) as StorageSession; - this.signClient.disconnect({ - topic, - // TODO: use the actual reason - reason: { code: -1, message: "" }, - }); - } - } - } - - public onDisconnect(cb: () => unknown): () => void { - this.onDisconnectCbs.add(cb); - return () => this.onDisconnectCbs.delete(cb); - } - - public onAccountChange(cb: () => unknown): () => void { - this.onAccountChangeCbs.add(cb); - return () => this.onAccountChangeCbs.delete(cb); - } - - public async getAccount(chainId: string): Promise { - const [res] = await this.request( - chainId, - Method.GET_ACCOUNTS, - {} - ); - return res; - } - - public async signAmino( - chainId: string, - signerAddress: string, - stdSignDoc: StdSignDoc - ): Promise { - const { signature, signed } = await this.request( - chainId, - Method.SIGN_AMINO, - { - signerAddress, - signDoc: stdSignDoc, - signOptions: DEFAULT_SIGN_OPTIONS, - } - ); - return { - signature: signature, - signed: signed ?? stdSignDoc, // simply return the original sign doc if `signed` is not returned - }; - } - - public async signDirect( - chainId: string, - signerAddress: string, - signDoc: SignDoc - ): Promise { - const { signature, signed } = await this.request( - chainId, - Method.SIGN_DIRECT, - { - signerAddress, - signDoc, - signOptions: DEFAULT_SIGN_OPTIONS, - } - ); - return { - signature: signature, - signed: signed ?? signDoc, // simply return the original sign doc if `signed` is not returned - }; - } - - /** - * Checks if the current session is **really connected**. The `ping` method may - * never return a response if the session is already disconnected. Thus, we - * listen to the `session_delete` and `session_expire` events to detect if the - * session is disconnected. If all else fails, we timeout after `timeoutSeconds` - * and assume the session is not connected. - */ - private isConnected( - signClient: SignClient, - topic: string, - timeoutSeconds: number - ): Promise { - const tryPing = async (): Promise => - signClient - .ping({ topic }) - .then(() => true) // we only return `true` if the ping succeeds - .catch(() => false); - const waitDisconnect = async (): Promise => - new Promise((resolve) => { - signClient.on("session_delete", (res) => { - if (topic === res.topic) { - resolve(false); - } - }); - signClient.on("session_expire", (res) => { - if (topic === res.topic) { - resolve(false); - } - }); - }); - const timeout = async (): Promise => - new Promise((resolve) => - setTimeout(() => resolve(false), timeoutSeconds * 1_000) - ); - return Promise.race([tryPing(), waitDisconnect(), timeout()]); - } - - private disconnect(topic: string) { - const session = localStorage.getItem(this.sessionStorageKey); - if (!session || session.includes(topic)) { - // Ignore stale disconnects; clean up only if the topic matches - localStorage.removeItem(this.sessionStorageKey); - this.onDisconnectCbs.forEach((cb) => cb()); - } - } - - private async request(chainId: string, method: Method, params: unknown) { - const session = localStorage.getItem(this.sessionStorageKey); - if (!session || !this.signClient) { - throw new Error("Session not found for " + chainId); - } - const { topic } = JSON.parse(session) as StorageSession; - if ( - isMobile() && - // GET_ACCOUNTS does not require the user to authorise - method !== Method.GET_ACCOUNTS - ) { - window.location.href = isAndroid() - ? this.mobileAppDetails.android - : this.mobileAppDetails.ios; - } - return this.signClient.request({ - topic, - chainId: this.toCosmosNamespace(chainId), - request: { - method, - params, - }, - }); - } - - private toCosmosNamespace(chainId: string): string { - return "cosmos:" + chainId; - } -} diff --git a/libs/es-client/src/wallet/walletconnect/qrcodegen.ts b/libs/es-client/src/wallet/walletconnect/qrcodegen.ts deleted file mode 100644 index a5f5112..0000000 --- a/libs/es-client/src/wallet/walletconnect/qrcodegen.ts +++ /dev/null @@ -1,1057 +0,0 @@ -/* eslint-disable @typescript-eslint/no-namespace */ -/** - * ! Adapted from https://github.com/nayuki/QR-Code-generator/blob/master/typescript-javascript/qrcodegen.ts - */ - -/* - * QR Code generator library (TypeScript) - * - * Copyright (c) Project Nayuki. (MIT License) - * https://www.nayuki.io/page/qr-code-generator-library - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - The Software is provided "as is", without warranty of any kind, express or - * implied, including but not limited to the warranties of merchantability, - * fitness for a particular purpose and noninfringement. In no event shall the - * authors or copyright holders be liable for any claim, damages or other - * liability, whether in an action of contract, tort or otherwise, arising from, - * out of or in connection with the Software or the use or other dealings in the - * Software. - */ - -"use strict"; - -export namespace qrcodegen { - type bit = number; - type byte = number; - type int = number; - - /*---- QR Code symbol class ----*/ - - /* - * A QR Code symbol, which is a type of two-dimension barcode. - * Invented by Denso Wave and described in the ISO/IEC 18004 standard. - * Instances of this class represent an immutable square grid of dark and light cells. - * The class provides static factory functions to create a QR Code from text or binary data. - * The class covers the QR Code Model 2 specification, supporting all versions (sizes) - * from 1 to 40, all 4 error correction levels, and 4 character encoding modes. - * - * Ways to create a QR Code object: - * - High level: Take the payload data and call QrCode.encodeText() or QrCode.encodeBinary(). - * - Mid level: Custom-make the list of segments and call QrCode.encodeSegments(). - * - Low level: Custom-make the array of data codeword bytes (including - * segment headers and final padding, excluding error correction codewords), - * supply the appropriate version number, and call the QrCode() constructor. - * (Note that all ways require supplying the desired error correction level.) - */ - export class QrCode { - /*-- Static factory functions (high level) --*/ - - // Returns a QR Code representing the given Unicode text string at the given error correction level. - // As a conservative upper bound, this function is guaranteed to succeed for strings that have 738 or fewer - // Unicode code points (not UTF-16 code units) if the low error correction level is used. The smallest possible - // QR Code version is automatically chosen for the output. The ECC level of the result may be higher than the - // ecl argument if it can be done without increasing the version. - public static encodeText(text: string, ecl: QrCode.Ecc): QrCode { - const segs: Array = qrcodegen.QrSegment.makeSegments(text); - return QrCode.encodeSegments(segs, ecl); - } - - // Returns a QR Code representing the given binary data at the given error correction level. - // This function always encodes using the binary segment mode, not any text mode. The maximum number of - // bytes allowed is 2953. The smallest possible QR Code version is automatically chosen for the output. - // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version. - public static encodeBinary( - data: Readonly>, - ecl: QrCode.Ecc - ): QrCode { - const seg: QrSegment = qrcodegen.QrSegment.makeBytes(data); - return QrCode.encodeSegments([seg], ecl); - } - - /*-- Static factory functions (mid level) --*/ - - // Returns a QR Code representing the given segments with the given encoding parameters. - // The smallest possible QR Code version within the given range is automatically - // chosen for the output. Iff boostEcl is true, then the ECC level of the result - // may be higher than the ecl argument if it can be done without increasing the - // version. The mask number is either between 0 to 7 (inclusive) to force that - // mask, or -1 to automatically choose an appropriate mask (which may be slow). - // This function allows the user to create a custom sequence of segments that switches - // between modes (such as alphanumeric and byte) to encode text in less space. - // This is a mid-level API; the high-level API is encodeText() and encodeBinary(). - public static encodeSegments( - segs: Readonly>, - ecl: QrCode.Ecc, - minVersion: int = 1, - maxVersion: int = 40, - mask: int = -1, - boostEcl = true - ): QrCode { - if ( - !( - QrCode.MIN_VERSION <= minVersion && - minVersion <= maxVersion && - maxVersion <= QrCode.MAX_VERSION - ) || - mask < -1 || - mask > 7 - ) - throw new RangeError("Invalid value"); - - // Find the minimal version number to use - let version: int; - let dataUsedBits: int; - for (version = minVersion; ; version++) { - const dataCapacityBits: int = - QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bits available - const usedBits: number = QrSegment.getTotalBits(segs, version); - if (usedBits <= dataCapacityBits) { - dataUsedBits = usedBits; - break; // This version number is found to be suitable - } - if (version >= maxVersion) - // All versions in the range could not fit the given data - throw new RangeError("Data too long"); - } - - // Increase the error correction level while the data still fits in the current version number - for (const newEcl of [ - QrCode.Ecc.MEDIUM, - QrCode.Ecc.QUARTILE, - QrCode.Ecc.HIGH, - ]) { - // From low to high - if ( - boostEcl && - dataUsedBits <= QrCode.getNumDataCodewords(version, newEcl) * 8 - ) - ecl = newEcl; - } - - // Concatenate all segments to create the data bit string - const bb: Array = []; - for (const seg of segs) { - appendBits(seg.mode.modeBits, 4, bb); - appendBits(seg.numChars, seg.mode.numCharCountBits(version), bb); - for (const b of seg.getData()) bb.push(b); - } - assert(bb.length == dataUsedBits); - - // Add terminator and pad up to a byte if applicable - const dataCapacityBits: int = - QrCode.getNumDataCodewords(version, ecl) * 8; - assert(bb.length <= dataCapacityBits); - appendBits(0, Math.min(4, dataCapacityBits - bb.length), bb); - appendBits(0, (8 - (bb.length % 8)) % 8, bb); - assert(bb.length % 8 == 0); - - // Pad with alternating bytes until data capacity is reached - for ( - let padByte = 0xec; - bb.length < dataCapacityBits; - padByte ^= 0xec ^ 0x11 - ) - appendBits(padByte, 8, bb); - - // Pack bits into bytes in big endian - const dataCodewords: Array = []; - while (dataCodewords.length * 8 < bb.length) dataCodewords.push(0); - bb.forEach( - (b: bit, i: int) => (dataCodewords[i >>> 3] |= b << (7 - (i & 7))) - ); - - // Create the QR Code object - return new QrCode(version, ecl, dataCodewords, mask); - } - - /*-- Fields --*/ - - // The width and height of this QR Code, measured in modules, between - // 21 and 177 (inclusive). This is equal to version * 4 + 17. - public readonly size: int; - - // The index of the mask pattern used in this QR Code, which is between 0 and 7 (inclusive). - // Even if a QR Code is created with automatic masking requested (mask = -1), - // the resulting object still has a mask value between 0 and 7. - public readonly mask: int; - - // The modules of this QR Code (false = light, true = dark). - // Immutable after constructor finishes. Accessed through getModule(). - private readonly modules: Array> = []; - - // Indicates function modules that are not subjected to masking. Discarded when constructor finishes. - private readonly isFunction: Array> = []; - - /*-- Constructor (low level) and fields --*/ - - // Creates a new QR Code with the given version number, - // error correction level, data codeword bytes, and mask number. - // This is a low-level API that most users should not use directly. - // A mid-level API is the encodeSegments() function. - public constructor( - // The version number of this QR Code, which is between 1 and 40 (inclusive). - // This determines the size of this barcode. - public readonly version: int, - - // The error correction level used in this QR Code. - public readonly errorCorrectionLevel: QrCode.Ecc, - - dataCodewords: Readonly>, - - msk: int - ) { - // Check scalar arguments - if (version < QrCode.MIN_VERSION || version > QrCode.MAX_VERSION) - throw new RangeError("Version value out of range"); - if (msk < -1 || msk > 7) throw new RangeError("Mask value out of range"); - this.size = version * 4 + 17; - - // Initialize both grids to be size*size arrays of Boolean false - const row: Array = []; - for (let i = 0; i < this.size; i++) row.push(false); - for (let i = 0; i < this.size; i++) { - this.modules.push(row.slice()); // Initially all light - this.isFunction.push(row.slice()); - } - - // Compute ECC, draw modules - this.drawFunctionPatterns(); - const allCodewords: Array = this.addEccAndInterleave(dataCodewords); - this.drawCodewords(allCodewords); - - // Do masking - if (msk == -1) { - // Automatically choose best mask - let minPenalty: int = 1000000000; - for (let i = 0; i < 8; i++) { - this.applyMask(i); - this.drawFormatBits(i); - const penalty: int = this.getPenaltyScore(); - if (penalty < minPenalty) { - msk = i; - minPenalty = penalty; - } - this.applyMask(i); // Undoes the mask due to XOR - } - } - assert(0 <= msk && msk <= 7); - this.mask = msk; - this.applyMask(msk); // Apply the final choice of mask - this.drawFormatBits(msk); // Overwrite old format bits - - this.isFunction = []; - } - - /*-- Accessor methods --*/ - - // Returns the color of the module (pixel) at the given coordinates, which is false - // for light or true for dark. The top left corner has the coordinates (x=0, y=0). - // If the given coordinates are out of bounds, then false (light) is returned. - public getModule(x: int, y: int): boolean { - return ( - 0 <= x && x < this.size && 0 <= y && y < this.size && this.modules[y][x] - ); - } - - /*-- Private helper methods for constructor: Drawing function modules --*/ - - // Reads this object's version field, and draws and marks all function modules. - private drawFunctionPatterns(): void { - // Draw horizontal and vertical timing patterns - for (let i = 0; i < this.size; i++) { - this.setFunctionModule(6, i, i % 2 == 0); - this.setFunctionModule(i, 6, i % 2 == 0); - } - - // Draw 3 finder patterns (all corners except bottom right; overwrites some timing modules) - this.drawFinderPattern(3, 3); - this.drawFinderPattern(this.size - 4, 3); - this.drawFinderPattern(3, this.size - 4); - - // Draw numerous alignment patterns - const alignPatPos: Array = this.getAlignmentPatternPositions(); - const numAlign: int = alignPatPos.length; - for (let i = 0; i < numAlign; i++) { - for (let j = 0; j < numAlign; j++) { - // Don't draw on the three finder corners - if ( - !( - (i == 0 && j == 0) || - (i == 0 && j == numAlign - 1) || - (i == numAlign - 1 && j == 0) - ) - ) - this.drawAlignmentPattern(alignPatPos[i], alignPatPos[j]); - } - } - - // Draw configuration data - this.drawFormatBits(0); // Dummy mask value; overwritten later in the constructor - this.drawVersion(); - } - - // Draws two copies of the format bits (with its own error correction code) - // based on the given mask and this object's error correction level field. - private drawFormatBits(mask: int): void { - // Calculate error correction code and pack bits - const data: int = (this.errorCorrectionLevel.formatBits << 3) | mask; // errCorrLvl is uint2, mask is uint3 - let rem: int = data; - for (let i = 0; i < 10; i++) rem = (rem << 1) ^ ((rem >>> 9) * 0x537); - const bits = ((data << 10) | rem) ^ 0x5412; // uint15 - assert(bits >>> 15 == 0); - - // Draw first copy - for (let i = 0; i <= 5; i++) - this.setFunctionModule(8, i, getBit(bits, i)); - this.setFunctionModule(8, 7, getBit(bits, 6)); - this.setFunctionModule(8, 8, getBit(bits, 7)); - this.setFunctionModule(7, 8, getBit(bits, 8)); - for (let i = 9; i < 15; i++) - this.setFunctionModule(14 - i, 8, getBit(bits, i)); - - // Draw second copy - for (let i = 0; i < 8; i++) - this.setFunctionModule(this.size - 1 - i, 8, getBit(bits, i)); - for (let i = 8; i < 15; i++) - this.setFunctionModule(8, this.size - 15 + i, getBit(bits, i)); - this.setFunctionModule(8, this.size - 8, true); // Always dark - } - - // Draws two copies of the version bits (with its own error correction code), - // based on this object's version field, iff 7 <= version <= 40. - private drawVersion(): void { - if (this.version < 7) return; - - // Calculate error correction code and pack bits - let rem: int = this.version; // version is uint6, in the range [7, 40] - for (let i = 0; i < 12; i++) rem = (rem << 1) ^ ((rem >>> 11) * 0x1f25); - const bits: int = (this.version << 12) | rem; // uint18 - assert(bits >>> 18 == 0); - - // Draw two copies - for (let i = 0; i < 18; i++) { - const color: boolean = getBit(bits, i); - const a: int = this.size - 11 + (i % 3); - const b: int = Math.floor(i / 3); - this.setFunctionModule(a, b, color); - this.setFunctionModule(b, a, color); - } - } - - // Draws a 9*9 finder pattern including the border separator, - // with the center module at (x, y). Modules can be out of bounds. - private drawFinderPattern(x: int, y: int): void { - for (let dy = -4; dy <= 4; dy++) { - for (let dx = -4; dx <= 4; dx++) { - const dist: int = Math.max(Math.abs(dx), Math.abs(dy)); // Chebyshev/infinity norm - const xx: int = x + dx; - const yy: int = y + dy; - if (0 <= xx && xx < this.size && 0 <= yy && yy < this.size) - this.setFunctionModule(xx, yy, dist != 2 && dist != 4); - } - } - } - - // Draws a 5*5 alignment pattern, with the center module - // at (x, y). All modules must be in bounds. - private drawAlignmentPattern(x: int, y: int): void { - for (let dy = -2; dy <= 2; dy++) { - for (let dx = -2; dx <= 2; dx++) - this.setFunctionModule( - x + dx, - y + dy, - Math.max(Math.abs(dx), Math.abs(dy)) != 1 - ); - } - } - - // Sets the color of a module and marks it as a function module. - // Only used by the constructor. Coordinates must be in bounds. - private setFunctionModule(x: int, y: int, isDark: boolean): void { - this.modules[y][x] = isDark; - this.isFunction[y][x] = true; - } - - /*-- Private helper methods for constructor: Codewords and masking --*/ - - // Returns a new byte string representing the given data with the appropriate error correction - // codewords appended to it, based on this object's version and error correction level. - private addEccAndInterleave(data: Readonly>): Array { - const ver: int = this.version; - const ecl: QrCode.Ecc = this.errorCorrectionLevel; - if (data.length != QrCode.getNumDataCodewords(ver, ecl)) - throw new RangeError("Invalid argument"); - - // Calculate parameter numbers - const numBlocks: int = - QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver]; - const blockEccLen: int = QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver]; - const rawCodewords: int = Math.floor( - QrCode.getNumRawDataModules(ver) / 8 - ); - const numShortBlocks: int = numBlocks - (rawCodewords % numBlocks); - const shortBlockLen: int = Math.floor(rawCodewords / numBlocks); - - // Split data into blocks and append ECC to each block - const blocks: Array> = []; - const rsDiv: Array = QrCode.reedSolomonComputeDivisor(blockEccLen); - for (let i = 0, k = 0; i < numBlocks; i++) { - const dat: Array = data.slice( - k, - k + shortBlockLen - blockEccLen + (i < numShortBlocks ? 0 : 1) - ); - k += dat.length; - const ecc: Array = QrCode.reedSolomonComputeRemainder(dat, rsDiv); - if (i < numShortBlocks) dat.push(0); - blocks.push(dat.concat(ecc)); - } - - // Interleave (not concatenate) the bytes from every block into a single sequence - const result: Array = []; - for (let i = 0; i < blocks[0].length; i++) { - blocks.forEach((block, j) => { - // Skip the padding byte in short blocks - if (i != shortBlockLen - blockEccLen || j >= numShortBlocks) - result.push(block[i]); - }); - } - assert(result.length == rawCodewords); - return result; - } - - // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire - // data area of this QR Code. Function modules need to be marked off before this is called. - private drawCodewords(data: Readonly>): void { - if ( - data.length != Math.floor(QrCode.getNumRawDataModules(this.version) / 8) - ) - throw new RangeError("Invalid argument"); - let i: int = 0; // Bit index into the data - // Do the funny zigzag scan - for (let right = this.size - 1; right >= 1; right -= 2) { - // Index of right column in each column pair - if (right == 6) right = 5; - for (let vert = 0; vert < this.size; vert++) { - // Vertical counter - for (let j = 0; j < 2; j++) { - const x: int = right - j; // Actual x coordinate - const upward: boolean = ((right + 1) & 2) == 0; - const y: int = upward ? this.size - 1 - vert : vert; // Actual y coordinate - if (!this.isFunction[y][x] && i < data.length * 8) { - this.modules[y][x] = getBit(data[i >>> 3], 7 - (i & 7)); - i++; - } - // If this QR Code has any remainder bits (0 to 7), they were assigned as - // 0/false/light by the constructor and are left unchanged by this method - } - } - } - assert(i == data.length * 8); - } - - // XORs the codeword modules in this QR Code with the given mask pattern. - // The function modules must be marked and the codeword bits must be drawn - // before masking. Due to the arithmetic of XOR, calling applyMask() with - // the same mask value a second time will undo the mask. A final well-formed - // QR Code needs exactly one (not zero, two, etc.) mask applied. - private applyMask(mask: int): void { - if (mask < 0 || mask > 7) throw new RangeError("Mask value out of range"); - for (let y = 0; y < this.size; y++) { - for (let x = 0; x < this.size; x++) { - let invert: boolean; - switch (mask) { - case 0: - invert = (x + y) % 2 == 0; - break; - case 1: - invert = y % 2 == 0; - break; - case 2: - invert = x % 3 == 0; - break; - case 3: - invert = (x + y) % 3 == 0; - break; - case 4: - invert = (Math.floor(x / 3) + Math.floor(y / 2)) % 2 == 0; - break; - case 5: - invert = ((x * y) % 2) + ((x * y) % 3) == 0; - break; - case 6: - invert = (((x * y) % 2) + ((x * y) % 3)) % 2 == 0; - break; - case 7: - invert = (((x + y) % 2) + ((x * y) % 3)) % 2 == 0; - break; - default: - throw new Error("Unreachable"); - } - if (!this.isFunction[y][x] && invert) - this.modules[y][x] = !this.modules[y][x]; - } - } - } - - // Calculates and returns the penalty score based on state of this QR Code's current modules. - // This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score. - private getPenaltyScore(): int { - let result: int = 0; - - // Adjacent modules in row having same color, and finder-like patterns - for (let y = 0; y < this.size; y++) { - let runColor = false; - let runX = 0; - const runHistory = [0, 0, 0, 0, 0, 0, 0]; - for (let x = 0; x < this.size; x++) { - if (this.modules[y][x] == runColor) { - runX++; - if (runX == 5) result += QrCode.PENALTY_N1; - else if (runX > 5) result++; - } else { - this.finderPenaltyAddHistory(runX, runHistory); - if (!runColor) - result += - this.finderPenaltyCountPatterns(runHistory) * QrCode.PENALTY_N3; - runColor = this.modules[y][x]; - runX = 1; - } - } - result += - this.finderPenaltyTerminateAndCount(runColor, runX, runHistory) * - QrCode.PENALTY_N3; - } - // Adjacent modules in column having same color, and finder-like patterns - for (let x = 0; x < this.size; x++) { - let runColor = false; - let runY = 0; - const runHistory = [0, 0, 0, 0, 0, 0, 0]; - for (let y = 0; y < this.size; y++) { - if (this.modules[y][x] == runColor) { - runY++; - if (runY == 5) result += QrCode.PENALTY_N1; - else if (runY > 5) result++; - } else { - this.finderPenaltyAddHistory(runY, runHistory); - if (!runColor) - result += - this.finderPenaltyCountPatterns(runHistory) * QrCode.PENALTY_N3; - runColor = this.modules[y][x]; - runY = 1; - } - } - result += - this.finderPenaltyTerminateAndCount(runColor, runY, runHistory) * - QrCode.PENALTY_N3; - } - - // 2*2 blocks of modules having same color - for (let y = 0; y < this.size - 1; y++) { - for (let x = 0; x < this.size - 1; x++) { - const color: boolean = this.modules[y][x]; - if ( - color == this.modules[y][x + 1] && - color == this.modules[y + 1][x] && - color == this.modules[y + 1][x + 1] - ) - result += QrCode.PENALTY_N2; - } - } - - // Balance of dark and light modules - let dark: int = 0; - for (const row of this.modules) - dark = row.reduce((sum, color) => sum + (color ? 1 : 0), dark); - const total: int = this.size * this.size; // Note that size is odd, so dark/total != 1/2 - // Compute the smallest integer k >= 0 such that (45-5k)% <= dark/total <= (55+5k)% - const k: int = Math.ceil(Math.abs(dark * 20 - total * 10) / total) - 1; - assert(0 <= k && k <= 9); - result += k * QrCode.PENALTY_N4; - assert(0 <= result && result <= 2568888); // Non-tight upper bound based on default values of PENALTY_N1, ..., N4 - return result; - } - - /*-- Private helper functions --*/ - - // Returns an ascending list of positions of alignment patterns for this version number. - // Each position is in the range [0,177), and are used on both the x and y axes. - // This could be implemented as lookup table of 40 variable-length lists of integers. - private getAlignmentPatternPositions(): Array { - if (this.version == 1) return []; - else { - const numAlign: int = Math.floor(this.version / 7) + 2; - const step: int = - this.version == 32 - ? 26 - : Math.ceil((this.version * 4 + 4) / (numAlign * 2 - 2)) * 2; - const result: Array = [6]; - for (let pos = this.size - 7; result.length < numAlign; pos -= step) - result.splice(1, 0, pos); - return result; - } - } - - // Returns the number of data bits that can be stored in a QR Code of the given version number, after - // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8. - // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table. - private static getNumRawDataModules(ver: int): int { - if (ver < QrCode.MIN_VERSION || ver > QrCode.MAX_VERSION) - throw new RangeError("Version number out of range"); - let result: int = (16 * ver + 128) * ver + 64; - if (ver >= 2) { - const numAlign: int = Math.floor(ver / 7) + 2; - result -= (25 * numAlign - 10) * numAlign - 55; - if (ver >= 7) result -= 36; - } - assert(208 <= result && result <= 29648); - return result; - } - - // Returns the number of 8-bit data (i.e. not error correction) codewords contained in any - // QR Code of the given version number and error correction level, with remainder bits discarded. - // This stateless pure function could be implemented as a (40*4)-cell lookup table. - private static getNumDataCodewords(ver: int, ecl: QrCode.Ecc): int { - return ( - Math.floor(QrCode.getNumRawDataModules(ver) / 8) - - QrCode.ECC_CODEWORDS_PER_BLOCK[ecl.ordinal][ver] * - QrCode.NUM_ERROR_CORRECTION_BLOCKS[ecl.ordinal][ver] - ); - } - - // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be - // implemented as a lookup table over all possible parameter values, instead of as an algorithm. - private static reedSolomonComputeDivisor(degree: int): Array { - if (degree < 1 || degree > 255) - throw new RangeError("Degree out of range"); - // Polynomial coefficients are stored from highest to lowest power, excluding the leading term which is always 1. - // For example the polynomial x^3 + 255x^2 + 8x + 93 is stored as the uint8 array [255, 8, 93]. - const result: Array = []; - for (let i = 0; i < degree - 1; i++) result.push(0); - result.push(1); // Start off with the monomial x^0 - - // Compute the product polynomial (x - r^0) * (x - r^1) * (x - r^2) * ... * (x - r^{degree-1}), - // and drop the highest monomial term which is always 1x^degree. - // Note that r = 0x02, which is a generator element of this field GF(2^8/0x11D). - let root = 1; - for (let i = 0; i < degree; i++) { - // Multiply the current product by (x - r^i) - for (let j = 0; j < result.length; j++) { - result[j] = QrCode.reedSolomonMultiply(result[j], root); - if (j + 1 < result.length) result[j] ^= result[j + 1]; - } - root = QrCode.reedSolomonMultiply(root, 0x02); - } - return result; - } - - // Returns the Reed-Solomon error correction codeword for the given data and divisor polynomials. - private static reedSolomonComputeRemainder( - data: Readonly>, - divisor: Readonly> - ): Array { - const result: Array = divisor.map((_) => 0); - for (const b of data) { - // Polynomial division - const factor: byte = b ^ (result.shift() as byte); - result.push(0); - divisor.forEach( - (coef, i) => (result[i] ^= QrCode.reedSolomonMultiply(coef, factor)) - ); - } - return result; - } - - // Returns the product of the two given field elements modulo GF(2^8/0x11D). The arguments and result - // are unsigned 8-bit integers. This could be implemented as a lookup table of 256*256 entries of uint8. - private static reedSolomonMultiply(x: byte, y: byte): byte { - if (x >>> 8 != 0 || y >>> 8 != 0) - throw new RangeError("Byte out of range"); - // Russian peasant multiplication - let z: int = 0; - for (let i = 7; i >= 0; i--) { - z = (z << 1) ^ ((z >>> 7) * 0x11d); - z ^= ((y >>> i) & 1) * x; - } - assert(z >>> 8 == 0); - return z as byte; - } - - // Can only be called immediately after a light run is added, and - // returns either 0, 1, or 2. A helper function for getPenaltyScore(). - private finderPenaltyCountPatterns(runHistory: Readonly>): int { - const n: int = runHistory[1]; - assert(n <= this.size * 3); - const core: boolean = - n > 0 && - runHistory[2] == n && - runHistory[3] == n * 3 && - runHistory[4] == n && - runHistory[5] == n; - return ( - (core && runHistory[0] >= n * 4 && runHistory[6] >= n ? 1 : 0) + - (core && runHistory[6] >= n * 4 && runHistory[0] >= n ? 1 : 0) - ); - } - - // Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore(). - private finderPenaltyTerminateAndCount( - currentRunColor: boolean, - currentRunLength: int, - runHistory: Array - ): int { - if (currentRunColor) { - // Terminate dark run - this.finderPenaltyAddHistory(currentRunLength, runHistory); - currentRunLength = 0; - } - currentRunLength += this.size; // Add light border to final run - this.finderPenaltyAddHistory(currentRunLength, runHistory); - return this.finderPenaltyCountPatterns(runHistory); - } - - // Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore(). - private finderPenaltyAddHistory( - currentRunLength: int, - runHistory: Array - ): void { - if (runHistory[0] == 0) currentRunLength += this.size; // Add light border to initial run - runHistory.pop(); - runHistory.unshift(currentRunLength); - } - - /*-- Constants and tables --*/ - - // The minimum version number supported in the QR Code Model 2 standard. - public static readonly MIN_VERSION: int = 1; - // The maximum version number supported in the QR Code Model 2 standard. - public static readonly MAX_VERSION: int = 40; - - // For use in getPenaltyScore(), when evaluating which mask is best. - private static readonly PENALTY_N1: int = 3; - private static readonly PENALTY_N2: int = 3; - private static readonly PENALTY_N3: int = 40; - private static readonly PENALTY_N4: int = 10; - - private static readonly ECC_CODEWORDS_PER_BLOCK: Array> = [ - // Version: (note that index 0 is for padding, and is set to an illegal value) - //0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level - [ - -1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, - 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, - 30, 30, 30, 30, 30, - ], // Low - [ - -1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, - 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 28, 28, 28, - ], // Medium - [ - -1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, - 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, - 30, 30, 30, 30, 30, - ], // Quartile - [ - -1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, - 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, - 30, 30, 30, 30, 30, - ], // High - ]; - - private static readonly NUM_ERROR_CORRECTION_BLOCKS: Array> = [ - // Version: (note that index 0 is for padding, and is set to an illegal value) - //0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level - [ - -1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, - 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25, - ], // Low - [ - -1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, - 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, - 47, 49, - ], // Medium - [ - -1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, - 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, - 65, 68, - ], // Quartile - [ - -1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, - 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, - 74, 77, 81, - ], // High - ]; - } - - // Appends the given number of low-order bits of the given value - // to the given buffer. Requires 0 <= len <= 31 and 0 <= val < 2^len. - function appendBits(val: int, len: int, bb: Array): void { - if (len < 0 || len > 31 || val >>> len != 0) - throw new RangeError("Value out of range"); - for ( - let i = len - 1; - i >= 0; - i-- // Append bit by bit - ) - bb.push((val >>> i) & 1); - } - - // Returns true iff the i'th bit of x is set to 1. - function getBit(x: int, i: int): boolean { - return ((x >>> i) & 1) != 0; - } - - // Throws an exception if the given condition is false. - function assert(cond: boolean): void { - if (!cond) throw new Error("Assertion error"); - } - - /*---- Data segment class ----*/ - - /* - * A segment of character/binary/control data in a QR Code symbol. - * Instances of this class are immutable. - * The mid-level way to create a segment is to take the payload data - * and call a static factory function such as QrSegment.makeNumeric(). - * The low-level way to create a segment is to custom-make the bit buffer - * and call the QrSegment() constructor with appropriate values. - * This segment class imposes no length restrictions, but QR Codes have restrictions. - * Even in the most favorable conditions, a QR Code can only hold 7089 characters of data. - * Any segment longer than this is meaningless for the purpose of generating QR Codes. - */ - export class QrSegment { - /*-- Static factory functions (mid level) --*/ - - // Returns a segment representing the given binary data encoded in - // byte mode. All input byte arrays are acceptable. Any text string - // can be converted to UTF-8 bytes and encoded as a byte mode segment. - public static makeBytes(data: Readonly>): QrSegment { - const bb: Array = []; - for (const b of data) appendBits(b, 8, bb); - return new QrSegment(QrSegment.Mode.BYTE, data.length, bb); - } - - // Returns a segment representing the given string of decimal digits encoded in numeric mode. - public static makeNumeric(digits: string): QrSegment { - if (!QrSegment.isNumeric(digits)) - throw new RangeError("String contains non-numeric characters"); - const bb: Array = []; - for (let i = 0; i < digits.length; ) { - // Consume up to 3 digits per iteration - const n: int = Math.min(digits.length - i, 3); - appendBits(parseInt(digits.substring(i, i + n), 10), n * 3 + 1, bb); - i += n; - } - return new QrSegment(QrSegment.Mode.NUMERIC, digits.length, bb); - } - - // Returns a segment representing the given text string encoded in alphanumeric mode. - // The characters allowed are: 0 to 9, A to Z (uppercase only), space, - // dollar, percent, asterisk, plus, hyphen, period, slash, colon. - public static makeAlphanumeric(text: string): QrSegment { - if (!QrSegment.isAlphanumeric(text)) - throw new RangeError( - "String contains unencodable characters in alphanumeric mode" - ); - const bb: Array = []; - let i: int; - for (i = 0; i + 2 <= text.length; i += 2) { - // Process groups of 2 - let temp: int = - QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45; - temp += QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1)); - appendBits(temp, 11, bb); - } - if (i < text.length) - // 1 character remaining - appendBits( - QrSegment.ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)), - 6, - bb - ); - return new QrSegment(QrSegment.Mode.ALPHANUMERIC, text.length, bb); - } - - // Returns a new mutable list of zero or more segments to represent the given Unicode text string. - // The result may use various segment modes and switch modes to optimize the length of the bit stream. - public static makeSegments(text: string): Array { - // Select the most efficient segment encoding automatically - if (text == "") return []; - else if (QrSegment.isNumeric(text)) return [QrSegment.makeNumeric(text)]; - else if (QrSegment.isAlphanumeric(text)) - return [QrSegment.makeAlphanumeric(text)]; - else return [QrSegment.makeBytes(QrSegment.toUtf8ByteArray(text))]; - } - - // Returns a segment representing an Extended Channel Interpretation - // (ECI) designator with the given assignment value. - public static makeEci(assignVal: int): QrSegment { - const bb: Array = []; - if (assignVal < 0) - throw new RangeError("ECI assignment value out of range"); - else if (assignVal < 1 << 7) appendBits(assignVal, 8, bb); - else if (assignVal < 1 << 14) { - appendBits(0b10, 2, bb); - appendBits(assignVal, 14, bb); - } else if (assignVal < 1000000) { - appendBits(0b110, 3, bb); - appendBits(assignVal, 21, bb); - } else throw new RangeError("ECI assignment value out of range"); - return new QrSegment(QrSegment.Mode.ECI, 0, bb); - } - - // Tests whether the given string can be encoded as a segment in numeric mode. - // A string is encodable iff each character is in the range 0 to 9. - public static isNumeric(text: string): boolean { - return QrSegment.NUMERIC_REGEX.test(text); - } - - // Tests whether the given string can be encoded as a segment in alphanumeric mode. - // A string is encodable iff each character is in the following set: 0 to 9, A to Z - // (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon. - public static isAlphanumeric(text: string): boolean { - return QrSegment.ALPHANUMERIC_REGEX.test(text); - } - - /*-- Constructor (low level) and fields --*/ - - // Creates a new QR Code segment with the given attributes and data. - // The character count (numChars) must agree with the mode and the bit buffer length, - // but the constraint isn't checked. The given bit buffer is cloned and stored. - public constructor( - // The mode indicator of this segment. - public readonly mode: QrSegment.Mode, - - // The length of this segment's unencoded data. Measured in characters for - // numeric/alphanumeric/kanji mode, bytes for byte mode, and 0 for ECI mode. - // Always zero or positive. Not the same as the data's bit length. - public readonly numChars: int, - - // The data bits of this segment. Accessed through getData(). - private readonly bitData: Array - ) { - if (numChars < 0) throw new RangeError("Invalid argument"); - this.bitData = bitData.slice(); // Make defensive copy - } - - /*-- Methods --*/ - - // Returns a new copy of the data bits of this segment. - public getData(): Array { - return this.bitData.slice(); // Make defensive copy - } - - // (Package-private) Calculates and returns the number of bits needed to encode the given segments at - // the given version. The result is infinity if a segment has too many characters to fit its length field. - public static getTotalBits( - segs: Readonly>, - version: int - ): number { - let result = 0; - for (const seg of segs) { - const ccbits: int = seg.mode.numCharCountBits(version); - if (seg.numChars >= 1 << ccbits) return Infinity; // The segment's length doesn't fit the field's bit width - result += 4 + ccbits + seg.bitData.length; - } - return result; - } - - // Returns a new array of bytes representing the given string encoded in UTF-8. - private static toUtf8ByteArray(str: string): Array { - str = encodeURI(str); - const result: Array = []; - for (let i = 0; i < str.length; i++) { - if (str.charAt(i) != "%") result.push(str.charCodeAt(i)); - else { - result.push(parseInt(str.substring(i + 1, i + 3), 16)); - i += 2; - } - } - return result; - } - - /*-- Constants --*/ - - // Describes precisely all strings that are encodable in numeric mode. - private static readonly NUMERIC_REGEX: RegExp = /^[0-9]*$/; - - // Describes precisely all strings that are encodable in alphanumeric mode. - private static readonly ALPHANUMERIC_REGEX: RegExp = - /^[A-Z0-9 $%*+.\/:-]*$/; - - // The set of all legal characters in alphanumeric mode, - // where each character value maps to the index in the string. - private static readonly ALPHANUMERIC_CHARSET: string = - "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; - } -} - -/*---- Public helper enumeration ----*/ - -export namespace qrcodegen.QrCode { - type int = number; - - /* - * The error correction level in a QR Code symbol. Immutable. - */ - export class Ecc { - /*-- Constants --*/ - - public static readonly LOW = new Ecc(0, 1); // The QR Code can tolerate about 7% erroneous codewords - public static readonly MEDIUM = new Ecc(1, 0); // The QR Code can tolerate about 15% erroneous codewords - public static readonly QUARTILE = new Ecc(2, 3); // The QR Code can tolerate about 25% erroneous codewords - public static readonly HIGH = new Ecc(3, 2); // The QR Code can tolerate about 30% erroneous codewords - - /*-- Constructor and fields --*/ - - private constructor( - // In the range 0 to 3 (unsigned 2-bit integer). - public readonly ordinal: int, - // (Package-private) In the range 0 to 3 (unsigned 2-bit integer). - public readonly formatBits: int - ) {} - } -} - -/*---- Public helper enumeration ----*/ - -export namespace qrcodegen.QrSegment { - type int = number; - - /* - * Describes how a segment's data bits are interpreted. Immutable. - */ - export class Mode { - /*-- Constants --*/ - - public static readonly NUMERIC = new Mode(0x1, [10, 12, 14]); - public static readonly ALPHANUMERIC = new Mode(0x2, [9, 11, 13]); - public static readonly BYTE = new Mode(0x4, [8, 16, 16]); - public static readonly KANJI = new Mode(0x8, [8, 10, 12]); - public static readonly ECI = new Mode(0x7, [0, 0, 0]); - - /*-- Constructor and fields --*/ - - private constructor( - // The mode indicator bits, which is a uint4 value (range 0 to 15). - public readonly modeBits: int, - // Number of character count bits for three different version ranges. - private readonly numBitsCharCount: [int, int, int] - ) {} - - /*-- Method --*/ - - // (Package-private) Returns the bit width of the character count field for a segment in - // this mode in a QR Code at the given version number. The result is in the range [0, 16]. - public numCharCountBits(ver: int): int { - return this.numBitsCharCount[Math.floor((ver + 7) / 17)]; - } - } -} diff --git a/libs/es-client/src/wallet/wallets/ConnectedWallet.ts b/libs/es-client/src/wallet/wallets/ConnectedWallet.ts deleted file mode 100644 index 7d76985..0000000 --- a/libs/es-client/src/wallet/wallets/ConnectedWallet.ts +++ /dev/null @@ -1,230 +0,0 @@ -import { PlainMessage } from "@bufbuild/protobuf"; -import { - Adapter, - PollTxParams, - Secp256k1PubKey, - Tx, - calculateFee, - getAccount, - pollTx, - simulateTx, - toBaseAccount, -} from "@onsonr/es/client"; -import { - CosmosBaseV1beta1Coin as Coin, - CosmosTxV1beta1Fee as Fee, - CosmosTxV1beta1GetTxResponse as GetTxResponse, -} from "@onsonr/es/protobufs"; - -import type { WalletName } from "../constants/WalletName"; -import type { WalletType } from "../constants/WalletType"; -import { extractExpectedAccountSequence } from "../utils/sequence"; - -export type UnsignedTx = { - msgs: Adapter[]; - memo?: string | undefined; - timeoutHeight?: bigint | undefined; -}; - -export type PollTxOptions = Pick< - PollTxParams, - "intervalSeconds" | "maxAttempts" ->; - -export type SignArbitraryResponse = { - data: string; - pubKey: string; - signature: string; -}; - -/** - * Represents a connected wallet that is ready to sign transactions. - * Use `WalletController` to create an instance of this class. - */ -export abstract class ConnectedWallet { - /** The identifier of this wallet. */ - public readonly id: WalletName; - /** The type of connection to the wallet. */ - public readonly type: WalletType; - /** The user-defined label for this wallet, if any. */ - public readonly label: string | undefined; - /** The chain ID this wallet is connected to. */ - public readonly chainId: string; - /** The public key. */ - public readonly pubKey: Secp256k1PubKey; - /** The bech32 address. */ - public readonly address: string; - /** The RPC endpoint to use for interacting with the chain. */ - public readonly rpc: string; - /** The gas price to use for transactions. */ - public readonly gasPrice: Coin; - private accountNumber: bigint | undefined; - private sequence: bigint | undefined; - - constructor( - id: WalletName, - type: WalletType, - label: string | undefined, - chainId: string, - pubKey: Secp256k1PubKey, - address: string, - rpc: string, - gasPrice: PlainMessage - ) { - this.id = id; - this.type = type; - this.label = label; - this.chainId = chainId; - this.pubKey = pubKey; - this.address = address; - this.rpc = rpc; - this.gasPrice = new Coin(gasPrice); - } - - /** - * Returns the account number and sequence for the connected address. If `fromCache` - * is true, the cached values (if they are available) will be returned instead of - * querying the auth module. - * - * @throws if the account does not exist in the auth module. - */ - public async getAuthInfo(fromCache = false): Promise<{ - accountNumber: bigint; - sequence: bigint; - }> { - if (!this.accountNumber || !this.sequence || !fromCache) { - const account = await getAccount(this.rpc, { address: this.address }); - const { accountNumber, sequence } = toBaseAccount(account); - this.accountNumber = accountNumber; - this.sequence = sequence; - } - return { - accountNumber: this.accountNumber, - sequence: this.sequence, - }; - } - - /** - * Simulates the tx and returns an estimate of the gas fees required. - * - * @throws if the tx fails to simulate. - */ - public async estimateFee( - { msgs, memo }: UnsignedTx, - feeMultiplier = 1.4 - ): Promise { - const estimate = async () => { - const { sequence } = await this.getAuthInfo(true); - const { gasInfo } = await simulateTx(this.rpc, { - sequence, - memo, - tx: new Tx({ chainId: this.chainId, pubKey: this.pubKey, msgs: msgs }), - }); - if (!gasInfo) { - throw new Error("Unable to estimate fee"); - } - return calculateFee(gasInfo, this.gasPrice, feeMultiplier); - }; - // If we encounter an account sequence mismatch error, we retry exactly once - // by parsing the error for the correct sequence to use - try { - return await estimate(); - } catch (err) { - if (!(err instanceof Error)) { - // Rethrow non-errors - throw err; - } - const expectedSequence = extractExpectedAccountSequence(err); - if (!expectedSequence) { - // Rethrow errors not related to account sequence mismatch - throw err; - } - // Set the cached sequence to the one from the error message - this.sequence = expectedSequence; - return estimate(); - } - } - - /** - * Signs and broadcasts the given `unsignedTx`, returning the tx hash if successful. - * The `fee` parameter can (and should) be obtained by running `estimateFee` on - * the `unsignedTx` prior to calling this method. - * - * **Important**: successful execution of this method does not guarantee that the - * tx was successfully included in a block. Use `pollTx` to poll for the result of - * the tx. - * - * @throws if the user denies the signing of the tx. - * @throws if the tx fails to broadcast. - */ - public async broadcastTx(unsignedTx: UnsignedTx, fee: Fee): Promise { - const { accountNumber, sequence } = await this.getAuthInfo(true); - const hash = await this.signAndBroadcastTx( - unsignedTx, - fee, - accountNumber, - sequence - ); - // Greedily increment the sequence for the next tx. This may result in the wrong - // sequence, but if `estimateFee` was called prior to this, it will be corrected - this.sequence = sequence + 1n; - return hash; - } - - /** - * Polls for the tx matching the given `txHash` every `intervalSeconds` until it is - * included in a block or when `maxAttempts` is reached (default: 2s, 64 attempts). - * - * @throws if the tx is not included in a block after the given `maxAttempts`. - */ - public async pollTx( - txHash: string, - { maxAttempts, intervalSeconds }: PollTxOptions = {} - ): Promise>> { - return pollTx(this.rpc, { - hash: txHash, - maxAttempts, - intervalSeconds, - }); - } - - /** - * Executes `broadcastTx` and `pollTx` sequentially, returning the result of the - * tx. If `feeOrFeeMultiplier` is `undefined` or a number, an additional call to - * `estimateFee` will be made. Use this if there is no need to independently - * execute the three methods. - */ - public async broadcastTxSync( - unsignedTx: UnsignedTx, - feeOrFeeMultiplier: Fee | number = 1.4, - pollOpts: PollTxOptions = {} - ): Promise>> { - const fee = - typeof feeOrFeeMultiplier === "number" - ? await this.estimateFee(unsignedTx, feeOrFeeMultiplier) - : feeOrFeeMultiplier; - const txHash = await this.broadcastTx(unsignedTx, fee); - return this.pollTx(txHash, pollOpts); - } - - /** - * Signs the UTF-8 encoded `data` string. Note that some mobile wallets do not - * support this method. - * - * @throws if the user denies the signing of the data. - * @throws if the wallet does not support signing arbitrary data. - */ - public abstract signArbitrary(data: string): Promise; - - /** - * Signs the given `unsignedTx` and broadcasts the resulting signed tx, returning - * the hex encoded tx hash if successful. This abstract method should be implemented - * by the concrete child classes. - */ - protected abstract signAndBroadcastTx( - unsignedTx: UnsignedTx, - fee: Fee, - accountNumber: bigint, - sequence: bigint - ): Promise; -} diff --git a/libs/es-client/src/wallet/wallets/WalletController.ts b/libs/es-client/src/wallet/wallets/WalletController.ts deleted file mode 100644 index 879c573..0000000 --- a/libs/es-client/src/wallet/wallets/WalletController.ts +++ /dev/null @@ -1,187 +0,0 @@ -import type { PlainMessage } from "@bufbuild/protobuf"; -import type { CosmosBaseV1beta1Coin as Coin } from "@onsonr/es/protobufs"; - -import type { WalletName } from "../constants/WalletName"; -import { WalletType } from "../constants/WalletType"; -import { WalletConnectV1 } from "../walletconnect/WalletConnectV1"; -import { WalletConnectV2 } from "../walletconnect/WalletConnectV2"; -import type { ConnectedWallet } from "./ConnectedWallet"; - -/** - * Represents a chain that the wallet can connect to. - */ -export type ChainInfo = { - /** - * The unique identifier for the chain (eg. `phoenix-1`). - */ - chainId: T; - /** - * A valid RPC endpoint that can be used to simulate and broadcast transactions. - */ - rpc: string; - /** - * The current gas price of the chain. - */ - gasPrice: PlainMessage; -}; - -export type EventCallback = (wallets: ConnectedWallet[]) => unknown; - -/** - * Controls initial connection to the wallet, and instantiates the - * various `ConnectedWallet` instances. - */ -export abstract class WalletController { - /** The identifier of this wallet. */ - public readonly id: WalletName; - /** Map of chain ID to connected wallets. */ - public readonly connectedWallets: Map; - private readonly onDisconnectCbs: Set; - protected readonly onAccountChangeCbs: Set; - private isWcOnDisconnectRegistered: boolean; - - constructor(id: WalletName) { - this.id = id; - this.connectedWallets = new Map(); - this.onDisconnectCbs = new Set(); - this.onAccountChangeCbs = new Set(); - this.isWcOnDisconnectRegistered = false; - } - - /** - * Returns `true` iff the wallet is installed. - */ - public abstract isInstalled(type: WalletType): Promise; - - /** - * Connects to the wallet and returns a map of `ConnectedWallet` instances. - * The keys of the map are the chain IDs. - */ - public async connect( - type: WalletType, - chains: ChainInfo[] - ): Promise> { - if (chains.length === 0) { - return new Map(); - } - let connectedWallets: Map; - if (type === WalletType.EXTENSION) { - connectedWallets = await this.connectExtension(chains); - } else { - const { wallets, wc } = await this.connectWalletConnect(chains); - if (!this.isWcOnDisconnectRegistered) { - // On WalletConnect session disconnect, remove all WalletConnect wallets - this.isWcOnDisconnectRegistered = true; - wc.onDisconnect(() => { - this.disconnect( - Array.from(this.connectedWallets.keys()).filter( - (id) => - this.connectedWallets.get(id)?.type === WalletType.WALLETCONNECT - ) - ); - }); - } - connectedWallets = wallets; - } - for (const [key, value] of connectedWallets) { - this.connectedWallets.set(key, value); - } - return connectedWallets; - } - - /** - * Disconnects the wallet connected to the given `chainIds`. - */ - public disconnect(chainIds: string[]) { - const callbackIds = chainIds.filter((id) => this.connectedWallets.has(id)); - if (callbackIds.length === 0) { - return; - } - const disconnectedWallets: ConnectedWallet[] = []; - for (const id of callbackIds) { - const wallet = this.connectedWallets.get(id); - if (wallet) { - disconnectedWallets.push(wallet); - this.connectedWallets.delete(id); - } - } - for (const cb of this.onDisconnectCbs) { - cb(disconnectedWallets); - } - } - - /** - * Should be called when any account changes are detected. This will disconnect - * from all chains that were connected via the given `walletType`, and emit the - * `onAccountChange` event. - */ - protected changeAccount(walletType: WalletType) { - // Ignore if controller does not have any connected wallets - if (this.connectedWallets.size === 0) { - return; - } - // Find all wallets that were connected via the given `walletType` - const wallets = [...this.connectedWallets.values()].filter( - (wallet) => wallet.type === walletType - ); - // Disconnect from those chains - const chainIds = wallets.map((wallet) => wallet.chainId); - this.disconnect(chainIds); - // Fire the account change callbacks - for (const cb of this.onAccountChangeCbs) { - cb(wallets); - } - } - - /** - * Registers a callback that is called when the wallet is disconnected. - * Returns an `unsubscribe` function that should be called after the - * callback is no longer needed. - * - * ```ts - * const unsubscribe = walletController.onDisconnect((wallets) => { - * // do something with the wallets that were disconnected - * console.log(wallets); - * // unsubscribe from this callback (if necessary) - * unsubsribe(); - * }); - * ``` - */ - public onDisconnect(cb: EventCallback): () => void { - this.onDisconnectCbs.add(cb); - return () => this.onDisconnectCbs.delete(cb); - } - - /** - * Registers a callback that is called when the wallet's account is changed after - * the initial connection. When the account changes, the `onDisconnect` event - * will also be fired before this `onAccountChange` event. Returns an `unsubscribe` - * function that should be called after the callback is no longer needed. - * - * ```ts - * const unsubscribe = walletController.onAccountChange((wallets) => { - * // do something with the wallets that were affected - * console.log(wallets); - * // unsubscribe from this callback (if necessary) - * unsubsribe(); - * }); - * ``` - */ - public onAccountChange(cb: EventCallback): () => void { - this.onAccountChangeCbs.add(cb); - return () => this.onAccountChangeCbs.delete(cb); - } - - protected abstract connectExtension( - chains: ChainInfo[] - ): Promise>; - - protected abstract connectWalletConnect( - chains: ChainInfo[] - ): Promise<{ - wallets: Map; - wc: WalletConnectV1 | WalletConnectV2; - }>; - - protected abstract registerAccountChangeHandlers(): void; -} diff --git a/libs/es-client/src/wallet/wallets/WalletError.ts b/libs/es-client/src/wallet/wallets/WalletError.ts deleted file mode 100644 index 4215a98..0000000 --- a/libs/es-client/src/wallet/wallets/WalletError.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Custom error class which wraps around an error thrown by a wallet. - */ -export class WalletError extends Error { - /** - * Holds the original error and type thrown by the wallet. - */ - public raw: unknown; - - constructor(message: string, raw: unknown) { - super(message); - this.name = "WalletError"; - this.raw = raw; - } - - /** - * Returns the result of the `promise` if it resolves successfully, normalising - * any errors thrown into a `WalletError` instance. - * - * It is best to wrap all wallet API calls with this function as some wallets - * throw other data types other than actual `Error` instances. - */ - public static async wrap(promise: Promise): Promise { - try { - return await promise; - } catch (err) { - if (typeof err === "string") { - throw new WalletError(err, err); - } - if (this.isRecord(err)) { - // Takes into account normal error instances and objects with the 'error' key - throw new WalletError(err.message ?? err.error ?? "unknown error", err); - } - throw new WalletError("unknown error", err); - } - } - - private static isRecord(value: unknown): value is Record { - return typeof value === "object" && value != null; - } -} diff --git a/libs/es-client/src/wallet/wallets/mnemonic/MnemonicWallet.ts b/libs/es-client/src/wallet/wallets/mnemonic/MnemonicWallet.ts deleted file mode 100644 index cfac463..0000000 --- a/libs/es-client/src/wallet/wallets/mnemonic/MnemonicWallet.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { RpcClient, Secp256k1PubKey, Tx } from "@onsonr/es/client"; -import { - base64, - resolveBech32Address, - resolveKeyPair, - signAmino, - signDirect, - utf8, -} from "@onsonr/es/codec"; -import { CosmosTxV1beta1Fee as Fee } from "@onsonr/es/protobufs"; -import { StdSignDoc } from "@onsonr/es/registry"; - -import { Prettify } from "../../../typeutils/prettify"; -import { WalletName } from "../../constants/WalletName"; -import { WalletType } from "../../constants/WalletType"; -import { - ConnectedWallet, - SignArbitraryResponse, - UnsignedTx, -} from "../ConnectedWallet"; -import { ChainInfo } from "../WalletController"; - -export type ConnectMnemonicWalletOptions = Prettify< - { - /** - * Also known as the 12-24 words seed phrase. **Warning: keep this safe!** - */ - mnemonic: string; - /** - * The address prefix for the chain (eg. "osmo"). - */ - bech32Prefix: string; - /** - * Coin type number for HD derivation (default: `118`). For Terra chains, change - * this to `330`. - */ - coinType?: number | undefined; - /** - * Address index number for HD derivation (default: `0`). - */ - index?: number | undefined; - } & ChainInfo ->; - -/** - * This wallet accepts a mnemonic (aka seed phrase) and is able to directly sign - * and broadcast transactions to the chain without relying on an external wallet - * like Keplr or Station. Use this if you want to programmatically broadcast - * transactions. Unlike the other wallets, there is no Controller class and this - * object must be instantiated directly. - * - * ```ts - * // Example usage for Osmosis chain - * const wallet = new MnemonicWallet({ - * mnemonic: "REPLACE WITH 12-24 WORDS SEED PHRASE", // TODO - * bech32Prefix: "osmo", - * chainId: "osmosis-1", - * rpc: "https://rpc.osmosis.zone", - * gasPrice: { - * amount: "0.0025", - * denom: "uosmo", - * }, - * coinType: 118, // optional (default: 118) - * index: 0, // optional (default: 0) - * }); - * console.log("Address:", wallet.address); // prints the bech32 address - * - * // Sign an arbitrary message - * const { signature } = await wallet.signArbitrary("Hello from @onsonr/es!"); - * console.log("Signature:", signature); - * - * // Sign and broadcast a tx - * const res = await wallet.broadcastTxSync( ... ); // TODO - * console.log("Tx result:", res); - * ``` - */ -export class MnemonicWallet extends ConnectedWallet { - public readonly publicKey: string; - public readonly privateKey: Uint8Array; - public readonly keyType: "secp256k1" | "ethsecp256k1"; - - constructor({ - mnemonic, - bech32Prefix, - coinType, - index, - chainId, - gasPrice, - rpc, - }: ConnectMnemonicWalletOptions) { - const { publicKey, privateKey } = resolveKeyPair(mnemonic, { - coinType, - index, - }); - const keyType = - chainId.startsWith("injective") || chainId.startsWith("dymension") - ? "ethsecp256k1" - : "secp256k1"; - const address = resolveBech32Address(publicKey, bech32Prefix, keyType); - super( - // We typecast here instead of adding "mnemonic" to `WalletName` and - // `WalletType` as this wallet is considered a special wallet that is - // unlikely to be used by most consumers of @onsonr/es. - "mnemonic" as WalletName, - "mnemonic" as WalletType, - undefined, - chainId, - new Secp256k1PubKey({ - chainId, - key: publicKey, - }), - address, - rpc, - gasPrice - ); - this.publicKey = base64.encode(publicKey); - this.privateKey = privateKey; - this.keyType = keyType; - } - - public async signArbitrary(data: string): Promise { - // This sign doc follows ADR 036 specs. - // See: https://github.com/cosmos/cosmos-sdk/blob/main/docs/architecture/adr-036-arbitrary-signature.md - const doc: StdSignDoc = { - chain_id: "", - account_number: "0", - sequence: "0", - fee: { - gas: "0", - amount: [], - }, - msgs: [ - { - type: "sign/MsgSignData", - value: { - signer: this.address, - data: base64.encode(utf8.decode(data)), - }, - }, - ], - memo: "", - }; - const signature = signAmino(doc, this.privateKey, this.keyType); - return { - data, - pubKey: this.publicKey, - signature: base64.encode(signature), - }; - } - - public async signAndBroadcastTx( - { msgs, memo, timeoutHeight }: UnsignedTx, - fee: Fee, - accountNumber: bigint, - sequence: bigint - ): Promise { - const tx = new Tx({ - chainId: this.chainId, - pubKey: this.pubKey, - msgs: msgs, - }); - const doc = tx.toSignDoc({ - accountNumber, - sequence, - fee, - memo, - timeoutHeight, - }); - const signature = signDirect(doc, this.privateKey, this.keyType); - return RpcClient.broadcastTx(this.rpc, tx.toSignedDirect(doc, signature)); - } -} diff --git a/libs/es-client/src/wallet/wallets/window.d.ts b/libs/es-client/src/wallet/wallets/window.d.ts deleted file mode 100644 index 72385b7..0000000 --- a/libs/es-client/src/wallet/wallets/window.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Window as KeplrWindow } from "@onsonr/es/registry"; - -import { Window as CompassWindow } from "./compass/types"; -import { Window as CosmostationWindow } from "./cosmostation/types"; -import { Window as LeapWindow } from "./leap/types"; -import { Window as EthereumWindow } from "./metamask-injective/types"; -import { Window as NinjiWindow } from "./ninji/types"; -import { Window as OWalletWindow } from "./owallet/types"; -import { Window as StationWindow } from "./station/types"; - -declare global { - interface Window - extends KeplrWindow, - CosmostationWindow, - StationWindow, - LeapWindow, - CompassWindow, - EthereumWindow, - NinjiWindow, - OWalletWindow {} -} diff --git a/libs/es-client/tsconfig.json b/libs/es-client/tsconfig.json deleted file mode 100644 index dcc09bc..0000000 --- a/libs/es-client/tsconfig.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "compilerOptions": { - "lib": ["ES2020", "DOM"], - "target": "ES2020", - "module": "ES2020", - "baseUrl": ".", - "paths": { - "@onsonr/es/*": ["./src/*"] - }, - "outDir": "./dist", - // `node16` is too strict and causes type errors for imported pkgs. - // We use `tsc-alias` to help add the file extensions instead. - "moduleResolution": "bundler", - "forceConsistentCasingInFileNames": true, - "isolatedModules": true, - "esModuleInterop": true, - "skipLibCheck": true, - "strict": true, - "noImplicitAny": true, - "noFallthroughCasesInSwitch": true, - "declaration": true, - "declarationMap": true, - "sourceMap": true - }, - "include": ["src"], - "exclude": ["dist", "node_modules"], - "tsc-alias": { - // Add file extensions to imports/exports for ESM compatibility. - "resolveFullPaths": true, - // See: https://github.com/justkey007/tsc-alias/discussions/110. - "replacers": { - "base-url": { - "enabled": false - } - } - } -}